:root {
  color-scheme: light;
  --background: #f7f8fa;
  --surface: #fff;
  --text: #172229;
  --muted: #596770;
  --border: #dce2e6;
  --accent: #176b60;
  --accent-light: #e8f4f0;
  --danger: #9f302a;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 5;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px max(24px, calc((100vw - 1200px) / 2));
}
.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.035em;
  font-size: 19px;
}
.brand span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 12px;
}
.preview-tag {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  color: var(--muted);
  white-space: nowrap;
}
main {
  max-width: 1248px;
  margin: 0 auto;
  padding: 52px 24px 24px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: var(--muted);
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  max-width: 650px;
  margin: 12px 0 16px;
}
h2 {
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0;
}
.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0;
}
.demo-notice {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
}
.demo-notice strong {
  font-size: 13px;
}
.demo-notice p {
  margin: 5px 0 0;
  color: var(--muted);
}
.signal {
  height: 9px;
  width: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.report-selector {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  min-width: 260px;
  flex: 1;
}
select {
  height: 44px;
  padding: 8px 34px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  max-width: 100%;
}
.scenarios {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.control-label {
  font-size: 12px;
  font-weight: 600;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.button {
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  color: var(--text);
}
.button:hover:enabled {
  background: #edf0f3;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.primary:hover:enabled {
  background: #12574e;
}
.button.ghost {
  background: transparent;
}
.button.scenario {
  padding: 9px 11px;
  font-size: 12px;
  min-height: 44px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.report-card,
.triage-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 2px 6px #17222905;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  padding: 4px 9px;
  background: #eef1f4;
  color: #49565e;
  white-space: nowrap;
}
.badge.green {
  background: var(--accent-light);
  color: #12574e;
}
.badge.red {
  background: #fff0ee;
  color: var(--danger);
}
.report-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #43545d;
  line-height: 1.8;
  font-size: 14px;
  margin: 18px 0 32px;
}
.report-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.boundary-note {
  padding: 14px;
  background: var(--background);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
.assistant-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.assistant-label h2 {
  font-size: 17px;
}
.assistant-mark {
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 8px 0 22px;
}
.empty-state h3,
.result h3 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.02em;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.triage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.status-message {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
  min-height: 18px;
}
.result-facts {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.fact {
  flex: 1;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
}
.fact dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.fact dd {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}
.result-summary {
  color: #43545d;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.result ol {
  padding-left: 20px;
  margin-bottom: 0;
}
.result li {
  padding-left: 4px;
  margin: 10px 0;
  font-size: 13px;
  color: #43545d;
}
.review-notice {
  font-size: 12px;
  color: #12574e;
  padding: 13px;
  border-radius: 7px;
  background: var(--accent-light);
  margin-top: 20px;
}
.progress {
  height: 5px;
  border-radius: 100px;
  overflow: hidden;
  background: #edf0f3;
  margin: 20px 0;
}
.progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--accent);
  animation: progress 1.4s ease-in-out infinite alternate;
}
.error-detail {
  border-left: 3px solid var(--danger);
  padding-left: 14px;
}
.error-detail h3 {
  color: var(--danger);
}
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}
footer a {
  text-underline-offset: 3px;
}
@keyframes progress {
  to {
    transform: translateX(135%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress span {
    animation: none;
  }
}
@media (max-width: 850px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .demo-notice {
    max-width: 440px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
  }
  .scenarios {
    flex-basis: 100%;
    order: 3;
  }
  .brand span {
    display: none;
  }
  main {
    padding-top: 32px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 24px 16px;
  }
  .topbar {
    padding: 16px;
  }
  .report-card,
  .triage-card {
    padding: 20px;
  }
  .report-selector {
    min-width: 0;
    flex-basis: 100%;
  }
  .preview-tag {
    font-size: 10px;
    padding: 5px 8px;
  }
  .card-top {
    gap: 8px;
  }
  .assistant-label h2 {
    font-size: 15px;
  }
  .triage-actions .button {
    flex: 1;
  }
  .result-facts {
    flex-direction: column;
  }
  .report-description {
    margin-bottom: 24px;
  }
}
.button.scenario[aria-pressed="true"] {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
