[hidden] {
  display: none !important;
}
.route-record {
  max-width: 820px;
  margin: auto;
  padding: 24px 20px 48px;
  font-size: 16px;
}
.route-record h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.route-record h2 {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.route-record label,
.route-record input,
.route-record textarea,
.route-record select,
.route-record button {
  font-size: 16px;
}
.route-record button,
.route-record .button {
  min-height: 44px;
}
.route-record details {
  margin: 16px 0;
}
.route-record summary {
  cursor: pointer;
  padding: 8px 0;
}
.route-record .primary {
  margin: 16px 0;
}
.mode-tools,
#feelings,
#node-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.route-record [aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
#record-canvas {
  width: 100%;
  display: block;
  background: #faf9f4;
  background-image:
    linear-gradient(#dde0d580 1px, transparent 1px),
    linear-gradient(90deg, #dde0d580 1px, transparent 1px);
  background-size: 24px 24px;
  aspect-ratio: 8/5;
  touch-action: pan-y;
}
.record-path {
  stroke: #b64c31;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node {
  touch-action: none;
  cursor: grab;
}
.node circle {
  fill: #faf9f4;
  stroke: #b64c31;
  stroke-width: 3;
}
.node .hit {
  fill: transparent;
  stroke: none;
}
.node text {
  font: 22px sans-serif;
  fill: #293e36;
  text-anchor: middle;
  pointer-events: none;
}
.node.selected circle:not(.hit),
.node:focus circle:not(.hit) {
  stroke: #293e36;
  stroke-width: 6;
}
.marker text {
  font: 24px sans-serif;
  fill: white;
  text-anchor: middle;
  pointer-events: none;
}
.marker {
  cursor: pointer;
}
.marker:focus {
  outline: 3px solid var(--ink);
}
.marker-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.marker-item label {
  font-size: 13px;
}
.marker-item textarea {
  min-height: 50px;
}
.route-card {
  background: #faf9f4;
  border: 1px solid var(--ink);
  padding: 20px;
}
.route-card svg {
  width: 100%;
  display: block;
  aspect-ratio: 8/5;
}
.route-card p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.legend span {
  border: 1px solid var(--line);
  padding: 4px 8px;
}
.saved-row {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.saved-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.advanced {
  color: var(--muted);
}
.coordinate-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.coordinate-row label {
  font-size: 13px;
}
#record-message {
  color: var(--accent);
}
#record-message:empty {
  display: none;
}
#canvas-hint {
  font-size: 14px;
}
.graphic-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.graphic-pair .route-card {
  padding: 10px;
}
.graphic-pair h2 {
  font-size: 20px;
}
@media (max-width: 600px) {
  .graphic-pair {
    grid-template-columns: 1fr;
  }
  .route-record {
    padding-inline: 18px;
  }
}
