:root {
    color-scheme: light;
    --ink: #18212f;
    --muted: #687383;
    --line: #dfe5ed;
    --panel: #ffffff;
    --paper: #f4f7fb;
    --brand: #0b6b6f;
    --brand-2: #d94f30;
    --gold: #c8942f;
    --green: #2f8f5b;
    --shadow: 0 18px 50px rgba(24, 33, 47, .09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, #edf3f8 0%, #f8fafc 42%, #eef3f1 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 48px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid rgba(24, 33, 47, .08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(11, 107, 111, .96), rgba(24, 33, 47, .96)),
        url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=80") center/cover;
    box-shadow: var(--shadow);
    color: #fff;
}

.eyebrow {
    margin: 0 0 14px;
    color: #a9e4de;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: 0;
}

.intro {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.06rem;
    line-height: 1.7;
}

.upload {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.upload label {
    font-weight: 800;
}

.upload input {
    width: 100%;
    padding: 13px;
    border: 1px dashed rgba(255, 255, 255, .5);
    border-radius: 8px;
    color: #fff;
}

.upload button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand);
    font-weight: 850;
    cursor: pointer;
}

.notice {
    margin: 0;
    color: #d8fff8;
    font-size: .92rem;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(8, minmax(120px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.kpis article,
.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 32px rgba(24, 33, 47, .06);
}

.kpis article {
    padding: 16px;
}

.kpis span,
.panel-head span,
.files span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.kpis strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.panel {
    min-width: 0;
    padding: 20px;
}

.panel.wide {
    grid-column: span 2;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel h2 {
    margin: 0;
    font-size: 1rem;
}

.ranking,
.files {
    display: grid;
    gap: 10px;
}

.ranking div,
.files div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 42px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

.ranking span,
.files strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ranking strong {
    flex: 0 0 auto;
    color: var(--brand);
}

.files div {
    display: grid;
    justify-content: stretch;
}

.empty {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .kpis {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }

    .grid,
    .hero {
        grid-template-columns: 1fr;
    }

    .panel.wide {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 20px, 1240px);
        padding-top: 18px;
    }

    .hero {
        padding: 22px;
    }

    .kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
