:root {
  --ink: #192f30;
  --muted: #62716e;
  --green: #245a48;
  --lime: #e3edc9;
  --paper: #f7f8f3;
  --line: #dfe4d9;
  --white: #fff;
  --red: #9e3c31;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #8cab5b;
  outline-offset: 3px;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: auto;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.brandmark {
  width: 35px;
  height: 35px;
  background: var(--green);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: normal;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #719554;
}
main {
  max-width: 1360px;
  padding: 0 48px;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 58px 0 38px;
  align-items: center;
}
.eyebrow,
.note-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--green);
  text-transform: uppercase;
}
h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -2.7px;
  font-weight: 550;
  margin: 17px 0 18px;
}
h1 span {
  color: #748772;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 530px;
  margin: 0;
}
.hero-note {
  width: 280px;
  flex-shrink: 0;
  padding: 26px;
  border-left: 2px solid #bccba9;
}
.hero-note p {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  margin: 14px 0;
}
.hero-note small {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin: 12px 0 20px;
}
.stats div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.stats div:first-child {
  padding-left: 0;
  border: 0;
}
.stats strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
  max-width: 110px;
}
.notice {
  font-size: 12px;
  color: #61674f;
  background: #eef0e5;
  padding: 13px 17px;
  border-radius: 4px;
}
.tabs {
  display: flex;
  gap: 30px;
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 15px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.tab.active {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  font-weight: 650;
}
.panel {
  display: none;
  padding-top: 28px;
}
.panel.active {
  display: block;
}
.workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
}
.case-list h2 {
  font-size: 16px;
  margin: 0;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.case-card {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: none;
  border-radius: 5px;
  padding: 17px 14px;
  margin: 7px 0;
  color: var(--ink);
}
.case-card:hover {
  background: #ecefe5;
}
.case-card.selected {
  background: var(--white);
  border-color: #a8bc91;
  box-shadow: inset 3px 0 var(--green);
}
.case-card strong {
  display: block;
  font-size: 13px;
  margin: 5px 0;
  line-height: 1.5;
}
.case-card small {
  color: var(--muted);
  font-size: 11px;
}
.case-code {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--green);
}
.episode {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}
.episode-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 550;
  line-height: 1.3;
  margin: 8px 0;
}
h3 {
  font-size: 15px;
  margin: 18px 0 0;
}
.quiet {
  white-space: nowrap;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0;
}
.quiet:hover {
  color: var(--ink);
}
.mode {
  display: inline-block;
  font-size: 11px;
  background: #f0f4e9;
  color: var(--green);
  padding: 6px 10px;
  border-radius: 4px;
  margin: 8px 0 20px;
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-row button {
  background: white;
  border: 1px solid #cdd8c5;
  border-radius: 4px;
  color: var(--green);
  padding: 9px 12px;
  font-size: 12px;
}
.tool-row button:hover {
  background: var(--paper);
}
.stepbar {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 20px 0 10px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: #7a8580;
  background: #f7f8f5;
  border: 1px dashed #d4ddcc;
  font-size: 13px;
  border-radius: 5px;
}
#observations {
  max-height: 420px;
  overflow: auto;
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8f3;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: #324339;
  margin: 8px 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 16px 0 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
input,
select {
  min-width: 0;
  width: 100%;
  border: 1px solid #d9dfd3;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 13px;
}
.primary {
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
}
.primary span {
  margin-left: 28px;
}
.primary:hover {
  background: #174535;
}
.policy {
  font-size: 12px;
  color: var(--muted);
}
.policy strong {
  display: block;
  color: var(--ink);
  margin-top: 12px;
}
.verdict {
  padding: 18px;
  background: #edf5e4;
  border: 1px solid #cbdaba;
  border-radius: 5px;
  margin-top: 20px;
}
.verdict.fail {
  background: #f9eeea;
  border-color: #e6c8be;
}
.check {
  display: inline-block;
  font-size: 11px;
  margin: 10px 12px 0 0;
}
.check.fail {
  color: var(--red);
}
.section-head p {
  color: var(--muted);
}
.result-empty {
  padding: 45px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}
.result-empty h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 10px 0;
}
.result-empty p {
  color: var(--muted);
  font-size: 13px;
  max-width: 540px;
  margin: 10px auto;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.method-grid article {
  background: white;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.method-grid p {
  font-size: 13px;
  color: var(--muted);
}
.method-grid .eyebrow {
  font-size: 10px;
  color: var(--green);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: white;
}
td,
th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  margin: 48px 0 0;
  padding: 22px 0;
  color: var(--muted);
  font-size: 10px;
}
.error {
  color: var(--red);
  padding: 12px;
  background: #fff0ed;
  border-radius: 4px;
}
@media (max-width: 800px) {
  .topbar {
    padding: 0 20px;
    height: 65px;
  }
  .brand {
    font-size: 12px;
  }
  .status {
    font-size: 10px;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    padding: 30px 0;
    gap: 20px;
  }
  .hero-note {
    display: none;
  }
  h1 {
    letter-spacing: -1.8px;
  }
  .intro {
    font-size: 15px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stats div {
    padding-left: 0;
    border: 0;
  }
  .stats strong {
    font-size: 26px;
  }
  .tabs {
    gap: 20px;
  }
  .tab {
    font-size: 11px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #cases {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }
  .case-card {
    min-width: 205px;
    max-width: 205px;
  }
  .episode {
    padding: 18px;
  }
  .episode-head {
    gap: 10px;
  }
  h2 {
    font-size: 20px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  footer {
    display: block;
  }
  .tool-row button {
    flex-grow: 1;
  }
}
.workspace > * {
  min-width: 0;
}
.workspace {
  align-items: start;
}
#cases {
  max-height: 760px;
  overflow-y: auto;
}
.attempt-inspection {
  min-width: 0;
  width: 100%;
  margin: 0;
  border-top: 0;
}
.trace-row > td {
  background: #f6f8f3;
  white-space: normal;
}
td {
  vertical-align: top;
}
.verdict > strong {
  display: block;
}
