.content-page {
    padding: 30px;
}

.content-page--apps {
    padding: 34px;
}

.content-page__intro {
    width: 100%;
    max-width: none;
    color: #4a5568;
    font-size: 17px;
    line-height: 1.7;
}

.content-page--apps .content-page__intro {
    line-height: 1.65;
}

.upload-card {
    width: 100%;
    margin-top: 28px;
}

.drop-zone {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 220px;
    padding: 30px;
    align-items: center;
    justify-content: center;
    border: 2px dashed #90cdf4;
    border-radius: 14px;
    background: #f8fbff;
    color: #2c5282;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #3182ce;
    background: #ebf8ff;
}

.drop-zone.drag-over {
    transform: scale(1.005);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.errorlist {
    margin: 8px 0;
    padding-left: 20px;
    color: #c53030;
}

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

.summary-card {
    padding: 20px;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    background: #ebf8ff;
}

.summary-value {
    display: block;
    color: #1a365d;
    font-size: 30px;
    font-weight: 700;
}

.summary-label {
    color: #4a5568;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 30px;
}

.about-info-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 12px;
    background: #fff;
}

.about-info-card--academic {
    border-top-color: #38a169;
}

.about-info-card--calculation {
    border-top-color: #805ad5;
}

.about-info-card h2 {
    margin: 0 0 9px;
    color: #2d3748;
    font-size: 20px;
}

.about-info-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.65;
}

.about-info-card a {
    font-weight: 600;
}

.about-info-card--academic {
    grid-column: 1 / -1;
    border-top-color: #38a169;
}

.publication-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.publication-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px 42px 13px 14px;
    position: relative;
    border: 1px solid #dbe4ee;
    border-radius: 9px;
    background: #f8fbff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.publication-link::after {
    position: absolute;
    top: 13px;
    right: 14px;
    color: #4299e1;
    content: "↗";
    font-size: 16px;
}

.publication-link:hover {
    border-color: #90cdf4;
    background: #ebf8ff;
}

.publication-link strong {
    display: block;
    color: #1a365d;
    font-size: 14px;
    line-height: 1.45;
}

.publication-link small {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.citation-formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.citation-format {
    padding: 14px;
    border-left: 3px solid #38a169;
    border-radius: 0 9px 9px 0;
    background: #f0fff4;
}

.citation-format strong {
    display: block;
    margin-bottom: 6px;
    color: #276749;
    font-size: 13px;
}

.citation-format p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .citation-formats {
        grid-template-columns: 1fr;
    }
}

.about-info-card .academic-note {
    margin-top: 12px;
    color: #718096;
    font-size: 13px;
}

.charts-grid {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.chart-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.chart-card h2 {
    margin: 0 0 5px;
    color: #2d3748;
    font-size: 21px;
}

.chart-description {
    min-height: 42px;
    margin-bottom: 16px;
    color: #718096;
    font-size: 14px;
}

.chart-wrapper {
    position: relative;
    height: 470px;
}

.empty-chart {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
    color: #718096;
}

.chart-selector {
    display: flex;
    margin: 28px 0 16px;
    padding: 14px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.chart-selector label {
    flex: 0 0 auto;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.chart-selector select {
    width: min(100%, 460px);
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background-color: #fff;
    color: #2d3748;
    font: inherit;
    cursor: pointer;
}

.chart-selector select:focus {
    border-color: #4299e1;
    outline: 3px solid rgba(66, 153, 225, 0.2);
}

.charts-grid .chart-card {
    display: none;
}

.charts-grid .chart-card.is-active {
    display: block;
}

.charts-header {
    margin-top: 32px;
    margin-bottom: 16px;
}

.charts-header h2 {
    margin: 0 0 6px;
    color: #2d3748;
    font-size: 24px;
}

.charts-header p {
    margin: 0;
    color: #718096;
    font-size: 15px;
    line-height: 1.6;
}

.terms-section {
    width: 100%;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.terms-section h2 {
    margin: 0 0 10px;
    color: #2d3748;
    font-size: 21px;
}

.terms-section p {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .chart-description {
        min-height: 0;
    }
}

@media (max-width: 576px) {
    .content-page {
        padding: 18px 14px;
    }

    .content-page__intro {
        font-size: 14px;
        line-height: 1.6;
    }

    .summary-grid,
    .about-info-grid {
        gap: 10px;
        margin: 18px 0;
    }

    .summary-card,
    .about-info-card {
        padding: 15px;
    }

    .summary-value {
        font-size: 25px;
    }

    .about-info-card h2 {
        font-size: 18px;
    }

    .charts-header,
    .chart-selector,
    .charts-grid {
        display: none;
    }
}
