/* TeleRocket site shell — nav, pages, reviews, tools, flow */

html { scroll-padding-top: 96px; }

.site-page { padding: 120px 0 60px; min-height: 60vh; }

.page-hero { max-width: 720px; margin-bottom: 40px; }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.page-hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lead { font-size: 18px; color: var(--text-muted); line-height: 1.55; }

.nav-btn--active {
  color: #fff !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: rgba(59, 130, 246, 0.18) !important;
}
.nav-btn--cta {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle i { font-size: 10px; margin-left: 4px; transition: transform 0.2s; }
.nav-dropdown.is-open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 19, 31, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  z-index: 200;
}
html.theme-light .nav-dropdown-menu { background: rgba(255, 255, 255, 0.98); }
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-dropdown-menu a:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
}
html.theme-light .nav-dropdown-menu a:hover { color: #1e40af; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--glass-border); text-align: center; color: var(--text-muted); font-size: 14px; }
.site-footer-brand { margin-bottom: 8px; font-weight: 600; color: #fff; font-size: 16px; }
.site-footer-links { margin-top: 20px; }
.site-footer-links a { color: var(--accent-blue); text-decoration: none; }
html.theme-light .site-footer-brand { color: #0f172a; }

.home-teaser { padding: 64px 0; text-align: center; }
.home-teaser h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.home-teaser p { color: var(--text-muted); max-width: 520px; margin: 0 auto 24px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.review-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card .stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.review-card blockquote { font-size: 14px; line-height: 1.65; color: var(--text-muted); margin: 0; flex-grow: 1; }
.review-card cite { font-size: 13px; font-style: normal; color: var(--accent-blue); font-weight: 600; }

.tool-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}
.tool-panel label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.tool-panel textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-main);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  resize: vertical;
}
html.theme-light .tool-panel textarea { background: #f8fafc; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.tool-meta { font-size: 13px; color: var(--text-muted); }
.tool-results { margin-top: 24px; }
.tool-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
}
.tool-result-row:last-child { border-bottom: none; }
.tool-result-row .ok { color: #34d399; font-weight: 600; }
.tool-result-row .fail { color: #f87171; font-weight: 600; }
.tool-result-detail { grid-column: 1 / -1; color: var(--text-muted); font-size: 12px; }

.features-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feature-link-card {
  display: block;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-link-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}
.feature-link-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-link-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.feature-link-card .tag { font-size: 12px; font-weight: 600; color: var(--accent-blue); margin-bottom: 8px; display: block; }

/* ── Vertical flow (GramGPT-style) ── */
.tr-flow-section { padding: 100px 0 80px; }
.tr-flow { position: relative; max-width: 1000px; margin: 0 auto; }
.tr-flow-line {
  position: absolute;
  left: 27px;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
html.theme-light .tr-flow-line { background: rgba(0, 119, 255, 0.12); }
.tr-flow-line-fill {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #f97316, var(--accent-blue), #22d3ee);
  border-radius: 999px;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}
.tr-flow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px 40px;
  align-items: center;
  padding: 48px 0 48px 72px;
  position: relative;
  opacity: 0.45;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tr-flow-step.is-active { opacity: 1; transform: translateY(0); }
.tr-flow-marker {
  position: absolute;
  left: 0;
  top: 48px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(15, 19, 31, 0.95);
  border: 2px solid var(--glass-border);
  transition: all 0.45s ease;
  z-index: 2;
}
.tr-flow-step.is-active .tr-flow-marker {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.55);
  transform: scale(1.08);
}
.tr-flow-text h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; letter-spacing: -0.02em; }
.tr-flow-text p { color: var(--text-muted); font-size: 16px; line-height: 1.6; max-width: 380px; }
.tr-flow-mock {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 19, 31, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateX(20px);
  opacity: 0.6;
  transition: transform 0.55s ease, opacity 0.55s ease, border-color 0.4s;
}
html.theme-light .tr-flow-mock { background: rgba(255, 255, 255, 0.92); }
.tr-flow-step.is-active .tr-flow-mock {
  transform: translateX(0);
  opacity: 1;
  border-color: rgba(59, 130, 246, 0.35);
}

.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.mock-badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.mock-badge--ok { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.mock-badge--run { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
}
.mock-row:last-child { border-bottom: none; }
.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mock-progress { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.mock-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tr-flow-step.is-active .mock-progress span { width: var(--pct, 70%); }
.mock-sub { font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  .tr-flow-step { grid-template-columns: 1fr; padding-left: 64px; gap: 20px; }
  .tr-flow-line { left: 23px; }
  .tr-flow-marker { width: 48px; height: 48px; }
  .nav-dropdown-menu { right: auto; left: 0; }
}

@media (max-width: 560px) {
  .nav-links .nav-btn:not(.nav-btn--cta):not(.nav-dropdown-toggle) { display: none; }
}

/* ── Channel map tool ── */
.map-page { max-width: 1100px; }
.map-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.map-search-input-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}
.map-search-input-wrap i { color: var(--accent-blue); }
.map-search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  padding: 14px 0;
  outline: none;
  font-family: inherit;
}
.map-status { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.map-status.is-error { color: #f87171; }
.map-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.map-suggest-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.map-suggest-chip:hover {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
}
html.theme-light .map-suggest-chip { background: rgba(0, 119, 255, 0.06); }
.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.map-canvas-wrap {
  min-height: 420px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.08), transparent 55%), var(--glass-bg);
  backdrop-filter: blur(10px);
}
.map-cluster-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.map-grid--compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.map-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 19, 31, 0.7);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  animation: mapNodeIn 0.45s ease backwards;
  animation-delay: var(--delay, 0ms);
}
html.theme-light .map-node { background: rgba(255, 255, 255, 0.92); }
.map-node:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: hsla(var(--hue, 220), 80%, 60%, 0.5);
  box-shadow: 0 12px 32px hsla(var(--hue, 220), 70%, 50%, 0.2);
}
.map-node--similar { border-style: dashed; }
.map-node-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue, 220), 70%, 45%), hsl(calc(var(--hue, 220) + 40), 70%, 55%));
}
.map-node-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.map-node-meta { font-size: 11px; color: var(--text-muted); }
@keyframes mapNodeIn {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.map-detail {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}
.map-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}
.map-detail h3 { font-size: 18px; margin-bottom: 8px; padding-right: 24px; }
.map-detail-type { font-size: 13px; color: var(--accent-blue); margin-bottom: 12px; }
.map-detail-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.map-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.map-loading, .map-empty { font-size: 14px; color: var(--text-muted); padding: 24px; text-align: center; }
.map-empty.is-error { color: #f87171; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-detail { position: static; }
}

/* ── Channel map: Atlas landing + fullscreen canvas (GramGPT-style) ── */
body.map-is-open { overflow: hidden; }
body.map-is-open .map-atlas,
body.map-is-open #site-footer,
body.map-is-open #header { display: none; }

.map-atlas { padding: 100px 0 48px; }
.map-atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.map-atlas-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.map-atlas-copy h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.map-atlas-copy h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.map-atlas-lead { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.map-atlas-note { font-size: 13px; color: var(--text-muted); opacity: 0.85; margin-bottom: 24px; max-width: 520px; }
.map-atlas-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}
.map-atlas-stats div { display: flex; flex-direction: column; gap: 4px; }
.map-atlas-stats strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.map-atlas-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.map-atlas-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.map-open-btn { font-size: 15px; padding: 14px 28px; }
.map-atlas-blog { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.map-atlas-blog:hover { color: var(--accent-blue); }

.map-atlas-visual { display: flex; justify-content: center; align-items: center; min-height: 320px; }
.map-atlas-orbit {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.25);
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 65%);
}
.map-atlas-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: hsl(var(--h, 220), 80%, 60%);
  box-shadow: 0 0 12px hsla(var(--h, 220), 90%, 60%, 0.7);
  transform: rotate(var(--a)) translateX(var(--d)) rotate(calc(-1 * var(--a)));
  animation: mapDotPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--h, 0) * 3ms);
}
.map-atlas-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(5, 7, 10, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}
html.theme-light .map-atlas-core { background: rgba(255, 255, 255, 0.92); }
.map-atlas-core span { font-size: 22px; font-weight: 700; }
.map-atlas-core small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
@keyframes mapDotPulse {
  0%, 100% { opacity: 0.55; transform: rotate(var(--a)) translateX(var(--d)) rotate(calc(-1 * var(--a))) scale(1); }
  50% { opacity: 1; transform: rotate(var(--a)) translateX(var(--d)) rotate(calc(-1 * var(--a))) scale(1.35); }
}

.map-atlas-features h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; }
.map-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.map-feature-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.map-feature-card i { font-size: 22px; color: var(--accent-blue); margin-bottom: 12px; }
.map-feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.map-feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.map-stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #05070a;
  display: flex;
  flex-direction: column;
}
html.theme-light .map-stage { background: #0f172a; }
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(12px);
}
.map-toolbar-left,
.map-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.map-search-input-wrap--toolbar { min-width: 240px; max-width: 360px; background: rgba(255, 255, 255, 0.04); }
.map-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.map-toolbar-btn:hover { border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.12); }
.map-toolbar-btn--close { margin-left: 4px; }
.map-toolbar-status { font-size: 12px; color: rgba(255, 255, 255, 0.55); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-toolbar-status.is-error { color: #f87171; }

.map-stage-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#mapGraphCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#mapGraphCanvas.is-dragging { cursor: grabbing; }

.map-stage-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.map-stage-hint i { font-size: 28px; color: rgba(59, 130, 246, 0.6); margin-bottom: 8px; }
.map-stage-hint.is-hidden { opacity: 0; transition: opacity 0.3s; }

.map-stage[hidden],
.map-stage-loading[hidden],
.map-topics-panel[hidden],
.map-detail[hidden] {
  display: none !important;
}

.map-stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 7, 10, 0.55);
  color: #fff;
  z-index: 5;
}
.map-load-bar {
  width: 200px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.map-load-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transition: width 0.3s ease;
}

.map-topics-panel {
  position: absolute;
  top: 72px;
  left: 16px;
  width: min(320px, calc(100% - 32px));
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(10, 14, 24, 0.95);
  backdrop-filter: blur(14px);
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.map-topics-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.map-topics-head h3 { font-size: 15px; }
.map-topics-head button { border: none; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 16px; }

.map-detail--sidebar {
  position: absolute;
  top: 72px;
  left: 16px;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 88px);
  overflow: auto;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.map-stage.map-has-detail .map-stage-body {
  padding-left: min(380px, 42vw);
}

.map-detail-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.map-detail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35));
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.map-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.map-avatar-img--sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-avatar-img.is-broken {
  display: none;
}

.map-detail-avatar:has(.is-broken),
.map-detail-similar-ava:has(.is-broken),
.map-pick-item-ava:has(.is-broken) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35));
}

.map-detail-handle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.map-detail-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.map-detail-similar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-detail-similar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.map-detail-similar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.map-detail-similar-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.map-detail-similar-item:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.1);
}

.map-detail-similar-item strong {
  font-size: 13px;
}

.map-detail-similar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-detail-similar-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.map-detail-similar-item span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.map-detail-similar-empty,
.map-detail-similar-loading {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.map-detail--float {
  position: absolute;
  top: 72px;
  right: 16px;
  width: min(340px, calc(100% - 32px));
  max-height: calc(100% - 88px);
  overflow: auto;
  z-index: 10;
}

.map-cluster-label-float {
  position: absolute;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.map-hover-tip {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(10, 14, 24, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -100%);
}

.map-hover-tip[hidden] {
  display: none !important;
}

.map-pick-menu {
  position: absolute;
  z-index: 12;
  width: min(320px, calc(100% - 32px));
  max-height: min(360px, 50vh);
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(10, 14, 24, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.map-pick-menu[hidden] {
  display: none !important;
}

.map-pick-menu-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.map-pick-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-pick-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.map-pick-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.12);
}

.map-pick-item strong {
  font-size: 13px;
  font-weight: 600;
}

.map-pick-item-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.map-pick-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-pick-item span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

#mapGraphCanvas.is-hover-channel {
  cursor: pointer;
}

@media (max-width: 900px) {
  .map-atlas-hero { grid-template-columns: 1fr; }
  .map-atlas-visual { order: -1; min-height: 240px; }
  .map-toolbar-status { display: none; }
  .map-stage.map-has-detail .map-stage-body { padding-left: 0; }
  .map-detail--sidebar { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; max-height: 42vh; }
  .map-detail--float { left: 16px; right: 16px; width: auto; }
}
