.logo-pro { color: #f59e0b; font-size: 11px; font-weight: 700; }
.logo-liq { color: #06b6d4; font-size: 14px; font-weight: 800; margin-left: 6px; }

.reload-btn {
  height: 24px;
  min-width: 24px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 14px;
  cursor: pointer;
}

.reload-btn:hover { background: #172033; }

.map-toggle {
  display: flex;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.map-toggle .toggle-btn {
  flex: 1;
  height: 26px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.map-toggle .toggle-btn:not(:last-child) {
  border-right: 1px solid #334155;
}

.map-toggle .toggle-btn.active {
  background: #06b6d4;
  color: #fff;
}

.map-toggle .toggle-btn:hover:not(.active) {
  background: #1e293b;
  color: #cbd5e1;
}

/* === Controls === */
.controls-row {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.toggle-group {
  display: flex;
  flex: 1;
  min-width: 0;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.toggle-group .toggle-btn {
  flex: 1;
  min-width: 0;
  height: 24px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.toggle-group .toggle-btn:not(:last-child) {
  border-right: 1px solid #334155;
}

.toggle-group .toggle-btn:hover { background: #1e293b; color: #cbd5e1; }
.toggle-group .toggle-btn.active { background: #06b6d4; color: #fff; }

/* === Summary Bar === */
.summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.summary-item { display: flex; align-items: center; gap: 4px; }
.summary-label { color: #64748b; }
.summary-value { font-weight: 700; }

/* === Heatmap === */
.heatmap-card {
  background: #0f172a;
}

/* === Legend === */
.bottom-panels {
  flex: 0 0 auto;
  border-top: 1px solid #1f2a3d;
  background: #0f172a;
}

.legend-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
  color: #94a3b8;
  border-bottom: 1px solid #1f2a3d;
}

.legend-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
}

.legend-title { font-size: 10px; color: #64748b; font-weight: 600; }
.mode-info { font-size: 10px; color: #94a3b8; }

/* === Tooltip === */
.tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.97);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.tooltip.show { opacity: 1; transform: translateY(0); }

/* === Animations === */
@keyframes liq-pulse {
  0%, 100% { stroke: #f97316; stroke-width: 4; opacity: 1; }
  50% { stroke: #f97316; stroke-width: 2; opacity: 0.4; }
}

.tile-pulse-spike {
  animation: liq-pulse 2s ease-in-out infinite;
}

/* === Help Overlay === */
.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #1f2a3d;
}
.help-title { font-size: 15px; font-weight: 700; color: #e5e7eb; }
.help-body {
  padding: 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.help-section { margin-bottom: 16px; }
.help-section:last-child { margin-bottom: 0; }
.help-line {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 4px;
}
.help-line:last-child { margin-bottom: 0; }
.help-tip, .help-warn, .help-info {
  padding: 8px 10px;
  border-radius: 8px;
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.5;
  border-left: 3px solid;
}
.help-tip { background: rgba(74,222,128,0.08); border-color: #4ade80; color: #bbf7d0; }
.help-warn { background: rgba(251,191,36,0.08); border-color: #fbbf24; color: #fde68a; }
.help-info { background: rgba(96,165,250,0.08); border-color: #60a5fa; color: #bfdbfe; }
.help-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin: 0 2px;
}
.help-tag.green { background: rgba(74,222,128,0.15); color: #4ade80; }
.help-tag.red { background: rgba(248,113,113,0.15); color: #f87171; }
.help-tag.amber { background: rgba(251,191,36,0.15); color: #fbbf24; }
.help-tag.blue { background: rgba(6,182,212,0.15); color: #06b6d4; }
.help-tag.purple { background: rgba(192,132,252,0.15); color: #c084fc; }
.help-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.help-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  padding: 3px 8px;
  background: #111827;
  border-radius: 6px;
  border: 1px solid #1f2a3d;
}
.help-legend-item .hl-box { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.help-legend-item .hl-line { width: 20px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.help-author {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1f2a3d;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}
.help-author .ha-name { color: #94a3b8; font-weight: 700; }
.help-hl { color: #fbbf24; font-weight: 700; }
.help-hp { color: #4ade80; font-weight: 700; }
.help-hn { color: #f87171; font-weight: 700; }
.help-hb { color: #60a5fa; font-weight: 700; }
.help-link { color: #06b6d4; text-decoration: none; }
.help-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .topbar { padding: 8px; }
  .toggle-group .toggle-btn { font-size: 9px; height: 22px; }
  .title { font-size: 16px; }
}
