/* The diagram uses HTML boxes so labels remain readable at every viewport size. */
.resolution-map {
  --map-ink: #253957;
  --map-muted: #667892;
  --map-line: #bfd0e5;
  --directory: #3b64a3;
  --direct: #397766;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  color: var(--map-ink);
  font-size: 12px;
  line-height: 1.65;
  box-shadow: 0 5px 20px #16304704;
}
.resolution-map h3,
.current-scan-map h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
.resolution-map h4 {
  font-size: 15px;
  margin: 7px 0 20px;
}
.resolution-map code {
  font-size: 0.95em;
  overflow-wrap: anywhere;
}
.resolution-map small {
  font-size: 11px;
  color: var(--map-muted);
}
.resolution-map .tag {
  font-size: 10px;
  padding: 2px 6px;
}
.resolution-map p {
  color: var(--map-muted);
}
.map-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 17px 24px;
  border-bottom: 1px solid #e4eaf1;
  background: #fbfcfe;
}
.map-label {
  font-size: 11px;
  border: 1px solid #d9e3ef;
  border-radius: 5px;
  padding: 3px 8px;
  color: #607593;
  white-space: nowrap;
  background: #f2f6fb;
}
.map-heading > strong {
  font-size: 13px;
}
.map-heading > a {
  margin-left: auto;
  font-size: 11px;
}
.collection-map {
  display: grid;
  grid-template-columns: minmax(210px, 0.29fr) minmax(0, 1fr);
}
.direct-route {
  padding: 24px 22px 0;
  background: #f5f9f7;
  border-right: 1px solid #dfe8e4;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.route-heading {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 21px;
}
.route-heading p {
  font-size: 11px;
  margin-top: 3px;
}
.route-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  background: #e4f0ea;
  color: var(--direct);
  border: 1px solid #c8e0d4;
  border-radius: 7px;
  font-size: 19px;
  line-height: 1;
}
.map-node {
  border: 1px solid #cbd9e9;
  background: white;
  border-radius: 9px;
  padding: 14px;
}
.map-kicker {
  display: block;
  color: var(--map-muted);
  font-size: 10px;
  letter-spacing: 0.3px;
}
.direct-config {
  border-color: #bfd9cb;
}
.direct-config h4 code {
  color: #305e51;
}
.direct-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 9px 0;
}
.rank-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 4px;
  font: 10px var(--mono);
  color: #7e91ab;
  background: #f0f4f9;
  font-weight: 500;
}
.direct-field .rank-token {
  color: #497968;
  background: #edf5ef;
}
.value-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 13px;
}
.direct-config p {
  line-height: 1.95;
  font-size: 12px;
}
.direct-config > small {
  display: block;
  margin-top: 10px;
}
.direct-note {
  margin-top: 21px;
  border-left: 2px solid #b5cfc0;
  padding-left: 12px;
}
.direct-note > span {
  font-size: 11px;
  color: #4e7765;
  font-weight: 600;
}
.direct-note p {
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.9;
}
.direct-output {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 130px;
  position: relative;
  padding-top: 25px;
}
.direct-output:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #a7c6b5;
}
.direct-output > span {
  z-index: 1;
  text-align: center;
  background: #f5f9f7;
  padding: 10px;
  color: #487b62;
  font-size: 12px;
}
.direct-output > i {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #76a188;
}
.directory-route {
  padding: 24px 24px 0;
  min-width: 0;
  background: linear-gradient(#f8faff, #fff 240px);
}
.directory-route .route-icon {
  background: #eaf0fd;
  border-color: #cbdaf3;
  color: #456fb0;
}
.boundary-map {
  border: 1px solid #dae4f2;
  border-radius: 9px;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.boundary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.boundary-row + .boundary-row {
  border-top: 1px solid #eaf0f8;
  margin-top: 10px;
  padding-top: 10px;
}
.boundary-label {
  font-weight: 650;
  color: #46648e;
  white-space: nowrap;
}
.start-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.start-options b {
  color: #91a3bd;
  font-weight: 400;
  padding: 0 3px;
}
.boundary-arrow {
  color: #8a9fbc;
  white-space: nowrap;
}
.boundary-row > code {
  margin-left: auto;
  font-size: 12px;
  color: #456ca5;
  font-weight: 600;
  background: #f0f5fd;
  padding: 4px 9px;
  border-radius: 4px;
}
.boundary-map > p {
  font-size: 10px;
  border-top: 1px dashed #e0e8f3;
  padding-top: 9px;
  margin-top: 10px;
  color: #7a8da9;
}
.walk-and-files {
  display: grid;
  grid-template-columns: minmax(215px, 0.85fr) minmax(260px, 1fr);
  gap: 25px;
  align-items: start;
}
.walk-diagram {
  min-width: 0;
}
.walk-init {
  text-align: center;
  border-style: dashed;
  padding: 11px;
}
.walk-init strong,
.walk-init small {
  display: block;
}
.walk-init strong {
  font-size: 12px;
}
.walk-init .map-kicker {
  font-size: 10px;
  margin-bottom: 3px;
}
.map-down {
  text-align: center;
  height: 30px;
  line-height: 30px;
  color: #91a8c6;
  font-size: 20px;
  font-weight: 400;
}
.walk-loop {
  position: relative;
  padding-left: 25px;
}
.walk-loop-line {
  position: absolute;
  top: 50px;
  bottom: 47px;
  left: 0;
  width: 26px;
  border: 2px solid #81a1d1;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.walk-loop-line:after {
  content: '';
  position: absolute;
  top: -5px;
  right: -1px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #7195ca;
}
.walk-loop-line > span {
  position: absolute;
  top: 50%;
  left: -7px;
  transform: translateY(-50%);
  background: #fff;
  color: #6689bc;
  font-size: 10px;
  writing-mode: vertical-rl;
  padding: 10px 0;
  letter-spacing: 2px;
}
.walk-read {
  position: relative;
  text-align: center;
  background: #eef4ff;
  border-color: #a9c0e3;
  padding: 14px 8px;
}
.walk-read strong {
  font-size: 13px;
  display: block;
  color: #355d95;
}
.walk-read > span {
  display: block;
  font-size: 11px;
  color: #607ca4;
  margin-top: 7px;
}
.walk-read > a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  border-top: 1px solid #d4e0f2;
  padding-top: 7px;
  margin-top: 9px;
  color: #5274a6;
}
.walk-read > a b {
  font-size: 19px;
  color: #668abf;
  line-height: 1;
}
.walk-read:after {
  content: '→';
  position: absolute;
  right: -23px;
  top: 42px;
  color: #96afcf;
  font-size: 21px;
  font-weight: 400;
}
.walk-check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 92px;
  margin: 0 7px;
  color: #395e92;
}
.walk-check:before {
  content: '';
  position: absolute;
  inset: 0;
  background: #eaf0fa;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.walk-check strong {
  position: relative;
  line-height: 1.65;
  font-size: 12px;
}
.walk-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  margin-top: 19px;
}
.walk-fork:before {
  content: '';
  position: absolute;
  height: 14px;
  border: 1px solid #aabed8;
  border-bottom: 0;
  left: 25%;
  right: 25%;
  top: -14px;
}
.walk-fork:after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: #aabed8;
}
.walk-fork > .map-node {
  padding: 9px 5px;
  text-align: center;
  min-height: 94px;
}
.walk-fork strong,
.walk-fork small,
.edge-label {
  display: block;
}
.edge-label {
  font-size: 10px;
  margin-bottom: 7px;
  color: #5378ac;
}
.walk-fork strong {
  font-size: 12px;
}
.walk-fork small {
  font-size: 10px;
}
.walk-next {
  background: #f1f5fc;
  border-color: #b7cbe6;
}
.walk-stop {
  border-color: #bcd4c7;
  background: #f2f8f4;
}
.walk-stop .edge-label {
  color: #557f67;
}
.walk-boundary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
  padding: 8px;
  margin: 15px 0 0 25px;
  border-radius: 6px;
  color: #7b8ba0;
}
.walk-boundary > span {
  font-size: 22px;
  line-height: 1;
}
.walk-boundary strong {
  font-size: 10px;
  color: #6a7d95;
  font-weight: 500;
}
.directory-source-list {
  min-width: 0;
  scroll-margin-top: 110px;
  border: 1px solid #ccdaeb;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.source-list-heading {
  padding: 10px 12px;
  background: #edf3fd;
  border-bottom: 1px solid #d7e2f2;
}
.source-list-heading strong {
  display: block;
  font-size: 12px;
  color: #466797;
}
.source-list-heading span {
  font-size: 10px;
  color: #738bad;
}
.directory-source-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #edf1f7;
  min-height: 33px;
}
.directory-source-row > div {
  min-width: 0;
}
.directory-source-row code {
  font-size: 11px;
  display: block;
  line-height: 1.6;
}
.directory-source-row small {
  display: block;
  font-size: 9px;
  color: #92a1b5;
  line-height: 1.5;
}
.directory-source-row .tag {
  font-size: 9px;
  padding: 2px 4px;
}
.directory-source-row:nth-child(6) {
  border-top: 2px solid #e1e9f4;
}
.source-list-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  background: #fafbfd;
  padding: 8px 10px;
  font-size: 9px;
  color: #8799b2;
}
.directory-path-example {
  padding: 11px 14px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  margin-top: 20px;
  background: #fafcff;
  font-size: 11px;
}
.directory-path-example > span {
  color: #6f85a3;
  font-size: 10px;
}
.directory-path-example > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}
.directory-path-example code {
  color: #526f97;
  font-size: 11px;
}
.directory-path-example b {
  color: #879fc0;
}
.directory-path-example small {
  font-size: 10px;
}
.directory-path-example small span {
  margin: 0 10px;
}
.path-end {
  font-size: 9px;
  background: #edf5ef;
  color: #568268;
  padding: 1px 6px;
  border-radius: 4px;
}
.collection-output {
  text-align: center;
  color: #6385b5;
  height: 47px;
  line-height: 47px;
  font-size: 11px;
}
.priority-queue {
  border-top: 1px solid #dce5ef;
  border-bottom: 1px solid #dce5ef;
  background: #f3f6fc;
  padding: 18px 24px;
}
.queue-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.queue-title strong {
  font-size: 13px;
}
.queue-title span {
  font-size: 11px;
  color: #7185a1;
}
.queue-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.queue-item {
  background: #fff;
  border: 1px solid #c9d8ed;
  border-radius: 7px;
  padding: 8px 12px;
  flex: 1;
  text-align: center;
  min-width: 0;
}
.queue-item b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 550;
  color: #47678f;
}
.queue-item span {
  font: 11px var(--mono);
  color: #7990b0;
}
.queue-remote {
  border-color: #b6d0bf;
  background: #f0f7f2;
}
.queue-remote b {
  color: #4f7a61;
}
.queue-track > i {
  font-style: normal;
  font-size: 19px;
  color: #91a6c3;
}
.queue-ellipsis {
  color: #8da2c0;
}
.priority-queue > p {
  font-size: 11px;
  margin-top: 12px;
  color: #788ca7;
}
.priority-queue code {
  color: #536e95;
}
.queue-to-resolve {
  padding: 4px 24px;
  font-size: 11px;
  color: #7291b7;
}
.queue-to-resolve > span {
  display: block;
  text-align: center;
  width: calc((100% - 90px) / 3);
  line-height: 32px;
}
.resolve-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 8px;
  padding: 0 24px 22px;
}
.resolve-stage {
  min-width: 0;
}
.resolve-stage-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  min-height: 38px;
}
.resolve-stage-heading > span {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid #dce4f0;
  color: #7891b5;
  background: #f4f7fc;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 11px var(--mono);
}
.resolve-stage-heading h3 {
  font-size: 14px;
}
.merge-pairing {
  background: #f8f5fc;
  border-color: #daceeb;
  font-size: 12px;
}
.merge-pairing > strong,
.merge-pairing > span,
.merge-pairing > small {
  display: block;
}
.merge-pairing strong {
  font-size: 12px;
  color: #6a5088;
}
.merge-pairing span {
  margin-top: 5px;
  color: #7e6999;
  font-size: 11px;
}
.merge-pairing small {
  margin-top: 8px;
  font-size: 10px;
  color: #9787aa;
}
.merge-question {
  position: relative;
  text-align: center;
  padding: 15px 6px;
  background: #f2f5fa;
  border: 1px solid #dae3f0;
  border-radius: 8px;
  font-size: 12px;
}
.merge-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.merge-outcomes > div {
  border: 1px solid #c8dece;
  border-radius: 7px;
  background: #f2f8f4;
  text-align: center;
  padding: 9px 4px;
}
.merge-outcomes > div + div {
  border-color: #ead5b4;
  background: #fff8ed;
}
.merge-outcomes span {
  display: block;
  font-size: 10px;
  color: #6a8c75;
  margin-bottom: 3px;
}
.merge-outcomes > div + div span {
  color: #aa895a;
}
.merge-outcomes strong {
  font-size: 11px;
}
.merge-repeat {
  text-align: center;
  font-size: 10px;
  color: #7b90ac;
  margin-top: 12px;
  padding: 7px;
  background: #f6f8fc;
  border-radius: 5px;
}
.stage-caption {
  font-size: 11px;
  margin-top: 12px;
  line-height: 1.8;
}
.stage-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  font-size: 22px;
  color: #9db0ca;
  padding-top: 50px;
  align-self: center;
}
.stage-link > span {
  font-size: 9px;
  white-space: nowrap;
  color: #7e93b0;
}
.pick-node {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.pick-node > .tag {
  margin-bottom: 6px;
  font-size: 9px;
}
.pick-node > strong {
  display: block;
  font-size: 12px;
  line-height: 1.7;
}
.pick-node > p {
  font-size: 11px;
  margin-top: 3px;
}
.pick-otherwise {
  height: 26px;
  line-height: 26px;
  text-align: center;
  color: #8aa0bc;
  font-size: 10px;
}
.selected-node-output {
  text-align: center;
  color: #6180a8;
  background: #f2f6fc;
  border-radius: 5px;
  margin-top: 13px;
  padding: 7px;
  font-size: 11px;
}
.pm-candidate {
  background: #f7f9fc;
  padding: 12px;
}
.pm-candidate strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.pm-candidate strong + strong {
  margin-top: 7px;
}
.pm-check {
  border: 1px solid #d6e2ef;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
  font-size: 11px;
}
.pm-check strong {
  font-size: 11px;
}
.pm-check p {
  margin-top: 8px;
}
.pm-check b {
  font-weight: 500;
  color: #627c9d;
}
.final-map-output {
  border-radius: 8px;
  background: #294361;
  color: #eef4fc;
  text-align: center;
  font-size: 13px;
  padding: 13px 10px;
  margin-top: 16px;
}
.non-directory-data {
  background: #fcf9f4;
  border-top: 1px solid #e8e1d4;
  padding: 19px 24px 21px;
}
.non-directory-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.non-directory-heading strong {
  font-size: 12px;
  color: #836d4c;
}
.non-directory-heading > span {
  font-size: 10px;
  color: #94846a;
}
.data-feeds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.data-feeds > div {
  border: 1px solid #e7decd;
  background: #fffdf8;
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
}
.feed-arrow {
  display: block;
  color: #a3895e;
  font-size: 10px;
  margin-bottom: 7px;
}
.data-feeds strong {
  display: block;
  font-size: 12px;
  color: #7c684b;
}
.data-feeds p {
  font-size: 11px;
  color: #8c7c63;
  margin-top: 5px;
  line-height: 1.9;
}
.data-feeds a {
  display: inline-block;
  font-size: 10px;
  color: #9b7c4b;
  margin-top: 7px;
}
.data-feeds .tag {
  font-size: 9px;
  background: #f1ede5;
  color: #9a886c;
  margin-top: 8px;
}
.current-scan-map {
  margin-top: 22px;
  border: 1px solid #dce3ed;
  border-radius: 11px;
  background: #fff;
  padding: 20px 24px;
  font-size: 12px;
  scroll-margin-top: 100px;
}
.current-scan-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.current-scan-heading h3 {
  font-size: 14px;
}
.current-scan-heading p {
  flex-basis: 100%;
  font-size: 11px;
  color: #7c8ea6;
  margin-top: -4px;
}
.scan-current-flow {
  display: flex;
  gap: 23px;
  align-items: center;
  margin-top: 18px;
}
.scan-lookup-kind {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 130px;
  text-align: center;
}
.scan-lookup-kind > span {
  font-size: 12px;
  border: 1px solid #d7e2ef;
  background: #f0f5fc;
  color: #5d7b9f;
  padding: 7px 11px;
  border-radius: 6px;
}
.scan-lookup-kind small {
  font-size: 10px;
  color: #8598b1;
  line-height: 1.8;
  margin-top: 4px;
}
.scan-flow-arrow {
  font-size: 20px;
  font-weight: 400;
  color: #93a7c2;
}
.scan-current-steps {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.3fr);
  gap: 20px;
  align-items: start;
}
.scan-direct-step {
  border: 1px solid #c8dece;
  background: #f1f7f3;
  border-radius: 7px;
  padding: 12px;
  color: #638771;
  font-size: 11px;
}
.scan-direct-step > span,
.scan-direct-step > b {
  display: block;
}
.scan-direct-step > b {
  font-weight: 500;
  font-size: 12px;
  margin-top: 5px;
  color: #527a60;
}
.scan-walk-step {
  position: relative;
  min-width: 0;
}
.scan-walk-entry {
  font-size: 11px;
  color: #6884a8;
  display: block;
  margin-bottom: 9px;
}
.scan-match-node {
  background: #f6f8fc;
  border: 1px solid #d3dfef;
  padding: 12px 13px;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 11px;
}
.scan-match-node strong {
  font-weight: 550;
}
.scan-match-node > span {
  color: #64886b;
}
.scan-miss-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 13px;
}
.scan-miss-branches > div {
  border-left: 2px solid #cad8eb;
  padding-left: 10px;
  font-size: 10px;
}
.scan-miss-branches span {
  color: #8a9bb3;
  display: block;
}
.scan-miss-branches strong {
  display: block;
  color: #657f9f;
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}
.scan-difference {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 7px 12px;
  font-size: 11px;
  border-top: 1px solid #e8edf4;
  padding-top: 14px;
  margin-top: 18px;
  color: #8091aa;
}
.scan-difference > span {
  color: #6c86a7;
}
.scan-difference code {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #7186a3;
}
.directory-map-link {
  display: block;
  border: 1px solid #cedcf0;
  border-radius: 7px;
  background: #f0f5fd;
  color: #5c7cac;
  font-size: 11px;
  padding: 12px;
  margin: 14px 0;
  line-height: 1.8;
}
@media (min-width: 1350px) {
  .walk-and-files {
    grid-template-columns: minmax(240px, 0.85fr) minmax(300px, 1fr);
    gap: 30px;
  }
  .directory-source-row {
    padding: 7px 12px;
  }
  .directory-source-row code {
    font-size: 12px;
  }
  .source-list-note {
    font-size: 10px;
  }
  .directory-source-row small {
    font-size: 10px;
  }
  .directory-source-row .tag {
    font-size: 10px;
  }
  .walk-read:after {
    right: -26px;
  }
  .walk-init {
    padding: 14px;
  }
  .walk-read {
    padding: 18px 10px;
  }
  .walk-check {
    height: 103px;
  }
  .walk-fork > .map-node {
    padding: 12px 5px;
    min-height: 99px;
  }
  .walk-loop-line {
    bottom: 49px;
  }
  .collection-map {
    grid-template-columns: minmax(240px, 0.31fr) minmax(0, 1fr);
  }
  .resolve-stages {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .collection-map {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .direct-route {
    padding: 20px 14px 0;
  }
  .directory-route {
    padding: 20px 17px 0;
  }
  .walk-and-files {
    gap: 18px;
    grid-template-columns: minmax(190px, 0.75fr) minmax(230px, 1fr);
  }
  .directory-source-row {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 5px;
    padding: 7px 8px;
  }
  .directory-source-row > .tag {
    grid-column: 2;
    justify-self: start;
    font-size: 9px;
    padding: 0 4px;
  }
  .directory-source-row code {
    font-size: 11px;
  }
  .walk-read:after {
    right: -17px;
    font-size: 18px;
  }
  .map-heading {
    padding: 14px 18px;
  }
  .resolve-stages {
    padding: 0 18px 20px;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr) 25px minmax(0, 1fr);
  }
  .resolve-stage-heading h3 {
    font-size: 12px;
  }
  .resolve-stage-heading {
    gap: 7px;
  }
  .resolve-stage .pick-node > strong {
    font-size: 11px;
  }
  .stage-link > span {
    writing-mode: vertical-rl;
    letter-spacing: 1px;
  }
  .data-feeds {
    gap: 35px;
  }
  .non-directory-data {
    padding: 17px 18px;
  }
  .priority-queue {
    padding: 16px 18px;
  }
  .queue-item {
    padding: 7px 8px;
  }
  .queue-item b {
    font-size: 11px;
  }
  .queue-track {
    gap: 7px;
  }
  .queue-track > i {
    font-size: 15px;
  }
  .scan-current-flow {
    gap: 15px;
  }
  .scan-current-steps {
    gap: 15px;
    grid-template-columns: minmax(150px, 0.65fr) minmax(290px, 1.3fr);
  }
}
@media (max-width: 900px) {
  .collection-map {
    grid-template-columns: 1fr;
  }
  .direct-route {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid #dfe8e4;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0 20px;
  }
  .direct-route > .route-heading {
    grid-column: 1;
    margin-bottom: 10px;
  }
  .direct-config {
    grid-column: 2;
    grid-row: 1/4;
  }
  .direct-config h4 {
    margin: 4px 0 12px;
  }
  .direct-note {
    grid-column: 1;
    margin-top: 0;
    align-self: start;
  }
  .direct-output {
    grid-column: 1;
    min-height: 65px;
    padding-top: 8px;
    margin-top: 15px;
  }
  .direct-output > span {
    font-size: 11px;
    padding: 4px 8px;
  }
  .direct-output > span br {
    display: none;
  }
  .direct-output:before {
    top: 0;
  }
  .directory-route {
    padding: 22px 22px 0;
  }
  .walk-and-files {
    grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1fr);
    gap: 27px;
  }
  .directory-source-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 7px 10px;
  }
  .directory-source-row > .tag {
    grid-column: auto;
  }
  .walk-read:after {
    right: -24px;
  }
  .queue-track {
    flex-wrap: wrap;
  }
  .queue-item {
    flex-basis: calc(25% - 33px);
  }
  .queue-item b {
    font-size: 10px;
  }
  .queue-title {
    gap: 10px;
  }
  .queue-title span {
    font-size: 10px;
  }
  .priority-queue > p {
    font-size: 10px;
  }
  .resolve-stages {
    grid-template-columns: 1fr;
    padding: 0 22px 22px;
  }
  .queue-to-resolve > span {
    width: 100%;
  }
  .resolve-stage {
    border: 1px solid #e1e8f2;
    border-radius: 9px;
    padding: 16px;
  }
  .resolve-stage-heading h3 {
    font-size: 14px;
  }
  .stage-link {
    padding-top: 0;
    justify-self: center;
    height: 42px;
    flex-direction: row;
    transform: none;
    font-size: 0;
  }
  .stage-link:before {
    content: '↓';
    font-size: 22px;
  }
  .stage-link > span {
    font-size: 10px;
    writing-mode: initial;
    letter-spacing: 0;
  }
  .pick-node {
    padding: 12px 14px;
  }
  .resolve-stage .pick-node > strong {
    font-size: 12px;
  }
  .resolve-stage .pick-node > p {
    font-size: 11px;
  }
  .merge-pairing strong {
    font-size: 13px;
  }
  .merge-outcomes strong {
    font-size: 12px;
  }
  .pm-check,
  .pm-check strong {
    font-size: 12px;
  }
  .pm-candidate strong {
    font-size: 12px;
  }
  .data-feeds {
    gap: 12px;
  }
  .data-feeds > div {
    padding: 11px;
  }
  .feed-arrow {
    font-size: 9px;
  }
  .data-feeds strong {
    font-size: 11px;
  }
  .data-feeds p {
    font-size: 10px;
  }
  .scan-current-steps {
    grid-template-columns: 1fr;
  }
  .current-scan-heading h3 {
    font-size: 13px;
  }
  .scan-current-flow {
    align-items: flex-start;
  }
  .scan-flow-arrow {
    padding-top: 14px;
  }
  .scan-direct-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .scan-direct-step > b {
    margin: 0;
  }
  .scan-lookup-kind {
    padding-top: 10px;
  }
}
@media (max-width: 600px) {
  .map-heading {
    padding: 14px 16px;
    gap: 7px 10px;
  }
  .map-heading > strong {
    font-size: 12px;
  }
  .map-heading > a {
    margin-left: 0;
    flex-basis: 100%;
    font-size: 10px;
  }
  .direct-route {
    display: flex;
    padding: 18px 16px;
  }
  .direct-route > .route-heading {
    margin-bottom: 15px;
  }
  .direct-config {
    padding: 13px;
  }
  .direct-config h4 {
    font-size: 15px;
  }
  .direct-field {
    font-size: 12px;
  }
  .value-key {
    margin-top: 15px;
  }
  .direct-note {
    margin-top: 13px;
  }
  .direct-output {
    min-height: 63px;
    margin-top: 14px;
  }
  .directory-route {
    padding: 20px 16px 0;
  }
  .resolution-map h3 {
    font-size: 14px;
  }
  .route-heading p {
    font-size: 11px;
  }
  .boundary-map {
    padding: 11px;
  }
  .boundary-row {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
  }
  .boundary-label {
    width: 100%;
    font-size: 11px;
  }
  .boundary-row > code {
    margin-left: auto;
    font-size: 11px;
  }
  .boundary-map > p {
    font-size: 10px;
  }
  .walk-and-files {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .walk-diagram {
    max-width: 380px;
    width: 100%;
    margin: auto;
  }
  .walk-read:after {
    display: none;
  }
  .walk-read > a b {
    transform: rotate(90deg);
  }
  .walk-init {
    padding: 13px;
  }
  .walk-read {
    padding: 16px 12px;
  }
  .walk-check {
    max-width: 220px;
    margin: auto;
    height: 93px;
  }
  .walk-fork {
    gap: 18px;
  }
  .walk-boundary {
    margin-bottom: 0;
  }
  .directory-source-row {
    padding: 7px 11px;
  }
  .directory-source-row code {
    font-size: 11px;
  }
  .directory-source-row > .tag {
    font-size: 9px;
  }
  .source-list-heading strong {
    font-size: 12px;
  }
  .directory-path-example {
    padding: 11px;
  }
  .directory-path-example > div {
    gap: 5px;
  }
  .directory-path-example code {
    font-size: 10px;
  }
  .directory-path-example small {
    font-size: 9px;
  }
  .directory-path-example small span {
    margin: 0 5px;
  }
  .collection-output {
    font-size: 10px;
  }
  .priority-queue {
    padding: 16px;
  }
  .queue-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .queue-track {
    flex-direction: column;
    gap: 5px;
  }
  .queue-item {
    width: 100%;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .queue-item b {
    font-size: 11px;
  }
  .queue-item span {
    font-size: 10px;
  }
  .queue-track > i {
    transform: rotate(90deg);
    height: 17px;
    line-height: 17px;
  }
  .queue-ellipsis {
    line-height: 14px;
  }
  .priority-queue > p {
    line-height: 1.9;
  }
  .resolve-stages {
    padding: 0 16px 17px;
  }
  .resolve-stage {
    padding: 13px;
  }
  .resolve-stage-heading h3 {
    font-size: 13px;
  }
  .resolve-stage-heading {
    margin-bottom: 12px;
  }
  .merge-question {
    font-size: 12px;
  }
  .merge-pairing strong {
    font-size: 12px;
  }
  .merge-pairing > small {
    font-size: 11px;
  }
  .data-feeds {
    grid-template-columns: 1fr;
  }
  .non-directory-data {
    padding: 17px 16px;
  }
  .non-directory-heading {
    gap: 5px;
  }
  .non-directory-heading > span {
    font-size: 11px;
  }
  .data-feeds > div {
    padding: 13px;
  }
  .data-feeds strong {
    font-size: 12px;
  }
  .data-feeds p {
    font-size: 11px;
  }
  .feed-arrow {
    font-size: 11px;
  }
  .current-scan-map {
    padding: 18px 16px;
  }
  .current-scan-heading h3 {
    font-size: 13px;
  }
  .current-scan-heading p {
    font-size: 11px;
    margin-top: 0;
  }
  .scan-current-flow {
    flex-direction: column;
    gap: 10px;
  }
  .scan-lookup-kind {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    gap: 8px;
  }
  .scan-lookup-kind small {
    grid-column: 1/-1;
    margin: 0;
  }
  .scan-lookup-kind small br {
    display: none;
  }
  .scan-flow-arrow {
    align-self: center;
    padding: 0;
    transform: rotate(90deg);
    line-height: 1;
  }
  .scan-current-steps {
    width: 100%;
    gap: 14px;
  }
  .scan-direct-step {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .scan-miss-branches {
    gap: 8px;
  }
  .scan-miss-branches strong {
    font-size: 11px;
  }
  .scan-difference {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 11px;
  }
  .scan-difference > span {
    margin-top: 6px;
  }
  .scan-difference code {
    font-size: 11px;
  }
  .directory-map-link {
    font-size: 11px;
  }
}
/* Facts and local candidates are connected where they are used. */
.inline-lookup {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid #ded4eb;
  border-bottom: 1px solid #ded4eb;
  font-size: 10px;
  text-align: center;
  color: #806895;
}
.inline-lookup > b {
  font-size: 17px;
  color: #a08bb5;
  font-weight: 400;
}
.inline-lookup code {
  font-size: 11px;
}
.lookup-source-link {
  font-size: 10px;
  display: inline-block;
  margin-top: 9px;
  color: #957dab;
}
.inline-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: -12px -12px 11px;
  padding: 10px 12px;
  border-bottom: 1px solid #e3ddcf;
  border-radius: 8px 8px 0 0;
  background: #fcf8ef;
  color: #957d53;
  font-size: 10px;
}
.inline-input strong {
  font-size: 11px;
  color: #876d44;
  font-weight: 500;
}
.inline-input > b {
  font-size: 16px;
  color: #b49f7c;
  font-weight: 400;
}
.pm-source-path + .pm-source-path {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dce5ef;
}
.pm-source-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.pm-path-label {
  align-self: flex-start;
  border-radius: 4px;
  padding: 2px 5px;
  background: #e9eff8;
  font-size: 9px;
  color: #6685ab;
  margin-bottom: 4px;
}
.pm-source-path > span:not(.pm-path-label) {
  font-size: 11px;
  color: #586f8e;
}
.pm-source-path > i {
  font-style: normal;
  font-size: 10px;
  color: #92a4bc;
}
.pm-source-path > code {
  font-size: 10px;
  color: #7b6d58;
  background: #f6f1e8;
  padding: 3px 6px;
  border-radius: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pm-source-path > strong {
  font-size: 11px;
  color: #557194;
}
.pick-node a,
.pm-check a {
  color: #6687b5;
  text-decoration: underline;
  text-decoration-color: #c8d6e9;
  text-underline-offset: 3px;
}
.pm-candidate.map-node {
  background: #fafcff;
}
.stage-caption {
  font-size: 11px;
}
.live-data-panel {
  padding: 22px 24px;
}
.live-data-panel .panel-heading {
  gap: 15px;
}
.live-data-panel .panel-heading > span {
  font-size: 11px;
  color: #6e87ab;
}
.live-refresh-rule {
  font-size: 11px;
  color: #8395af;
  margin: 12px 0 17px;
  line-height: 1.9;
}
.source-receipts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.live-source {
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  background: #fafcff;
  padding: 13px 14px;
  min-width: 0;
}
.live-source > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.live-source b {
  font-size: 12px;
  color: #597393;
  font-weight: 550;
}
.source-fetch-state {
  font-size: 10px;
  color: #96a4b7;
  white-space: nowrap;
}
.live-source.ready .source-fetch-state {
  color: #58856a;
}
.live-source.error {
  border-color: #d9a98f;
  background: #fff9f5;
}
.live-source.error .source-fetch-state {
  color: #a46a44;
}
.live-source > a {
  display: block;
  overflow-wrap: anywhere;
  font: 10px var(--mono);
  line-height: 1.8;
  margin: 7px 0 5px;
  color: #829ac0;
}
.live-source > p {
  font-size: 11px;
  color: #7a90ad;
}
.live-source > small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: #9aa9be;
}
.data-refresh-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.data-acquisition-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 19px 0;
}
.data-acquisition-map > div {
  border: 1px solid #d8e3f1;
  border-radius: 9px;
  padding: 16px;
  background: #f4f8fe;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  min-width: 0;
}
.data-acquisition-map strong {
  font-size: 12px;
  margin-bottom: 14px;
  color: #5b7599;
}
.data-acquisition-map code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.data-acquisition-map span {
  font-size: 10px;
  color: #8b9fba;
  margin: 8px 0;
}
.data-acquisition-map small {
  font-size: 10px;
  color: #91a2bb;
  line-height: 1.8;
  margin-top: 10px;
}
.evidence-method {
  font-size: 11px;
  line-height: 1.9;
  color: #7d92af;
  padding-left: 19px;
  margin: 14px 0 20px;
}
.evidence-method li + li {
  margin-top: 7px;
}
.evidence-table {
  min-width: 730px;
}
.evidence-table td:nth-child(1) {
  width: 150px;
}
.evidence-table td:nth-child(2) {
  width: 90px;
}
.evidence-table td:nth-child(3) {
  width: 270px;
}
.evidence-table td:nth-child(4) {
  min-width: 240px;
}
.evidence-table .evidence-excerpt {
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: normal;
}
.evidence-table td a {
  display: block;
  white-space: normal;
  margin: 4px 0;
  font-size: 10px;
}
.evidence-table td small {
  display: block;
  font-size: 9px;
  color: #9caabe;
  margin-top: 6px;
}
.format-query {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 13px;
  margin-top: 20px;
  align-items: end;
}
.format-query label {
  font-size: 11px;
  color: #7d91ae;
}
.format-query input,
.format-query select {
  margin-top: 5px;
  font-size: 12px;
}
.format-query-status {
  font-size: 11px;
  color: #7c91b0;
  line-height: 1.8;
  margin-top: 10px;
}
.query-state {
  padding: 24px;
  font-size: 12px;
  color: #839abb;
  line-height: 1.9;
}
.query-failed {
  color: #a4825c;
  background: #fffaf3;
}
.format-filter-flow {
  font-size: 10px;
  color: #917ca5 !important;
  border-top: 1px solid #e3d9ed;
  padding-top: 9px;
  margin-top: 10px !important;
}
@media (max-width: 850px) {
  .data-refresh-toolbar {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .data-refresh-toolbar .button {
    font-size: 10px;
  }
  .source-receipts {
    grid-template-columns: 1fr;
  }
  .data-acquisition-map {
    grid-template-columns: 1fr;
  }
  .data-acquisition-map > div {
    padding: 14px;
  }
  .data-acquisition-map strong {
    font-size: 13px;
  }
  .data-acquisition-map code {
    font-size: 12px;
  }
  .data-acquisition-map span,
  .data-acquisition-map small {
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .live-data-panel {
    padding: 18px 16px;
  }
  .live-data-panel .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .format-query {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }
  .format-query .button {
    grid-column: 1/-1;
  }
  .data-refresh-toolbar .button {
    font-size: 9px;
    padding: 7px 8px;
  }
  .live-source > div {
    flex-wrap: wrap;
    gap: 5px;
  }
  .live-source b {
    font-size: 11px;
  }
  .live-source > p,
  .live-refresh-rule {
    font-size: 11px;
  }
  .data-acquisition-map {
    gap: 10px;
  }
  .evidence-method {
    font-size: 11px;
  }
}
