/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Syne', Helvetica, sans-serif;
    background-color: #F4F6FB;
    color: #1A1A2E;
    min-height: 100vh;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 0.5px solid #dde3f0;
    height: 52px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 28px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1A1A2E;
}

.nav-meta {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #8892aa;
}

/* ── Main layout ── */
main {
    padding-top: 72px; /* nav height + gap */
    padding-bottom: 40px;
    min-height: 100vh;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    align-items: start;
}

/* ── Panels ── */
.panel {
    background: #fff;
    border: 0.5px solid #dde3f0;
    border-radius: 12px;
    padding: 24px;
}

.panel-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #a0aac0;
    margin-bottom: 16px;
}

/* ── Chart ── */
.chart-wrap {
    position: relative;
    height: 600px;
}

/* ── Tabs ── */
.tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.tab {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 4px 11px;
    border-radius: 5px;
    border: 0.5px solid #dde3f0;
    background: transparent;
    color: #8892aa;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tab:hover {
    background: #f4f6fb;
    color: #1A1A2E;
}

.tab.active {
    background: #1A1A2E;
    color: #fff;
    border-color: #1A1A2E;
}

/* ── Company card ── */
.company-card {
    border: 0.5px solid #dde3f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.company-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid #dde3f0;
}

.company-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
}

.company-card-count {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: #8892aa;
    background: #f4f6fb;
    border: 0.5px solid #dde3f0;
    border-radius: 4px;
    padding: 3px 8px;
}

/* ── Heatmap tags ── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.heat-tag {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 5px;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.heat-tag:hover { opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .chart-wrap {
        height: 700px;
    }
}