.guide-page {
  background:
    radial-gradient(900px 360px at 15% 0%, rgba(108, 140, 255, .18), transparent 60%),
    radial-gradient(800px 320px at 85% 10%, rgba(155, 108, 255, .16), transparent 62%),
    var(--bg-2);
}
.guide-header .nav {
  justify-content: space-between;
}
.guide-logo {
  color: #fff;
  font-weight: 800;
}
.guide-hero {
  padding: 58px 0 34px;
  background: rgba(15, 17, 21, .72);
  border-bottom: 1px solid var(--border);
}
.guide-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(108, 140, 255, .32);
  border-radius: 999px;
  color: #c7d2fe;
  background: rgba(108, 140, 255, .12);
  font-size: 13px;
  font-weight: 800;
}
.guide-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}
.guide-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.guide-section {
  padding-top: 32px;
}
.guide-search-panel {
  position: sticky;
  top: var(--nav-pc-height, 64px);
  z-index: 20;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(28, 33, 44, .94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  transition: transform .24s ease, opacity .24s ease;
  will-change: transform;
}
.guide-search-panel.guide-search-panel-hidden {
  transform: translateY(calc(-100% - 18px));
  opacity: 0;
  pointer-events: none;
}
.guide-search-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.guide-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #11151d;
  color: var(--text);
  outline: none;
  font-size: 15px;
}
.guide-search-input:focus {
  border-color: rgba(108, 140, 255, .82);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, .16);
}
.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.guide-tabs button {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}
.guide-tabs button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
}
.guide-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.guide-stat {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(28, 33, 44, .72);
}
.guide-stat strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}
.guide-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.guide-results {
  display: grid;
  gap: 14px;
}
.guide-result-intro {
  padding: 12px 14px;
  border: 1px solid rgba(108, 140, 255, .18);
  border-radius: 14px;
  background: rgba(108, 140, 255, .1);
  color: #dbeafe;
  font-size: 14px;
}
.guide-result-intro strong {
  color: #fff;
}
.guide-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(28, 33, 44, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.guide-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.guide-card-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}
.guide-card-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.guide-card-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}
.guide-block {
  display: grid;
  gap: 8px;
}
.guide-block h4 {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}
.guide-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-scroll-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.guide-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #dbe5f5;
  font-size: 14px;
}
.guide-drop-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
}
.guide-drop-rate {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(62, 207, 142, .12);
  color: #bbf7d0;
  font-weight: 800;
}
.guide-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.guide-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(108, 140, 255, .26);
  border-radius: 999px;
  background: rgba(108, 140, 255, .12);
  color: #dbeafe;
  cursor: pointer;
  font-size: 13px;
  word-break: break-all;
}
.guide-chip:hover {
  border-color: rgba(108, 140, 255, .6);
  background: rgba(108, 140, 255, .2);
}
.guide-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(62, 207, 142, .12);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 800;
}
.guide-route-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(28, 33, 44, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.guide-route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.guide-route-head h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}
.guide-route-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.guide-route-actions,
.guide-route-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-route-actions button,
.guide-route-matches button {
  border: 1px solid rgba(108, 140, 255, .26);
  border-radius: 999px;
  background: rgba(108, 140, 255, .12);
  color: #dbeafe;
  cursor: pointer;
  font-size: 13px;
}
.guide-route-actions button {
  padding: 7px 11px;
}
.guide-route-matches {
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 13px;
}
.guide-route-matches button {
  padding: 5px 10px;
}
.guide-route-matches button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
}
.guide-route-stage {
  position: relative;
  height: min(46vh, 430px);
  min-height: 300px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 25% 15%, rgba(108, 140, 255, .14), transparent 35%),
    rgba(12, 16, 24, .94);
  background-size: 24px 24px, 24px 24px, auto, auto;
}
.guide-route-stage.dragging {
  cursor: grabbing;
}
.guide-route-stage-search {
  height: min(38vh, 340px);
  min-height: 240px;
}
.guide-route-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.guide-route-svg {
  display: block;
}
.guide-route-svg marker path {
  fill: #93c5fd;
}
.guide-route-svg marker.route-arrow-one path {
  fill: #60a5fa;
}
.guide-route-svg marker.route-arrow-both path {
  fill: #86efac;
}
.guide-route-edge {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2;
  opacity: .82;
}
.guide-route-edge-both {
  stroke: #86efac;
}
.guide-route-edge-label-box {
  fill: rgba(15, 23, 42, .9);
  stroke: rgba(96, 165, 250, .7);
  stroke-width: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
}
.guide-route-edge-label-box-both {
  stroke: rgba(134, 239, 172, .76);
}
.guide-route-edge-label {
  fill: #cbd5e1;
  paint-order: stroke;
  stroke: rgba(12, 16, 24, .92);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-size: 12px;
  text-anchor: middle;
}
.guide-route-card-overview .guide-route-edge-label {
  display: none;
}
.guide-route-card-overview .guide-route-edge-label-box {
  display: none;
}
.guide-route-card-focus .guide-route-stage {
  background:
    radial-gradient(circle at 50% 50%, rgba(108, 140, 255, .16), transparent 42%),
    rgba(10, 14, 22, .98);
}
.guide-route-card-focus .guide-route-edge {
  stroke-width: 4.5;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, .6));
}
.guide-route-card-focus .guide-route-edge-both {
  stroke-width: 5;
  filter: drop-shadow(0 0 7px rgba(134, 239, 172, .7));
}
.guide-route-card-focus .guide-route-edge-label {
  fill: #f8fafc;
  stroke: rgba(3, 7, 18, .82);
  stroke-width: 3px;
  font-size: 13px;
  font-weight: 800;
}
.guide-route-card-focus .guide-route-node rect {
  stroke-width: 2;
}
.guide-route-card-focus .guide-route-node-active rect {
  stroke-width: 4;
}
.guide-route-node {
  cursor: pointer;
}
.guide-route-node rect {
  fill: rgba(15, 23, 42, .96);
  stroke: rgba(219, 234, 254, .82);
  stroke-width: 1.5;
}
.guide-route-node text {
  fill: #fff;
  font-size: 14px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
}
.guide-route-node-active rect {
  fill: rgba(108, 140, 255, .34);
  stroke: #facc15;
  stroke-width: 3;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, .45));
}
.guide-route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 13px;
}
.guide-route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guide-route-legend i {
  width: 24px;
  height: 2px;
  background: #93c5fd;
}
.guide-route-legend i.both {
  background: #bbf7d0;
}
.guide-empty,
.guide-loading {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(28, 33, 44, .62);
}
.guide-empty-hint {
  padding: 36px 20px;
  color: #cbd5e1;
}
.guide-more {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 820px) {
  .guide-search-panel {
    top: var(--nav-mobile-height, 64px);
  }
  .guide-search-line {
    grid-template-columns: 1fr;
  }
  .guide-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
  }
  .guide-stat {
    min-width: 0;
    padding: 8px 4px;
    border-radius: 12px;
    text-align: center;
  }
  .guide-stat strong {
    font-size: clamp(15px, 4.7vw, 20px);
  }
  .guide-stat span {
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .guide-card-head {
    display: grid;
  }
  .guide-route-head {
    display: grid;
  }
  .guide-route-stage {
    height: 42vh;
    min-height: 260px;
  }
  .guide-route-stage-search {
    height: 34vh;
    min-height: 220px;
  }
}
@media (max-width: 520px) {
  .guide-tabs button {
    flex: 1 1 calc(50% - 10px);
  }
  .guide-route-actions button,
  .guide-route-matches button {
    flex: 1 1 auto;
  }
}
