.stats-shell {
    width: min(1700px, calc(100% - 2rem));
    padding-bottom: 4rem;
}

.stats-hero {
    grid-template-columns: 1.5fr 0.9fr;
}

.upload-box {
    border: 2px dashed #7ea9c9;
    background: linear-gradient(135deg, rgba(18, 119, 179, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 22px;
    padding: 2rem;
    text-align: center;
    color: #18468f;
    font-weight: 600;
    cursor: pointer;
}

.status-line {
    margin-top: 1rem;
    color: #35506b;
    font-weight: 600;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filters-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.control-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.control-card label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: #23364d;
}

.text-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.tables-grid {
    display: grid;
    gap: 1rem;
}

.export-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.export-button {
    border: none;
    cursor: pointer;
}

@media (max-width: 800px) {
    .stats-hero {
        grid-template-columns: 1fr;
    }
}
