/* Карта сервера */
.server-map-shell {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.35);
}
.server-map-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(56,189,248,0.08), rgba(0,0,0,0));
    flex-wrap: wrap;
}
.server-map-title { font-size: 1.05rem; font-weight: 800; color: #f8fafc; }
.server-map-server-label {
    margin-left: 8px;
    font-size: 0.72rem;
    color: #38bdf8;
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(56,189,248,0.35);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}
.server-map-subtitle { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }
.server-map-controls { display: flex; gap: 8px; align-items: center; }
.server-map-controls .tab-btn { padding: 6px 10px; min-width: 36px; }
.server-map-zoom-label { min-width: 52px; text-align: center; font-family: monospace; color: #cbd5e1; font-size: 0.82rem; }
.server-map-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 640px; }
.server-map-viewport {
    position: relative;
    min-height: 640px;
    background: #0b1020;
    cursor: grab;
    overflow: hidden;
}
.server-map-viewport.dragging { cursor: grabbing; }
.server-map-viewport canvas { display: block; width: 100%; height: 100%; }
.server-map-tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.76rem;
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    max-width: 240px;
}
.server-map-sidebar {
    border-left: 1px solid rgba(255,255,255,0.06);
    background: rgba(15, 23, 42, 0.45);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.server-map-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px;
}
.server-map-panel-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.server-map-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #e2e8f0;
    margin-bottom: 6px;
    cursor: pointer;
}
.server-map-filter input { accent-color: #38bdf8; }
.server-map-count { margin-left: auto; color: #64748b; font-family: monospace; font-size: 0.72rem; }
.server-map-swatch {
    width: 10px; height: 10px; border-radius: 3px;
    background: var(--sw, #94a3b8);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset;
    flex: 0 0 10px;
}
.server-map-legend { display: flex; flex-direction: column; gap: 5px; max-height: 320px; overflow-y: auto; }
.server-map-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: #cbd5e1; }
.server-map-hover-info { font-size: 0.78rem; color: #cbd5e1; line-height: 1.45; min-height: 40px; }
@media (max-width: 1100px) {
    .server-map-body { grid-template-columns: 1fr; }
    .server-map-sidebar { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); max-height: 280px; }
    .server-map-viewport { min-height: 420px; }
}

/* Map structures */
.server-map-capture-summary { max-height: 220px; overflow-y: auto; font-size: 0.76rem; }
.server-map-build-row { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:0.8rem; color:#e2e8f0; margin-bottom:4px; }
.server-map-limit-input { width:64px; background:#0f111a; border:1px solid var(--border-color); color:#fff; padding:2px 6px; border-radius:5px; font-family:monospace; font-size:0.78rem; }
