:root {
  --accent: #2863ef;
  --navw: 248px;
  --bg: #f3f4f5;
  --muted: #64748b;
  --border: #dce2e9;
  color: #172238;
  background: var(--bg);
  font:
    14px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #285de788;
  outline-offset: 2px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
#frame {
  min-height: 100svh;
}
#main {
  min-width: 0;
  margin-left: var(--navw);
  padding: 26px 20px 60px;
}
#frame.pilot-wizard #main {
  margin: 0;
  padding: 0;
}
#frame.folded {
  --navw: 64px;
}
.gw-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--navw);
  background: #f9fafb;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 6;
  color: #41516a;
}
.gw-side header,
.gw-side footer {
  padding: 13px 10px;
}
.gw-side header {
  display: flex;
  align-items: center;
  gap: 2px;
}
.gw-side button {
  background: transparent;
  border: 0;
}
.gw-brand,
.gw-user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
  flex: 1;
}
.gw-brand strong,
.gw-user strong {
  display: block;
  font-size: 13px;
  color: #18263b;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.gw-brand small,
.gw-user small {
  font-size: 11px;
  color: var(--muted);
}
.gw-brand span,
.gw-user span {
  min-width: 0;
}
.gw-brand i,
.gw-user i,
.gw-badge-icon {
  font:
    700 18px/33px Inter,
    sans-serif;
  text-align: center;
  color: #2563eb;
  background: #eaf2ff;
  border: 1px solid #d4e4fe;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.ic {
  font-size: 18px;
  background: transparent;
  color: #64748b;
  border: 0;
  padding: 6px;
}
.gw-side nav {
  overflow: auto;
  flex: 1;
  padding: 5px 9px;
}
.gw-side nav details > summary {
  list-style: none;
  font-size: 11px;
  font-weight: 600;
  color: #738398;
  letter-spacing: 0.08em;
  padding: 11px 6px 3px;
}
.gw-side summary:after {
  content: "⌄";
  float: right;
}
.gw-side nav a,
.side-extra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 19px;
  color: #41516a;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 500;
}
.gw-side nav a:hover,
.side-extra:hover {
  background: #edf2f8;
}
.gw-side nav a[aria-current] {
  background: #edf3ff;
  color: #2158d8;
  font-weight: 650;
}
.gw-side nav a[aria-current]:before {
  content: "";
  position: absolute;
  left: 1px;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #3c78ff;
}
.navico {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gw-side footer {
  border-top: 1px solid #e8edf3;
}
.gw-side .side-extra {
  width: 100%;
  margin: 3px 0;
  background: #f1f5fa;
}
.gw-user {
  padding: 8px 0;
}
.gw-user i {
  border-radius: 50%;
  color: #718198;
  background: #eff2f6;
}
.folded .gw-side span,
.folded .gw-side summary,
.folded .gw-side header > .ic,
.folded .side-extra {
  display: none;
}
.folded nav a {
  justify-content: center;
  padding: 10px 3px;
}
.gw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 19px;
}
.gw-top h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.045em;
  color: #142035;
}
.gw-top small,
.muted {
  color: var(--muted);
}
.pill,
.gw-btn,
.gw-dialog button:not(.ic),
.gw-filter select,
.gw-filter input,
.gw-field {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  background: white;
  color: #31415a;
}
.pill {
  border-color: #a6e6cb;
  color: #08744d;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.gw-btn.primary,
.gw-dialog .primary {
  color: white;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.gw-btn:hover {
  border-color: #9bb7e7;
}
.gw-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 2px 4px #17233906;
  overflow: hidden;
}
.gw-card > header,
.gw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
}
.gw-card h2,
.gw-section-head h2,
.gw-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 5px;
}
.gw-card header small,
.gw-section-head small {
  color: var(--muted);
}
.tools,
.gw-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tools a,
.gw-section-head a {
  font-size: 12px;
  font-weight: 600;
}
.gw-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #eff2f5;
}
.gw-stats > div {
  padding: 13px;
  border-right: 1px solid #eff2f5;
}
.gw-stats span {
  font-size: 12px;
  color: #37455a;
}
.gw-stats b {
  display: block;
  font-size: 25px;
  margin-top: 7px;
  white-space: nowrap;
}
.gw-stats small {
  color: var(--muted);
  font-size: 11px;
}
.gw-stats > div:first-child b,
.gw-stats > div:last-child b {
  color: #009466;
}
.gw-charts,
.gw-platforms {
  display: grid;
  gap: 15px;
  margin: 18px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gw-platforms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
.gw-section-head {
  padding: 8px 1px;
}
.gw-charts header,
.gw-platforms header {
  border-bottom: 1px solid #edf1f6;
}
.chart-legend {
  display: flex;
  gap: 15px;
  padding: 16px 15px 3px;
  color: var(--muted);
  font-size: 11px;
}
.chart-legend span:before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 3px;
  background: var(--ink);
  vertical-align: middle;
  margin-right: 5px;
}
.linechart {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.linechart line {
  stroke: #dce4f1;
  stroke-dasharray: 2 5;
}
.linechart text,
.radar text {
  fill: #68788c;
  font-size: 11px;
}
.radar {
  width: 100%;
  height: 155px;
}
.radar text {
  font-size: 9px;
}
.platform-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 15px;
  border-top: 1px solid #f2f3f6;
  font-size: 12px;
}
.gw-platforms footer {
  padding: 9px 15px;
  display: flex;
  gap: 15px;
  font-size: 12px;
}
.gw-pad {
  padding: 18px;
}
.geo-check .tools {
  justify-content: flex-start;
}
.geo-check [data-check-status]:empty {
  display: none;
}
.geo-check-history-title {
  margin-top: 24px;
}
.geo-check-record {
  margin-bottom: 12px;
}
.geo-check-record summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.geo-check-record td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.geo-check-record td p {
  margin-block: 4px 0;
}
.gw-filter {
  margin: 12px 0;
}
.gw-filter label,
.gw-dialog label,
.gw-form label {
  font-size: 13px;
  color: #41516a;
}
.gw-dialog {
  width: min(570px, 92vw);
  max-height: 88vh;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  color: #1e293b;
  box-shadow: 0 16px 90px #10223f35;
}
.gw-dialog::backdrop {
  background: #101f36a3;
}
.gw-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.gw-dialog header h2 {
  font-size: 18px;
  margin: 0;
}
.gw-dialog-body {
  padding: 18px 20px;
}
.gw-dialog label,
.gw-form label {
  display: block;
  margin: 12px 0;
}
.gw-dialog input:not([type="checkbox"]),
.gw-dialog select,
.gw-dialog textarea,
.gw-form input,
.gw-form textarea,
.gw-form select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: white;
  color: #182335;
}
.gw-dialog textarea,
.gw-form textarea {
  min-height: 88px;
  resize: vertical;
}
.gw-dialog button {
  margin-right: 5px;
}
.gw-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.geo-channel,
.geo-sample-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.gw-dialog .geo-channel input[type="radio"] {
  display: inline-block;
  width: auto;
}
.gw-dialog .pilot-check-line small,
.geo-slots small {
  display: block;
  margin-block: 3px;
  color: #52647c;
}
.geo-run {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.geo-run summary {
  cursor: pointer;
}
.geo-slots {
  padding-left: 20px;
}
.geo-slots li + li {
  margin-top: 9px;
}
.geo-sample-meta {
  margin: 12px 0;
}
.gw-modal-links {
  display: grid;
  gap: 8px;
}
.gw-modal-links button {
  text-align: left;
}
.gw-dialog [role="alert"],
.gw-form [role="alert"] {
  color: #a42828;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 36px 12px;
}
.gw-welcome {
  max-width: 840px;
  margin: 9vh auto;
  padding: 38px;
}
.gw-welcome ol {
  padding-left: 22px;
  line-height: 2;
}
.gw-welcome p {
  color: var(--muted);
}
.gw-tablewrap {
  overflow: auto;
}
.gw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gw-table th,
.gw-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #e7edf2;
}
.gw-table th {
  background: #f8fafc;
  color: #526379;
  font-weight: 600;
  white-space: nowrap;
}
.gw-table td button {
  background: #eff5ff;
  border: 1px solid #d5e5ff;
  border-radius: 6px;
  color: #285dd5;
  padding: 3px 8px;
  white-space: nowrap;
}
.gw-form {
  max-width: 740px;
  margin: 16px auto;
  padding: 23px 30px;
}
.gw-form footer {
  margin-top: 22px;
}
.gw-form h2 {
  margin: 0;
  font-size: 19px;
}
.gw-checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gw-checks label {
  margin: 0;
  background: #f6f8fb;
  padding: 5px 9px;
  border-radius: 5px;
}
.gw-checks input {
  display: inline;
  width: auto;
}
.gw-mobile {
  display: none;
}
#status {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 15;
  background: #17243d;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  max-width: 90vw;
  display: none;
}
#status.visible {
  display: block;
}
.pilot-local {
  --accent: #087f77;
}
.gw-dialog dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
}
.gw-dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}
#main .matrix-col {
  min-width: 180px;
}
.sample-note {
  color: #5b6879;
  font-size: 11px;
}
@media (max-width: 1050px) {
  :root {
    --navw: 208px;
  }
  .gw-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gw-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  :root {
    --navw: 0px;
  }
  .gw-side {
    width: 240px;
    transform: translateX(-100%);
    box-shadow: 5px 0 24px #1232;
  }
  .gw-mobile {
    display: block;
    background: white;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 11px 16px;
    width: 100%;
    text-align: left;
  }
  .nav-open .gw-side {
    transform: translateX(0);
  }
  .gw-side header > .ic {
    display: none;
  }
  #main {
    margin: 0 !important;
    padding: 15px 11px 42px;
  }
  .gw-charts {
    grid-template-columns: 1fr;
  }
  .gw-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gw-top h1 {
    font-size: 24px;
  }
  .gw-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gw-stats > div {
    padding: 9px;
  }
  .gw-stats b {
    font-size: 20px;
  }
  .gw-card > header,
  .gw-section-head {
    flex-wrap: wrap;
  }
  .gw-welcome {
    margin: 20px auto;
    padding: 20px;
  }
  .gw-top {
    flex-wrap: wrap;
  }
  .gw-form {
    padding: 17px;
  }
  .gw-checks {
    gap: 4px;
  }
  .gw-side .gw-brand {
    max-width: 200px;
  }
  .gw-dialog dl {
    grid-template-columns: 67px 1fr;
  }
}
