.action-dialog {
  width: min(520px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid #a6b5c2;
  border-radius: 4px;
  color: #24394b;
}
.action-dialog::backdrop {
  background: rgb(20 37 51 / 40%);
}
.action-dialog h2 {
  margin-top: 0;
}
.action-dialog label {
  display: block;
  margin: 18px 0 8px;
}
.action-dialog textarea {
  width: 100%;
  resize: vertical;
}
.action-dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
:root {
  --ink: #243342;
  --muted: #697787;
  --line: #dce2e8;
  --blue: #1679d3;
  --green: #58ae3f;
  --orange: #df8a2c;
  --red: #d65454;
  --nav: #1d2d3e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    13px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button {
  cursor: pointer;
  background: white;
  border: 1px solid #ccd5df;
  padding: 6px 11px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: #1878b9;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #dca332;
  outline-offset: 2px;
}
input,
select,
textarea {
  border: 1px solid #ccd5df;
  padding: 6px 8px;
  background: #fff;
  border-radius: 2px;
}
textarea {
  min-height: 70px;
}
header {
  min-height: 44px;
  background: var(--nav);
  color: #d5e0eb;
  display: flex;
  align-items: center;
  padding: 8px 22px;
  gap: 20px;
  flex-wrap: wrap;
}
header form {
  margin: 0;
}
header button {
  padding: 3px 8px;
  background: transparent;
  color: #d5e0eb;
  border-color: #627283;
  font-size: 10px;
}
.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo b {
  color: #6bc4ee;
}
.env {
  margin-left: auto;
  border: 1px solid #6d715c;
  color: #eedda6;
  padding: 2px 8px;
  font-size: 10px;
}
.top {
  padding: 11px 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 3px 0;
}
.eyebrow {
  font-size: 10px;
  color: #81909e;
  letter-spacing: 0.08em;
}
.filters {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.filters label {
  font-size: 10px;
  color: var(--muted);
}
.filters select {
  display: block;
  font-size: 12px;
  min-width: 160px;
  margin-top: 3px;
}
nav {
  display: flex;
  overflow: auto;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  padding: 10px 13px;
  color: #576575;
  font-size: 12px;
}
nav button.active {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}
.status {
  padding: 5px 25px;
  font-size: 10px;
  color: #708090;
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
}
.metrics {
  display: flex;
  overflow: auto;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
}
.metric {
  flex: 1;
  min-width: 140px;
  border-right: 1px solid #e6ebef;
  margin-right: 18px;
  padding: 9px 15px 9px 0;
}
.metric:last-child {
  border: 0;
  margin: 0;
}
.metric label,
.metric small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.metric strong {
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bad {
  color: #bf4242;
}
.warn {
  color: #ba761f;
}
.barhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 25px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.barhead h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.barhead .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(580px, 1fr) 260px;
  border-bottom: 1px solid var(--line);
}
.maparea {
  overflow: auto;
  background: radial-gradient(#dde4eb 0.65px, transparent 0.65px);
  background-size: 16px 16px;
}
.maparea svg {
  display: block;
  width: 100%;
  min-width: 650px;
  height: 380px;
}
.inspector {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #fbfcfd;
}
.inspector h3 {
  font-size: 16px;
  margin: 5px 0 10px;
}
.inspector p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.kv div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 11px;
}
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  background: #edf2f6;
  color: #5d6d7b;
}
.tag.red {
  background: #fbeaea;
  color: #b54646;
}
.tag.green {
  background: #edf6e9;
  color: #3d8735;
}
.tag.orange {
  background: #fff0d9;
  color: #a56822;
}
.node {
  cursor: pointer;
}
.node circle {
  fill: white;
  stroke: #62b348;
  stroke-width: 6;
}
.node.selected circle {
  stroke: #1b83c5;
}
.node.off circle {
  stroke: #b7c0c8;
}
.node .name {
  font-size: 12px;
  fill: #415161;
  font-weight: 600;
}
.node .caption {
  font-size: 10px;
  fill: #8794a0;
}
.edge {
  fill: none;
  stroke: #3387ce;
  stroke-width: 1.8;
  marker-end: url(#arrow);
}
.edge.async {
  stroke-dasharray: 5 5;
  stroke: #8b9eaf;
}
.edge-label {
  font-size: 10px;
  fill: #567791;
  paint-order: stroke;
  stroke: white;
  stroke-width: 4px;
}
.footnote {
  padding: 8px 25px;
  background: #fafcfd;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #e5eaf0;
  padding: 9px 15px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: #718190;
  background: #f6f8fa;
  font-weight: 600;
}
td button {
  padding: 3px 8px;
  font-size: 10px;
}
code {
  font:
    11px Consolas,
    monospace;
}
.pad {
  padding: 20px 25px;
}
.pad h2 {
  font-size: 15px;
}
.empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
}
.admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
}
.adminform {
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fbfcfd;
}
.adminform h3 {
  margin: 0;
  font-size: 14px;
}
.adminform label {
  display: block;
  font-size: 11px;
  margin: 10px 0 3px;
}
.adminform input,
.adminform select,
.adminform textarea {
  width: 100%;
}
.adminform input[type="checkbox"] {
  width: auto;
}
.adminform button {
  margin-top: 12px;
}
.audit-line {
  padding: 10px 25px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.audit-line time {
  color: #8795a3;
  margin-right: 12px;
}
.primary {
  background: #177ac5;
  color: white;
  border-color: #177ac5;
}
.notice {
  background: #fff8e9;
  color: #8d6e33;
  padding: 12px;
  border-left: 3px solid #dfaa43;
}
.login {
  max-width: 720px;
  margin: 12vh auto;
  padding: 25px;
}
.login h1 {
  font-size: 28px;
  margin: 14px 0;
}
.login .button {
  margin: 20px 0 8px;
}
.drawerhead {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  position: sticky;
  top: 0;
}
.drawerhead h2 {
  font-size: 16px;
  margin: 0;
}
.drawerhead button {
  margin-left: auto;
}
#drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(880px, 96vw);
  background: #fff;
  z-index: 7;
  overflow: auto;
  border-left: 1px solid #bdcbd7;
  box-shadow: -8px 0 25px #20324220;
}
#drawer[hidden],
#backdrop[hidden],
#toast[hidden] {
  display: none;
}
#backdrop {
  position: fixed;
  inset: 0;
  background: #24394a33;
  z-index: 6;
}
.trace-meta {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  padding: 15px 23px;
  border-bottom: 1px solid var(--line);
}
.trace-meta label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.trace-total {
  font-size: 25px;
  padding: 18px 23px 0;
}
.waterfall {
  padding: 20px 23px;
}
.waterfall svg {
  width: 100%;
  height: auto;
  min-height: 150px;
}
.trace-note {
  padding: 10px 23px 25px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  background: #21364b;
  color: white;
  padding: 12px 20px;
  max-width: 90vw;
}
.chart {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.chart svg {
  width: 100%;
  max-height: 250px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 25px;
  color: #8c98a4;
  font-size: 10px;
  gap: 15px;
  flex-wrap: wrap;
}
.key-result {
  padding: 15px;
  border: 1px solid #dfaa43;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.checkboxes label {
  margin: 4px 0;
}
.checkboxes input {
  margin-right: 6px;
}
@media (max-width: 800px) {
  header {
    padding: 8px 13px;
    gap: 10px;
  }
  .header-sub {
    display: none;
  }
  .top {
    padding: 12px 15px;
  }
  .filters {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .metrics {
    padding: 0 15px;
  }
  .metric {
    min-width: 140px;
  }
  .workspace {
    display: block;
  }
  .inspector {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .admin,
  .split {
    grid-template-columns: 1fr;
  }
  .adminform {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .barhead {
    padding: 10px 15px;
  }
  .barhead .right {
    margin-left: 0;
  }
  nav {
    padding: 0 6px;
  }
}
