.usat-results-card {
        max-width: 1150px;
        margin: 0 auto;
    }

    .usat-results-summary {
        margin-bottom: 24px;
    }

    .usat-results-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 22px;
        align-items: stretch;
    }

    .usat-results-grid.usat-only-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .usat-result-panel {
        padding: 22px;
        border: 1px solid #d7e1ea;
        border-radius: 15px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(31, 55, 76, 0.06);
    }

    .usat-result-panel h2 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .usat-result-description {
        margin-bottom: 18px;
        line-height: 1.55;
        color: #4a5d6d;
    }

    .usat-score-highlight {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .usat-score-highlight > div {
        padding: 15px 12px;
        border: 1px solid #d8e3ec;
        border-radius: 12px;
        background: #f7fafc;
        text-align: center;
    }

    .usat-score-highlight span {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        color: #526879;
    }

    .usat-score-highlight strong {
        display: block;
        font-size: 19px;
        color: #153e5c;
    }

    .usat-result-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .usat-result-list li {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        padding: 11px 0;
        border-bottom: 1px solid #e2e8ee;
        line-height: 1.4;
    }

    .usat-result-list li:last-child {
        border-bottom: none;
    }

    .usat-result-list .result-label {
        flex: 1;
    }

    .usat-result-list .result-value {
        font-weight: 700;
        text-align: right;
        white-space: nowrap;
    }

    .usat-total-row {
        margin-top: 10px;
        padding-top: 15px !important;
        border-top: 2px solid #cbd9e4;
        border-bottom: none !important;
        font-size: 18px;
    }

    .usat-ipss-missing {
        padding: 16px;
        border: 1px solid #e5c665;
        border-radius: 11px;
        background: #fff5ce;
        color: #624c00;
        line-height: 1.55;
    }

    .usat-ipss-missing a {
        font-weight: 700;
    }

    .usat-anatomy-note {
        margin-top: 18px;
        padding: 13px 15px;
        border-radius: 10px;
        background: #f5f8fa;
        border: 1px solid #dce4ea;
        color: #4a5c6a;
        font-size: 14px;
        line-height: 1.5;
    }

    @media (max-width: 850px) {
        .usat-results-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 550px) {
        .usat-result-panel {
            padding: 17px;
        }

        .usat-score-highlight {
            grid-template-columns: 1fr;
        }

        .usat-result-list li {
            display: block;
        }

        .usat-result-list .result-value {
            display: block;
            margin-top: 5px;
            text-align: left;
            white-space: normal;
        }
    }

    @media print {
        .question-buttons {
            display: none !important;
        }

        .usat-result-panel {
            box-shadow: none;
            break-inside: avoid;
        }
    }/* ========================================= */
/* USAT DAILY PATIENT-SIDE TREND GRAPH       */
/* ========================================= */

.usat-daily-trend-section {
    margin-top: 26px;
    margin-bottom: 28px;
}

.usat-chart-panel {
    overflow: hidden;
}

.usat-second-chart-panel {
    margin-top: 24px;
}

.usat-chart-panel h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.usat-chart-description {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #435466;
}

.usat-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch;
}

.usat-chart-scroll {
    position: relative;
}

.usat-chart-tooltip {
    position: sticky;
    left: 8px;
    bottom: 8px;
    z-index: 10;
    min-width: 230px;
    max-width: 300px;
    padding: 12px 14px;
    border: 1px solid #b9c8d5;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2f3f;
    box-shadow: 0 8px 24px rgba(31, 47, 63, 0.18);
    font-size: 13px;
    line-height: 1.45;
    pointer-events: none;
    margin: 10px 8px 0;
}

.usat-chart-tooltip strong {
    display: block;
    margin-bottom: 6px;
    color: #143d5a;
    font-size: 14px;
}

.usat-chart-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 3px;
}

.usat-chart-tooltip-row span:last-child {
    font-weight: 700;
    white-space: nowrap;
}

#usatVisitPatternChart,
#usatSymptomTrendChart,
#usatVisitPatternBarChart,
#usatSymptomTrendBarChart {
    display: block;
    width: auto;
    min-width: 760px;
    height: auto;
    min-height: 440px;
    background: #ffffff;
    border: 1px solid #d9e3ec;
    border-radius: 14px;
}

.usat-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
}

.usat-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 9px;
    background: #f5f8fb;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    color: #243446;
    font-size: 14px;
    font-weight: 700;
}

.usat-chart-legend-line {
    display: inline-block;
    width: 24px;
    height: 4px;
    border-radius: 4px;
    flex: 0 0 auto;
}

.usat-chart-privacy-note {
    margin-top: 18px;
    margin-bottom: 0;
    padding: 12px 14px;
    background: #eef6ff;
    border: 1px solid #c9dff3;
    border-radius: 10px;
    color: #254c6a;
    font-size: 14px;
    line-height: 1.5;
}

.usat-chart-empty-message {
    padding: 24px;
    background: #f6f8fa;
    border: 1px solid #dce3e8;
    border-radius: 12px;
    text-align: center;
    color: #455565;
}

@media (max-width: 768px) {
    #usatVisitPatternChart,
#usatSymptomTrendChart,
#usatVisitPatternBarChart,
#usatSymptomTrendBarChart {
        min-width: 700px;
        height: 400px;
    }

    .usat-chart-legend {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .usat-chart-legend-item {
        width: 100%;
    }
}

@media print {
    .usat-chart-scroll {
        overflow: visible !important;
    }

    #usatVisitPatternChart,
#usatSymptomTrendChart,
#usatVisitPatternBarChart,
#usatSymptomTrendBarChart {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .usat-chart-panel {
        page-break-inside: avoid;
    }
}.usat-home-button{

    display:flex;
    justify-content:center;
    align-items:center;

    width:100%;
    max-width:430px;
    min-height:58px;

    margin:16px auto 0;

    border:2px solid #4b8cff;
    border-radius:14px;

    background:#0f172a;

    color:#ffffff;

    text-decoration:none;

    font-size:18px;
    font-weight:700;

    transition:.2s ease;

}

.usat-home-button:hover{

    background:#1e3a8a;
    color:#ffffff;

}

.usat-home-button:active{

    transform:scale(.98);

}
