:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #102139;
  background: #f3f6fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px max(24px, calc((100vw - 1180px) / 2));
  background: #102139;
  color: #fff;
  min-height: 74px;
}
.brand {
  font-size: 26px;
  font-weight: 900;
  color: #54d3bb;
}
.brand span {
  font-size: 14px;
  letter-spacing: 0.19em;
  color: #fff;
  margin-left: 10px;
}
.subhead {
  font-size: 13px;
  color: #a3b4ca;
}
#identity {
  margin-left: auto;
  font-size: 12px;
  color: #b6e9df;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 30px 24px 80px;
}
.hero {
  padding: 26px 0 36px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #087b76;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  max-width: 820px;
  letter-spacing: -0.045em;
  margin: 15px 0;
}
.hero > p:last-child {
  color: #53657c;
  max-width: 680px;
  line-height: 1.65;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 22px 0;
}
.panel {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 6px 20px #10213908;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step {
  background: #d9f7ee;
  color: #087b76;
  font-weight: 800;
  border-radius: 10px;
  padding: 7px 10px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 22px 0 10px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 18px 0 8px;
}
textarea,
input[type="number"],
input[type="url"],
select {
  width: 100%;
  border: 1px solid #cbd7e2;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: #102139;
}
.intake-panel { margin-bottom: 0; }
.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dropzone { margin: 0; min-height: 82px; padding: 14px; border: 1px dashed #9fb5c8; border-radius: 10px; background: #f8fbfd; color: #29445c; font-size: 12px; display: flex; align-items: center; cursor: pointer; }
.dropzone:hover { border-color: #007e74; background: #f2faf8; }
.dropzone input { display: none; }
.artifact-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; min-height: 24px; }
.artifact-chip { background: #e8f4f1; color: #17645e; padding: 5px 8px; border-radius: 999px; font-size: 11px; }
.agent-panel { margin-top: 22px; }
.agent-flow { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: #15506e; font-size: 12px; font-weight: 750; }
.agent-flow span { padding: 8px 10px; border-radius: 8px; background: #edf7fb; border: 1px solid #d4e6f0; }
.agent-flow i { color: #58a394; font-style: normal; font-size: 17px; }
.agent-output { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.agent-card { border: 1px solid #e1eaf0; border-radius: 11px; padding: 14px; }
.agent-card h3 { margin: 0 0 9px; color: #173a55; }
.agent-card p, .agent-card li { font-size: 12px; color: #53657c; line-height: 1.5; }
.agent-card ul { padding-left: 18px; margin: 0; }
.agent-card pre { max-height: 230px; overflow: auto; margin: 0; }
.matrix { width: 100%; border-collapse: collapse; font-size: 11px; }
.matrix th, .matrix td { padding: 7px; text-align: left; border-bottom: 1px solid #e7edf2; }
.matrix th { color: #51687c; }
.defect { border-left: 4px solid #d88b4a; background: #fffaf4; padding: 12px; margin-top: 14px; }
textarea {
  resize: vertical;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: #007f75;
  margin-right: 10px;
}
button {
  background: #007e74;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 14px 0;
}
button:hover {
  background: #006a63;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hint,
.empty {
  font-size: 13px;
  color: #64758b;
  line-height: 1.5;
}
.source {
  font-size: 13px;
  border-left: 3px solid #72dbbf;
  background: #f4faf8;
  padding: 9px;
}
.test {
  padding: 7px;
  margin: 0;
  border-bottom: 1px solid #edf1f5;
}
.model-summary {
  font-size: 14px;
  line-height: 1.55;
}
.info,
.success {
  color: #006d5f;
}
.warning,
.error {
  color: #a5412c;
}
#notice {
  min-height: 18px;
  margin-bottom: 16px;
}
.big-result {
  font-size: 19px;
  font-weight: 750;
}
.result {
  border: 1px solid #dce7e2;
  border-radius: 10px;
  padding: 13px;
  margin: 12px 0;
}
.result.fail {
  border-color: #e9aaa0;
  background: #fff9f8;
}
.result.pass {
  border-color: #b9e7d4;
}
.result p {
  font-size: 13px;
}
.result small {
  color: #66778d;
}
details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-size: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f4f7;
  padding: 12px;
  font-size: 11px;
}
.list-button {
  display: block;
  background: #f3f7f8;
  color: #16314a;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}
.list-button:hover {
  background: #e6f0ed;
}
#mutations {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
#mutations label {
  margin: 0;
  font-weight: 500;
}
footer {
  padding: 25px;
  text-align: center;
  color: #65778d;
  font-size: 12px;
}
.hidden {
  display: none !important;
}
@media (max-width: 750px) {
  .grid {
    grid-template-columns: 1fr;
  }
  header {
    flex-wrap: wrap;
    gap: 12px;
  }
  #identity {
    margin-left: 0;
    width: 100%;
  }
  .hero {
    padding-top: 12px;
  }
  .artifact-grid, .agent-output { grid-template-columns: 1fr; }
}
