:root {
  color-scheme: light;
  --canvas: #f7f8f6;
  --surface: #ffffff;
  --surface-subtle: #f2f4f1;
  --surface-strong: #e9ede9;
  --ink: #151a18;
  --muted: #626c67;
  --muted-strong: #414a46;
  --line: #d8ddd9;
  --line-strong: #b9c2bc;
  --green: #12633c;
  --green-dark: #0b4d2e;
  --green-soft: #edf7f0;
  --amber: #ad6f00;
  --amber-soft: #fff8e8;
  --red: #a43b35;
  --red-soft: #fff1ef;
  --blue: #315f82;
  --blue-soft: #eef5fa;
  --shadow: 0 12px 34px rgba(24, 34, 29, 0.07);
  --radius: 6px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-height: 100vh;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

.file-launch-screen {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8f6 68%),
    var(--canvas);
}

.file-launch-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.file-launch-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
}

.file-launch-brand div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.file-launch-brand strong {
  font-size: 18px;
}

.file-launch-brand span {
  color: var(--muted);
  font-size: 12px;
}

.file-launch-main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 108px) 0 72px;
}

.file-launch-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.file-launch-main > h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.file-launch-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.55;
}

.file-launch-steps {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
  gap: 32px;
  margin-top: 50px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.file-launch-steps h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.file-launch-steps ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-launch-steps li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.file-launch-steps li:last-child {
  border-bottom: 0;
}

.file-launch-steps li span {
  color: var(--muted);
  font-size: 12px;
}

.file-launch-steps li strong {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.file-launch-boundary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid #a9cbb4;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
}

.file-launch-boundary p {
  display: grid;
  gap: 5px;
  margin: 0;
}

.file-launch-boundary span {
  color: var(--muted-strong);
  line-height: 1.5;
}

.file-launch-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 680px) {
  .file-launch-main {
    width: min(100% - 28px, 960px);
    padding-block: 50px 44px;
  }

  .file-launch-main > h1 {
    font-size: 39px;
  }

  .file-launch-lead {
    font-size: 16px;
  }

  .file-launch-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 36px;
    padding: 22px;
  }

  .file-launch-steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-block: 12px;
  }
}

button,
input,
select {
  min-width: 0;
  font: inherit;
}

button {
  color: inherit;
}

button,
summary,
label,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(18, 99, 60, 0.36);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template:
    "topbar topbar" 60px
    "sidebar workspace" minmax(0, 1fr)
    "sidebar footer" 32px /
    286px minmax(0, 1fr);
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.topbar {
  grid-area: topbar;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 60px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
}

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.topbar-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-status > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(173, 111, 0, 0.11);
}

.topbar-status.is-ready .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 99, 60, 0.11);
}

.topbar-status.is-error .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(164, 59, 53, 0.11);
}

.icon-button,
.compact-icon-button,
.field-icon-button {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  justify-self: center;
}

.compact-icon-button {
  width: 30px;
  height: 30px;
}

.field-icon-button {
  width: 34px;
  height: 34px;
}

.icon-button:hover,
.compact-icon-button:hover,
.field-icon-button:hover {
  border-color: var(--line);
  background: var(--surface-subtle);
}

.sidebar {
  grid-area: sidebar;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f0f2ef;
}

.rail-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 14px 14px;
}

.rail-section {
  padding: 0 2px 16px;
}

.rail-section + .rail-section,
.guided-sample {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rail-heading {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rail-heading h2,
.guided-sample h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.repository-summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.repository-summary > .icon {
  color: var(--green);
}

.repository-summary div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.repository-summary strong,
.repository-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repository-summary strong {
  font-size: 12px;
}

.repository-summary small {
  color: var(--muted);
  font-size: 10px;
}

.repository-contract {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.history-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  height: 38px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.history-search .icon {
  width: 15px;
  height: 15px;
}

.history-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.history-search input::placeholder {
  color: #858d89;
}

.history-list {
  display: grid;
  gap: 3px;
}

.history-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  align-items: start;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.history-item:hover,
.history-item.is-selected {
  border-color: var(--line-strong);
  background: var(--surface);
}

.history-status {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.history-status.is-ready {
  background: var(--green);
}

.history-status.is-attention {
  background: var(--amber);
}

.history-status.is-blocked {
  background: var(--red);
}

.history-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.history-item strong,
.history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item strong {
  font-size: 11px;
}

.history-item small,
.history-time {
  color: var(--muted);
  font-size: 9px;
}

.empty-copy {
  margin: 0;
  padding: 12px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.guided-sample {
  display: grid;
  gap: 10px;
}

.rail-kicker,
.eyebrow,
.verdict-label {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guided-sample > div {
  display: grid;
  gap: 3px;
}

.guided-sample > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.sidebar nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #ecefeb;
}

.nav-item {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 5px;
  min-height: 44px;
  align-items: center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item.is-active {
  border-color: var(--line-strong);
  background: var(--surface);
}

.nav-number {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.nav-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.nav-item strong,
.nav-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item strong {
  font-size: 10px;
}

.nav-item small {
  color: var(--muted);
  font-size: 8px;
}

.workspace {
  grid-area: workspace;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px clamp(20px, 3vw, 44px) 30px;
}

.view {
  min-width: 0;
}

.product-surface {
  display: none;
  width: min(1240px, 100%);
  margin-inline: auto;
}

.product-surface.is-active {
  display: block;
}

body:not([data-active-surface]) #view-review,
body:not([data-active-surface]) #view-evidence,
body[data-active-surface="activate"] #view-review,
body[data-active-surface="activate"] #view-evidence,
body[data-active-surface="today"] #view-review,
body[data-active-surface="today"] #view-evidence {
  display: none;
}

body[data-active-surface="review"] .advanced-section,
body[data-active-surface="review"] .advanced-workspace-heading {
  display: none;
}

body[data-active-surface="advanced"] #view-review,
body[data-active-surface="advanced"] .outcome-grid,
body[data-active-surface="advanced"] .review-core-section {
  display: none;
}

body[data-active-surface="advanced"] #view-evidence {
  display: block;
  margin-top: 0;
}

body[data-active-surface="advanced"] .advanced-section {
  display: block;
}

.setup-section,
.evidence-view,
.boundary-line {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.workspace-heading h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
}

.workspace-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.activation-grid,
.today-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.activation-card,
.today-metrics > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.activation-card {
  display: grid;
  gap: 7px;
}

.activation-card > span,
.today-metrics dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.activation-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.activation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.activation-journey {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.activation-journey-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.activation-journey-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.activation-journey-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.activation-journey ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.activation-journey li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.activation-journey li:last-child {
  border-right: 0;
}

.activation-journey li > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.activation-journey li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.activation-journey li strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activation-journey li small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.activation-journey li em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.activation-journey li[data-step-state="current"] {
  box-shadow: inset 0 -2px 0 var(--blue);
  background: #f5f8fd;
}

.activation-journey li[data-step-state="current"] > span,
.activation-journey li[data-step-state="current"] em {
  color: var(--blue);
}

.activation-journey li[data-step-state="complete"] {
  background: #f2f8f4;
}

.activation-journey li[data-step-state="complete"] > span,
.activation-journey li[data-step-state="complete"] em {
  color: var(--green);
}

.activation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.activation-actions .guided-sample {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0;
  border-top: 0;
}

.activation-actions .guided-sample > p {
  grid-column: 1 / -1;
}

.activate-review-button {
  min-width: 180px;
}

.activate-review-button.is-primary-action:not(:disabled) {
  border-color: var(--green-dark);
  background: var(--green);
  color: #ffffff;
}

.activate-review-button.is-primary-action:hover:not(:disabled) {
  background: var(--green-dark);
}

.today-heading {
  align-items: center;
}

.today-primary-action {
  min-width: 210px;
}

.assurance-loop-progress {
  margin-bottom: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.assurance-loop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.assurance-loop-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.assurance-weekly-value {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 3px 7px;
  text-align: right;
}

.assurance-weekly-value strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.assurance-weekly-value span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.assurance-weekly-value small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.assurance-loop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
  overflow: hidden;
}

.assurance-loop-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 70px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.assurance-loop-steps li:last-child {
  border-right: 0;
}

.assurance-loop-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.assurance-loop-steps li > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 3px;
}

.assurance-loop-steps strong {
  font-size: 12px;
}

.assurance-loop-steps small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.assurance-loop-steps em {
  grid-column: 2;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.assurance-loop-steps li[data-loop-state="current"] {
  background: var(--blue-soft);
  box-shadow: inset 0 3px 0 var(--blue);
}

.assurance-loop-steps li[data-loop-state="current"] > span {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.assurance-loop-steps li[data-loop-state="current"] em {
  color: var(--blue);
}

.assurance-loop-steps li[data-loop-state="complete"] {
  background: var(--green-soft);
}

.assurance-loop-steps li[data-loop-state="complete"] > span {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.assurance-loop-steps li[data-loop-state="complete"] em {
  color: var(--green);
}

#today-loop-progress {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.today-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.today-metrics > div {
  display: grid;
  gap: 7px;
}

.today-metrics dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.review-inbox {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.review-inbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-inbox-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.review-inbox-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.review-inbox-item > .icon {
  color: var(--amber);
}

.review-inbox-item > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.review-inbox-item strong,
.review-inbox-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-inbox-item small {
  color: var(--muted);
  font-size: 10px;
}

.advanced-workspace-heading {
  display: flex;
  width: min(1240px, 100%);
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 18px;
}

.advanced-workspace-heading h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.18;
}

.advanced-workspace-heading p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-strip {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.trust-strip span {
  position: relative;
}

.trust-strip span + span::before {
  position: absolute;
  left: -9px;
  color: var(--line-strong);
  content: "·";
}

.review-form {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.5fr)
    minmax(130px, 0.62fr)
    minmax(190px, 0.9fr)
    142px;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.field > span,
.revision-current > span,
.artifact-path > span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
}

.input-with-action {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  min-width: 0;
  height: 46px;
  align-items: center;
  gap: 5px;
  padding: 0 5px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.native-repo-picker {
  min-width: 0;
  height: 34px;
  padding-inline: 10px;
  white-space: nowrap;
}

.input-with-action:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 99, 60, 0.08);
}

.input-with-action > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.input-with-action input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 680;
  text-align: center;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--green-dark);
  background: var(--green);
  color: #ffffff;
}

.primary-button:hover:not(:disabled) {
  background: var(--green-dark);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover:not(:disabled) {
  border-color: #96a29a;
  background: var(--surface-subtle);
}

.text-button {
  min-height: 32px;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
}

.text-button:hover:not(:disabled) {
  background: var(--green-soft);
}

.compact-button {
  min-height: 38px;
}

.review-submit {
  height: 46px;
}

.setup-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 9px 1px 0;
}

.setup-status p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

#review-progress {
  color: var(--green-dark);
  text-align: right;
}

.readiness-receipt {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.readiness-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.readiness-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--muted-strong);
}

.readiness-symbol .icon {
  width: 20px;
  height: 20px;
}

.readiness-copy .eyebrow {
  margin: 0 0 4px;
}

.readiness-copy h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.readiness-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.readiness-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.readiness-receipt.is-ready-to-review .readiness-symbol {
  background: var(--green-soft);
  color: var(--green-dark);
}

.readiness-receipt.is-selection-required .readiness-symbol {
  background: var(--blue-soft);
  color: var(--blue);
}

.readiness-receipt.is-setup-needed .readiness-symbol {
  background: var(--amber-soft);
  color: var(--amber);
}

.readiness-receipt.is-blocked .readiness-symbol {
  background: var(--red-soft);
  color: var(--red);
}

.readiness-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-checks li {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.readiness-checks li:last-child {
  border-right: 0;
}

.readiness-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 720;
}

.readiness-check-label::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.readiness-check.is-pass .readiness-check-label::before {
  background: var(--green);
}

.readiness-check.is-attention .readiness-check-label::before {
  background: var(--amber);
}

.readiness-check.is-blocked .readiness-check-label::before {
  background: var(--red);
}

.readiness-check.is-info .readiness-check-label::before {
  background: var(--blue);
}

.readiness-check p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.readiness-guidance {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.readiness-guidance > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.readiness-guidance strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.readiness-guidance p {
  margin: 4px 0 0;
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.5;
}

.readiness-guidance small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.readiness-next {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.readiness-next span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
  text-transform: uppercase;
}

.readiness-next strong {
  font-size: 11px;
  line-height: 1.45;
}

.readiness-boundary {
  margin: 0;
  padding: 10px 20px 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.evidence-view {
  margin-top: 24px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.verdict-panel,
.evidence-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.verdict-panel {
  min-width: 0;
  overflow: hidden;
  border-top: 3px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.verdict-panel[data-verdict="ready-for-human-decision"] {
  border-color: #8db99c;
  border-top-color: var(--green);
}

.verdict-panel[data-verdict="needs-attention"] {
  border-color: #e5c481;
  border-top-color: var(--amber);
}

.verdict-panel[data-verdict="blocked"] {
  border-color: #dfa5a1;
  border-top-color: var(--red);
}

.verdict-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.verdict-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  color: var(--muted);
}

.verdict-symbol .icon {
  display: none;
  width: 28px;
  height: 28px;
}

.verdict-panel.is-empty .verdict-empty-icon,
.verdict-panel[data-verdict="ready-for-human-decision"] .verdict-ready-icon,
.verdict-panel[data-verdict="needs-attention"] .verdict-attention-icon,
.verdict-panel[data-verdict="blocked"] .verdict-blocked-icon {
  display: block;
}

.verdict-panel[data-verdict="ready-for-human-decision"] .verdict-symbol {
  border-color: #aad0b7;
  background: var(--green-soft);
  color: var(--green);
}

.verdict-panel[data-verdict="needs-attention"] .verdict-symbol {
  border-color: #e7c781;
  background: var(--amber-soft);
  color: var(--amber);
}

.verdict-panel[data-verdict="blocked"] .verdict-symbol {
  border-color: #e0aaa6;
  background: var(--red-soft);
  color: var(--red);
}

.verdict-heading h2 {
  max-width: 680px;
  margin: 5px 0 5px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.verdict-heading > div:nth-child(2) > p:not(.verdict-label) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.52;
}

.verdict-panel[data-verdict="ready-for-human-decision"] .verdict-label {
  color: var(--green);
}

.verdict-panel[data-verdict="needs-attention"] .verdict-label {
  color: var(--amber);
}

.verdict-panel[data-verdict="blocked"] .verdict-label {
  color: var(--red);
}

.evidence-context {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px !important;
}

.edit-selection {
  align-self: start;
  white-space: nowrap;
}

.next-actions {
  padding: 18px 24px 6px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.section-label span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.section-label small {
  color: var(--muted);
  font-size: 9px;
}

.next-actions ol,
.finding-list,
.coverage-list,
.revision-actions,
.file-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-actions li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.next-actions li > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.next-actions li div {
  min-width: 0;
}

.next-actions li strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.next-actions li p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.action-meta {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-strong);
  font-size: 9px;
  white-space: nowrap;
}

.command-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 24px 10px;
}

.command-bar .secondary-button {
  min-width: 0;
}

.passport-sign-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0 24px 10px;
  color: var(--muted-strong);
  font-size: 10px;
}

.passport-sign-option[hidden] {
  display: none;
}

.passport-sign-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.passport-sign-option small {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.pro-action {
  white-space: nowrap;
}

.command-status {
  min-height: 16px;
  margin: 0;
  padding: 0 24px 16px;
  color: var(--muted);
  font-size: 9px;
}

.evidence-panel {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .icon {
  color: var(--green);
}

.panel-heading h2 {
  margin: 0;
  font-size: 15px;
}

.metric-list {
  margin: 0;
}

.metric-list > div {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.metric-list dt {
  color: var(--muted-strong);
  font-size: 11px;
}

.metric-list dd {
  margin: 0;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 720;
  text-align: right;
}

.metric-list dd.is-pass {
  border-color: #9dc8aa;
  background: var(--green-soft);
  color: var(--green-dark);
}

.metric-list dd.is-attention {
  border-color: #e1bf77;
  background: var(--amber-soft);
  color: #795000;
}

.metric-list dd.is-blocked {
  border-color: #dfa5a1;
  background: var(--red-soft);
  color: var(--red);
}

.evidence-details > summary,
.review-section > summary {
  list-style: none;
  cursor: pointer;
}

.evidence-details > summary::-webkit-details-marker,
.review-section > summary::-webkit-details-marker {
  display: none;
}

.evidence-details > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.evidence-details > summary .icon {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.evidence-details[open] > summary .icon {
  transform: rotate(90deg);
}

.evidence-detail-block {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mini-heading h3 {
  margin: 0;
  font-size: 10px;
}

.mini-heading span {
  color: var(--muted);
  font-size: 9px;
}

.plain-list {
  display: grid;
  gap: 5px;
}

.plain-list li {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.artifact-path {
  display: grid;
  gap: 5px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.artifact-path code,
.revision-current code {
  display: block;
  max-width: 100%;
  color: var(--muted-strong);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-sections {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-section + .review-section {
  border-top: 1px solid var(--line);
}

.review-section > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  gap: 10px;
  min-height: 58px;
  align-items: center;
  padding: 8px 16px;
}

.review-section > summary:hover {
  background: var(--surface-subtle);
}

.section-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted-strong);
}

.section-icon .icon {
  width: 17px;
  height: 17px;
}

.review-section > summary > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.review-section > summary strong {
  font-size: 12px;
}

.review-section > summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-section > summary small.eyebrow {
  color: var(--green);
  font-weight: 720;
  text-transform: none;
}

.section-count {
  max-width: 190px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.section-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.review-section[open] > summary .section-chevron {
  transform: rotate(90deg);
}

.review-section[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.section-body {
  padding: 18px 58px 20px;
}

.finding-list {
  display: grid;
  gap: 0;
}

.finding-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.finding-list > li:first-child {
  border-top: 0;
}

.finding-list em {
  min-width: 42px;
  margin-top: 1px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-strong);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.finding-list em.is-high {
  border-color: #dfa5a1;
  background: var(--red-soft);
  color: var(--red);
}

.finding-list em.is-medium {
  border-color: #e1bf77;
  background: var(--amber-soft);
  color: #795000;
}

.finding-list em.is-info,
.finding-list em.is-low {
  border-color: #abc2d2;
  background: var(--blue-soft);
  color: var(--blue);
}

.finding-list strong,
.coverage-list strong,
.revision-actions strong {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}

.finding-list p,
.revision-actions p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.finding-content {
  min-width: 0;
}

.disposition-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(160px, 1.5fr) minmax(110px, 0.7fr) 132px auto;
  gap: 7px;
  align-items: end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.disposition-form label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 680;
}

.disposition-form input,
.disposition-form select,
.revision-form input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
}

.disposition-form input,
.revision-form input {
  padding: 0 9px;
}

.disposition-form select {
  padding: 0 6px;
}

.disposition-form button {
  min-height: 36px;
}

.disposition-status {
  grid-column: 1 / -1;
  min-height: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.file-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.file-list li {
  min-width: 0;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.panel-intro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.coverage-review-meter {
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 680;
}

.coverage-review-meter[hidden] {
  display: none;
}

.coverage-review-meter progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: var(--line);
}

.coverage-review-meter progress::-webkit-progress-bar {
  background: var(--line);
}

.coverage-review-meter progress::-webkit-progress-value {
  background: var(--green);
}

.coverage-review-meter progress::-moz-progress-bar {
  background: var(--green);
}

.coverage-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.coverage-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  min-height: 54px;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}

.coverage-list li.is-current-hunk {
  margin-inline: -8px;
  padding-inline: 8px;
  border-left: 2px solid var(--green);
  background: var(--surface-subtle);
}

.coverage-list li > div {
  min-width: 0;
}

.coverage-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.coverage-list select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 10px;
}

#save-coverage.is-ready-action {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

#save-coverage.is-ready-action:hover:not(:disabled) {
  background: #2e3933;
}

.coverage-diff {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.coverage-diff summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted-strong);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.coverage-diff pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: #101412;
  color: #e7ece9;
  font: 10px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.coverage-diff code {
  display: table;
  min-width: 100%;
  padding: 8px 0;
}

.diff-line {
  display: table-row;
  white-space: pre;
}

.diff-line::before {
  display: table-cell;
  width: 22px;
  padding: 0 6px;
  color: #7e8b84;
  content: attr(data-prefix);
  user-select: none;
}

.diff-line.is-addition {
  background: #163b2b;
  color: #d6f5e4;
}

.diff-line.is-removal {
  background: #452426;
  color: #f7d8da;
}

.diff-line.is-marker {
  color: #a9b4ae;
  font-style: italic;
}

.inline-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
}

.inline-action p,
.inline-status {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.inline-action p {
  margin-left: auto;
}

.revision-layout,
.assurance-layout,
.recommend-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
}

.revision-form,
.assurance-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.agent-bridge-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.agent-bridge-controls select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.agent-launch-confirmation {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.45;
}

.agent-launch-confirmation input {
  margin: 2px 0 0;
}

.external-evidence-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
}

.outcome-ledger-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
}

.product-metrics-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.product-metrics-copy,
.product-metrics-summary {
  display: grid;
  align-content: start;
  gap: 12px;
}

.metric-boundary-note {
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.55;
}

.outcome-ledger-controls,
.outcome-ledger-summary,
.outcome-agent-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.outcome-ledger-controls select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.outcome-agent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.outcome-agent-row strong,
.outcome-agent-row small {
  display: block;
}

.outcome-agent-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.outcome-agent-row code {
  color: var(--muted-strong);
  font-size: 9px;
}

.external-evidence-controls,
.external-evidence-receipts {
  display: grid;
  align-content: start;
  gap: 12px;
}

.external-evidence-inputs {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
}

.external-evidence-inputs select,
.external-evidence-inputs input[type="file"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.external-evidence-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.external-evidence-receipt strong,
.external-evidence-receipt small {
  display: block;
}

.external-evidence-receipt small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.external-evidence-receipt code {
  color: var(--muted-strong);
  font-size: 9px;
}

.revision-current {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-left: 2px solid var(--green);
  background: var(--surface-subtle);
}

.revision-result,
.assurance-result {
  min-width: 0;
}

.revision-result h2,
.assurance-result h2,
.advisory-result h2 {
  margin: 5px 0 5px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.revision-result > div:first-child > p:last-child,
.assurance-result > div:first-child > p:last-child,
.advisory-result > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.revision-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.revision-metrics div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.revision-metrics div:nth-child(3n) {
  border-right: 0;
}

.revision-metrics div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.revision-metrics dt {
  color: var(--muted);
  font-size: 8px;
}

.revision-metrics dd {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.assurance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.assurance-metrics div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.assurance-metrics div:last-child {
  border-right: 0;
}

.assurance-metrics dt {
  color: var(--muted);
  font-size: 8px;
}

.assurance-metrics dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 780;
}

.revision-actions {
  display: grid;
  gap: 6px;
}

.revision-actions li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.revision-actions li > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.revision-artifact {
  margin-top: 12px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-detail-list {
  display: grid;
}

.history-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.7fr) minmax(110px, 0.55fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  border-top: 1px solid var(--line);
}

.history-detail-row:first-child {
  border-top: 0;
}

.history-detail-row strong,
.history-detail-row span {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-detail-row span {
  color: var(--muted);
}

.history-verdict {
  justify-self: start;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8px !important;
  font-weight: 720;
}

.history-verdict.is-ready {
  border-color: #9dc8aa;
  background: var(--green-soft);
  color: var(--green-dark);
}

.history-verdict.is-attention {
  border-color: #e1bf77;
  background: var(--amber-soft);
  color: #795000;
}

.trust-layout {
  display: grid;
  gap: 16px;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-metrics > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-metrics > div:nth-child(3n) {
  border-right: 0;
}

.trust-metrics > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.trust-metrics dt {
  color: var(--muted);
  font-size: 9px;
}

.trust-metrics dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournament-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
}

.tournament-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tournament-candidates {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.tournament-candidates legend {
  width: 100%;
  padding: 0 0 8px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 720;
}

.tournament-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.tournament-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.tournament-option > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tournament-option strong,
.tournament-ranking strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-option small,
.tournament-ranking small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.tournament-result {
  min-width: 0;
}

.tournament-result h2 {
  margin: 5px 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.tournament-result > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.tournament-receipt {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}

.tournament-receipt strong {
  color: var(--ink);
  font-size: 10px;
}

.tournament-receipt span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.tournament-ranking {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tournament-ranking li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}

.tournament-ranking li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tournament-rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}

.tournament-artifact {
  margin-top: 12px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proofgraph-layout {
  display: grid;
  gap: 16px;
}

.proofgraph-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.proofgraph-heading > div:first-child {
  display: grid;
  align-content: start;
  gap: 10px;
}

.proofgraph-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proofgraph-metrics > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proofgraph-metrics > div:nth-child(3n) {
  border-right: 0;
}

.proofgraph-metrics > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.proofgraph-metrics dt {
  color: var(--muted);
  font-size: 9px;
}

.proofgraph-metrics dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.proofgraph-edge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.proofgraph-edge-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px 8px 2px;
  border-bottom: 1px solid var(--line);
}

.proofgraph-edge-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.proofgraph-edge-list strong {
  font-size: 10px;
}

.proofgraph-edge-list span {
  color: var(--muted);
  font-size: 9px;
}

.proofgraph-artifact {
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.weekly-report-summary {
  padding: 12px 14px;
  border-left: 2px solid var(--green);
  background: var(--surface-subtle);
}

.weekly-report-summary h3 {
  margin: 3px 0 4px;
  font-size: 14px;
}

.weekly-report-summary p:last-child {
  margin: 0;
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.5;
}

.history-verdict.is-blocked {
  border-color: #dfa5a1;
  background: var(--red-soft);
  color: var(--red);
}

.provider-panel fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.provider-panel legend {
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 720;
}

.provider-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 52px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.provider-option.is-selected {
  border-color: #8db99c;
  background: var(--green-soft);
}

.provider-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.provider-option > span {
  display: grid;
  gap: 3px;
}

.provider-option strong {
  font-size: 10px;
}

.provider-option small {
  color: var(--muted);
  font-size: 9px;
}

.provider-option em {
  color: var(--green-dark);
  font-size: 8px;
  font-style: normal;
  font-weight: 720;
}

.consent-row {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 9px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.consent-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.provider-panel > .primary-button {
  width: 100%;
  margin-top: 10px;
}

.provider-panel > .inline-status {
  margin-top: 8px;
}

.advisory-result {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.candidate-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.candidate-card {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.candidate-card strong {
  font-size: 10px;
}

.candidate-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.boundary-line {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid #8db99c;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
}

.boundary-line strong {
  font-size: 11px;
}

.boundary-line span {
  color: #316149;
  font-size: 10px;
}

.footer {
  grid-area: footer;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

.footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #d8b36a;
  border-radius: var(--radius);
  background: #fffaf0;
  box-shadow: 0 14px 40px rgba(45, 33, 13, 0.15);
  color: #5d440e;
  font-size: 11px;
  line-height: 1.45;
}

.stopped-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--canvas);
}

.stopped-message {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stopped-message p:first-child {
  color: var(--green);
  font-weight: 720;
}

.stopped-message h1 {
  margin: 8px 0;
  font-size: 24px;
  letter-spacing: 0;
}

.stopped-message p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template:
      "topbar topbar" 60px
      "sidebar workspace" minmax(0, 1fr)
      "sidebar footer" 32px /
      250px minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 250px minmax(0, 1fr) 54px;
  }

  .review-form {
    grid-template-columns: minmax(260px, 1.35fr) minmax(130px, 0.65fr) minmax(180px, 0.9fr);
  }

  .review-submit {
    grid-column: 3;
  }

  .candidate-field {
    grid-column: 1 / 3;
  }

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

  .pro-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

@media (max-width: 900px) {
  .app-shell {
    grid-template:
      "topbar topbar" 60px
      "sidebar workspace" minmax(0, 1fr)
      "sidebar footer" 32px /
      222px minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 222px minmax(0, 1fr) 50px;
  }

  .brand {
    padding-inline: 14px;
  }

  .brand span {
    display: none;
  }

  .outcome-grid,
  .revision-layout,
  .assurance-layout,
  .external-evidence-layout,
  .outcome-ledger-layout,
  .product-metrics-layout,
  .tournament-layout,
  .proofgraph-heading,
  .recommend-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence-panel {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .evidence-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .metric-list {
    border-right: 1px solid var(--line);
  }

  .evidence-details {
    min-width: 0;
  }

  .advisory-result {
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-body {
    padding-inline: 42px;
  }

  .activation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .activation-journey ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .activation-journey li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activation-journey li:last-child {
    border-bottom: 0;
  }

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

  .assurance-loop-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-loop-steps li:nth-child(2) {
    border-right: 0;
  }

  .assurance-loop-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: grid;
    grid-template:
      "topbar" 54px
      "sidebar" auto
      "workspace" auto
      "footer" 34px /
      minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    position: relative;
    top: auto;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    height: 54px;
  }

  .brand {
    border-right: 0;
  }

  .brand img {
    width: 27px;
    height: 27px;
  }

  .brand strong {
    font-size: 16px;
  }

  .topbar-status {
    justify-content: flex-end;
    padding: 0 6px;
    font-size: 10px;
  }

  .sidebar {
    display: grid;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    overflow: visible;
  }

  .rail-section,
  .guided-sample {
    min-width: 0;
    padding: 0;
    border-top: 0;
  }

  .history-rail {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 122px;
    overflow-y: auto;
  }

  .history-search {
    margin-bottom: 5px;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 12px 10px;
  }

  .nav-item {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 42px;
    text-align: center;
  }

  .nav-number,
  .nav-item small {
    display: none;
  }

  .nav-item strong {
    font-size: 9px;
  }

  .workspace {
    overflow: visible;
    padding: 20px 14px 24px;
  }

  .setup-section,
  .evidence-view,
  .review-section {
    scroll-margin-top: 16px;
  }

  .workspace-heading {
    align-items: start;
  }

  .today-heading,
  .advanced-workspace-heading {
    align-items: start;
  }

  .activation-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .activation-journey-heading {
    display: grid;
    align-items: start;
  }

  .activation-journey-heading > p {
    text-align: left;
  }

  .activate-review-button,
  .today-primary-action {
    width: 100%;
    min-width: 0;
  }

  .review-inbox-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-heading h1 {
    font-size: 24px;
  }

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

  .external-evidence-inputs {
    grid-template-columns: minmax(0, 1fr);
  }

  .repository-field,
  .candidate-field {
    grid-column: 1 / -1;
  }

  .review-submit {
    grid-column: auto;
  }

  .setup-status {
    display: grid;
  }

  #review-progress {
    text-align: left;
  }

  .readiness-heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .readiness-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

  .readiness-checks li {
    border-bottom: 1px solid var(--line);
  }

  .readiness-checks li:nth-child(2n) {
    border-right: 0;
  }

  .readiness-checks li:last-child {
    border-bottom: 0;
  }

  .verdict-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 20px;
  }

  .verdict-symbol {
    width: 44px;
    height: 44px;
  }

  .verdict-heading h2 {
    font-size: 21px;
  }

  .edit-selection {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .next-actions {
    padding-inline: 20px;
  }

  .command-bar {
    padding-inline: 20px;
  }

  .command-status {
    padding-inline: 20px;
  }

  .section-body {
    padding: 16px 20px 18px;
  }

  .history-detail-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .history-detail-row > span:nth-child(2),
  .history-detail-row > span:nth-child(3) {
    display: none;
  }

  .footer {
    padding-inline: 12px;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 7px;
    padding-left: 11px;
  }

  .topbar-status > span:last-child {
    max-width: 134px;
  }

  .history-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: 112px;
  }

  .workspace {
    padding-inline: 12px;
  }

  .workspace-heading {
    display: grid;
    gap: 10px;
  }

  .advanced-workspace-heading {
    display: grid;
    gap: 10px;
  }

  .activation-actions .guided-sample,
  .today-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .assurance-loop-heading {
    display: grid;
    align-items: start;
  }

  .assurance-weekly-value {
    justify-content: start;
    text-align: left;
  }

  .assurance-loop-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .assurance-loop-steps li,
  .assurance-loop-steps li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .assurance-loop-steps li:last-child {
    border-bottom: 0;
  }

  .activation-actions .guided-sample > p {
    grid-column: auto;
  }

  .trust-strip {
    white-space: normal;
  }

  .review-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .repository-field,
  .candidate-field,
  .review-submit {
    grid-column: auto;
  }

  .input-with-action {
    height: 44px;
  }

  .review-submit {
    height: 44px;
  }

  .readiness-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
  }

  .readiness-symbol {
    width: 36px;
    height: 36px;
  }

  .readiness-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .readiness-checks li,
  .readiness-checks li:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .readiness-next {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-inline: 15px;
  }

  .readiness-guidance {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-inline: 15px;
  }

  .readiness-next .secondary-button {
    justify-self: start;
    margin-top: 4px;
  }

  .readiness-boundary {
    padding-inline: 15px;
  }

  .evidence-view {
    margin-top: 18px;
  }

  .verdict-heading {
    gap: 12px;
    padding: 16px;
  }

  .verdict-heading h2 {
    font-size: 19px;
  }

  .next-actions {
    padding: 14px 16px 4px;
  }

  .next-actions li {
    grid-template-columns: 20px minmax(0, 1fr) 28px;
  }

  .action-meta {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .command-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 16px 8px;
  }

  .pro-action {
    grid-column: 1 / -1;
  }

  .command-status {
    padding-inline: 16px;
  }

  .passport-sign-option {
    grid-template-columns: auto minmax(0, 1fr);
    margin-inline: 16px;
  }

  .passport-sign-option small {
    grid-column: 2;
    text-align: left;
  }

  .evidence-panel {
    display: block;
  }

  .metric-list {
    border-right: 0;
  }

  .review-section > summary {
    grid-template-columns: 30px minmax(0, 1fr) auto 15px;
    gap: 7px;
    min-height: 54px;
    padding-inline: 11px;
  }

  .review-section > summary small {
    display: none;
  }

  .section-count {
    max-width: 74px;
  }

  .section-body {
    padding: 14px;
  }

  .finding-list > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .finding-list em {
    justify-self: start;
  }

  .disposition-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .coverage-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .coverage-review-meter {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .inline-action {
    display: grid;
  }

  .inline-action .secondary-button {
    width: 100%;
  }

  .trust-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-metrics > div,
  .trust-metrics > div:nth-child(3n),
  .trust-metrics > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-metrics > div:last-child {
    border-bottom: 0;
  }

  .trust-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-actions .secondary-button {
    width: 100%;
  }

  .proofgraph-metrics,
  .proofgraph-edge-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .proofgraph-metrics > div,
  .proofgraph-metrics > div:nth-child(3n),
  .proofgraph-metrics > div:nth-last-child(-n + 3),
  .proofgraph-edge-list li:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proofgraph-metrics > div:last-child {
    border-bottom: 0;
  }

  .tournament-ranking li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .tournament-ranking .text-button {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .assurance-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .assurance-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .revision-metrics div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .revision-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .revision-metrics div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .revision-metrics div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .boundary-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .boundary-line span {
    grid-column: 2;
  }

  .footer span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 390px) {
  .topbar-status > span:last-child {
    max-width: 108px;
  }

  .sidebar nav,
  .rail-scroll {
    padding-inline: 10px;
  }

  .workspace {
    padding-inline: 10px;
  }

  .workspace-heading h1 {
    font-size: 22px;
  }

  .trust-strip {
    gap: 12px;
    font-size: 9px;
  }

  .verdict-heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .verdict-symbol {
    width: 38px;
    height: 38px;
  }

  .verdict-symbol .icon {
    width: 23px;
    height: 23px;
  }

  .verdict-heading h2 {
    font-size: 18px;
  }

  .command-bar .secondary-button {
    gap: 5px;
    padding-inline: 6px;
    font-size: 10px;
  }

  .command-bar .icon {
    width: 15px;
    height: 15px;
  }

  .review-section > summary strong {
    font-size: 11px;
  }

  .section-count {
    font-size: 8px;
  }
}

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