:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --ink: #17201c;
  --muted: #65706a;
  --line: #d9ded7;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --rose: #9f1239;
  --amber: #b45309;
  --leaf: #e8f4ef;
  --sky: #e7eef8;
  --paper: #fbfaf7;
  --shadow: 0 18px 50px rgba(28, 35, 30, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

.app-shell {
  width: min(1560px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.title-stack {
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  display: block;
  line-height: 1.05;
}

.brand-name {
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.source-pill {
  min-width: 92px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.app-nav a,
.ghost-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #2f3a34;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.app-nav a[aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(620px, 1.08fr) minmax(460px, 0.82fr);
  gap: 26px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-panel,
.results-panel {
  padding: 28px;
}

.results-panel {
  position: sticky;
  top: 16px;
}

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

.section-head.compact {
  margin-bottom: 16px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.form-panel > .grid + .grid,
.csv-box > .grid {
  margin-top: 18px;
}

.form-panel > h3 {
  margin-top: 0;
  color: #223029;
}

.form-panel .section-head h3 {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 8px;
  color: #334039;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
}

.label-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.required-badge,
.conditional-badge,
.optional-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.required-badge {
  background: #fde8ec;
  color: #9f1239;
}

.conditional-badge {
  background: #fff4d8;
  color: #92400e;
}

.optional-badge {
  background: #e9f3ef;
  color: #11645d;
}

.field-help {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.requirements-box {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #b9d5cf;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f3faf7;
}

.requirements-box h3 {
  margin-bottom: 10px;
  color: #153b36;
}

.requirements-box ul {
  margin: 0;
  padding-left: 18px;
}

.requirements-box li {
  margin-bottom: 8px;
  color: #37443e;
  font-size: 0.86rem;
  line-height: 1.45;
}

.requirements-box p {
  margin: 10px 0 0;
  color: #4c5a55;
  font-size: 0.84rem;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd3cc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

textarea {
  min-height: 142px;
  resize: vertical;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border: 0;
  margin: 0 0 24px;
  padding: 6px;
  border-radius: 8px;
  background: #eef1ed;
}

.segmented label {
  display: block;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  min-height: 44px;
  border-radius: 6px;
  color: var(--muted);
  line-height: 44px;
  text-align: center;
  font-weight: 850;
}

.segmented input:checked + span {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 1px 8px rgba(19, 30, 24, 0.08);
}

.compact-segmented {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.blood-panel {
  margin-top: 0;
}

.hidden-panel {
  display: none;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.check-row label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.csv-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c9d8d4;
  border-radius: 8px;
  background: var(--leaf);
}

.blood-panel.csv-box {
  margin-top: 0;
}

.csv-head {
  margin-bottom: 16px;
}

.csv-head h3 {
  margin-bottom: 0;
}

.file-label input {
  padding: 8px;
  background: #fff;
}

.mini {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

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

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  background: var(--teal);
  color: #fff;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.ghost-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: #2f3a34;
  padding: 0 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed #c9d0ca;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
  gap: 10px;
  padding: 32px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.hidden {
  display: none;
}

.result-card {
  padding: 22px;
  border-radius: 8px;
  background: var(--sky);
  border: 1px solid #cbd9e8;
}

.result-card.cr,
.result-card.crh,
.result-card.cri {
  background: #e9f7ef;
  border-color: #b8e2c8;
}

.result-card.pr,
.result-card.mlfs {
  background: #fff6df;
  border-color: #ead28f;
}

.result-card.no_response,
.result-card.nonevaluable {
  background: #fff0f1;
  border-color: #f1b6c1;
}

.result-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.result-card h2 {
  margin-bottom: 8px;
  font-size: 1.65rem;
  line-height: 1.15;
}

.result-card p:last-child {
  margin-bottom: 0;
  color: #314039;
  line-height: 1.5;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.key-grid div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.key-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.key-grid dd {
  margin: 7px 0 0;
  font-size: 1rem;
  font-weight: 850;
}

.detail-block {
  padding: 18px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-block ul {
  margin: 0;
  padding-left: 19px;
}

.detail-block li {
  margin-bottom: 7px;
  color: #35433c;
  line-height: 1.45;
}

.reasoning-matrix {
  display: grid;
  gap: 12px;
}

.reason-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.reason-card:not(.selected-card) {
  box-shadow: none;
}

.reason-card.met {
  border-color: #a8d8bc;
}

.reason-card.blocked {
  border-color: #e0c37b;
}

.reason-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
}

summary.reason-card-head {
  cursor: pointer;
  list-style: none;
}

summary.reason-card-head::-webkit-details-marker {
  display: none;
}

summary.reason-card-head::before {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef1ed;
  color: var(--teal-dark);
  font-weight: 900;
  margin-top: 1px;
}

details[open] > summary.reason-card-head::before {
  content: "-";
}

.reason-card-head h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
}

.reason-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.reason-card-head span {
  align-self: start;
  white-space: nowrap;
  border-radius: 999px;
  background: #eef1ed;
  color: #415048;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.reason-card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.reason-card th,
.reason-card td {
  border-top: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reason-card th {
  color: var(--muted);
  background: #fbfcfa;
  font-weight: 850;
}

.status {
  display: inline-block;
  min-width: 54px;
  border-radius: 999px;
  padding: 3px 7px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status.pass {
  background: #dff4e8;
  color: #166534;
}

.status.fail {
  background: #fde3e8;
  color: #9f1239;
}

.status.missing {
  background: #fff0c7;
  color: #92400e;
}

.sources a {
  color: var(--teal-dark);
  font-weight: 850;
}

.sources p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.method-shell {
  max-width: 1180px;
}

.method-panel {
  padding: 22px;
  margin-bottom: 16px;
}

.method-copy {
  color: #35433c;
  line-height: 1.55;
}

.method-copy.tight {
  max-width: 900px;
  margin-bottom: 18px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  min-height: 150px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.step-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.decision-tree {
  display: grid;
  gap: 12px;
}

.tree-node {
  min-height: 88px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.tree-node strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
}

.tree-node span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.tree-node.question {
  background: #e7eef8;
  border-color: #bfd0e5;
}

.tree-node.pass {
  background: #e9f7ef;
  border-color: #b8e2c8;
}

.tree-node.warn {
  background: #fff6df;
  border-color: #ead28f;
}

.tree-node.fail {
  background: #fff0f1;
  border-color: #f1b6c1;
}

.tree-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

.tree-branch {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tree-branches.nested {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  padding-left: 14px;
  border-left: 2px solid #d8ded8;
}

.branch-label {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.branch-label.yes {
  background: #dff4e8;
  color: #166534;
}

.branch-label.no {
  background: #fff0c7;
  color: #92400e;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal-dark);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.priority-list {
  margin: 0;
  padding-left: 20px;
  color: #35433c;
}

.priority-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.criteria-table-wrap {
  overflow-x: auto;
}

.method-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.method-table th,
.method-table td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.method-table th {
  background: var(--paper);
  color: #334039;
  font-size: 0.82rem;
  font-weight: 850;
}

.method-table td:first-child {
  width: 100px;
  color: var(--teal-dark);
  font-weight: 900;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  color: #35433c;
  line-height: 1.55;
}

.plain-list li {
  margin-bottom: 8px;
}

.method-hero-panel {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
  margin-bottom: 18px;
}

.method-hero-copy {
  max-width: 860px;
}

.method-hero-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.method-hero-copy p {
  margin-bottom: 0;
  color: #35433c;
  font-size: 1rem;
  line-height: 1.6;
}

.method-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 230px;
}

.method-section {
  margin-bottom: 18px;
}

.method-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.method-section-head h2,
.method-section-head p {
  margin-bottom: 0;
}

.method-section-head p {
  color: var(--muted);
  font-weight: 650;
}

.audit-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.audit-step {
  position: relative;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.audit-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -10px;
  z-index: 2;
  width: 10px;
  border-top: 2px solid #b9c8c4;
}

.audit-step span,
.priority-track span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.audit-step strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.94rem;
}

.audit-step p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.method-grid.wide-left {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.decision-map {
  display: grid;
  gap: 12px;
}

.map-question,
.map-path,
.map-mini,
.missing-rules > div {
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.map-question {
  background: #e7eef8;
  border-color: #bfd0e5;
}

.map-question strong,
.map-path strong,
.map-mini strong,
.missing-rules strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.map-question span,
.map-path p,
.missing-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.map-split,
.map-nested {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.map-path,
.map-mini {
  display: grid;
  align-content: start;
  gap: 6px;
}

.map-path > span,
.map-mini > span,
.rule-result span {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-path.positive,
.map-mini.positive {
  background: #e9f7ef;
  border-color: #b8e2c8;
}

.map-path.caution {
  background: #fff6df;
  border-color: #ead28f;
}

.map-mini.negative {
  background: #fff0f1;
  border-color: #f1b6c1;
}

.map-path.positive > span,
.map-mini.positive > span,
.rule-result.pass span {
  background: #dff4e8;
  color: #166534;
}

.map-path.caution > span,
.map-mini.negative > span,
.rule-result.warn span {
  background: #fff0c7;
  color: #92400e;
}

.missing-rules {
  display: grid;
  gap: 10px;
}

.rule-result.warn {
  background: #fff6df;
  border-color: #ead28f;
}

.rule-result.pass {
  background: #e9f7ef;
  border-color: #b8e2c8;
}

.priority-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.priority-board h3 {
  margin-bottom: 10px;
}

.priority-track {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: priority;
}

.priority-track li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: #35433c;
  font-weight: 700;
  line-height: 1.35;
}

.priority-track span {
  min-width: 54px;
  height: 28px;
  background: #eef1ed;
  color: var(--teal-dark);
}

.audit-list li {
  margin-bottom: 10px;
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-chips span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #334039;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}

.criteria-grid {
  display: grid;
  grid-template-columns: 100px repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.criteria-grid > div {
  min-height: 62px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  color: #35433c;
  font-size: 0.86rem;
  line-height: 1.45;
}

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

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

.criteria-head {
  min-height: 44px !important;
  background: var(--paper) !important;
  color: #334039 !important;
  font-size: 0.8rem !important;
  font-weight: 900;
  text-transform: uppercase;
}

.criteria-code {
  color: var(--teal-dark) !important;
  font-weight: 900;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.app-footer strong {
  color: var(--teal-dark);
  font-weight: 900;
}

.report-dialog {
  width: min(920px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.report-dialog::backdrop {
  background: rgba(23, 32, 28, 0.42);
}

.report-dialog-card {
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(23, 32, 28, 0.28);
  padding: 26px;
}

.report-dialog-card .grid + .grid {
  margin-top: 18px;
}

.report-dialog-card .primary-button {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 20px, 760px);
    padding: 14px 0;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .brand-lockup {
    margin-bottom: 14px;
  }

  .app-nav {
    margin-left: 0;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 1.55rem;
  }

  .method-hero-panel,
  .method-section-head {
    align-items: start;
    flex-direction: column;
  }

  .method-hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .workspace,
  .grid.two,
  .key-grid,
  .method-grid,
  .method-grid.wide-left,
  .method-steps,
  .audit-flow,
  .priority-board,
  .priority-lanes,
  .tree-branches,
  .map-split,
  .map-nested {
    grid-template-columns: 1fr;
  }

  .audit-step {
    min-height: 0;
  }

  .audit-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 10px;
    border-top: 0;
    border-left: 2px solid #b9c8c4;
  }

  .step-card {
    min-height: 0;
  }

  .tree-branches.nested {
    grid-template-columns: 1fr;
  }

  .criteria-grid {
    grid-template-columns: 82px 1fr;
  }

  .criteria-grid .criteria-head {
    display: none;
  }

  .criteria-grid > div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

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

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

  .criteria-code {
    grid-row: span 2;
  }

  .criteria-code + div::before {
    content: "ELN 2022";
  }

  .criteria-code + div + div::before {
    content: "ELN 2017";
  }

  .criteria-code + div::before,
  .criteria-code + div + div::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .criteria-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .results-panel {
    position: static;
  }

  .report-dialog-card {
    padding: 18px;
  }
}
