:root {
  font-family: Inter, system-ui, sans-serif;
  color: #1a2744;
  background: #f3f4f6;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #ccd3de;
  border-radius: 6px;
  background: white;
  color: #1a2744;
  padding: 9px 14px;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #edf3fb;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  background: #b84620;
  color: white;
  border-color: #b84620;
}
.primary:hover {
  background: #a9441f;
}
a {
  color: #2867a8;
}
header {
  height: 78px;
  background: white;
  border-bottom: 1px solid #e2e5ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 20px;
}
header img {
  width: 146px;
}
header small {
  color: #69758b;
}
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 78px);
}
aside {
  padding: 30px 18px;
  background: #1a2744;
  color: #fff;
}
aside p {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #aebbd1;
  margin: 24px 12px 12px;
}
aside button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  margin: 4px 0;
}
aside button.active {
  background: #30425f;
}
aside small {
  display: block;
  padding: 20px 12px;
  color: #c4cede;
  line-height: 1.7;
}
main {
  padding: 32px;
  max-width: 1800px;
  min-width: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 7px 0 10px;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
p {
  line-height: 1.6;
}
.muted {
  color: #657086;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #62728a;
  text-transform: uppercase;
}
.topline,
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.toolbar {
  margin: 18px 0;
}
.card {
  background: white;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  padding: 24px;
  margin: 20px 0;
}
.metrics {
  display: flex;
  gap: 40px;
  margin: 24px 0;
}
.metrics strong {
  display: block;
  font-size: 26px;
}
.metrics span {
  font-size: 13px;
  color: #657086;
}
input[type="search"] {
  min-width: 300px;
  padding: 10px 14px;
  border: 1px solid #ccd3de;
  border-radius: 6px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #69758b;
  background: #f8f9fb;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0f4;
}
td {
  font-size: 14px;
}
td button.link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: #2867a8;
}
.badge {
  background: #eaf1fa;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.banner {
  background: #fff5df;
  border: 1px solid #efdbab;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}
.pane {
  overflow: auto;
  max-height: 530px;
}
.dataset {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
label {
  display: block;
  font-size: 13px;
  margin: 12px 0 6px;
}
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccd3de;
  border-radius: 5px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.login {
  margin: 12vh auto;
  max-width: 440px;
  text-align: center;
  background: white;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  padding: 48px 32px;
}
.login img {
  width: 210px;
  margin: 12px 0 36px;
}
.login h1 {
  font-size: 24px;
}
.login .button {
  display: block;
  margin: 24px 0;
}
.preview {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f8f9fb;
}
.map {
  width: 100%;
  height: 300px;
  background: #eef2f5;
  border: 1px solid #e2e5ea;
}
.map circle {
  fill: #4a90d9;
  stroke: white;
  stroke-width: 2;
}
.map circle.selected {
  fill: #b84620;
}
.map text {
  font-size: 12px;
  fill: #62728a;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 440px;
  padding: 16px 22px;
  color: white;
  background: #1a2744;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  z-index: 5;
}
.empty {
  text-align: center;
  padding: 40px;
  color: #657086;
}
dialog {
  border: 1px solid #ccd3de;
  border-radius: 12px;
  width: min(900px, 95vw);
}
dialog::backdrop {
  background: #1a2744aa;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
}
.stack {
  display: flex;
  gap: 8px;
  align-items: center;
}
.table-wrap {
  overflow: auto;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 170px 1fr;
  }
  main {
    padding: 20px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  aside {
    display: none;
  }
  header {
    padding: 0 18px;
  }
  header small {
    display: none;
  }
  main {
    padding: 16px;
  }
  .metrics {
    gap: 20px;
  }
  input[type="search"] {
    min-width: 0;
    width: 100%;
  }
  .card {
    padding: 16px;
  }
}
