:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --ink: #17191f;
  --muted: #626976;
  --line: #d9dee7;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --green: #0f766e;
  --blue: #1d4ed8;
  --amber: #b45309;
  --red: #b42318;
  --shadow: 0 18px 45px rgba(20, 27, 42, 0.09);
}

.beta-locked > .shell,
.beta-locked > .site-footer {
  visibility: hidden;
}

.beta-access-gate[hidden] {
  display: none;
}

.beta-access-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: #eef1f5;
}

.beta-access-panel {
  width: min(100%, 460px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.beta-access-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.beta-access-heading h1 {
  margin: 3px 0 0;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.beta-access-copy,
.beta-access-status,
.beta-access-error {
  line-height: 1.5;
}

.beta-access-copy {
  margin: 18px 0 8px;
  color: var(--muted);
}

.beta-access-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.beta-access-panel form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.beta-access-panel form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.beta-access-panel input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.beta-access-panel input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(15, 118, 110, 0.16);
  outline-offset: 1px;
}

.beta-access-panel button[type="submit"] {
  width: 100%;
  min-height: 46px;
}

.beta-access-error {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 0.84rem;
}

@media (max-width: 520px) {
  .beta-access-gate {
    align-items: start;
    padding: 12px;
  }

  .beta-access-panel {
    margin-top: 8vh;
    padding: 20px 16px;
  }

  .beta-access-heading {
    display: grid;
  }
}

/* Delayed outcome follow-up */
.followup-stage[hidden] {
  display: none;
}

.followup-stage {
  margin: 18px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.followup-inner {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.followup-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.followup-heading h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.followup-heading > span {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.followup-event {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--green);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.followup-form {
  display: grid;
  gap: 14px;
}

.followup-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.followup-form legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.followup-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.followup-options label {
  position: relative;
  min-width: 86px;
  cursor: pointer;
}

.followup-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.followup-options span {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.followup-options input:checked + span {
  border-color: var(--green);
  background: #edf7f2;
  color: #174c3d;
}

.followup-options input:focus-visible + span {
  outline: 2px solid #27745d;
  outline-offset: 2px;
}

.followup-actions {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
}

.followup-actions button {
  min-height: 40px;
  padding: 8px 16px;
}

.followup-message {
  color: var(--muted);
  font-size: 0.82rem;
}

.followup-saved {
  color: #174c3d;
  font-weight: 800;
}

@media (max-width: 720px) {
  .followup-inner {
    padding: 18px 16px;
  }

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

  .followup-heading > span {
    max-width: none;
    text-align: left;
  }

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

  .followup-options label {
    min-width: 0;
  }

  .followup-options span {
    height: 100%;
  }

  .followup-actions {
    display: grid;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(48px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.language-switch button {
  min-width: 48px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
}

.language-switch button.active {
  background: var(--ink);
  color: #fff;
}

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

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.95;
}

.status {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.status.ok {
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--green);
}

.status.error {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--red);
}

.input-stage {
  margin-bottom: 22px;
}

.entry-panel,
.report-section,
.report-hero,
.force-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-panel {
  padding: 22px;
}

.prompt-block {
  margin-bottom: 16px;
}

label,
legend {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

label .label-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.5;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

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

.compact-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 14px;
  background: var(--panel-soft);
}

.context-options > label {
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 700;
}

.chip-row input {
  width: auto;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.pulse-grid label {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

.advanced {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px 0;
  margin-bottom: 16px;
  background: #fff;
}

.field-note,
.primary-actions p {
  color: var(--muted);
  line-height: 1.5;
}

.field-note {
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.advanced summary {
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 13px;
}

.primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
  column-gap: 28px;
  row-gap: 10px;
  margin: 0 0 16px;
}

.primary-actions button {
  justify-self: start;
}

.primary-actions p {
  max-width: 680px;
  margin: 0;
  font-size: 0.82rem;
}

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

#deleteAnonymousData {
  color: #9f2d25;
}

.eligibility-controls {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.eligibility-controls label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

.eligibility-controls input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.boundary-note {
  grid-column: 1;
  padding-left: 10px;
  border-left: 3px solid var(--amber);
}

.processing-choice,
.privacy-input-note {
  grid-column: 1;
}

.submit-insight {
  grid-column: 2;
  align-self: end;
}

.site-footer {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 30px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

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

button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 800;
}

button.secondary,
.feedback-row button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

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

.result-stage {
  min-height: 220px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.empty.error {
  color: var(--red);
  border-color: rgba(180, 35, 24, 0.35);
}

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

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

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #eef7f6);
}

.report-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.05;
}

.report-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.report-meta {
  display: grid;
  align-content: start;
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric b {
  display: block;
  margin-top: 4px;
}

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

.force-panel,
.report-section {
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-row span {
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 8px;
  background: #eef4ff;
  color: var(--blue);
  padding: 7px 10px;
  font-weight: 800;
  font-size: 0.88rem;
}

.note-list {
  margin-top: 12px;
}

.note-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

li {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

li:last-child {
  margin-bottom: 0;
}

.map-grid,
.scenario-grid,
.timeline-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.map-card,
.check-card,
.scenario-card,
.timeline-card,
.feedback-card,
.improvement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.map-card {
  display: grid;
  gap: 10px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-topline b {
  color: var(--amber);
}

.map-card h4,
.check-card h4,
.scenario-card h4,
.timeline-card h4,
.feedback-card h4,
.improvement-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.map-card p,
.check-card p,
.scenario-card p,
.timeline-card p,
.feedback-card p,
.improvement-card p,
.question-row p {
  color: var(--muted);
  line-height: 1.55;
}

.why {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 10px;
}

.check-list,
.improvement-list {
  display: grid;
  gap: 12px;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-card,
.event-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.event-list {
  display: grid;
  gap: 14px;
}

.experience-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.experience-head span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.experience-head h4 {
  margin: 0 0 4px;
}

.experience-head p {
  margin: 0;
  color: var(--muted);
}

.experience-card details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px 12px;
  margin: 12px 0;
}

.experience-card summary {
  cursor: pointer;
  font-weight: 800;
}

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

.intervention-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.intervention-card h5 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.intervention-card p {
  color: var(--muted);
  line-height: 1.5;
}

.check-card {
  display: grid;
  gap: 12px;
}

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

.micro-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 10px;
  line-height: 1.45;
}

.micro-grid b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.feedback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-row button {
  padding: 8px 10px;
  font-size: 0.88rem;
}

.event-feedback-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.scenario-card {
  border-top: 4px solid var(--blue);
}

.improvement-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

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

.question-focus-section {
  border-left: 4px solid var(--green);
}

.stated-problem {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.question-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.question-focus-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 12px;
  line-height: 1.5;
}

.question-focus-grid b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.question-row p {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  margin: 0;
  padding: 14px;
}

.boundary-section {
  background: #fbfcff;
}

pre {
  overflow: auto;
  background: #101828;
  color: #e5edf8;
  border-radius: 8px;
  padding: 14px;
}

@media (max-width: 940px) {
  .grid.two,
  .grid.three,
  .pulse-grid,
  .report-hero,
  .split-section,
  .map-grid,
  .scenario-grid,
  .timeline-grid,
  .feedback-grid,
  .question-row {
    grid-template-columns: 1fr;
  }

  .question-focus-grid {
    grid-template-columns: 1fr;
  }

  .intervention-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .entry-panel,
  .report-section,
  .force-panel,
  .report-hero {
    padding: 16px;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.02;
  }

  .top-actions {
    align-items: stretch;
    justify-content: space-between;
  }

  .status {
    display: grid;
    place-items: center;
  }

  textarea {
    min-height: 156px;
  }

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

  .primary-actions button {
    width: 100%;
  }

  .processing-choice,
  .privacy-input-note,
  .eligibility-controls,
  .boundary-note,
  .submit-insight {
    grid-column: 1;
    grid-row: auto;
  }

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

  .site-footer {
    display: grid;
    padding: 18px 16px 26px;
  }

  .section-heading {
    display: grid;
    gap: 4px;
  }

  .improvement-card {
    grid-template-columns: 1fr;
  }
}

/* Decision-report layout */
body {
  background: #f5f7fa;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.15;
}

.entry-panel,
.report-section,
.report-hero,
.force-panel {
  box-shadow: 0 8px 24px rgba(20, 27, 42, 0.06);
}

.primary-actions {
  align-items: start;
}

.processing-choice {
  display: grid;
  gap: 2px;
  min-width: min(100%, 280px);
}

.processing-choice label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.processing-choice input[type="checkbox"],
.eligibility-controls input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.processing-choice span {
  color: var(--muted);
  font-size: 0.8rem;
}

.report-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  background: #fff;
}

.report-hero h2 {
  font-size: 1.85rem;
  line-height: 1.2;
}

.decision-brief {
  border-left: 4px solid var(--green);
}

.known-block {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.known-block > b,
.decision-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.known-block ul {
  margin-bottom: 0;
}

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

.decision-grid > div {
  min-width: 0;
  background: #fff;
  padding: 16px;
}

.decision-grid p {
  margin: 7px 0 0;
  line-height: 1.55;
}

.decision-primary,
.action-primary,
.reassess-row {
  grid-column: 1 / -1;
}

.action-primary {
  border-left: 4px solid var(--blue);
  background: #f7f9ff !important;
}

.action-primary p {
  font-size: 1.08rem;
  font-weight: 750;
}

.observation-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.observation-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 8px;
}

.observation-step:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.observation-step > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.observation-step p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.event-card {
  display: flex;
  flex-direction: column;
}

.event-card .micro-grid {
  grid-template-columns: 1fr;
}

.likely-result {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.check-card {
  box-shadow: none;
}

.report-feedback {
  box-shadow: none;
}

@media (max-width: 940px) {
  .event-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .report-hero,
  .decision-grid,
  .observation-flow {
    grid-template-columns: 1fr;
  }

  .decision-primary,
  .action-primary,
  .reassess-row {
    grid-column: auto;
  }

  .observation-step:nth-child(odd) {
    border-right: 0;
  }

  .top-actions {
    align-items: flex-end;
    flex-direction: column;
  }
}
