body {
    margin: 0;
    background: #eef2f7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    overflow: hidden;
}

.app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.side-nav {
    width: 265px;
    background: linear-gradient(180deg, #111827, #1f2937);
    color: white;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .35);
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
}

.brand-subtitle,
.small-label {
    font-size: 12px;
    opacity: .7;
}

.nav-pill {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.75);
    padding: 12px 14px;
    border-radius: 16px;
    text-align: left;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .2s ease;
}

.nav-pill:hover,
.nav-pill.active {
    background: rgba(255,255,255,.12);
    color: white;
    transform: translateX(4px);
}

.side-footer {
    margin-top: auto;
    background: rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 14px;
    font-size: 13px;
}

.main-content {
    flex: 1;
    padding: 22px;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.top-bar h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.6px;
}

.top-bar p {
    margin: 4px 0 0;
    color: #6b7280;
}

.top-filter {
    display: flex;
    gap: 8px;
    min-width: 360px;
}

.slider-card {
    height: calc(100vh - 118px);
    background: white;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
    padding: 18px;
    overflow: hidden;
}

.slide-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.slide-title {
    font-size: 19px;
    font-weight: 900;
}

.slides-viewport {
    height: calc(100% - 52px);
    overflow: hidden;
}

.slides-track {
    display: flex;
    height: 100%;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.dashboard-slide {
    min-width: 100%;
    height: 100%;
    padding: 4px;
    overflow: auto;
}

.dashboard-slide::-webkit-scrollbar {
    width: 8px;
}

.dashboard-slide::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.metric-card,
.panel-card,
.highlight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.metric-card {
    padding: 16px;
    display: flex;
    gap: 13px;
    align-items: center;
    height: 100%;
}

.metric-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.metric-value {
    font-size: 29px;
    line-height: 1;
    font-weight: 900;
}

.metric-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.panel-card {
    padding: 18px;
}

.panel-title {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 14px;
}

.highlight-card {
    padding: 18px;
    min-height: 130px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.highlight-card h3 {
    font-size: 18px;
    font-weight: 900;
    margin: 8px 0 4px;
}

.highlight-card p {
    margin: 0;
    color: #0f766e;
    font-weight: 800;
}

.efficiency-circle {
    width: 195px;
    height: 195px;
    margin: 12px auto 20px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, white 58%, transparent 59%),
        conic-gradient(#0f766e var(--pct, 0%), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.efficiency-value {
    font-size: 38px;
    font-weight: 900;
    text-align: center;
}

.efficiency-label {
    text-align: center;
    color: #6b7280;
    font-weight: 700;
    font-size: 12px;
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
    padding: 10px 0;
    color: #6b7280;
}

.mini-stat strong {
    color: #111827;
}

.ranking-panel {
    max-height: 100%;
    overflow: auto;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
}

.rank-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #111827;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.rank-main {
    flex: 1;
    min-width: 0;
}

.rank-main strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-main span {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.rank-value {
    font-weight: 900;
    color: #0f766e;
    white-space: nowrap;
}

.progress.slim {
    height: 7px;
    border-radius: 999px;
    margin-top: 6px;
}

.insight-grid,
.integration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.insight-item,
.integration-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
}

.insight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.insight-item i {
    font-size: 24px;
    color: #0f766e;
}

.insight-item strong,
.integration-item strong {
    display: block;
    font-weight: 900;
}

.insight-item span,
.integration-item span {
    color: #6b7280;
    font-size: 13px;
}

.big-number {
    font-size: 42px;
    font-weight: 900;
    color: #0f766e;
    margin: 18px 0 4px;
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 18px;
    padding: 18px;
}

.empty-state i {
    font-size: 32px;
    color: #d97706;
}

.empty-state strong {
    display: block;
}

.empty-state span {
    color: #92400e;
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 11px;
}

.badge-neutral { background: #e5e7eb; color: #111827; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-red { background: #fee2e2; color: #b91c1c; }

.small-muted {
    color: #6b7280;
    font-size: 12px;
}

.table thead th {
    background: #111827;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
}

canvas {
    max-height: 360px;
}

@media (max-width: 992px) {
    body {
        overflow: auto;
    }

    .app-shell {
        flex-direction: column;
        height: auto;
    }

    .side-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        align-items: center;
    }

    .brand-box,
    .side-footer {
        display: none;
    }

    .nav-pill {
        white-space: nowrap;
    }

    .main-content {
        overflow: visible;
    }

    .slider-card {
        height: auto;
    }

    .slides-viewport,
    .slides-track,
    .dashboard-slide {
        height: auto;
    }

    .insight-grid,
    .integration-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-filter {
        min-width: 0;
    }
}