:root {
  color-scheme: light;
  --ink: #18322f;
  --muted: #687a74;
  --line: #dce5dd;
  --paper: #f6f7f2;
  --teal: #1c766d;
  --amber: #95651f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}
header {
  padding: 24px 30px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
}
h1 {
  font:
    600 30px/1.2 Georgia,
    serif;
  margin: 6px 0;
}
p {
  margin: 8px 0;
  color: var(--muted);
}
.totals {
  display: flex;
  gap: 25px;
}
.stat strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.warning {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 30px;
  background: #fbefcf;
  border-block: 1px solid #dfc885;
  font-size: 12px;
  color: #644c1e;
}
.warning strong {
  display: block;
}
main {
  padding: 18px 24px 10px;
}
.search-row {
  display: flex;
  align-items: end;
  gap: 18px;
}
.search-label {
  flex: 1;
}
.search-label input {
  display: block;
  width: 100%;
}
.toggle {
  padding-bottom: 9px;
  white-space: nowrap;
}
label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
input[type="search"],
select,
button {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd9ce;
  border-radius: 7px;
  padding: 9px 11px;
}
input[type="search"] {
  font-size: 14px;
}
input:focus,
select:focus,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:hover {
  background: #eaf3eb;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr 1.2fr;
  gap: 12px;
  margin: 13px 0 18px;
}
.filters select {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 590px;
}
.map-panel {
  position: relative;
  min-width: 0;
  background: radial-gradient(#bdcfc345 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fdfefb;
}
.map-toolbar button {
  padding: 5px 10px;
  font-size: 12px;
}
#visible {
  font-size: 12px;
}
#graph {
  display: block;
  width: 100%;
  height: 490px;
  cursor: grab;
  touch-action: none;
}
#graph:active {
  cursor: grabbing;
}
.legend {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  padding: 0 14px;
  font-size: 10px;
}
.impl {
  color: #197971;
}
.amend {
  color: #4d63b4;
}
.repeal {
  color: #b56a39;
}
.hint {
  padding: 0 14px;
  font-size: 10px;
}
aside {
  border-left: 1px solid var(--line);
  padding: 22px;
  max-height: 610px;
  overflow: auto;
  background: #fff;
}
aside h2 {
  font:
    600 23px/1.25 Georgia,
    serif;
  margin: 10px 0 18px;
}
aside h3 {
  font-size: 14px;
  margin: 20px 0 8px;
}
aside p,
aside li {
  font-size: 12px;
}
aside .id {
  font:
    10px/1.4 ui-monospace,
    monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
a {
  color: #126c63;
  overflow-wrap: anywhere;
}
blockquote {
  font-size: 12px;
  border-left: 3px solid #8ab5a1;
  margin: 12px 0;
  padding: 6px 10px;
  background: #f3f7f0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  border: 1px solid #d6bc82;
  border-radius: 4px;
  background: #fff6dc;
  font-size: 10px;
  padding: 3px 6px;
  margin: 3px 3px 3px 0;
}
.muted {
  color: var(--muted);
}
.neighbor {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 12px;
  margin: 6px 0;
}
.claim {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.claim summary {
  cursor: pointer;
  font-size: 12px;
}
.node {
  cursor: pointer;
}
.node rect {
  fill: #fff;
  stroke: #76958b;
  stroke-width: 1.3;
  rx: 8;
}
.node text {
  fill: var(--ink);
  font-size: 13px;
  pointer-events: none;
}
.node .node-note {
  font-size: 10px;
  fill: var(--muted);
}
.node.disputed rect {
  stroke: #b97535;
  stroke-dasharray: 5 3;
  fill: #fff4e3;
}
.node.provisional rect,
.node.draft rect {
  stroke: #967f9f;
  stroke-dasharray: 3 4;
  fill: #f5eff8;
}
.node.incomplete rect {
  stroke-dasharray: 5 2;
}
.node.selected rect {
  stroke: #14675f;
  stroke-width: 3;
  fill: #e8f4ed;
}
.edge {
  cursor: pointer;
  fill: none;
  stroke-width: 2;
}
.edge-hit {
  stroke: transparent;
  stroke-width: 16;
  fill: none;
  cursor: pointer;
}
.edge-label {
  font-size: 9px;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4;
  stroke-linejoin: round;
  fill: #567269;
  cursor: pointer;
}
.dim {
  opacity: 0.17;
}
.edge.selected {
  stroke-width: 4;
}
.register {
  margin: 14px 0;
}
.register summary {
  cursor: pointer;
  color: var(--teal);
}
#list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px;
  padding: 12px 0;
}
#list button {
  text-align: left;
  font-size: 12px;
}
footer {
  padding: 12px 24px 20px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
#empty {
  position: absolute;
  top: 44%;
  left: 10%;
  right: 10%;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
  #graph {
    height: 560px;
  }
  aside {
    max-height: 680px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 18px;
  }
  main {
    padding: 12px;
  }
  .warning {
    padding: 10px 18px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .filters {
    gap: 7px;
  }
  aside {
    padding: 15px;
  }
  .totals {
    gap: 14px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 720px) {
  header {
    align-items: start;
  }
  .totals {
    gap: 12px;
  }
  .stat strong {
    font-size: 21px;
  }
  .stat span {
    font-size: 9px;
  }
  h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .search-row {
    flex-wrap: wrap;
    gap: 9px;
  }
  .search-label {
    flex-basis: 100%;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 470px;
  }
  #graph {
    height: 430px;
  }
  footer {
    flex-direction: column;
  }
  .warning {
    font-size: 11px;
  }
}
