:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #ffffff;
  --ink: #18201c;
  --muted: #5b665f;
  --line: #d9ded8;
  --green: #136f4a;
  --green-soft: #e7f4ec;
  --red: #9d2f2f;
  --red-soft: #faeaea;
  --amber: #8d5c0b;
  --amber-soft: #fff1cf;
  --blue: #245c8f;
  --blue-soft: #e7f0f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(247, 248, 245, 0.96)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(24, 32, 28, 0.04) 0 1px,
      transparent 1px 48px
    );
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 0.95;
}

h2 {
  font-size: 20px;
}

.summary {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.actions a {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
}

.actions a:first-child {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.status-grid,
.workspace,
.proof-grid,
.release-grid {
  display: grid;
  gap: 14px;
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 14px;
}

.status-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(24, 32, 28, 0.06);
}

.status-card {
  min-height: 124px;
  padding: 18px;
  border-top: 5px solid var(--blue);
}

.status-card.good {
  border-top-color: var(--green);
}

.status-card.warn {
  border-top-color: var(--amber);
}

.status-card span,
.release-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-card strong {
  display: block;
  margin-top: 14px;
  font-size: 30px;
  line-height: 1;
}

.status-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.workspace {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}

.panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.good-pill {
  background: var(--green-soft);
  color: var(--green);
}

.attack-list {
  display: grid;
  gap: 10px;
}

.attack-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfb;
}

.attack-id {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.attack-row strong {
  display: block;
  font-size: 15px;
}

.attack-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.decision {
  justify-self: end;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scoped .decision {
  background: var(--amber-soft);
  color: var(--amber);
}

.receipt-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.receipt-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.receipt-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  font-size: 0.92em;
}

.proof-panel,
.release-panel {
  margin-top: 14px;
}

.proof-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

pre {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #17211c;
  color: #e7f4ec;
  overflow: auto;
  line-height: 1.5;
}

.proof-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.proof-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.release-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.release-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfb;
}

.release-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

@media (max-width: 900px) {
  .topbar,
  .workspace,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    align-items: start;
  }

  .actions {
    justify-content: flex-start;
  }

  .status-grid,
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1200px);
    padding-top: 18px;
  }

  .status-grid,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .attack-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .decision {
    grid-column: 2;
    justify-self: start;
  }
}
