:root {
  --ink: #1c1c1c;
  --muted: #8a8a8a;
  --line: #ececec;
  --accent: #d5432f;
  --radius: 4px;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
#plot {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: grab;
  touch-action: none;
}
.panel {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 300px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.67);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.067);
  padding: 16px;
}
.panel h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.panel h1::after {
  content: ".";
  color: var(--accent);
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  flex: none;
  cursor: pointer;
  padding: 0;
}
.dot.off {
  background: #fff !important;
  box-shadow: inset 0 0 0 2px var(--muted);
}
.row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  font:
    400 14px "DM Mono",
    monospace;
  color: var(--ink);
  padding: 4px 2px;
  background: transparent;
}
.row input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.row.bad input {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.row .del {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  flex: none;
}
.row .del:hover {
  color: var(--accent);
}

#add {
  margin-top: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  font:
    500 13px "DM Sans",
    sans-serif;
  color: var(--accent);
  padding: 4px 0;
}
.subtext {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
a[target="_blank"]::after {
  content: "\00a0↗";
}
@media (max-width: 560px) {
  .panel {
    width: calc(100vw - 24px);
    top: 12px;
    left: 12px;
    padding: 14px;
  }
}
