/* GSC Wedge Tracking — Compact Interface */

.gsc-wedge-tracking {
    margin: 20px 0;
}

.gsc-wedge-heading h2 {
    margin: 0 0 5px;
    color: #17643e;
    font-size: 16px;
}

.gsc-wedge-heading p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
}

.gsc-wedge-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.gsc-wedge-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 12px 4px;
    border: 1px solid #d7e1db;
    border-radius: 9px;
    background: #fff;
    color: #253b31;
    font-weight: 600;
    cursor: pointer;
}

.gsc-wedge-tab.is-active {
    border-color: #258447;
    background: #eaf5ed;
    color: #17643e;
}

.gsc-wedge-panel {
    padding: 14px;
    border: 1px solid #dce5df;
    border-radius: 10px;
    background: #fff;
}

.gsc-wedge-panel-header,
.gsc-wedge-swing-row,
.gsc-wedge-column-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gsc-wedge-panel-header {
    margin-bottom: 16px;
}

.gsc-wedge-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.gsc-wedge-column-labels {
    padding-bottom: 8px;
    color: #64748b;
    font-size: 12px;
}

.gsc-wedge-swing-row {
    padding: 7px 0;
    font-size: 14px;
}

.gsc-wedge-yardage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsc-wedge-yardage input {
    box-sizing: border-box;
    width: 88px;
    padding: 8px;
    border: 1px solid #cbd5d1;
    border-radius: 7px;
    text-align: right;
    font-size: 15px;
}

.gsc-wedge-yardage > span {
    color: #64748b;
    font-size: 12px;
}

.gsc-wedge-stats-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5ebe7;
    color: #64748b;
    font-size: 12px;
}

/* Whole-number mobile distance fields */
.gsc-wedge-yardage input::-webkit-inner-spin-button,
.gsc-wedge-yardage input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gsc-wedge-yardage input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Align distance inputs regardless of unit label */
.gsc-wedge-yardage > span {
    display: inline-block;
    width: 20px;
    flex: 0 0 20px;
    text-align: left;
}
/* GPS statistics beneath each swing distance */
.gsc-wedge-swing-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: -2px 0 7px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf1ee;
    color: #64748b;
    font-size: 11px;
}

.gsc-wedge-swing-stats > span:last-child {
    text-align: right;
    white-space: nowrap;
}

/* Four-column compact wedge statistics */
.gsc-wedge-grid {
    display: grid;
    grid-template-columns: minmax(35px, 0.8fr) minmax(94px, 1.5fr) minmax(65px, 1.1fr) minmax(35px, 0.6fr);
    align-items: center;
    column-gap: 6px;
}

.gsc-wedge-grid-header {
    padding: 8px 0;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.gsc-wedge-grid-header span:first-child {
    text-align: left;
}

.gsc-wedge-grid-row {
    min-height: 48px;
    border-bottom: 1px solid #edf1ee;
    font-size: 13px;
}

.gsc-wedge-grid-row:last-child {
    border-bottom: none;
}

.gsc-wedge-grid-distance {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.gsc-wedge-grid-distance input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 5px 6px;
    border: 1px solid #cbd5d1;
    border-radius: 6px;
    background: #fff;
    text-align: right;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.gsc-wedge-unit {
    flex: 0 0 15px;
    width: 15px;
    color: #64748b;
    font-size: 10px;
}

.gsc-wedge-grid-average,
.gsc-wedge-grid-count {
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.gsc-wedge-grid-average {
    font-size: 12px;
}

.gsc-wedge-grid-count {
    font-weight: 500;
}
