.gsc-statistics-modal {
    height: min(720px, calc(100dvh - 24px));
}

.gsc-statistics-modal .gsc-settings-menu-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.gsc-statistics-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #f2f4f7;
}

.gsc-statistics-tab {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    appearance: none;
    color: #5f6975;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.gsc-statistics-tab.is-active {
    background: #ffffff;
    color: #06285a;
}

.gsc-statistics-tab:focus-visible {
    outline: 2px solid var(--gsc-green);
    outline-offset: 2px;
}

.gsc-statistics-range-filter {
    flex: 0 0 auto;
    padding-top: 14px;
    padding-bottom: 14px;
}

.gsc-statistics-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.gsc-statistics-placeholder {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border: 1px dashed #cbd2da;
    border-radius: 12px;
    color: #707985;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
}

.gsc-statistics-modal .gsc-settings-menu-footer {
    flex: 0 0 auto;
    background: #ffffff;
}

.gsc-statistics-modal-close {
    border: 2px solid var(--gsc-green);
    background: #ffffff;
    color: var(--gsc-green);
}

.gsc-statistics-modal-close:hover,
.gsc-statistics-modal-close:focus-visible {
    background: #f4faf3;
}

.gsc-statistics-section {
    padding-bottom: 8px;
}

.gsc-statistics-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gsc-statistics-section-title {
    margin: 0;
    color: #06285a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.gsc-statistics-section-context {
    margin: 4px 0 0;
    color: #707985;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.gsc-statistics-score-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #d7dde5;
    border-radius: 14px;
    background: #ffffff;
}

.gsc-statistics-score-primary,
.gsc-statistics-score-to-par {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
}

.gsc-statistics-score-primary {
    background: #f4faf3;
}

.gsc-statistics-score-to-par {
    border-left: 1px solid #d7dde5;
    text-align: center;
}

.gsc-statistics-metric-label {
    color: #66717d;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}

.gsc-statistics-score-value {
    margin-top: 3px;
    color: var(--gsc-green);
    font-size: 42px;
    font-weight: 850;
    line-height: 1;
}

.gsc-statistics-score-basis {
    margin-top: 5px;
    color: #707985;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.gsc-statistics-secondary-value {
    margin-top: 6px;
    color: #06285a;
    font-size: 28px;
    font-weight: 850;
    line-height: 1;
}

.gsc-statistics-subsection {
    margin-top: 20px;
}

.gsc-statistics-subsection-title {
    margin: 0 0 9px;
    color: #34404d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.gsc-statistics-par-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.gsc-statistics-metric {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 12px 8px;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.gsc-statistics-metric-value {
    margin-top: 5px;
    color: #06285a;
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
}

.gsc-statistics-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    background: #ffffff;
}

.gsc-statistics-result {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border-right: 1px solid #e0e5eb;
    border-bottom: 1px solid #e0e5eb;
}

.gsc-statistics-result:nth-child(3n) {
    border-right: 0;
}

.gsc-statistics-result:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.gsc-statistics-result-label {
    min-width: 0;
    color: #5f6975;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.gsc-statistics-result-value {
    flex: 0 0 auto;
    color: #06285a;
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
}

@media (max-width: 420px) {
    .gsc-statistics-score-primary,
    .gsc-statistics-score-to-par {
        padding: 15px 13px;
    }

    .gsc-statistics-score-value {
        font-size: 38px;
    }

    .gsc-statistics-result {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 9px 5px;
        text-align: center;
    }
}

/*
 * Compact Standard Statistics layout.
 *
 * These rules intentionally override the initial spacious scoring layout
 * while preserving the existing markup and component selectors.
 */

.gsc-statistics-section {
    padding-bottom: 2px;
}

.gsc-statistics-section-header {
    align-items: center;
    margin-bottom: 8px;
}

.gsc-statistics-section-header > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
}

.gsc-statistics-section-title {
    font-size: 17px;
    line-height: 1.15;
}

.gsc-statistics-section-context {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

.gsc-statistics-score-summary {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    border-radius: 11px;
}

.gsc-statistics-score-primary,
.gsc-statistics-score-to-par {
    min-height: 88px;
    padding: 11px 14px;
}

.gsc-statistics-score-primary {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "label label"
        "value basis";
    align-content: center;
    justify-content: initial;
    column-gap: 8px;
}

.gsc-statistics-score-primary .gsc-statistics-metric-label {
    grid-area: label;
}

.gsc-statistics-score-value {
    grid-area: value;
    margin-top: 2px;
    font-size: 35px;
}

.gsc-statistics-score-basis {
    grid-area: basis;
    align-self: end;
    margin: 0 0 3px;
    font-size: 11px;
    white-space: nowrap;
}

.gsc-statistics-score-to-par {
    min-height: 88px;
}

.gsc-statistics-metric-label {
    font-size: 12px;
}

.gsc-statistics-secondary-value {
    margin-top: 4px;
    font-size: 26px;
}

.gsc-statistics-subsection {
    margin-top: 11px;
}

.gsc-statistics-subsection-title {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.15;
}

.gsc-statistics-par-grid {
    gap: 6px;
}

.gsc-statistics-metric {
    min-height: 57px;
    padding: 7px 5px;
    border-radius: 9px;
}

.gsc-statistics-metric-value {
    margin-top: 3px;
    font-size: 21px;
}

.gsc-statistics-result-grid {
    border-radius: 9px;
}

.gsc-statistics-result {
    min-height: 39px;
    padding: 6px 9px;
}

.gsc-statistics-result-label {
    font-size: 12px;
}

.gsc-statistics-result-value {
    font-size: 18px;
}

@media (max-width: 420px) {
    .gsc-statistics-section-header > div {
        gap: 6px;
    }

    .gsc-statistics-section-title {
        font-size: 16px;
    }

    .gsc-statistics-section-context {
        font-size: 11px;
    }

    .gsc-statistics-score-primary,
    .gsc-statistics-score-to-par {
        min-height: 80px;
        padding: 9px 11px;
    }

    .gsc-statistics-score-value {
        font-size: 32px;
    }

    .gsc-statistics-secondary-value {
        font-size: 24px;
    }

    .gsc-statistics-result {
        min-height: 38px;
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        padding: 5px 7px;
        text-align: left;
    }

    .gsc-statistics-result-label {
        font-size: 11px;
    }

    .gsc-statistics-result-value {
        font-size: 17px;
    }
}

.gsc-statistics-driving-card {
    overflow: hidden;
    border: 1px solid #d7dde5;
    border-radius: 9px;
    background: #ffffff;
}

.gsc-statistics-driving-summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 12px;
}

.gsc-statistics-driving-label {
    display: block;
    color: #66717d;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.15;
}

.gsc-statistics-driving-fraction {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: 2px;
    color: #06285a;
    line-height: 1;
}

.gsc-statistics-driving-fraction strong {
    font-size: 21px;
    font-weight: 850;
}

.gsc-statistics-driving-fraction span {
    color: #66717d;
    font-size: 14px;
    font-weight: 750;
}

.gsc-statistics-driving-percentage {
    color: var(--gsc-green);
    font-size: 22px;
    font-weight: 850;
    line-height: 1;
}

.gsc-statistics-driving-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #e0e5eb;
}

.gsc-statistics-driving-detail {
    display: flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 7px;
    border-right: 1px solid #e0e5eb;
    text-align: center;
}

.gsc-statistics-driving-detail:last-child {
    border-right: 0;
}

.gsc-statistics-driving-detail span {
    min-width: 0;
    color: #66717d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
}

.gsc-statistics-driving-detail strong {
    flex: 0 0 auto;
    color: #06285a;
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
}

/*
 * Driving statistics compact layout.
 *
 * Row 1:
 * Fairways | hit / opportunities | percentage
 *
 * Row 2:
 * Left | Right | Short | Long
 */
.gsc-statistics-driving-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 16px;
}

.gsc-statistics-driving-summary > div {
    display: contents;
}

.gsc-statistics-driving-label {
    margin: 0;
}

.gsc-statistics-driving-fraction {
    margin: 0;
    white-space: nowrap;
}

.gsc-statistics-driving-percentage {
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

.gsc-statistics-driving-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.gsc-statistics-driving-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 6px;
    border-right: 1px solid var(
        --gsc-border-color,
        #d9dee5
    );
}

.gsc-statistics-driving-detail:last-child {
    border-right: 0;
}

.gsc-statistics-driving-detail span,
.gsc-statistics-driving-detail strong {
    display: inline;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .gsc-statistics-driving-summary {
        column-gap: 10px;
    }

    .gsc-statistics-driving-detail {
        gap: 3px;
        padding-right: 3px;
        padding-left: 3px;
    }
}

/*
 * Statistics modal refinement.
 *
 * - Use nearly the full available viewport height.
 * - Keep header and footer fixed.
 * - Scroll only the statistics content.
 * - Reduce excessive bold typography.
 */

/* Full-height modal */
.gsc-statistics-modal-overlay {
    align-items: stretch;
    padding: 10px;
}

.gsc-statistics-modal {
    width: min(100%, 430px);
    height: calc(100dvh - 20px);
    max-height: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.gsc-statistics-modal .gsc-settings-menu-header {
    flex: 0 0 auto;
}

.gsc-statistics-modal .gsc-settings-menu-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.gsc-statistics-tabs,
.gsc-statistics-range-filter {
    flex: 0 0 auto;
}

.gsc-statistics-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gsc-statistics-modal .gsc-settings-menu-footer {
    flex: 0 0 auto;
}

/* Section headings retain hierarchy without shouting */
.gsc-statistics-section-title,
.gsc-statistics-subsection-title {
    font-weight: 650;
}

/* Labels should normally be regular or medium weight */
.gsc-statistics-metric-label,
.gsc-statistics-result-label,
.gsc-statistics-driving-label,
.gsc-statistics-driving-detail span {
    font-weight: 450;
}

/* Primary score remains visually important */
.gsc-statistics-score-value {
    font-weight: 750;
}

/* Supporting values use moderate emphasis */
.gsc-statistics-secondary-value,
.gsc-statistics-metric-value,
.gsc-statistics-result-value,
.gsc-statistics-driving-fraction strong,
.gsc-statistics-driving-detail strong {
    font-weight: 600;
}

/* Fairway percentage is important, but not extra-heavy */
.gsc-statistics-driving-percentage {
    font-weight: 700;
}

/* Make the Driving rows cleaner and less cramped */
.gsc-statistics-driving-summary {
    min-height: 54px;
    padding: 10px 12px;
}

.gsc-statistics-driving-details {
    min-height: 38px;
}

.gsc-statistics-driving-detail {
    gap: 3px;
    padding: 8px 4px;
}

.gsc-statistics-driving-detail span {
    color: #66717d;
    font-size: 10px;
}

.gsc-statistics-driving-detail strong {
    color: #06285a;
    font-size: 14px;
}

/* Slightly more breathing room between major sections */
.gsc-statistics-subsection {
    margin-top: 10px;
}

@media (max-width: 480px) {
    .gsc-statistics-modal-overlay {
        padding: 6px;
    }

    .gsc-statistics-modal {
        width: 100%;
        height: calc(100dvh - 12px);
    }
}

/* Approach statistics */
.gsc-statistics-approach-card {
    overflow: hidden;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    background: #fff;
}

.gsc-statistics-approach-row {
    min-height: 54px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gsc-statistics-approach-row + .gsc-statistics-approach-row {
    border-top: 1px solid #e8ecef;
}

.gsc-statistics-approach-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.gsc-statistics-approach-label {
    color: #56616d;
    font-size: 11px;
    font-weight: 450;
    line-height: 1.2;
}

.gsc-statistics-approach-value,
.gsc-statistics-approach-percentage {
    color: var(--gsc-green);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.15;
}

.gsc-statistics-approach-percentage {
    flex: 0 0 auto;
    font-size: 17px;
}


/*
 * Approach row:
 * GIR | GIR Proximity | GIR Percentage
 */
.gsc-statistics-approach-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;
    align-items: center;
    column-gap: 16px;
}

.gsc-statistics-approach-row
.gsc-statistics-approach-metric:nth-child(2) {
    justify-self: start;
}

.gsc-statistics-approach-percentage {
    justify-self: end;
}

/* Putting statistics approved two-row layout. */
.gsc-statistics-putting-card {
    overflow: hidden;
    border: 1px solid #d7dde5;
    border-radius: 9px;
    background: #ffffff;
}

.gsc-statistics-putting-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gsc-statistics-putting-metric {
    display: grid;
    min-width: 0;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label value"
        "context context";
    align-content: center;
    column-gap: 6px;
    padding: 7px 9px;
    border-right: 1px solid #e0e5eb;
}

.gsc-statistics-putting-metric:last-child {
    border-right: 0;
}

.gsc-statistics-putting-label {
    grid-area: label;
    min-width: 0;
    align-self: center;
    color: #66717d;
    font-size: 11px;
    font-weight: 450;
    line-height: 1.15;
}

.gsc-statistics-putting-value {
    grid-area: value;
    align-self: center;
    color: #06285a;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.gsc-statistics-putting-context {
    grid-area: context;
    margin-top: 2px;
    color: #66717d;
    font-size: 10px;
    font-weight: 450;
    line-height: 1;
}

.gsc-statistics-putting-misses {
    border-top: 1px solid #e0e5eb;
}

.gsc-statistics-putting-misses-title {
    padding: 6px 9px 4px;
    color: #66717d;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.15;
}

.gsc-statistics-putting-misses-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gsc-statistics-putting-miss {
    display: flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px 8px;
    border-right: 1px solid #e0e5eb;
    text-align: center;
}

.gsc-statistics-putting-miss:last-child {
    border-right: 0;
}

.gsc-statistics-putting-miss-label {
    color: #66717d;
    font-size: 10px;
    font-weight: 450;
    line-height: 1;
}

.gsc-statistics-putting-miss-value {
    color: #06285a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .gsc-statistics-putting-metric {
        column-gap: 4px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .gsc-statistics-putting-label {
        font-size: 10px;
    }

    .gsc-statistics-putting-value {
        font-size: 16px;
    }
}



/* Miscellaneous statistics */

.gsc-statistics-misc-card {
    overflow: hidden;
    border: 1px solid #d7dde5;
    border-radius: 9px;
    background: #fff;
}

.gsc-statistics-misc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
}

.gsc-statistics-misc-label {
    color: #66717d;
    font-size: 13px;
    font-weight: 450;
}

.gsc-statistics-misc-value {
    color: #06285a;
    font-size: 18px;
    font-weight: 600;
}


/*
 * Standard Statistics visual hierarchy polish.
 *
 * This block coordinates typography and emphasis across the existing
 * Standard Statistics sections without changing their layout.
 */

/* Major section headings */
.gsc-statistics-section-title,
.gsc-statistics-driving
    .gsc-statistics-subsection-title,
.gsc-statistics-approach
    .gsc-statistics-subsection-title,
.gsc-statistics-short-game
    .gsc-statistics-subsection-title,
.gsc-statistics-putting
    .gsc-statistics-subsection-title,
.gsc-statistics-misc
    .gsc-statistics-subsection-title {
    color: #06285a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

/* Supporting headings within the Scoring section */
.gsc-statistics-scoring
    .gsc-statistics-subsection-title {
    color: #4f5a66;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}

/* Section context remains supporting information */
.gsc-statistics-section-context {
    color: #737d88;
    font-size: 11px;
    font-weight: 450;
    line-height: 1.2;
}

/* Shared descriptive-label treatment */
.gsc-statistics-metric-label,
.gsc-statistics-result-label,
.gsc-statistics-driving-label,
.gsc-statistics-driving-detail span,
.gsc-statistics-approach-label,
.gsc-statistics-putting-label,
.gsc-statistics-putting-misses-title,
.gsc-statistics-putting-miss-label,
.gsc-statistics-misc-label {
    color: #66717d;
    font-weight: 450;
}

/* Normal metric labels */
.gsc-statistics-metric-label,
.gsc-statistics-result-label,
.gsc-statistics-driving-label,
.gsc-statistics-approach-label,
.gsc-statistics-putting-label,
.gsc-statistics-misc-label {
    font-size: 12px;
    line-height: 1.2;
}

/* Hero value: Average Score */
.gsc-statistics-score-value {
    color: var(--gsc-green);
    font-size: 34px;
    font-weight: 700;
}

/* Average-to-par value */
.gsc-statistics-secondary-value {
    color: #06285a;
    font-size: 22px;
    font-weight: 650;
}

/* Standard Scoring metric values */
.gsc-statistics-metric-value {
    color: #06285a;
    font-size: 18px;
    font-weight: 650;
}

/* Hole-result and Short Game values */
.gsc-statistics-result-value {
    color: #06285a;
    font-size: 17px;
    font-weight: 600;
}

/* Driving */
.gsc-statistics-driving-fraction strong {
    color: #06285a;
    font-size: 18px;
    font-weight: 650;
}

.gsc-statistics-driving-fraction span {
    color: #66717d;
    font-size: 13px;
    font-weight: 450;
}

.gsc-statistics-driving-percentage {
    color: var(--gsc-green);
    font-size: 20px;
    font-weight: 650;
}

.gsc-statistics-driving-detail span {
    font-size: 11px;
    line-height: 1.15;
}

.gsc-statistics-driving-detail strong {
    color: #06285a;
    font-size: 14px;
    font-weight: 600;
}

/* Approach */
.gsc-statistics-approach-value {
    color: #06285a;
    font-size: 17px;
    font-weight: 600;
}

.gsc-statistics-approach-percentage {
    color: var(--gsc-green);
    font-size: 20px;
    font-weight: 650;
}

/* Putting */
.gsc-statistics-putting-value {
    color: #06285a;
    font-size: 17px;
    font-weight: 600;
}

.gsc-statistics-putting-context {
    color: #737d88;
    font-size: 10px;
    font-weight: 450;
}

.gsc-statistics-putting-misses-title {
    font-size: 11px;
}

.gsc-statistics-putting-miss-label {
    font-size: 11px;
}

.gsc-statistics-putting-miss-value {
    color: #06285a;
    font-size: 15px;
    font-weight: 600;
}

/* Miscellaneous */
.gsc-statistics-misc-value {
    color: #06285a;
    font-size: 17px;
    font-weight: 600;
}

/* Coordinate card and divider colors */
.gsc-statistics-score-summary,
.gsc-statistics-metric,
.gsc-statistics-result-grid,
.gsc-statistics-driving-card,
.gsc-statistics-approach-card,
.gsc-statistics-putting-card,
.gsc-statistics-misc-card {
    border-color: #d7dde5;
}

.gsc-statistics-result,
.gsc-statistics-driving-details,
.gsc-statistics-driving-detail,
.gsc-statistics-approach-row
    + .gsc-statistics-approach-row,
.gsc-statistics-putting-metric,
.gsc-statistics-putting-misses,
.gsc-statistics-putting-miss {
    border-color: #e0e5eb;
}

/*
 * TSM Statistics tab.
 */
.gsc-tsm-statistics {
    padding: 0 2px 12px;
}

.gsc-tsm-heading {
    margin-bottom: 15px;
    text-align: center;
}

.gsc-tsm-heading h2 {
    margin: 0;
    color: var(--gsc-green);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.2;
}

.gsc-tsm-heading p {
    margin: 4px 0 0;
    color: #536178;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
}

.gsc-tsm-section + .gsc-tsm-section {
    margin-top: 16px;
}

.gsc-tsm-section-title {
    margin: 0 0 7px;
    color: #06285a;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.gsc-tsm-scoring-grid,
.gsc-tsm-coaching-grid,
.gsc-tsm-panel {
    min-width: 0;
    border: 1px solid #d7dde5;
    border-radius: 13px;
    background: #ffffff;
}

.gsc-tsm-scoring-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.gsc-tsm-summary-card {
    display: flex;
    min-width: 0;
    min-height: 78px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    text-align: center;
}

.gsc-tsm-summary-card + .gsc-tsm-summary-card {
    border-left: 1px solid #e1e6ec;
}

.gsc-tsm-summary-card > span {
    color: #18365f;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.15;
}

.gsc-tsm-summary-card > strong {
    margin-top: 7px;
    color: var(--gsc-green);
    font-size: 23px;
    font-weight: 850;
    line-height: 1;
}

.gsc-tsm-coaching-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.gsc-tsm-coaching-card,
.gsc-tsm-single-card {
    min-width: 0;
    min-height: 112px;
    padding: 10px 6px;
    text-align: center;
}

.gsc-tsm-coaching-card:nth-child(n + 4),
.gsc-tsm-single-card:nth-child(n + 4) {
    border-top: 1px solid #e1e6ec;
}

.gsc-tsm-coaching-card:not(:nth-child(3n + 1)),
.gsc-tsm-single-card:not(:nth-child(3n + 1)) {
    border-left: 1px solid #e1e6ec;
}

.gsc-tsm-card-title,
.gsc-tsm-single-card h3 {
    min-height: 30px;
    margin: 0;
    color: #18365f;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.gsc-tsm-success-failure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.gsc-tsm-result-value {
    font-size: 17px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.gsc-tsm-result-value.is-success {
    color: #078b2b;
}

.gsc-tsm-result-value.is-failure {
    color: #d71920;
}

.gsc-tsm-rate {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 9px;
}

.gsc-tsm-rate strong {
    color: #06285a;
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
}

.gsc-tsm-rate span {
    color: #536178;
    font-size: 10px;
    font-weight: 650;
}

.gsc-tsm-single-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gsc-tsm-single-card strong {
    margin-top: 4px;
    color: var(--gsc-green);
    font-size: 25px;
    font-weight: 850;
    line-height: 1;
}

.gsc-tsm-single-card strong.is-failure {
    color: #d71920;
}

.gsc-tsm-single-card span {
    margin-top: 6px;
    color: #536178;
    font-size: 10px;
    font-weight: 650;
}

.gsc-tsm-panel {
    padding: 4px 12px;
}

.gsc-tsm-priority + .gsc-tsm-priority,
.gsc-tsm-key + .gsc-tsm-key {
    border-top: 1px solid #e2e7ed;
}

.gsc-tsm-priority,
.gsc-tsm-key {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}

.gsc-tsm-priority-label,
.gsc-tsm-key > strong {
    min-width: 0;
    color: #18365f;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.gsc-tsm-priority-value {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 4px;
    color: #536178;
    white-space: nowrap;
}

.gsc-tsm-priority-value strong {
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
}

.gsc-tsm-priority-value span {
    font-size: 11px;
    font-weight: 650;
}

.gsc-tsm-priority-value.is-success strong {
    color: #078b2b;
}

.gsc-tsm-priority-value.is-warning strong {
    color: #ef7812;
}

.gsc-tsm-priority-value.is-failure strong {
    color: #d71920;
}

.gsc-tsm-key-percentage {
    flex: 0 0 auto;
    color: #d71920;
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
}

.gsc-tsm-keys-note {
    margin: 7px 0 6px;
    color: #68758a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 390px) {
    .gsc-tsm-section-title {
        font-size: 16px;
    }

    .gsc-tsm-summary-card {
        min-height: 72px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .gsc-tsm-summary-card > span {
        font-size: 10px;
    }

    .gsc-tsm-summary-card > strong {
        font-size: 20px;
    }

    .gsc-tsm-coaching-card,
    .gsc-tsm-single-card {
        min-height: 106px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .gsc-tsm-card-title,
    .gsc-tsm-single-card h3 {
        font-size: 11px;
    }

    .gsc-tsm-result-value {
        font-size: 15px;
    }

    .gsc-tsm-success-failure {
        gap: 6px;
    }

    .gsc-tsm-priority-label,
    .gsc-tsm-key > strong {
        font-size: 13px;
    }
}


/* Single completed-round Statistics context */
.gsc-statistics-round-context {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin: 14px 0 8px;
    padding: 0 12px;
    text-align: center;
}

.gsc-statistics-round-context strong {
    color: #2e8b24;
    font-size: 17px;
    font-weight: 750;
}

.gsc-statistics-round-context span {
    color: #687384;
    font-size: 13px;
    font-weight: 650;
}
