:root {
  font:
    15px/1.6 system-ui,
    sans-serif;
  color: #233047;
  background: #f3f6fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #152d45;
  color: white;
  padding: 26px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a {
  color: #d9e9ff;
}
h1 {
  font-size: 26px;
  margin: 8px 0;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
  margin-top: 28px;
}
header p {
  margin: 0;
  color: #b9cce1;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 20px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  background: #206cbe;
  color: white;
}
button.secondary {
  background: #e9eff6;
  color: #285173;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
label {
  display: block;
  margin: 8px 0;
  font-weight: 500;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #bac8d7;
  border-radius: 6px;
  background: white;
  color: #233047;
  padding: 9px;
  min-width: 120px;
}
textarea {
  min-height: 90px;
}
input[type="checkbox"] {
  width: auto;
  min-width: 0;
  display: inline;
}
select[multiple] {
  min-height: 160px;
}
.panel {
  background: white;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 3px 12px #142f4e06;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar h2 {
  margin-right: auto;
}
.toolbar label {
  flex: 1;
  max-width: 300px;
}
nav {
  display: flex;
  gap: 8px;
  overflow: auto;
}
nav button {
  white-space: nowrap;
  background: #e3ecf7;
  color: #25466c;
}
nav button.active {
  background: #206cbe;
  color: white;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  padding: 18px;
  border-radius: 8px;
  background: #f0f6fe;
}
.metric strong {
  display: block;
  font-size: 27px;
}
.metric span {
  color: #526a84;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  padding: 11px;
  border-bottom: 1px solid #e0e7f0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th {
  background: #f5f8fc;
  white-space: nowrap;
}
td button {
  margin: 3px;
  font-size: 13px;
  padding: 6px 9px;
}
td p {
  margin: 0;
}
.tablewrap {
  overflow: auto;
}
td .actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 180px;
}
td.long {
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.node {
  border: 1px solid #d9e4f2;
  padding: 12px;
  border-radius: 8px;
}
.node small {
  color: #637990;
  display: block;
}
.candidate {
  border-style: dashed;
}
.empty {
  padding: 26px;
  color: #627890;
  background: #f6f9fc;
  border-radius: 8px;
}
#notice {
  min-height: 24px;
  color: #17623f;
}
.error,
#editorError {
  color: #ab2531 !important;
}
dialog {
  width: min(660px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 70px #1236;
}
dialog::backdrop {
  background: #10243c66;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8fb;
  padding: 12px;
}
a {
  color: #1768b5;
}
.badge {
  display: inline-block;
  background: #ebf2fa;
  padding: 2px 7px;
  border-radius: 4px;
  color: #375875;
  font-size: 12px;
}
#detail .facts {
  border-left: 3px solid #267cc3;
  padding: 12px;
}
#detail .analysis {
  border-left: 3px solid #ac7a22;
  padding: 12px;
}
#detail .suggestions {
  border-left: 3px solid #55875e;
  padding: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    padding: 12px;
  }
  .panel {
    padding: 16px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    padding: 20px;
  }
  td,
  th {
    padding: 8px;
  }
}
