:root {
  color-scheme: dark;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #e9f0fb;
  background: #0c131d;
  --muted: #adbacd;
  --line: #314153;
  --accent: #89dff0;
  --surface: #151f2d;
  --edge: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: var(--accent); text-underline-offset: .15em; }
nav, main, footer { width: min(100% - 36px, 1320px); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
nav { min-height: 60px; display: flex; align-items: center; justify-content: space-between; }
nav a { text-decoration: none; font-weight: 700; }
.intro {
  padding: 45px 0 24px;
  background: radial-gradient(ellipse at 45% -22%, #163d49 0%, transparent 65%);
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .99; letter-spacing: -.06em; }
h1 span { color: var(--accent); }
.intro p { margin-top: 14px; max-width: 670px; line-height: 1.55; }
.small, .notice { color: var(--muted); font-size: .86rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--edge); overflow: hidden; }
.filters { padding: 18px; margin-bottom: 16px; }
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 13px;
  min-width: 0;
}
fieldset label { display: grid; gap: 6px; font-weight: 650; font-size: .85rem; min-width: 0; }
input, select, button {
  font: inherit;
  color: inherit;
  background: #101925;
  border: 1px solid #415468;
  border-radius: 8px;
  min-height: 41px;
  padding: 8px 11px;
}
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .42; cursor: default; }
:focus-visible { outline: 2px solid #b7edff; outline-offset: 3px; }
.primary { background: var(--accent); color: #09242b; font-weight: 750; border-color: var(--accent); }
.actions, .pager, .heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions { grid-column: 1 / -1; }
#status { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .43fr); gap: 16px; align-items: start; }
.heading { justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.heading h2 { font-size: 1.1rem; }
.switch { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .8rem; cursor: pointer; }
.switch input { min-height: 0; accent-color: var(--accent); }
#map { height: clamp(320px, 48vh, 535px); background: #1d2e40; color: #ffffff; }
.map-info { margin: 11px 15px 0; }
.legend { margin: 12px 15px 15px; padding: 0; display: flex; flex-wrap: wrap; list-style: none; gap: 9px 14px; color: var(--muted); font-size: .79rem; }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend li span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--band); }
#detail { padding: 16px; font-size: .89rem; }
#detail h3 { font-family: ui-monospace, monospace; color: var(--accent); font-size: 1.15rem; }
#detail h4 { margin-top: 14px; }
#detail dl { display: grid; gap: 7px; margin: 14px 0; }
#detail dt, #detail li { color: var(--muted); }
#detail dd { margin: 0 0 3px; }
#detail ul { margin: 6px 0; padding-left: 17px; }
#detail li { padding: 3px 0; }
#detail p { line-height: 1.5; }
.detail-links { display: flex; flex-wrap: wrap; gap: 7px 12px; padding-top: 14px; }
.badge { color: var(--band); font-weight: 700; white-space: nowrap; }
.results-panel { grid-column: 1 / -1; }
.bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 13px 15px; }
.bars > div { border: 1px solid var(--line); border-radius: 7px; padding: 8px; display: grid; grid-template-rows: 1fr 7px 1fr; gap: 6px; }
.bars span { font-size: .78rem; color: var(--muted); }
.bar { background: #28384b; border-radius: 3px; overflow: hidden; }
.bar::before { content: ""; display: block; height: 100%; width: var(--fill); background: var(--band); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 9px 15px; text-align: left; border-block-start: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; background: #0f1925; }
.grid-button { color: var(--accent); min-height: 35px; font-family: ui-monospace, monospace; }
.pager { justify-content: center; padding: 12px; border-block-start: 1px solid var(--line); }
.notice { line-height: 1.55; margin: 16px 0; }
.location-report { margin-bottom: 16px; }
.report-location, .report-status { margin: 11px 17px; }
.report-location { color: var(--accent); font-weight: 700; }
.report-status:empty { display: none; }
.report-content { display: grid; gap: 16px; margin: 13px 17px 17px; }
.report-content section { border: 1px solid var(--line); border-radius: 8px; padding: 13px; }
.report-content h3 { margin-bottom: 6px; }
.report-content h4 { margin-top: 11px; }
.report-content p { line-height: 1.5; margin: 7px 0; }
.report-content table { margin-top: 8px; overflow-wrap: anywhere; }
.report-content .table-wrap { margin: 9px 0; }
.report-links { display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: .84rem; }
footer { padding: 16px 0 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; column-gap: 17px; row-gap: 7px; font-size: .84rem; }
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  fieldset { grid-template-columns: 1fr 1fr; }
  .inspector { grid-row: 2; }
}
@media (max-width: 560px) {
  nav, main, footer { width: calc(100% - 22px); }
  .intro { padding-top: 33px; }
  fieldset { grid-template-columns: 1fr; }
  .bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  body:has(.location-report:not([hidden])) { background: #fff; color: #141414; }
  body:has(.location-report:not([hidden])) > :not(main),
  main:has(.location-report:not([hidden])) > :not(.location-report),
  .location-report button { display: none !important; }
  body:has(.location-report:not([hidden])) main { width: auto; }
  .location-report, .report-content section { background: #fff; border: none; overflow: visible; }
  .location-report { font-size: 9pt; margin: 0; }
  .report-content { display: block; margin: 0; }
  .report-content section { margin: 0 0 10pt; padding: 0; }
  .location-report .heading, .report-location, .report-status { padding: 0; margin: 0 0 8pt; }
  .location-report .heading { border: none; }
  .location-report h2 { font-size: 16pt; }
  .location-report :is(h3, h4) { break-after: avoid; }
  .location-report :is(.small, .report-location, th) { color: #363636; }
  .location-report .table-wrap { overflow: visible; }
  .location-report :is(th, td) { padding: 3pt 4pt; border-color: #aaa; background: #fff; }
  .location-report tr { break-inside: avoid; }
  .location-report a { color: #141414; }
}
