html,
body,
#root {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--ds-page);
}
.file-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--ds-hairline);
}
.file-nav a {
  padding: 10px 0;
  color: var(--ds-ink-2);
  text-decoration: none;
}
.file-nav a[aria-current=page] {
  color: var(--ds-ink);
  box-shadow: inset 0 -1px 0 var(--ds-ink);
}
@media (max-width: 600px) {
  .file-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.relmap-banner {
  background: #fff3cd;
  border: 1px solid #e0c060;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 8px 0;
}
.relmap-toolbar {
  position: relative;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.relmap-searchrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.relmap-search {
  flex: 1 1 220px;
  padding: 9px 12px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  min-width: 0;
}
.relmap-reset {
  border: 1px solid #bbb;
  background: #f6f6f6;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.relmap-reset:hover {
  background: #eaf1fb;
  border-color: #7aa5dd;
}
.relmap-matches {
  position: absolute;
  z-index: 5;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  left: 0;
  right: 0;
  top: 44px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.relmap-match {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}
.relmap-match:hover {
  background: #f0f4fa;
}
.relmap-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}
.relmap-muted {
  color: #777;
  font-size: 12px;
}
.relmap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.relmap-chip {
  border: 1px solid #bbb;
  background: #f6f6f6;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12.5px;
  cursor: pointer;
  opacity: .55;
}
.relmap-chip.is-on {
  opacity: 1;
  background: #eaf1fb;
  border-color: #7aa5dd;
}
.relmap-chip.is-small {
  padding: 2px 8px;
  font-size: 11.5px;
}
.relmap-stage {
  display: flex;
  height: 54vh;
  min-height: 320px;
  max-height: calc(100vh - 226px);
  max-height: calc(100dvh - 226px);
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fbfcfe;
  margin-top: 8px;
}
.relmap-canvaswrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.relmap-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
}
.relmap-panel {
  width: 300px;
  flex: none;
  overflow: auto;
  background: #fff;
  border-left: 1px solid #ddd;
  padding: 12px;
  font-size: 13px;
}
.relmap-panel-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.relmap-path {
  margin: 8px 0;
  font-size: 13px;
  word-break: break-word;
}
.relmap-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.relmap-cols ul {
  margin: 4px 0;
  padding-left: 16px;
}
.relmap-cols li {
  margin: 2px 0;
}
.relmap-relfilter {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.relmap-hint {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
}
.relmap-about p {
  margin: 8px 0;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .relmap-standalone {
    height: auto;
  }
  .relmap-stage {
    flex-direction: column;
    height: auto;
    flex: none;
  }
  .relmap-canvaswrap {
    flex: none;
    height: 340px;
  }
  .relmap-panel {
    width: auto;
    border-left: none;
    border-top: 1px solid #ddd;
  }
  .relmap-cols {
    grid-template-columns: 1fr;
  }
}
.relmap-filterbadge {
  background: #eef4ff;
  border: 1px solid #b9cff5;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #1c3f7a;
  margin: 6px 0;
}
.relmap-filterbadge a {
  color: #1c3f7a;
}
.relmap-searchbtn {
  background: #1c3f7a;
  color: #fff;
  border-color: #1c3f7a;
}
.relmap-searchbtn:hover {
  background: #16325f;
}
.relmap-source {
  opacity: .85;
  font-weight: normal;
  font-style: italic;
}
.relmap-edgelink {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
}
.relmap-edgelink:hover {
  text-decoration: underline;
}
.relmap-edgedetail {
  margin: 2px 0 6px 14px;
  padding: 6px 8px;
  background: #f7f7f9;
  border-left: 3px solid #d0d0d8;
  font-size: 12px;
}
.relmap-edgenote {
  margin-top: 2px;
  font-size: 12px;
  color: #444;
}
.relmap-edgedetail-wide {
  margin: 8px 0;
  font-size: 13px;
}
:root {
  --ds-page: #f5f6f8;
  --ds-ink: #1c1f26;
  --ds-ink-2: #5a6070;
  --ds-hairline: #e3e5ea;
}
.relmap-standalone {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px 12px;
  font-family: system-ui, sans-serif;
  color: var(--ds-ink);
  box-sizing: border-box;
}
.relmap-header h1 {
  font-size: 21px;
  margin: 8px 0 2px;
}
.relmap-header p {
  margin: 0 0 8px;
  color: var(--ds-ink-2);
  font-size: 14px;
}
.relmap-group {
  margin: 12px 0;
}
.relmap-group h2 {
  font-size: 17px;
  margin: 8px 0;
}
.relmap-closing {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--ds-hairline);
  color: var(--ds-ink-2);
  font-size: 13px;
}
.relmap-about-details {
  margin: 12px 0;
  border: 1px solid var(--ds-hairline);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
}
.relmap-about-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.relmap-about-details .relmap-group h2 {
  display: none;
}
.relmap-saved {
  display: inline-flex;
  align-items: center;
  padding: 0 !important;
  overflow: hidden;
}
.relmap-saved-run {
  background: none;
  border: none;
  padding: 2px 4px 2px 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.relmap-saved-del {
  background: none;
  border: none;
  padding: 2px 8px 2px 4px;
  cursor: pointer;
  color: #8a90a0;
  font: inherit;
}
.relmap-saved-del:hover {
  color: #c04343;
}
.relmap-savebox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.relmap-saveinput {
  font: inherit;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #d4d8e0;
  border-radius: 12px;
  width: 130px;
}
.relmap-reset.is-small {
  font-size: 12px;
  padding: 2px 10px;
}
