.route-page {
  min-height: 100vh;
  background: var(--bg-primary, #000);
  color: var(--text-primary, #fff);
}

.route-page .route-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.route-page .route-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-secondary, #999);
  text-decoration: none;
  font-size: 13px;
}

.route-page .route-back:hover,
.route-page .route-back:focus-visible {
  color: #fff;
}

.route-page .route-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-primary, #252525);
}

.route-page .route-eyebrow {
  margin: 0 0 10px;
  color: var(--text-secondary, #999);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-page .route-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.055em;
}

.route-page .route-copy {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--text-secondary, #999);
  font-size: 15px;
  line-height: 1.65;
}

.route-page .route-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 220px));
  gap: 12px;
  padding: 28px 0;
}

.route-page .route-input,
.route-page .route-select,
.route-page .route-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-primary, #333);
  border-radius: 4px;
  background: #050505;
  color: #fff;
  padding: 0 14px;
  font: inherit;
}

.route-page .route-textarea {
  min-height: 112px;
  padding: 13px 14px;
  resize: vertical;
}

.route-page .route-input:focus,
.route-page .route-select:focus,
.route-page .route-textarea:focus {
  outline: 1px solid #fff;
  outline-offset: 1px;
}

.route-page .route-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  color: var(--text-secondary, #999);
  font-size: 12px;
}

.route-page .route-list {
  border-top: 1px solid var(--border-primary, #252525);
}

.route-page .route-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  border-bottom: 1px solid var(--border-primary, #252525);
  color: inherit;
  text-decoration: none;
}

.route-page .route-row:hover,
.route-page .route-row:focus-visible {
  background: #080808;
}

.route-page .route-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.route-page .route-mark.bb-identity { --identity-size: 48px; }

.route-page .route-identity > span:last-child { min-width: 0; }

.route-page .route-identity strong,
.route-page .route-identity small {
  display: block;
  overflow-wrap: anywhere;
}

.route-page .route-identity small,
.route-page .route-meta {
  margin-top: 4px;
  color: var(--text-secondary, #999);
  font-size: 12px;
}

.route-page .route-value {
  min-width: 112px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.route-page .route-change {
  min-width: 70px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.route-page .route-change.positive { color: var(--positive, #08b996); }
.route-page .route-change.negative { color: var(--negative, #f04a59); }

.route-page .route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
}

.route-page .route-panel {
  border: 1px solid var(--border-primary, #252525);
  border-radius: 5px;
  background: #050505;
  padding: 22px;
}

.route-page .route-panel h2,
.route-page .route-panel h3,
.route-page .route-panel p {
  margin-top: 0;
}

.route-page .route-panel p {
  color: var(--text-secondary, #999);
  line-height: 1.6;
}

.route-page .route-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.route-page .route-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-primary, #444);
  border-radius: 4px;
  background: #090909;
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.route-page .route-button:hover,
.route-page .route-button:focus-visible,
.route-page .route-button.is-active {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.route-page .route-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.route-page .community-post {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-primary, #252525);
}

.route-page .community-post header {
  position: static;
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
}

.route-page .community-post time,
.route-page .community-post .post-symbols {
  color: var(--text-secondary, #999);
  font-size: 12px;
}

.route-page .community-post h2 {
  margin: 12px 0 10px;
  font-size: 22px;
}

.route-page .community-post p {
  max-width: 760px;
  margin: 0;
  color: #c7c7c7;
  line-height: 1.65;
}

.route-page .route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
}

.route-page .route-stat {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-primary, #252525);
}

.route-page .route-stat:last-child { border-bottom: 0; }
.route-page .route-stat span { color: var(--text-secondary, #999); }

.route-page .settings-group {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-primary, #252525);
}

.route-page .settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.route-page .settings-row label strong,
.route-page .settings-row label small { display: block; }
.route-page .settings-row label small { margin-top: 4px; color: var(--text-secondary, #999); }

.route-page .route-empty {
  padding: 52px 0;
  color: var(--text-secondary, #999);
  text-align: center;
}

.header-like-link {
  gap: 7px;
  text-decoration: none;
}

.header-like-link .header-like-count {
  min-width: 14px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .route-page .route-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 88px;
  }

  .route-page .route-heading,
  .route-page .settings-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-page .route-controls,
  .route-page .route-grid {
    grid-template-columns: 1fr;
  }

  .route-page .route-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .route-page .route-value { display: none; }
  .header-like-link { display: none; }
}

.route-page .route-title {font-family:inherit;font-size:clamp(28px,3vw,40px);font-weight:600;line-height:1.2;letter-spacing:-.025em;}
.methodology-guide .route-panel p {font-size:15px;line-height:1.75;color:var(--text-secondary,#aaa);}
