:root {
    /* Brand */
    --green-dark:    #1a5c2a;
    --green-mid:     #2e7d40;
    --green-light:   #4caf50;
    --green-bg:      #e8f4ea;

    /* Status */
    --red:           #c0392b;
    --red-bg:        #f8d7da;
    --orange:        #e67e22;
    --yellow:        #f0c040;

    /* Surface */
    --bg:            #f5f5f5;
    --card-bg:       #ffffff;
    --border:        #e5e7eb;
    --border-dark:   #d1d5db;

    /* Text */
    --text:          #222222;
    --text-muted:    #666666;
    --text-faint:    #999999;

    /* Radius scale — use these three values only */
    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     12px;

    /* Touch target minimum */
    --touch-min:     44px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #222;
}

nav {
    background: #1a5c2a;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-brand {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}
.nav-brand-better {
    color: #a8d5b5;
    font-style: italic;
}

/* nav-bar-right: bell + hamburger in top-right of nav */
.nav-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Floating drawer overlay */
.nav-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1000;
}
.nav-drawer-overlay.open { display: block; }

/* Floating right-side drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 16px rgba(0,0,0,0.18);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.22s ease;
    display: flex;
    flex-direction: column;
}
.nav-drawer.open { right: 0; }

.nav-drawer-header {
    background: var(--green-dark, #2d6a4f);
    color: white;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-drawer-league {
    font-weight: 700;
    font-size: 0.95rem;
}
.nav-drawer-season {
    font-size: 0.8rem;
    opacity: 0.8;
}
.nav-drawer-season-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.8;
    margin-top: 2px;
}
.nav-drawer-season-select {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 2px 6px;
    width: 100%;
    margin-top: 2px;
}

/* Group toggle buttons */
.nav-drawer-group-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    background: #f7f7f7;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-drawer-group-btn--admin { color: #b45309; }
.nav-drawer-group-btn:hover { background: #efefef; }
.nav-drawer-chevron {
    font-size: 1rem;
    transition: transform 0.18s;
    color: #aaa;
}
.nav-drawer-group-btn.open .nav-drawer-chevron { transform: rotate(90deg); }

/* Group child items — hidden by default */
.nav-drawer-group-items {
    display: none;
    flex-direction: column;
    border-bottom: 1px solid #eee;
}
.nav-drawer-group-items.open { display: flex; }

/* Subgroup toggle buttons — nested one level deeper than a group */
.nav-drawer-subgroup-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px 9px 28px;
    background: #fbfbfb;
    border: none;
    border-bottom: 1px solid #f4f4f4;
    font-size: 0.76rem;
    font-weight: 600;
    color: #666;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.nav-drawer-subgroup-btn:hover { background: #f0f0f0; }
.nav-drawer-subgroup-btn .nav-drawer-chevron { font-size: 0.9rem; }
.nav-drawer-subgroup-btn.open .nav-drawer-chevron { transform: rotate(90deg); }

/* Subgroup child items — hidden by default, indented past the subgroup label */
.nav-drawer-subgroup-items {
    display: none;
    flex-direction: column;
    border-bottom: 1px solid #f4f4f4;
}
.nav-drawer-subgroup-items.open { display: flex; }
.nav-drawer-item--sub { padding-left: 40px; }

.nav-drawer-item {
    display: block;
    padding: 10px 16px 10px 28px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f4f4f4;
}
.nav-drawer-item:last-child { border-bottom: none; }
.nav-drawer-item:hover { background: #f0f7f3; color: var(--green-dark, #2d6a4f); }
.nav-drawer-item--logout { color: #c0392b; }
.nav-drawer-item--logout:hover { background: #fdf3f2; color: #c0392b; }

main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    main { padding: 0 8px; margin-top: 16px; }
}

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.page-header p {
    color: #666;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #444;
}

.league-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.league-name {
    font-weight: 600;
    font-size: 1rem;
}

.league-date {
    color: #888;
    font-size: 0.875rem;
}

.empty-state {
    background: white;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    color: #888;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }
.alert-info    { background: #d1ecf1; color: #0c5460; }

/* ── Toast notifications ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}
.toast--hide {
    opacity: 0;
    transform: translateY(8px);
}
.toast--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.toast--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.toast--warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.toast--info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.toast-msg { flex: 1; }
.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.6;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }

/* --- Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.data-table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f5fbf7; }
.data-table--muted { opacity: 0.7; }

.player-name { font-weight: 500; }
.muted { color: #888; }
.table-actions { text-align: right; width: 1%; white-space: nowrap; }

.btn-link {
    background: none;
    border: none;
    color: #1a5c2a;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}

.btn-link--danger { color: #c0392b; }
.btn-link:hover { opacity: 0.75; }

/* --- Misc --- */
.subheading { color: #666; font-size: 0.95rem; margin-top: 4px; }
.optional    { color: #999; font-weight: 400; font-size: 0.85em; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.back-link {
    margin-top: 24px;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover { color: #222; }

.inactive-section {
    margin-bottom: 24px;
    color: #666;
}

/* --- Schedule --- */
.week-block {
    margin-bottom: 24px;
}

.week-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.week-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.week-date {
    font-size: 0.85rem;
    color: #999;
}

.matchup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 6px;
}

.matchup-row--done {
    opacity: 0.6;
}

.matchup-teams {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-display {
    display: flex;
    flex-direction: column;
}

.matchup-vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
}

.bye-label {
    color: #e67e22;
}

.matchup-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matchup-notes {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.info-box {
    background: #f0f7ff;
    border: 1px solid #c8e0f7;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #2c5282;
}

.team-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-preview-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.team-preview-list li:last-child { border-bottom: none; }

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Schedule --- */
.week-block {
    margin-bottom: 28px;
}

.week-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
}

.week-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.week-date {
    font-size: 0.85rem;
    color: #888;
}

.matchup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 6px;
    gap: 16px;
}

.matchup-row--done {
    opacity: 0.6;
}

.matchup-teams {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.team-display {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.matchup-vs {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.bye-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.matchup-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.matchup-notes {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge--scheduled  { background: #e8f4ea; color: #1a5c2a; }
.status-badge--in_progress { background: #fff3cd; color: #856404; }
.status-badge--completed   { background: #e9ecef; color: #555; }
.status-badge--not_entered { background: #f0f0f0; color: #666; }

/* --- Standings --- */
.standings-table .rank-col  { width: 36px; text-align: center; color: #888; }
.standings-table .stat-col  { width: 52px; text-align: center; }
.standings-table .form-col  { width: 90px; }
.standings-table .pts-col   { color: #1a5c2a; }

.standings-row--leader td   { background: #f0faf2; }

/* Badge use: <span class="rank-leader">1</span> */
span.rank-leader {
    display: inline-block;
    background: #1a5c2a;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
}
/* Row highlight use: <tr class="rank-leader"> */
tr.rank-leader td {
    background: #f0f7f1;
    font-weight: 600;
    color: inherit;
}

.form-pill {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 2px;
}

.form-pill--W { background: #d4edda; color: #155724; }
.form-pill--L { background: #f8d7da; color: #721c24; }
.form-pill--T { background: #e2e3e5; color: #383d41; }

.bye-count     { font-size: 0.75rem; color: #aaa; }
.standings-note { font-size: 0.8rem; color: #aaa; margin-top: 12px; }

/* --- Score tables --- */
.card-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

/* ── Compact course/tee bar (score entry pages) ─────────────────────────── */
.ew-course-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 8px;
    margin-bottom: 16px;
}
.ew-course-bar__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #888);
    white-space: nowrap;
    margin-right: 2px;
}
.ew-course-bar__select {
    padding: 5px 10px;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    background: var(--bg, #fff);
    font-size: 0.88rem;
    color: var(--text, #222);
    cursor: pointer;
}
@media (max-width: 640px) {
    .ew-course-bar { gap: 6px; padding: 6px 8px; flex-wrap: nowrap; }
    .ew-course-bar__label { display: none; }
    #ew-course { flex: 1; min-width: 0; font-size: 0.82rem; padding: 5px 6px; }
    #ew-tee    { flex: 0 0 auto; font-size: 0.82rem; padding: 5px 6px; width: auto; }
}

.card-section h2 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #444;
}

.score-table-wrap {
    overflow-x: auto;
}

.score-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.875rem;
    white-space: nowrap;
}

.score-table th, .score-table td {
    padding: 7px 10px;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.score-table thead th {
    background: #f9f9f9;
    font-weight: 600;
    font-size: 0.78rem;
    color: #555;
}

.team-header { background: #e8f4ea !important; color: #1a5c2a !important; }
.team-header--2 { background: #e8eef4 !important; color: #1a3c5c !important; }

.hole-col   { width: 36px; }
.hole-num   { font-weight: 600; color: #555; }
.par-cell   { color: #888; }
.hcp-cell   { color: #bbb; font-size: 0.78rem; }
.hcp-label  { font-size: 0.72rem; color: #aaa; font-weight: 400; }

.score-input {
    width: 52px;
    padding: 5px 4px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.score-input:focus {
    outline: none;
    border-color: #1a5c2a;
    background: #f0faf2;
}

.gross-cell { color: #333; }
.net-cell   { color: #1a5c2a; font-weight: 500; }
.score-sub-col { font-size: 0.72rem; color: #888; }
.total-row td { background: #f9f9f9; font-size: 0.9rem; }
.total-label  { text-align: right; font-weight: 600; color: #555; }
.total-cell   { font-weight: 700; }

.btn-lg { padding: 12px 28px; font-size: 1rem; }

.role-pill {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
}

/* --- Info box --- */
.info-box {
    background: #e8f4ea;
    border: 1px solid #c3e0c8;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #1a5c2a;
    line-height: 1.5;
}

/* --- Team preview list (generate page) --- */
.team-preview-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.team-preview-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* --- header-actions (multiple buttons in page-header) --- */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Danger button --- */
.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover { background: #a93226; }

/* --- Team display --- */
.team-names {
    font-weight: 600;
    font-size: 0.95rem;
}

.team-nickname {
    display: block;
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 400;
    margin-top: 1px;
}

.card-list { margin-bottom: 24px; }

.list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #222;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.list-card:hover {
    border-color: #1a5c2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.list-card__main { display: flex; flex-direction: column; gap: 4px; }
.list-card__title { font-weight: 600; }
.list-card__meta  { font-size: 0.85rem; color: #888; }
.list-card__arrow { color: #aaa; font-size: 1.1rem; }

.inactive-section summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    user-select: none;
}

/* --- Nav --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
}
.nav-link:hover { opacity: 1; }

/* Pending week note in Recent Results */
.activity-pending-note {
    font-size: 0.78rem;
    color: #888;
    font-style: italic;
    padding: 6px 1rem 2px;
}

/* ── Dues Shame Widget ── */
.dues-shame-widget {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 1rem;
}
.dues-shame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dues-shame-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.dues-shame-tally {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.dues-shame-unpaid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.dues-shame-name {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}
.dues-shame-name--paid {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.dues-shame-name--unpaid {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.dues-shame-link {
    font-size: 0.78rem;
    color: var(--color-primary, #4a7c59);
    text-decoration: none;
    font-weight: 500;
}
.dues-shame-link:hover { text-decoration: underline; }

/* ── Dues admin toggle ── */
.dues-toggle-label {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    align-items: start;
}
.dues-toggle-label input[type="checkbox"] {
    margin-top: 3px;
    grid-row: 1;
    grid-column: 1;
}
.dues-toggle-label .dues-toggle-text {
    grid-row: 1;
    grid-column: 2;
}
.dues-toggle-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    grid-row: 2;
    grid-column: 2;
}

/* ── Dues batch bar ── */
.dues-batch-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--color-primary-light, #e8f5e9);
    border-bottom: 1px solid var(--border-color);
}
.dues-batch-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary, #4a7c59);
    white-space: nowrap;
    margin-right: 4px;
}
.dues-batch-input {
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.82rem;
    background: var(--bg-card, #fff);
    color: var(--text-primary);
}
.dues-batch-input[type="number"] { width: 90px; }
.dues-batch-input[type="date"]   { width: 130px; }
.dues-check-col { width: 36px; text-align: center; }

/* --- Forms --- */
.form-page {
    max-width: 480px;
}

.form-page--centered {
    margin: 0 auto;
}

.form-page h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 24px;
}

.home-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a5c2a;
    margin: 0 0 8px;
}

.home-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.home-cta-row .btn {
    flex: 1 1 220px;
    text-align: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
}

.card-form {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}

.field-hint {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.form-group select:focus {
    outline: none;
    border-color: #1a5c2a;
    box-shadow: 0 0 0 2px rgba(26,92,42,0.15);
}

.form-group input:focus {
    outline: none;
    border-color: #1a5c2a;
    box-shadow: 0 0 0 2px rgba(26,92,42,0.15);
}

.form-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.form-footer {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #666;
}

.form-footer a {
    color: #1a5c2a;
    text-decoration: none;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #1a5c2a;
    color: white;
}

.btn-primary:hover { background: #154d23; }

.btn-secondary {
    background: #eee;
    color: #333;
}

.btn-secondary:hover { background: #e0e0e0; }

/* --- Dashboard --- */
.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge--league_admin {
    background: #fff3cd;
    color: #856404;
}

.role-badge--member {
    background: #d1ecf1;
    color: #0c5460;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.dash-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.dash-card:hover {
    border-color: #1a5c2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dash-card__icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dash-card__label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Schedule filter bar ─────────────────────────────────────────────────── */
.schedule-filter-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-group select {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 200px;
    background: white;
}

.schedule-filter-selects { display: flex; gap: 16px; flex-wrap: wrap; }
.schedule-filter-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Schedule week header ────────────────────────────────────────────────── */
.schedule-week-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tee-sheet-btn {
    margin-left: auto;
    font-size: 13px;
}

.week-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a5c2a;
}

.week-date {
    color: #666;
    font-size: 0.95rem;
}

/* ── Week type badge ─────────────────────────────────────────────────────── */
.week-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.week-type-badge--fun-night  { background: #fff8e1; color: #f57f17; border-color: #ffe082; }
.week-type-badge--playoffs   { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.week-type-badge--bye-week   { background: #f3e5f5; color: #6a1b9a; border-color: #ce93d8; }
.week-type-badge--rain-out   { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.week-type-badge--makeup     { background: #fff3e0; color: #e65100; border-color: #ffcc80; }
.makeup-ref-chip { font-size: 0.75rem; color: #e65100; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 8px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }

/* ── Schedule detail table ───────────────────────────────────────────────── */
.table-scroll {
    overflow-x: auto;
    margin-bottom: 24px;
}

.schedule-detail-table th,
.schedule-detail-table td {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 0.875rem;
}

.schedule-detail-table .team-col  { min-width: 110px; }
.schedule-detail-table .hdcp-col  { min-width: 55px; }
.schedule-detail-table .vs-col    { min-width: 36px; color: #aaa; font-size: 0.8rem; }

.schedule-detail-table .team-num  { font-weight: 700; color: #1a5c2a; }
.sch-team-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1.5px solid #1a5c2a;
    color: #1a5c2a;
    background: #fff;
    letter-spacing: 0.02em;
}
.schedule-detail-table .hdcp-val  { color: #555; }
.player-hcp-link { color: inherit; text-decoration: none; }
.player-hcp-link:hover { text-decoration: underline; color: var(--brand-green, #2e7d32); }
.schedule-detail-table .center    { text-align: center; }
.schedule-detail-table .muted     { color: #aaa; }
.schedule-detail-table .row-completed td { color: #999; background: #fafafa; }

@media (max-width: 768px) {
    .schedule-detail-table th,
    .schedule-detail-table td { padding: 6px 7px; font-size: 0.78rem; }
    .schedule-detail-table .team-col { min-width: 70px; }
    .schedule-detail-table .hdcp-col { min-width: 36px; }
    .sch-hide-mobile { display: none; }
}

/* ── Yearly overview table ───────────────────────────────────────────────── */
.schedule-yearly-table th,
.schedule-yearly-table td {
    padding: 9px 14px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.schedule-yearly-table .matchup-cell {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── form-row (two cols side by side) ───────────────────────────────────── */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 180px;
}

/* ── Admin panel ─────────────────────────────────────────────────────────── */
.admin-breadcrumb {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a5c2a;
    margin-bottom: 6px;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.admin-action-btn {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.admin-action-btn:hover {
    border-color: #1a5c2a;
    background: #f0f7f1;
    color: #1a5c2a;
}

.admin-action-btn--primary {
    background: #1a5c2a;
    color: #fff;
    border-color: #1a5c2a;
    font-weight: 600;
}
.admin-action-btn--primary:hover {
    background: #145023;
    color: #fff;
    border-color: #145023;
}

.admin-more-tools {
    position: relative;
}
.admin-more-tools__toggle {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.admin-more-tools__toggle::-webkit-details-marker { display: none; }
.admin-more-tools__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
@media (max-width: 640px) {
    .admin-more-tools {
        width: 100%;
    }
    .admin-more-tools__toggle {
        width: 100%;
        text-align: center;
    }
    .admin-more-tools__panel {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 6px;
        margin-top: 6px;
        box-sizing: border-box;
    }
}
/* close panel when focus leaves */
.admin-more-tools[open] .admin-more-tools__toggle { border-color: #1a5c2a; color: #1a5c2a; }

/* ── Admin widget (schedule management panel) ───────────────────────────── */
.admin-widget {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 28px;
    overflow: clip; /* clip (not hidden) so position:sticky works inside .table-scroll */
}

.admin-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    background: #f8faf8;
}

.admin-widget__header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a5c2a;
    flex-shrink: 0;
}

.admin-widget__header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-widget .table-scroll { padding: 0; }
.admin-widget .data-table   { margin-bottom: 0; border: none; border-radius: 0; }

/* ── Admin schedule table extras ────────────────────────────────────────── */
.schedule-admin-table .matchup-done { color: #888; }
.schedule-admin-table .font-bold    { font-weight: 700; }

/* ── Score Entry Widget ──────────────────────────────────────────────────── */
.score-entry-body {
    padding: 20px;
}

.score-entry-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a5c2a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 16px 22px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.15s;
}
.score-entry-cta:hover { background: #145023; color: #fff; }
.score-entry-cta__icon { font-size: 1.4rem; }
.score-entry-cta__text { flex: 1; }
.score-entry-cta__arrow { font-size: 1.2rem; opacity: 0.75; }

/* Week tracker */
.score-week-tracker__legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    align-items: center;
}

.swt-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.swt-pill--complete    { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.swt-pill--in-progress { background: #fff8e1; color: #f57f17; border-color: #ffe082; }
.swt-pill--not-entered { background: #f5f5f5; color: #757575; border-color: #e0e0e0; }
.swt-pill--rain-out    { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }

.swt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.swt-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 7px;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: box-shadow 0.12s, border-color 0.12s;
    min-width: 0;
}
.swt-week:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.10); }

.swt-week--complete    { background: #f1faf2; border-color: #c8e6c9; }
.swt-week--in-progress { background: #fffde7; border-color: #ffe082; }
.swt-week--not-entered { background: #fafafa; border-color: #e0e0e0; }
.swt-week--rain-out    { background: #e8f4fd; border-color: #90caf9; }

.swt-week__num    { font-weight: 700; font-size: 0.82rem; color: #333; }
.swt-week__date   { font-size: 0.75rem; color: #888; }
.swt-week__status { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }
.swt-week--complete    .swt-week__status { color: #2e7d32; }
.swt-week--in-progress .swt-week__status { color: #f57f17; }
.swt-week--not-entered .swt-week__status { color: #9e9e9e; }
.swt-week--rain-out    .swt-week__status { color: #1565c0; }

.swt-week__action { font-size: 0.72rem; color: #1a5c2a; margin-top: 4px; font-weight: 600; }
.swt-week--complete .swt-week__action { color: #2e7d32; }
.swt-week--rain-out .swt-week__action { display: none; }

/* ── Public season schedule table (admin-widget card, no admin actions) ── */
.schedule-season-table .matchup-done { color: #aaa; }
.admin-widget .schedule-season-table { margin-bottom: 0; border: none; border-radius: 0; }

.cell-link {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
}
.cell-link:hover               { color: #1a5c2a; text-decoration: underline; }
.cell-link--primary            { color: #1a5c2a; }
.cell-link--primary:hover      { text-decoration: underline; }
.cell-link--danger             { color: #c0392b; }
.cell-link--danger:hover       { text-decoration: underline; }

/* ── Inline schedule generation form ────────────────────────────────────── */
.inline-generate-form {
    padding: 20px;
}

.form-group--action {
    display: flex;
    flex-direction: column;
}

.form-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
    padding: 0 0 4px 0;
}

/* ── Season switcher ─────────────────────────────────────────────────────── */
.season-switcher {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.875rem;
    background: white;
}

/* ── Score unlock page ───────────────────────────────────────────────────── */
.unlock-warning-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.unlock-warning-box__icon { font-size: 1.5rem; line-height: 1; }
.unlock-warning-box p     { margin-top: 6px; font-size: 0.9rem; color: #555; }

.unlock-summary {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}
.unlock-player-list {
    margin: 4px 0 0 20px;
}

/* ── Admin dash card variant ─────────────────────────────────────────────── */
.dash-card--admin {
    border-color: #c8e6c9;
    background: #f0f7f1;
}
.dash-card--admin:hover {
    border-color: #1a5c2a;
    background: #e8f5e9;
}

.dash-card--cta {
    border-color: #1a5c2a;
    background: #1a5c2a;
    color: white;
}
.dash-card--cta:hover {
    background: #164d24;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dash-card--cta .dash-card__label { color: white; }

/* ── Start Another Season banner / continue-setup link (admin panel) ────── */
.start-next-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #1a5c2a;
    color: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 600;
}
.start-next-banner .btn-primary {
    background: white;
    color: #1a5c2a;
}
.continue-setup-link {
    margin: 0 0 20px;
    font-size: 0.9rem;
}

/* ── Checkbox form group ─────────────────────────────────────────────────── */
.form-group--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: normal;
}
.form-group--checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ── Btn sizes ───────────────────────────────────────────────────────────── */
.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* ── Standings sub-nav ───────────────────────────────────────────────────── */
.standings-subnav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.subnav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.subnav-link:hover      { color: #1a5c2a; }
.subnav-link--active    { color: #1a5c2a; border-bottom-color: #1a5c2a; font-weight: 700; }

/* ── Standings summary table ─────────────────────────────────────────────── */
.standings-summary-table .rank-pos  { font-size: 1.1rem; font-weight: 700; color: #1a5c2a; }
.standings-summary-table .pts-total { font-size: 1.1rem; font-weight: 700; }

/* ── Scorecard summary table ─────────────────────────────────────────────── */
.scorecard-summary-table th,
.scorecard-summary-table td  { white-space: nowrap; font-size: 0.875rem; padding: 8px 12px; }
.scorecard-summary-table .pts-total { font-weight: 700; color: #1a5c2a; }
.scorecard-summary-table .rank-pos  { font-weight: 700; color: #555; }

/* Round columns: stacked score + pts */
.sc-rnd-header  { min-width: 58px; font-size: 0.8rem; }
.sc-rnd-cell    { padding: 4px 8px !important; vertical-align: middle; }
.sc-rnd-score   { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.2; }
.sc-rnd-pts     { display: block; font-size: 0.72rem; color: #888; line-height: 1.2; }

/* Pts summary columns (Indiv / Segment / Season) */
.sc-pts-header  { min-width: 68px; font-size: 0.8rem; line-height: 1.3; }
.sc-pts-subhead { font-size: 0.7rem; font-weight: 400; color: #aaa; }
.sc-pts-cell    { font-size: 1rem; font-weight: 600; }
.sc-pts-indiv   { background: #fafbff; }
.sc-pts-segment { background: #fffdf5; }
.sc-pts-season  { background: #f0f7f1; color: #1a5c2a; }

/* Segment info badge (shown above table when segment is configured) */
.sc-segment-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px 0;
    padding: 8px 14px;
    background: #fffdf0;
    border: 1px solid #e8d97a;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #6b5a00;
}
.sc-segment-icon { font-size: 1rem; }

/* ── Weekly scorecard ────────────────────────────────────────────────────── */
.weekly-group-block {
    margin-bottom: 32px;
}
.weekly-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 10px;
    border-bottom: 2px solid #1a5c2a;
    margin-bottom: 0;
}
.weekly-group-num  { font-weight: 700; font-size: 1rem; color: #1a5c2a; }
.weekly-group-meta { font-size: 0.85rem; color: #666; }

.weekly-header-block { margin-bottom: 20px; }

.weekly-card-table { margin-bottom: 0; }
.weekly-card-table th,
.weekly-card-table td { padding: 6px 8px; font-size: 0.82rem; white-space: nowrap; }

.weekly-row-header th  { background: #2a7a3a; color: white; font-weight: 700; text-align: center; }
.weekly-row-header th.col-player-name { text-align: left; }
.weekly-row-par td,
.weekly-row-hcp td     { background: #f8faf8; color: #555; }
.weekly-row-invisible-header th { padding: 0; border: none; height: 0; }

.col-player-name { min-width: 150px; }
.col-score       { min-width: 30px; text-align: center; }
.col-in          { min-width: 38px; text-align: center; font-weight: 700; border-left: 2px solid #ddd; }
.col-hcp         { min-width: 38px; text-align: center; }
.col-net         { min-width: 38px; text-align: center; }
.col-indv        { min-width: 55px; text-align: center; border-left: 1px solid #ddd; }
.col-team        { min-width: 55px; text-align: center; }
.col-pts         { min-width: 45px; text-align: center; font-weight: 700; color: #1a5c2a; }

.weekly-player-name { font-weight: 600; }
.weekly-score-row td { background: white; }
.weekly-pts-row  td  { background: #f8f8f8; font-size: 0.78rem; }
.pts-row-label       { color: #aaa; font-style: italic; }

.pts-win  { color: #1a5c2a; font-weight: 700; }
.pts-half { color: #888; }
.pts-loss { color: #bbb; }

.weekly-vs-row td { background: #f0f0f0; color: #999; padding: 4px; font-size: 0.8rem; border-top: 1px dashed #ccc; border-bottom: 1px dashed #ccc; }

.weekly-team-body + .weekly-team-body .weekly-score-row:first-child td { border-top: 2px solid #ddd; }

/* ── Week nav buttons ────────────────────────────────────────────────────── */
.week-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.week-nav-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.875rem;
    color: #333;
    background: white;
}
.week-nav-btn:hover           { border-color: #1a5c2a; color: #1a5c2a; }
.week-nav-btn--disabled       { color: #ccc; border-color: #eee; cursor: default; pointer-events: none; }
.week-nav-label               { font-weight: 700; color: #1a5c2a; }

/* ── Role pill ───────────────────────────────────────────────────────────── */
.role-pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    margin-left: 4px;
}

/* ── Global utility ──────────────────────────────────────────────────────── */
.center { text-align: center; }
.muted  { color: #aaa; }
.font-bold { font-weight: 700; }

/* ── Standings summary table — width fix ────────────────────────────────── */
.standings-summary-table {
    table-layout: auto;
    width: 100%;
}
.standings-summary-table th:nth-child(1),
.standings-summary-table td:nth-child(1) { width: 52px; text-align: center; }
.standings-summary-table th:last-child,
.standings-summary-table td:last-child { width: 130px; text-align: center; }

/* ════════════════════════════════════════════════════════════════
   SCORECARD TABLE  (enter.html + view.html — holes-across layout)
   ════════════════════════════════════════════════════════════════ */

.scorecard-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}

.scorecard-table {
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
    width: 100%;
}

.scorecard-table th,
.scorecard-table td {
    border: 1px solid #ddd;
    padding: 4px 5px;
    text-align: center;
    vertical-align: middle;
}

/* Column widths */
.sc-col-name  { text-align: left !important; min-width: 170px; white-space: nowrap; }
.sc-col-hole  { width: 42px; min-width: 38px; }
.sc-col-in,
.sc-col-hcp,
.sc-col-net,
.sc-col-pts   { width: 50px; min-width: 46px; }

/* Header rows */
.sc-row-holes th {
    background: #e8f4ea;
    font-weight: 700;
    font-size: 12px;
}
.sc-row-par td,
.sc-row-hcpidx td {
    background: #f9f9f9;
    font-size: 11px;
    color: #888;
    border-top: none;
}
.sc-label-cell { font-weight: 600; color: #666; }

/* Team header rows */
.sc-team-header td {
    background: #f0f4f0;
    font-weight: 700;
    text-align: left !important;
    padding: 6px 10px;
    font-size: 13px;
    border-top: 2px solid #ccc;
}
.sc-team-header--1 td { background: #e8f4ea; }
.sc-team-header--2 td { background: #e8eef4; }
.sc-team-header td a { color: inherit; text-decoration: none; }
.sc-team-header td a:hover { text-decoration: underline; }

/* Player rows */
.sc-player-row:hover td { background: #fafffe; }

/* VS separator */
.sc-vs-row td {
    background: #f5f5f5;
    font-style: italic;
    color: #aaa;
    font-size: 12px;
    padding: 4px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Summary cells (In / Hdcp / Net / Pts) */
.sc-summary-cell { border-left: 2px solid #ccc; }

/* Editable playing-handicap override input (Hdcp column, score entry) */
.hcp-override-input {
    width: 36px;
    padding: 2px 1px;
    text-align: center;
    font-size: 12px;
    color: #666;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
}
.hcp-override-input:hover { border-color: #ccc; }
.hcp-override-input:focus {
    border-color: #4a7c4e;
    background: #fff;
    color: #222;
    outline: none;
}

/* ── Score input cells ─────────────────────── */
.sc-score-cell { padding: 2px 2px; position: relative; }

/* Handicap stroke indicator dot (top-right corner of score cell) */
.stroke-dot {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 8px;
    color: #1a5c2a;
    line-height: 1;
    pointer-events: none;
    letter-spacing: -1px;
    z-index: 1;
}
/* Stroke dots shown inside cell-wrap (view scorecard) */
.sc-stroke-dots {
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 7px;
    color: #2563eb;
    letter-spacing: -1px;
    line-height: 1;
    pointer-events: none;
}
.sc-stroke-hole { }

.sc-cell-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding-top: 7px;
}

.score-input {
    width: 34px;
    height: 22px;
    text-align: center;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 2px;
    background: #fff;
    color: #222;
    -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { outline: 2px solid #1a5c2a; border-color: #1a5c2a; }

/* ── Per-hole pt indicator (entry + view) ─── */
.sc-pt-indicator {
    font-size: 11px;
    font-weight: 700;
    min-height: 13px;
    min-width: 18px;
    line-height: 13px;
    border-radius: 2px;
    text-align: center;
}

/* ── View scorecard: gross score value ─────── */
.sc-gross-val {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* ── Ghost (absent, no-sub) rows: hole scores are synthesized, not played ── */
.sc-player-row--ghost .sc-gross-val,
.sc-player-row--ghost .sc-net-val,
.sc-player-row--ghost .sc-col-out,
.sc-player-row--ghost .sc-col-in,
.sc-player-row--ghost .sc-col-tot {
    font-style: italic;
}

/* ── Points colour classes (shared everywhere) ── */
.pts-win  { color: #1a5c2a; background: #d4edda; padding: 0 3px; border-radius: 2px; }
.pts-half { color: #888; }
.pts-loss { color: #ccc; }

/* ── Entry section extra spacing ── */
.sc-entry-section { padding: 0; overflow: hidden; }

/* ════════════════════════════════════════════════════════════════
   WEEKLY SCORECARD  — stacked score + pts in each hole cell
   ════════════════════════════════════════════════════════════════ */

/* Updated column set (removed indv/team split, just use pts) */
.col-hcp  { width: 44px; min-width: 40px; text-align: center; }

.weekly-score-cell { padding: 3px 2px; }

.weekly-cell-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.weekly-score-val {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.weekly-pt-val {
    font-size: 10px;
    font-weight: 700;
    min-height: 13px;
    min-width: 18px;
    line-height: 13px;
    border-radius: 2px;
    text-align: center;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   TEAM FLAG — small numbered chip left of player name
   ═══════════════════════════════════════════════════════ */
.team-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #1a5c2a;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    margin-right: 5px;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   WEEKLY SCORECARD ADDITIONS
   ═══════════════════════════════════════════════════════ */

/* Tee row in header */
.weekly-row-tee td {
    background: #f5f9f5;
    font-size: 11px;
    color: #666;
    border-top: none;
}

/* Tee colour dot */
.tee-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Label cells in header rows */
.weekly-label-cell {
    font-weight: 600;
    color: #666;
    text-align: left !important;
    font-size: 12px;
}

/* Match divider between A pair and B pair */
.weekly-match-divider td {
    height: 6px;
    background: #e8e8e8;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0;
}

/* Pair body — slight visual grouping */
.weekly-pair-body tr:first-child td {
    border-top: 1px solid #ddd;
}

/* ── Skins ──────────────────────────────────────────────────────────────── */
.skins-season-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0faf2;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #2d6a35;
    font-weight: 600;
}
.skins-season-pot { font-size: 1.05rem; }

.skins-round-list { display: flex; flex-direction: column; gap: 12px; }

.skins-round-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.skins-round-card--setup { border-color: #90caf9; }
.skins-round-card--done  { border-left: 4px solid #2e7d32; }

.skins-round-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.skins-round-card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.skins-week-badge {
    background: #1a5c2a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.skins-round-date { font-weight: 600; font-size: 0.95rem; }
.skins-round-course { font-size: 0.85rem; }

.skins-round-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
}
.skins-round-card__winners {
    padding: 8px 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skins-stat {
    font-size: 0.83rem;
    color: #555;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 3px 8px;
}
.skins-pot-badge    { background: #e8f5e9; color: #2e7d32; font-weight: 600; }
.skins-carryover-badge { background: #fff3e0; color: #e65100; font-weight: 600; }

.skins-winner-chip {
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
}

/* Skins results table */
.skins-results-table .skins-player-col { max-width: 70px; }
.skins-results-table .skins-winning-score {
    background: #e8f5e9;
    font-weight: 700;
    color: #2e7d32;
}
.skins-winner-row td { background: #f9fbe7; }
.skins-carryover-row td { background: #fafafa; color: #aaa; }
.skins-payout-cell { font-weight: 700; color: #1a5c2a; }

.skins-result-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.skins-flight-block h3 { margin-top: 0; margin-bottom: 8px; }
.skins-flights-settings { margin-bottom: 20px; }

.btn-success {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-success:hover { background: #1b5e20; }
/* ── End Skins ──────────────────────────────────────────────────────────── */

/* ── League Settings ─────────────────────────────────────────────────────── */
.settings-form {
    max-width: 860px;
}

.settings-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.settings-section__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.setting-num {
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-weight: 700;
    font-size: 0.85em;
    color: var(--text-muted, #9ca3af);
    letter-spacing: 0;
    margin-right: 4px;
}
.settings-section__title .setting-num {
    color: var(--brand-green, #2e7d32);
    margin-right: 6px;
}

/* ── Provisional handicap marker (used across standings/schedule/profile/etc.) ──
   Also used as a <button> (score entry, clickable) — resets below are no-ops
   on the plain <span> usages elsewhere. */
.hcp-provisional-mark {
    color: var(--text-muted, #9ca3af);
    font-weight: 700;
    cursor: help;
    margin-left: 1px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ── Scorecard Hcp-cell marker overlay (enter.html + enter_week.html) ──
   Overlays the corner of the Hcp input instead of sitting inline next to it,
   so the column stays the same width whether or not the marker is present
   (no extra padding on ordinary rows). Offset is tuned against the WIDER
   case (the 36px override input in the editable form) — the locked view's
   plain-text value has more slack, so this stays safely inside the cell
   padding there too. Mobile override lives in the ≤640px block above. */
.hcp-cell-wrap { position: relative; display: inline-block; }
.hcp-cell-wrap .hcp-provisional-mark {
    position: absolute;
    top: -2px;
    right: -3px;
    font-size: 10px;
    line-height: 1;
}

/* ── Settings info tooltip (ⓘ buttons) ── */
.settings-info-btn { background: none; border: none; cursor: pointer; color: #2563eb; font-size: 12px; font-weight: 700; padding: 1px 3px; border-radius: 4px; line-height: 1; font-family: inherit; vertical-align: 1px; }
.settings-info-btn:hover, .settings-info-btn:focus { background: #eff6ff; outline: none; }
#settings-info-tip { display: none; position: absolute; background: #1e293b; color: #f8fafc; font-size: 12.5px; line-height: 1.5; padding: 10px 13px; border-radius: 7px; width: 260px; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,.28); }
#settings-info-tip a { color: #93c5fd; }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px 24px;
    align-items: start;
}

.settings-grid--full {
    grid-column: 1 / -1;
}

.settings-group--checkbox {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #2e7d32;
    flex-shrink: 0;
    cursor: pointer;
}

.settings-save-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 8px;
}

/* ── Settings page: collapsible sections + compact row layout ────────────────
   WP: settings-page-scalability. `.settings-section` is now a <details> on
   this page (still a plain <div> box on other pages that reuse the class —
   these rules only target the <summary> child, so they don't affect those).
   `.setting-row` / `.setting-row__*` are new, page-scoped classes (does not
   touch `.settings-grid`/`.form-group`, which other settings pages still use). */
.settings-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.settings-section > summary.settings-section__title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
}
.settings-section[open] > summary.settings-section__title {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.settings-rows {
    display: flex;
    flex-direction: column;
}

.setting-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(140px, 220px) minmax(200px, 1.4fr);
    align-items: center;
    gap: 6px 24px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}
.settings-rows .setting-row:last-child {
    border-bottom: none;
}

.setting-row__main {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.setting-row__main label,
.setting-row__label-text {
    cursor: default;
}
.setting-row__main label {
    cursor: pointer;
}

.setting-row__control input,
.setting-row__control select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.92rem;
    font-family: inherit;
    background: white;
}
.setting-row__control input[type="number"] {
    max-width: 140px;
}
.setting-row__control input[type="checkbox"] {
    width: auto;
}

.setting-row--checkbox .setting-row__control {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row__help {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.45;
}

/* Desktop (>768px): help text always visible inline, tooltip icon is
   redundant (text is already shown) so hide it to avoid clutter. */
@media (min-width: 769px) {
    .settings-info-btn { display: none; }
}

/* Mobile (≤768px): single-column stacked rows, help text hidden (shown via
   tap-to-reveal popup instead — see .settings-info-btn / #settings-info-tip
   and the shared init in main.js), tooltip icon shown. */
@media (max-width: 768px) {
    .setting-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }
    .setting-row--checkbox .setting-row__control {
        grid-column: 1;
    }
    .setting-row__help {
        display: none;
    }
}

.btn-lg {
    padding: 11px 28px;
    font-size: 1rem;
}

.admin-action-btn--settings {
    background: #fff;
    color: #333;
    border: 1.5px solid #ccc;
}
.admin-action-btn--settings:hover {
    background: #f5f5f5;
    border-color: #999;
    text-decoration: none;
    color: #111;
}

.page-subtitle {
    color: #666;
    margin: 2px 0 0;
    font-size: 0.97rem;
}
/* ── End League Settings ─────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Course cards grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.course-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.course-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--green);
}

.course-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Tee swatch (colored dot) */
.tee-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Tee detail hole-edit links */
.tee-hole-links {
    display: flex;
    gap: 0.5rem;
}

/* Hole entry table */
.holes-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.holes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.holes-table th {
    background: var(--card-bg);
    padding: 0.5rem 0.4rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    min-width: 54px;
}

.holes-table td {
    padding: 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.holes-label-col {
    text-align: left !important;
    padding-left: 0.75rem !important;
    font-weight: 600;
    white-space: nowrap;
    min-width: 90px;
}

.holes-total {
    font-weight: 700;
    background: var(--card-bg);
    border-left: 2px solid var(--border);
}

.holes-row--par td { background: #f0f7f0; }
.holes-row--hdcp td { background: #fafafa; }
.holes-row--yards td { background: #f7f7f7; }

.hole-select {
    width: 50px;
    padding: 4px 2px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.88rem;
}

.hole-select--par {
    background: #e8f5e9;
    font-weight: 700;
}

.hole-input {
    width: 50px;
    padding: 4px 2px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.88rem;
}

/* Radio and checkbox groups inline */
.radio-group, .checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLAYER PROFILE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Name link in roster */
.player-profile-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.player-profile-link:hover {
    color: #1a5c2a;
    text-decoration: underline;
}

/* Inactive badge next to name */
.profile-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profile-badge--inactive {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* Stat card grid */
.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.profile-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 12px 12px;
    text-align: center;
}
.profile-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a5c2a;
    line-height: 1.1;
}
.profile-stat-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Section wrapper */
.profile-section {
    margin-bottom: 36px;
}
.profile-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8e8e8;
}

/* Sparkline */
.profile-sparkline-wrap {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 20px 10px;
    display: inline-block;
    width: 100%;
    max-width: 420px;
}
.profile-sparkline {
    width: 100%;
    height: 88px;
    display: block;
}
.profile-sparkline-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #999;
    margin-top: 4px;
    padding: 0 2px;
}

/* Collapsible handicap history */
.profile-hcp-details {
    margin-top: 12px;
}
.profile-hcp-details summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    user-select: none;
    padding: 6px 0;
}
.profile-hcp-details summary:hover { color: #1a5c2a; }
.profile-hcp-table {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Round history table */
.profile-round-table td, .profile-round-table th {
    font-size: 0.875rem;
    padding: 8px 10px;
}
.profile-pts {
    font-weight: 600;
    color: #1a5c2a;
}
.nowrap { white-space: nowrap; }
.center  { text-align: center; }

/* ── End Player Profile ──────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════
   PLAYOFF BRACKET  (session 9)
   ══════════════════════════════════════════════════════════════════════════ */

/* Champion banner */
.playoff-champion-banner {
    background: linear-gradient(135deg, #f6c90e 0%, #e8a000 100%);
    color: #1a1a1a;
    text-align: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Empty state */
.playoff-empty {
    text-align: center;
    padding: 48px 24px;
    color: #666;
}
.playoff-empty__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.playoff-empty h2 {
    margin-bottom: 8px;
    color: #333;
}
.playoff-empty p {
    margin-bottom: 24px;
}

/* Seeding preview */
.playoff-seeding-preview {
    display: inline-block;
    text-align: left;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 28px;
    min-width: 320px;
}
.playoff-seeding-preview h3 {
    margin-bottom: 14px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
}
.playoff-seed-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.playoff-seed-table th {
    background: #eee;
    padding: 6px 10px;
    font-weight: 600;
    text-align: left;
}
.playoff-seed-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
}
.playoff-seed-table tr:last-child td {
    border-bottom: none;
}

/* Seed badge */
.seed-badge {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    width: 22px; height: 22px;
    border-radius: 50%;
    line-height: 22px;
    text-align: center;
}

/* Generate form */
.playoff-generate-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.playoff-generate-form label {
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}
.playoff-generate-form select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ── Bracket layout ────────────────────────────────────────────────────── */
.bracket-wrap {
    overflow-x: auto;
    padding-bottom: 24px;
}
.bracket-rounds {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    min-width: fit-content;
    padding: 8px 4px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 240px;
}
.bracket-round__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8e8e8;
}
.bracket-round__matchups {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-around;
    flex: 1;
}

/* ── Matchup card ─────────────────────────────────────────────────────── */
.bracket-matchup {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow .15s;
}
.bracket-matchup:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.bracket-matchup--done {
    border-color: #c8e6c9;
}

/* ── Team rows ─────────────────────────────────────────────────────────── */
.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .1s;
}
.bracket-team:last-of-type {
    border-bottom: none;
}
.bracket-team--winner {
    background: #e8f5e9;
    font-weight: 700;
}
.bracket-team--winner .bracket-team__name {
    color: #2e7d32;
}
.bracket-team--loser {
    opacity: 0.55;
}
.bracket-team__name {
    font-size: 0.9rem;
    color: #222;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bracket-team__name--tbd {
    color: #bbb;
    font-style: italic;
}
.bracket-team__pts {
    font-size: 0.88rem;
    font-weight: 700;
    color: #444;
    margin-left: 8px;
    flex-shrink: 0;
}
.bracket-vs {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #bbb;
    padding: 2px 0;
    letter-spacing: .06em;
    border-bottom: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
}

/* ── Result entry form ─────────────────────────────────────────────────── */
.bracket-result-form {
    padding: 10px 12px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.bracket-pts-row {
    display: flex;
    gap: 8px;
    margin-bottom: 7px;
}
.bracket-pts-input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.85rem;
    width: 0;
}
.bracket-tiebreak-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bracket-tiebreak-label {
    font-size: 0.78rem;
    color: #666;
    white-space: nowrap;
}
.bracket-tiebreak-select {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.82rem;
    min-width: 100px;
}

/* ── Edit existing result ──────────────────────────────────────────────── */
.bracket-edit-details {
    border-top: 1px solid #eee;
}
.bracket-edit-toggle {
    padding: 6px 12px;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    list-style: none;
    background: #f9f9f9;
}
.bracket-edit-toggle:hover {
    color: #333;
    background: #f0f0f0;
}
.bracket-edit-form {
    padding: 10px 12px;
    background: #fafafa;
}

/* ── Admin bar ─────────────────────────────────────────────────────────── */
.playoff-admin-bar {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff8f8;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
}
.playoff-admin-note {
    font-size: 0.82rem;
    color: #888;
}

/* ═══════════════════════════════════════════════════════════
   Division / Group Styles  (session 10)
   ═══════════════════════════════════════════════════════════ */

/* Container for a single division block */
.division-section {
    margin-bottom: 32px;
}

/* Division header row: badge + count */
.division-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Division name pill */
.division-badge {
    display: inline-block;
    background: #1a7f4b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
}

/* Subtle team count text beside badge */
.division-count {
    font-size: 0.82rem;
}

/* Points-by-division player table */
.division-pts-table {
    width: 100%;
}
.division-pts-table td,
.division-pts-table th {
    padding: 8px 10px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ARCHIVE UI  (session 12)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Archive list page ──────────────────────────────────────────────────── */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.archive-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archive-card--active {
    border-left: 4px solid #3b82f6;
}

.archive-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.archive-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.archive-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.archive-card__dates {
    font-size: 0.82rem;
    color: #666;
}

.archive-card__stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.archive-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.archive-stat--winner {
    flex: 1;
    align-items: flex-start;
}

.archive-stat__val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.archive-stat__lbl {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.archive-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-card__admin {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.archive-admin-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 2px;
}

.archive-toggle-btn {
    padding: 3px 10px;
    font-size: 0.78rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.archive-toggle-btn:hover {
    background: #f0f4ff;
    border-color: #6b7280;
}

.archive-toggle-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.archive-toggle-btn--danger {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff1f2;
}

.archive-toggle-btn--danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* ── Archive badges (shared across list + detail) ───────────────────────── */

.archive-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.archive-badge--active  { background: #dbeafe; color: #1d4ed8; }
.archive-badge--visible { background: #d1fae5; color: #065f46; }
.archive-badge--hidden  { background: #f3f4f6; color: #6b7280; }
.archive-badge--locked  { background: #fef3c7; color: #92400e; }
.archive-badge--open    { background: #d1fae5; color: #065f46; }
.archive-badge--draft   { background: #f3f4f6; color: #6b7280; }

/* ── Archive season detail page ─────────────────────────────────────────── */

.arc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.arc-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: center;
}

.arc-stat-card--champion {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
    text-align: left;
}

.arc-champion-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.arc-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
}

.arc-stat-val--name {
    font-size: 1rem;
    font-weight: 700;
}

.arc-stat-lbl {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

.arc-nav-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}

.arc-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.arc-nav-btn:hover {
    background: #f0f4ff;
    border-color: #6b7280;
    color: #111;
}

.arc-nav-btn--admin {
    background: #fff7ed;
    border-color: #fb923c;
    color: #9a3412;
}

.arc-nav-btn--admin:hover {
    background: #fed7aa;
}

/* ── Archive season detail — section, admin panel, standings ────────────── */

.arc-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 20px;
}

.arc-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.arc-player-names {
    font-size: 0.88rem;
    color: #374151;
}

.arc-standings-table td,
.arc-standings-table th {
    vertical-align: middle;
}

/* ── Admin archive panel (on season detail page) ────────────────────────── */

.arc-admin-panel {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.arc-admin-panel__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 5px;
    white-space: nowrap;
}

.arc-admin-panel__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

/* ── Archive season form (initial archive action) ───────────────────────── */

.arc-archive-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.arc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
}

.arc-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* ── Nav season switcher ──────────────────────────────────────────────────── */
.nav-season-wrap {
    display: flex;
    align-items: center;
}

.nav-season-select {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    padding: 4px 28px 4px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: background 0.15s, border-color 0.15s;
}

.nav-season-select:hover,
.nav-season-select:focus {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    outline: none;
}

.nav-season-select option {
    background: #1a5c2a;
    color: #fff;
}

.nav-season-label {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   SELF-REPORTING  (session 13)
   ═══════════════════════════════════════════════════════════ */

/* Summary bar */
.sr-summary-bar {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.sr-summary-chip {
    padding: .3rem .9rem;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
}
.sr-chip--pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.sr-chip--approved { background: #d1e7dd; color: #0f5132; border: 1px solid #198754; }
.sr-chip--rejected { background: #f8d7da; color: #842029; border: 1px solid #dc3545; }

/* Pending submission cards */
.sr-section { margin-bottom: 2rem; }
.sr-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--border);
}
.sr-card-list { display: flex; flex-direction: column; gap: .75rem; }
.sr-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.sr-card--pending { border-left: 4px solid #ffc107; }

.sr-card__meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .875rem; }
.sr-meta-season { font-weight: 700; color: var(--primary); }
.sr-meta-week   { color: #555; }
.sr-meta-course { color: #666; font-style: italic; }

.sr-card__teams { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sr-team-pill {
    background: #f0f9f0;
    border: 1px solid #c3e6cb;
    border-radius: 14px;
    padding: .2rem .7rem;
    font-size: .85rem;
    font-weight: 600;
    color: #1a5c2a;
}
.sr-vs { color: #999; font-size: .8rem; font-style: italic; }

.sr-card__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.sr-submitter { font-size: .875rem; }
.sr-submitted-at { font-size: .8rem; }

/* History table */
.sr-history-table { font-size: .875rem; }
.sr-history-table td { vertical-align: middle; }

/* Detail view */
.sr-detail-meta { display: flex; flex-direction: column; gap: .5rem; }
.sr-detail-meta__row { display: flex; gap: 1rem; }
.sr-detail-label {
    font-weight: 600;
    min-width: 130px;
    color: #555;
    font-size: .875rem;
}
.sr-detail-value { font-size: .9rem; }

/* Score color coding (detail view) */
.sr-score-cell {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
}
.sr-score--eagle  { background: #c8e6c9; color: #1b5e20; border: 2px solid #2e7d32; }
.sr-score--birdie { background: #a5d6a7; color: #1b5e20; }
.sr-score--par    { /* default, no highlight */ }
.sr-score--bogey  { background: #ffe0b2; color: #e65100; }
.sr-score--dbogey { background: #ffcdd2; color: #b71c1c; }

/* Admin action section */
.sr-action-section { }
.sr-actions-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.sr-reject-form { display: flex; flex-direction: column; gap: .5rem; }

/* Nav badge (pending count) */
.sr-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #dc3545;
    color: #fff;
    border-radius: 9px;
    font-size: .7rem;
    font-weight: 700;
    padding: 0 4px;
    vertical-align: middle;
    margin-left: 2px;
}

/* Dashboard badge overlay on icon */
.dash-card__icon { position: relative; display: inline-block; }
.dash-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    font-size: .65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
}

/* Admin panel submissions button */
.admin-action-btn--submissions {
    background: #fff8e1;
    border-color: #ffc107;
    color: #856404;
}
.admin-action-btn--submissions:hover {
    background: #fff3cd;
}

/* ── Weekly scorecard: tee indicator column ─────────────────────────────── */
.col-tee {
    width: 22px;
    text-align: center;
    padding: 0 2px;
}

.player-tee-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Weekly scorecard: alternating hole-column stripes ──────────────────── */
.weekly-card-table .col-score--stripe,
.weekly-card-table .weekly-score-cell.col-score--stripe {
    background-color: rgba(0, 0, 0, 0.028);
}

/* Ensure stripe shows through even on hover rows */
.data-table tbody tr:hover .col-score--stripe {
    background-color: rgba(0, 0, 0, 0.06);
}

/* ── All-Play standings ─────────────────────────────────────────────────── */
.allplay-explainer {
    background: #f0f7f2;
    border-left: 4px solid #2d7a4b;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: .88rem;
    color: #2c3e2d;
    margin-bottom: 22px;
    line-height: 1.5;
}

.allplay-table .ap-col-w,
.allplay-table .ap-col-l,
.allplay-table .ap-col-t  { width: 44px; }
.allplay-table .ap-col-pct { width: 64px; }
.allplay-table .ap-col-sp  { width: 90px; }

.allplay-table .ap-w  { color: #1a5c2a; font-weight: 700; }
.allplay-table .ap-l  { color: #b91c1c; }
.allplay-table .ap-t  { color: #78716c; }
.allplay-table .ap-pct { font-weight: 600; }
.allplay-table .ap-sp  { color: #555; }

.allplay-weekly-table .ap-wk-col  { width: 62px; font-size: .78rem; }
.allplay-weekly-table .ap-wk-cell { font-size: .82rem; }

.ap-wk-record {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .78rem;
    white-space: nowrap;
}
.ap-wk-win  { background: #d1fae5; color: #065f46; }
.ap-wk-loss { background: #fee2e2; color: #991b1b; }
.ap-wk-tie  { background: #f3f4f6; color: #4b5563; }
.ap-wk-bye  { color: #bbb; font-size: .8rem; }

.ap-total-cell { font-size: .88rem; }

.section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a5c2a;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e2e8f0;
}

/* ── Dashboard Activity Feed ─────────────────────────────────────────────── */
.activity-feed {
    margin-top: 2rem;
}

/* Season progress bar */
.activity-season-bar {
    margin-bottom: 1.25rem;
}
.activity-season-bar__label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .35rem;
    font-size: .9rem;
}
.activity-season-bar__stat {
    color: #666;
    font-size: .82rem;
}
.activity-progress-track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.activity-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32, #43a047);
    border-radius: 4px;
    transition: width .4s ease;
    min-width: 4px;
}

/* Two-column layout */
.activity-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 700px) {
    .activity-columns { grid-template-columns: 1fr; }
}

.activity-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Activity card shell */
.activity-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.activity-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.activity-card__title {
    font-weight: 600;
    font-size: .9rem;
    color: #333;
}
.activity-card__link {
    font-size: .78rem;
    color: #1976d2;
    text-decoration: none;
}
.activity-card__link:hover { text-decoration: underline; }

.activity-empty {
    padding: .9rem 1rem;
    color: #888;
    font-size: .85rem;
    margin: 0;
}

/* Recent Results */
.activity-results-list {
    padding: .25rem 0;
}
.activity-result-row {
    padding: .55rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.activity-result-row:last-child { border-bottom: none; }

.activity-result-meta {
    display: flex;
    gap: .6rem;
    align-items: center;
}
.activity-result-week {
    font-size: .72rem;
    font-weight: 700;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1px 6px;
    border-radius: 3px;
}
.activity-result-date {
    font-size: .75rem;
    color: #888;
}

.activity-result-matchup {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
}
.activity-result-team {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-result-team--right { text-align: right; }
.activity-result-team--left  { text-align: left; }

.activity-result-score {
    display: flex;
    align-items: center;
    gap: .2rem;
    font-weight: 700;
    font-size: .88rem;
    color: #444;
    white-space: nowrap;
    flex-shrink: 0;
}
.activity-result-score-sep {
    color: #bbb;
    font-weight: 400;
    padding: 0 1px;
}
.activity-result-score--winner {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    padding: 1px 6px;
}

.activity-result-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.activity-result-view {
    font-size: .75rem;
    color: #1976d2;
    text-decoration: none;
}
.activity-result-view:hover { text-decoration: underline; }

/* Upcoming */
.activity-upcoming-list { padding: .25rem 0; }
.activity-upcoming-row {
    padding: .55rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.activity-upcoming-row:last-child { border-bottom: none; }
.activity-upcoming-teams {
    font-size: .9rem;
    font-weight: 500;
}
.activity-vs {
    color: #aaa;
    font-size: .8rem;
    font-weight: 400;
    margin: 0 .3rem;
}

/* Standings snapshot table */
.activity-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.activity-standings-table th {
    padding: .4rem .75rem;
    text-align: left;
    font-size: .75rem;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.activity-standings-table td {
    padding: .45rem .75rem;
    border-bottom: 1px solid #f4f4f4;
}
.activity-standings-table tbody tr:last-child td { border-bottom: none; }
.activity-standings-first td { background: #f1f8e9; }
.activity-standings-pos {
    width: 32px;
    text-align: center;
    font-size: .85rem;
}
.activity-standings-pts {
    width: 48px;
    text-align: right;
    font-weight: 700;
    color: #2e7d32;
}
.activity-standings-name { font-weight: 500; }

/* Handicap table */
.activity-hdcp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.activity-hdcp-table th {
    padding: .4rem .75rem;
    text-align: left;
    font-size: .75rem;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.activity-hdcp-table td {
    padding: .45rem .75rem;
    border-bottom: 1px solid #f4f4f4;
}
.activity-hdcp-table tbody tr:last-child td { border-bottom: none; }
.activity-hdcp-index {
    width: 60px;
    text-align: right;
    font-weight: 700;
    color: #333;
}
.activity-hdcp--plus { color: #1565c0; }
.activity-hdcp-date {
    width: 90px;
    font-size: .78rem;
    color: #888;
}

/* ═══════════════════════════════════════════════════════════════
   Reports / Export — session 16
   ═══════════════════════════════════════════════════════════════ */

/* Reports index page */
.reports-section {
    margin-bottom: 36px;
}
.reports-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.reports-count-pill {
    background: #e8f5e9;
    color: var(--green, #2d6a4f);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Report card links (season-level reports) */
.reports-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.report-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border, #dee2e6);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.report-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    border-color: var(--green, #2d6a4f);
}
.report-card__icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}
.report-card__body {
    flex: 1;
}
.report-card__name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}
.report-card__desc {
    font-size: 13px;
    color: #666;
}
.report-card__arrow {
    font-size: 18px;
    color: #aaa;
    flex-shrink: 0;
}

/* Reports table (per-round scorecard list) */
.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.reports-table th,
.reports-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border, #dee2e6);
    text-align: left;
}
.reports-table th {
    background: var(--bg-card, #f8f9fa);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.reports-table tr:hover { background: #f9fafb; }
.reports-table .center { text-align: center; }
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    margin-right: 4px;
}

/* ══════════════════════════════════════════════════════════════
   Records & Statistics page  (session 17)
══════════════════════════════════════════════════════════════ */

/* Header row with season switcher */
.records-season-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.records-switcher-label {
    font-size: 13px;
    color: var(--text-muted, #666);
}
.records-switcher-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.records-switcher-select:focus { outline: 2px solid var(--color-primary, #2d6a4f); }

/* Empty state */
.records-empty {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted, #666);
    font-size: 15px;
}

/* Section container */
.records-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.records-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin: 0 0 16px;
}
.records-subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    margin: 0 0 10px;
}
.records-subsection-title small {
    font-weight: 400;
    color: var(--text-muted, #888);
    font-size: 12px;
}

/* Career section has slightly different bg to distinguish */
.records-career-section {
    background: #f4f9f6;
    border-color: #cde6d8;
}

/* Two-column layout */
.records-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 720px) {
    .records-two-col { grid-template-columns: 1fr; }
}
.records-section--half {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 18px;
}

/* Records table */
.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.records-table th {
    background: #f4f6f8;
    color: var(--text-muted, #666);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 7px 10px;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
}
.records-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.records-table tbody tr:last-child td { border-bottom: none; }
.records-table a {
    color: var(--color-primary, #2d6a4f);
    text-decoration: none;
    font-weight: 500;
}
.records-table a:hover { text-decoration: underline; }
.records-podium-row { background: #fffbec; }

/* H2H specific */
.records-h2h-winner { color: var(--color-primary, #2d6a4f); }
.records-h2h-w { color: #2d6a4f; font-weight: 700; }
.records-h2h-l { color: #c0392b; font-weight: 700; }
.records-h2h-t { color: #888; font-weight: 700; }

/* Margin pill */
.records-margin-pill {
    display: inline-block;
    background: #e8f5e9;
    color: #2d6a4f;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
}

/* Streak grid */
.records-streaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.records-streak-card {
    border-radius: 10px;
    padding: 12px 14px;
    border: 2px solid #e5e5e5;
    background: #fff;
}
.records-streak-w { border-color: #a8dab5; background: #f0faf3; }
.records-streak-l { border-color: #f7b8b8; background: #fff5f5; }
.records-streak-t { border-color: #ddd; background: #fafafa; }
.records-streak-team {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    margin-bottom: 4px;
}
.records-streak-badge {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}
.records-streak-history {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.records-streak-pip {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.records-pip-w { background: #2d6a4f; }
.records-pip-l { background: #c0392b; }
.records-pip-t { background: #888; }

/* ── Player Import ──────────────────────────────────────────────────── */
.page-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: #fff;
    color: var(--color-primary, #2d6a4f);
    border: 1.5px solid var(--color-primary, #2d6a4f);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
    background: var(--color-primary, #2d6a4f);
    color: #fff;
}
.import-instructions {
    margin-bottom: 1.5rem;
    color: #444;
    line-height: 1.6;
}
.import-cols-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
}
.import-cols-table th {
    background: #f5f5f5;
    text-align: left;
    padding: 6px 10px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}
.import-cols-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.import-cols-table code {
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.88em;
}
.import-example {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1rem;
}
.import-example-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.4rem;
}
.import-example-pre {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}
.import-notes {
    padding-left: 1.25rem;
    margin: 0;
    font-size: 0.88rem;
    color: #555;
}
.import-notes li { margin-bottom: 0.3rem; }
.import-form { margin-top: 1rem; }
.form-input-file {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
}
.form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* Import result summary bar */
.import-result-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.import-stat {
    flex: 1;
    min-width: 110px;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    border: 1.5px solid transparent;
}
.import-stat--added  { background: #eafaf1; border-color: #52c47a; }
.import-stat--skipped { background: #fffbe6; border-color: #f0c040; }
.import-stat--error  { background: #fff0f0; border-color: #e05555; }
.import-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.import-stat--added .import-stat-num  { color: #27ae60; }
.import-stat--skipped .import-stat-num { color: #c0910a; }
.import-stat--error .import-stat-num  { color: #c0392b; }
.import-stat-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    margin-top: 0.25rem;
}
.import-name-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.import-name-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.import-name-list li:last-child { border-bottom: none; }
.import-name-list--muted li { color: #888; }
.import-name-list--error li  { color: #c0392b; font-family: monospace; font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SCORE ENTRY  (≤ 768px phones / tablets)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop-only elements still hidden on mobile (non-scorecard things) */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* Mobile: make the scorecard table scroll horizontally; below 640px the
   compact fixed-layout table (further down this file) takes over sizing. */
@media (max-width: 768px) {
    .scorecard-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -8px;
        padding: 0 8px;
    }
    .score-input {
        font-size: 16px; /* prevents iOS auto-zoom on focus */
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPACT MOBILE SCORECARD TABLE (≤ 640px) — shared by enter.html and
   enter_week.html. fit() (base.html) computes per-hole column widths via
   canvas measureText and applies them inline; this CSS establishes the
   fixed-layout base, hides summary/pts columns during live entry (revealed
   via .sc-completed-view once a matchup is actually completed), and
   abbreviates names to first-name-only (.sc-name-last hidden).
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Allow scroll as a safety net but table should fit without it */
    .scorecard-wrap { overflow-x: auto; }

    /* fixed layout: JS sets hole widths; name col gets the remainder automatically */
    .scorecard-table { table-layout: fixed; width: 100%; font-size: 0.82rem; border-collapse: collapse; }

    /* Name — no overflow clipping; fixed layout gives it whatever space remains */
    .sc-col-name  { padding: 3px 4px !important; white-space: nowrap; }
    .sc-name-last { display: none; }
    /* inline-flex so the button shrinks to its content width (not 100% of cell) */
    .sp-trigger   { display: inline-flex; align-items: center; gap: 0; padding: 0;
                    background: none; border: none; font-size: 0.78rem; white-space: nowrap; }
    .sp-name      { white-space: nowrap; font-size: 0.78rem; }
    .sp-badge:empty { display: none !important; }
    .sp-badge     { font-size: 0.6rem; flex-shrink: 0; padding: 1px 4px; margin-left: 3px; }
    .sp-chevron, .nick-score-badge, .player-tee-wrap { display: none !important; }

    /* Hole cells — fixed narrow width; max-width prevents inputs from expanding */
    .sc-col-hole  { width: 20px; max-width: 24px; padding: 2px 0 !important; }
    .sc-score-cell { padding: 1px 0 !important; }
    .score-input  { width: 100% !important; min-width: 0 !important; padding: 1px 0 !important;
                    font-size: 0.8rem; text-align: center; box-sizing: border-box;
                    border: none !important; background: transparent !important;
                    border-radius: 0; box-shadow: none !important;
                    -webkit-appearance: none; appearance: none; }
    .score-input:focus { outline: none !important; background: #e8f5e9 !important; border-radius: 2px; }

    /* Tot / Hcp / Net / Pts — one shared width so all four render identically
       (clean visual weight) and any future resize only touches this one
       value. JS (fit(), base.html) reads this same variable so the hole-width
       math never drifts out of sync with it. */
    :root { --sc-summary-w: 30px; }
    /* Hcp input must shrink with the column, not stay at its 36px desktop
       width (main.css .hcp-override-input) — otherwise it overflows the
       narrower mobile column on its own, before the marker is even added.
       .hcp-cell-wrap switches from shrink-to-fit inline-block (desktop) to a
       full-width block here so width:100% on the input resolves against the
       cell's actual content box, not an ill-defined circular auto-size. */
    .hcp-cell-wrap { display: block !important; width: 100%; }
    .hcp-override-input { width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
    .sc-col-in  { width: var(--sc-summary-w) !important; padding: 2px 2px !important; font-size: 0.78rem; }
    .sc-col-hcp { width: var(--sc-summary-w) !important; padding: 2px 2px !important; font-size: 0.78rem; }
    .sc-col-net { width: var(--sc-summary-w) !important; padding: 2px 2px !important; font-size: 0.78rem; }
    /* Mobile Hcp cell has only 2px padding (vs 5px on desktop) — pull the
       overlaid marker in tighter so it doesn't spill past the cell edge. */
    .hcp-cell-wrap .hcp-provisional-mark { right: -1px; font-size: 8px; }
    .sc-col-pts { display: none; }
    .stroke-dot, .sc-pt-indicator { display: none; }

    /* Completed scorecards: restore pts column and per-hole indicators */
    .sc-completed-view .sc-col-pts { display: table-cell !important; width: var(--sc-summary-w) !important; padding: 2px 2px !important; font-size: 0.78rem; }
    .sc-completed-view .sc-pt-indicator { display: block !important; }

    .sc-subtotal-col { display: none; }
    td.sc-col-tot, th.sc-col-tot { display: table-cell !important; width: var(--sc-summary-w) !important; padding: 2px 2px !important; }

    /* vs rows */
    .sc-vs-row td { font-size: 0.78rem; padding: 3px 4px !important; }
}

/* Mobile: full-width selects, prevent iOS auto-zoom on focus */
@media (max-width: 768px) {
    .form-row { flex-direction: column; }
    .form-row .form-group { width: 100% !important; }
    .form-row select,
    .form-row input[type="date"] { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEASON COMPARISON STATS
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ── Overview Cards ──────────────────────────────────────────────────────── */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stats-season-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stats-season-card__header {
    background: var(--green-dark);
    color: #fff;
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.stats-season-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.stats-season-dates {
    font-size: .75rem;
    opacity: .8;
}

.stats-season-card__body {
    padding: .75rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.stats-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
    padding: .3rem 0;
    font-size: .9rem;
}

.stats-metric-row:last-child { border-bottom: none; }

.stats-metric-label {
    color: var(--text-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.stats-metric-val {
    font-weight: 600;
    text-align: right;
}

.stats-name-small {
    font-weight: 400;
    font-size: .78rem;
    color: var(--text-muted);
}

.stats-highlight-green { color: var(--green-dark); }
.stats-highlight-gold  { color: #b8860b; }

.stats-no-data {
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
    padding: .5rem 0;
    font-style: italic;
}

.stats-season-card__footer {
    padding: .6rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    background: var(--bg-alt);
}

.stats-card-link {
    font-size: .82rem;
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 500;
}
.stats-card-link:hover { text-decoration: underline; }

/* ── Section Headers ─────────────────────────────────────────────────────── */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .75rem 0;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--green-mid);
}

/* ── Comparison Table ────────────────────────────────────────────────────── */
.stats-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stats-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 500px;
}

.stats-compare-table th {
    background: var(--green-dark);
    color: #fff;
    padding: .6rem .8rem;
    font-weight: 600;
    text-align: center;
}

.stats-compare-table th.stats-metric-col {
    text-align: left;
    min-width: 180px;
}

.stats-compare-table td {
    padding: .5rem .8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.stats-compare-table tbody tr:hover { background: var(--bg-alt); }
.stats-compare-table td small { color: var(--text-muted); font-size: .78rem; }

.stats-row-label {
    color: var(--text-muted);
    font-size: .83rem;
    font-weight: 500;
}

.stats-highlight-row td {
    background: #fffde7;
    font-weight: 600;
}

.stats-champion { color: var(--green-dark); }

/* ── Win Records Table ───────────────────────────────────────────────────── */
.stats-winrecord-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    max-width: 520px;
}

.stats-winrecord-table th {
    background: var(--green-dark);
    color: #fff;
    padding: .5rem .75rem;
    font-weight: 600;
}

.stats-winrecord-table td {
    padding: .45rem .75rem;
    border-bottom: 1px solid var(--border);
}

.stats-winner-row td {
    background: #f1f8e9;
    font-weight: 600;
}

.stats-wins   { color: var(--green-dark); font-weight: 700; }
.stats-losses { color: #c62828; font-weight: 700; }

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

/* ═══════════════════════════════════════════════════════════════
   LOGIN TABS
   ═══════════════════════════════════════════════════════════════ */
.login-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
}
.login-tab-btn {
    flex: 1;
    padding: .65rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.login-tab-btn:hover { color: var(--green-dark); }
.login-tab-btn--active {
    color: var(--green-dark);
    border-bottom-color: var(--green-dark);
    font-weight: 700;
}
.login-panel { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════
   REGISTRATION PAGE
   ═══════════════════════════════════════════════════════════════ */
.reg-section-heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--green-dark);
    margin-bottom: .75rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--border);
}
.reg-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   USER ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════════ */
.account-player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: .85rem 1.1rem;
    margin-bottom: 1.5rem;
}
.account-player-icon { font-size: 1.6rem; }
.account-player-label { font-size: .75rem; color: var(--text-light); margin-bottom: .1rem; }
.account-player-name  { font-size: 1rem; font-weight: 600; }
.account-player-name a { color: var(--green-dark); text-decoration: none; }
.account-player-name a:hover { text-decoration: underline; }

.account-no-player {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .9rem;
    color: #555;
    margin-bottom: 1.5rem;
}
.account-sections { display: flex; flex-direction: column; gap: 1.5rem; }
.account-info-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.account-info-table th, .account-info-table td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.account-info-table th { color: var(--text-light); font-weight: 500; width: 140px; }

/* ═══════════════════════════════════════════════════════════════
   USER MANAGEMENT PAGE (admin)
   ═══════════════════════════════════════════════════════════════ */
.user-row--inactive td { opacity: .55; }

.role-select {
    font-size: .83rem;
    padding: .28rem .5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}
.badge--active   { background: #e8f5e9; color: #2e7d32; }
.badge--inactive { background: #ffebee; color: #c62828; }
.badge--admin    { background: #e3f2fd; color: #1565c0; }
.badge--member   { background: #f3e5f5; color: #6a1b9a; }

.btn-warning { background: #f57c00; color: #fff; }
.btn-warning:hover { background: #e65100; }

.reset-pw-form input {
    font-size: .85rem;
    padding: .3rem .6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.users-invite-box {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green-dark);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: .9rem;
    color: #444;
}
.users-invite-title {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .5rem;
    color: var(--green-dark);
}
.users-invite-box ul { margin: .4rem 0 .75rem 1.2rem; }
.users-invite-box li { margin-bottom: .25rem; }
.users-invite-box p  { margin: .3rem 0; }

.data-table th { background: var(--green-dark); color: #fff; padding: .5rem .75rem; text-align: left; }
.data-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

.nav-link--user {
    font-weight: 600;
    color: var(--green-dark);
}
.nav-link--user:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   ANNOUNCEMENTS (session 22)
   ══════════════════════════════════════════════════════════════════════════ */

/* Dashboard banner */
.dash-ann-banner {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green-mid);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.dash-ann-item {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .93rem;
}
.dash-ann-item:last-of-type { border-bottom: none; }
.dash-ann-item--important  { background: #fff8e1; border-left: 3px solid #f59e0b; }
.dash-ann-item--weather    { background: #e8f4fd; border-left: 3px solid #3b82f6; }
.dash-ann-item--results    { background: #f0fdf4; border-left: 3px solid #22c55e; }
.dash-ann-item--reminder   { background: #faf5ff; border-left: 3px solid #a855f7; }
.dash-ann-type { font-size: 1.1rem; flex-shrink: 0; }
.dash-ann-msg  { flex: 1; color: #1e293b; line-height: 1.4; }
.dash-ann-date { font-size: .78rem; color: #6b7280; white-space: nowrap; margin-left: auto; }
.dash-ann-footer {
    padding: .4rem 1rem;
    background: #f8f9fa;
    font-size: .8rem;
    color: #6b7280;
    border-top: 1px solid var(--border);
}
.dash-ann-footer a { color: var(--green-dark); text-decoration: none; }
.dash-ann-footer a:hover { text-decoration: underline; }

/* Dashboard badge - green variant */
.dash-badge--green {
    background: var(--green-mid);
    color: #fff;
}

/* Announcement type badges */
.ann-type-badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--green-light);
    color: var(--green-dark);
}
.ann-type-badge--important  { background: #fef3c7; color: #92400e; }
.ann-type-badge--weather    { background: #dbeafe; color: #1d4ed8; }
.ann-type-badge--results    { background: #dcfce7; color: #166534; }
.ann-type-badge--reminder   { background: #f3e8ff; color: #6b21a8; }
.ann-type-badge--schedule   { background: #e0f2fe; color: #0369a1; }
.ann-type-badge--expired    { background: #f1f5f9; color: #64748b; }

/* Member announcement list */
.ann-section { margin-bottom: 2rem; }
.ann-section-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin: 1.5rem 0 .75rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--border);
}
.ann-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: .75rem;
    overflow: hidden;
}
.ann-card--important { border-left: 4px solid #f59e0b; }
.ann-card--weather   { border-left: 4px solid #3b82f6; }
.ann-card--results   { border-left: 4px solid #22c55e; }
.ann-card--reminder  { border-left: 4px solid #a855f7; }
.ann-card--schedule  { border-left: 4px solid #0ea5e9; }
.ann-card--expired   { border-left: 4px solid #cbd5e1; opacity: .7; }
.ann-card__header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.ann-date { font-size: .78rem; color: #6b7280; margin-left: auto; }
.ann-expires { font-size: .75rem; color: #9ca3af; }
.ann-expires--past { color: #ef4444; }
.ann-card__body {
    padding: .75rem .9rem;
    font-size: .95rem;
    line-height: 1.5;
    color: #1e293b;
    white-space: pre-wrap;
}
.ann-card__body--muted { color: #6b7280; }

/* Admin management form */
.ann-create-form { padding: .25rem 0; }
.ann-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.ann-form-group { flex: 1; min-width: 160px; }
.ann-form-group--date { flex: 0 0 180px; }
.ann-textarea {
    width: 100%;
    resize: vertical;
    font-family: inherit;
    font-size: .93rem;
    padding: .5rem .7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
}
.ann-textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 2px rgba(34,197,94,.15);
}

/* Admin announcements table */
.ann-admin-table { width: 100%; }
.ann-msg-cell {
    max-width: 360px;
    white-space: pre-wrap;
    font-size: .88rem;
    line-height: 1.4;
}
.ann-row--inactive td { opacity: .55; }
.ann-row--expired td  { opacity: .7; }

/* Colored nav badge on admin buttons */
.sr-nav-badge--green {
    background: var(--green-mid);
    color: #fff;
}

/* btn-danger */
.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
}
.btn-danger:hover { background: #dc2626; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}
.empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.empty-msg  { font-size: 1rem; }

/* ── Substitute Player Styles ──────────────────────────────────── */

/* SUB badge shown in score entry + score view */
.sub-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 1px 5px;
    border-radius: 3px;
    background: #f59e0b;
    color: #fff;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
    cursor: default;
}
.absent-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--color-muted, #6b7280);
    color: #fff;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
    cursor: default;
}
.absent-badge--unexcused {
    background: var(--color-danger, #ef4444);
}
.absent-badge--warn {
    background: var(--color-warning, #d97706);
    cursor: help;
}
.sub-for-label {
    font-size: 10px;
    color: #92400e;
    margin-left: 3px;
    font-style: italic;
}

/* Per-round playing-handicap manual override marker — small superscript dot
   next to a displayed handicap value. Shared by the Handicap Matrix
   (per-cell) and Handicap History (per-round) pages. */
.hcp-override-dot {
    font-size: 0.6rem;
    color: #f59e0b;
    vertical-align: super;
    margin-left: 1px;
}

/* Alert-info variant */
.alert-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: .9rem;
}
.alert-info strong { color: #1d4ed8; }
.sub-notice {
    display: inline-block;
    background: #dbeafe;
    border-radius: 4px;
    padding: 1px 8px;
    margin: 2px 2px;
    font-size: .85rem;
    color: #1e40af;
}

/* Subs management page */
.subs-explainer {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: .9rem;
    color: #166534;
}
.subs-team-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.subs-team-header {
    background: #1a7a4a;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: .6rem 1rem;
}
.subs-player-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    flex-wrap: wrap;
    transition: background .15s;
}
.subs-player-row:last-child { border-bottom: none; }
.subs-player-row.subs-player-absent { background: #fef9ec; }
.subs-player-info {
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: .3rem;
}
.subs-player-name { font-weight: 600; font-size: .95rem; }
.subs-status-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.subs-status-present  { background: #d1fae5; color: #065f46; }
.subs-status-absent   { background: #fee2e2; color: #991b1b; }
.subs-status-subbed   { background: #fef3c7; color: #92400e; }
.subs-status-nosub    { background: #f3f4f6; color: #6b7280; }
.subs-controls {
    flex: 1;
    min-width: 260px;
}
.subs-absent-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: .5rem;
}
.subs-absent-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.subs-detail {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: .75rem;
    margin-top: .25rem;
}
.subs-field {
    margin-bottom: .6rem;
}
.subs-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.subs-optional { font-weight: 400; color: #9ca3af; text-transform: none; letter-spacing: 0; }
.subs-select, .subs-input {
    width: 100%;
    padding: .4rem .6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: .9rem;
    background: #fff;
}
.subs-select:focus, .subs-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,.15);
}
.subs-select-hint {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .15rem;
    display: block;
}
.subs-fields-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.subs-fields-row .subs-field { flex: 1; min-width: 140px; }
.subs-field--check { display: flex; align-items: flex-end; padding-bottom: .05rem; }
.subs-excused-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    cursor: pointer;
    white-space: nowrap;
}
.subs-excused-label input[type="checkbox"] { width: 15px; height: 15px; }
.subs-save-bar {
    display: flex;
    gap: .75rem;
    padding: 1rem 0;
    align-items: center;
}

/* Schedule "Subs" link styling */
.btn-link[title] { cursor: pointer; }

/* ── Tiebreaker info bar (standings page) ──────────────────────────────── */
.tiebreaker-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .5rem;
    margin-top: 1.25rem;
    padding: .55rem .9rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: .82rem;
    color: #374151;
}
.tiebreaker-bar__label {
    font-weight: 700;
    color: #166534;
    margin-right: .1rem;
}
.tiebreaker-chip {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: .15rem .6rem;
    color: #15803d;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}
.tiebreaker-bar__edit {
    margin-left: auto;
    color: #15803d;
    font-size: .8rem;
    text-decoration: none;
    font-weight: 600;
}
.tiebreaker-bar__edit:hover { text-decoration: underline; }

/* ── Tiebreaker selects in admin settings ─────────────────────────────── */
.tb-select {
    width: 100%;
    padding: .45rem .65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
    color: #111827;
}
.tb-select:focus {
    outline: none;
    border-color: #50735b;
    box-shadow: 0 0 0 2px rgba(80,115,91,.18);
}

/* ── Notification bell in nav ─────────────────────────────────────────── */
.nav-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.15rem;
    padding: .25rem .35rem;
    border-radius: 6px;
    line-height: 1;
    color: inherit;
    transition: background .15s;
}
.nav-bell:hover { background: rgba(255,255,255,.15); }
.nav-bell-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #dc2626;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Notification feed page ───────────────────────────────────────────── */
.notif-feed {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 760px;
}
.notif-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .9rem 1rem;
    transition: box-shadow .15s;
}
.notif-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.notif-unread {
    border-left: 3px solid #50735b;
    background: #f0fdf4;
}
.notif-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-message {
    margin: 0 0 .35rem 0;
    font-size: .95rem;
    color: #111827;
    line-height: 1.45;
}
.notif-meta {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.notif-type-chip {
    display: inline-block;
    padding: .1rem .55rem;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
    text-transform: capitalize;
}
.notif-type-chip.notif-type-round_completed,
.notif-type-chip.notif-type-scores_saved { background: #d1fae5; color: #065f46; }
.notif-type-chip.notif-type-announcement { background: #dbeafe; color: #1e40af; }
.notif-type-chip.notif-type-sub_assigned { background: #fef3c7; color: #92400e; }
.notif-type-chip.notif-type-warning      { background: #fee2e2; color: #991b1b; }
.notif-type-chip.notif-type-result       { background: #ede9fe; color: #5b21b6; }
.notif-date {
    font-size: .78rem;
    color: #6b7280;
}
.notif-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* ── Per-player tee selector (score entry) ── */
.player-tee-wrap {
    margin-top: 4px;
}
.player-tee-select {
    font-size: 11px;
    padding: 1px 4px;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 4px;
    background: var(--color-surface, #f9fafb);
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    max-width: 140px;
}
.player-tee-select:focus {
    outline: none;
    border-color: var(--color-primary, #1a73e8);
}
/* Tee badge shown in scorecard view when player used a different tee */
.tee-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Migration / Import wizard ───────────────────────────────────────────── */
.migration-steps-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  max-width: 420px;
}
.mig-step {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.mig-step.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.mig-step.done {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

.migration-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.mig-file-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg-secondary);
}
.mig-file-card.required {
  border-color: var(--color-primary);
}
.mig-file-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mig-file-format {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.badge-required {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}
.badge-optional {
  background: var(--text-muted);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}
.mig-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 8px 0;
}
.migration-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
  max-width: 720px;
}
.mig-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.mig-summary-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}
.mig-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}
.mig-summary-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.mig-options-group {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}
.mig-options-group legend {
  font-weight: 600;
  font-size: 13px;
  padding: 0 6px;
}
.mig-check {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  cursor: pointer;
}
.mig-check input {
  margin-right: 6px;
}
.mig-season-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Hole Averages page ─────────────────────────────────────────────────── */
.hole-avg-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
}
.hole-avg-filter-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.hole-avg-filter-group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted, #666);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hole-avg-filter-group select {
    padding: .4rem .7rem;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 5px;
    font-size: .95rem;
    background: var(--bg, #fff);
    min-width: 180px;
}
.hole-avg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.hole-avg-table th {
    background: var(--color-primary, #2d6a4f);
    color: #fff;
    padding: .5rem .6rem;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}
.hole-avg-table td {
    padding: .45rem .6rem;
    border-bottom: 1px solid var(--border-color, #eee);
    vertical-align: middle;
}
.hole-avg-table tbody tr:hover { background: var(--bg-alt, #f7faf8); }
.hole-avg-table tfoot tr { background: var(--bg-alt, #f0f8f4); border-top: 2px solid var(--color-primary, #2d6a4f); }
.hole-avg-totals td { padding: .5rem .6rem; }

/* Score color coding */
.hole-avg-score { font-weight: 700; }
.hole-avg-eagle  { color: #b8860b; }
.hole-avg-birdie { color: #1a7f3c; }
.hole-avg-par    { color: var(--text, #222); }
.hole-avg-bogey  { color: #c05a00; }
.hole-avg-double { color: #c0392b; }

/* Stat pills */
.hole-stat-pill {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
}
.hole-stat-eagle  { background: #fff3cd; color: #856404; }
.hole-stat-birdie { background: #d4edda; color: #155724; }
.hole-stat-double { background: #f8d7da; color: #721c24; }

.text-muted { color: var(--text-muted, #888); }
.center { text-align: center; }

/* Stats compare table — also used in stats/compare.html */
.stats-metric-row {
    display: flex;
    justify-content: space-between;
    padding: .35rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
    font-size: .9rem;
}
.stats-metric-row:last-child { border-bottom: none; }
.stats-metric-label { color: var(--text-muted, #666); }
.stats-metric-value { font-weight: 600; }

/* ── Hole-by-Hole History Table (player profile) ───────────────────────── */
.hole-history-table { font-size: 0.88rem; }
.hole-history-hnum  { min-width: 34px; font-size: 0.8rem; color: #666; }
.hole-history-cell  { padding: 4px 6px !important; font-weight: 600; }
.hole-history-par-row td { background: #f7f7f7; border-bottom: 2px solid #ddd; }
.hole-history-avg-row td { background: #f0f7f0; border-top: 2px solid #c8e0c8; }
.hole-history-dist-row td { background: #fafafa; }

/* Score color coding (shared with score entry) */
.score-albatross { background: #fef3c7; color: #92400e; }  /* ≤ -3 */
.score-eagle     { background: #dbeafe; color: #1e40af; }  /* -2   */
.score-birdie    { background: #d4edda; color: #155724; }  /* -1   */
.score-par    { }  /* no highlight */
.score-bogey  { }
.score-double { }

/* ── Contests ──────────────────────────────────────────────────────────────── */
.contest-card { margin-bottom: 1.25rem; }
.contest-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.contest-card__name { margin: 0; font-size: 1.1rem; }
.contest-card__desc { margin: 0 0 0.75rem; color: var(--text-muted); font-size: 0.9rem; }
.contest-week-badge { background: var(--bg-secondary); color: var(--text-muted); border-radius: 4px; padding: 2px 8px; font-size: 0.8rem; }

.contest-type-chip { display: inline-block; border-radius: 4px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.contest-type-chip--long_drive     { background: #dbeafe; color: #1d4ed8; }
.contest-type-chip--closest_to_pin { background: #dcfce7; color: #15803d; }
.contest-type-chip--low_gross      { background: #fef9c3; color: #854d0e; }
.contest-type-chip--low_net        { background: #fce7f3; color: #9d174d; }
.contest-type-chip--most_birdies   { background: #ede9fe; color: #5b21b6; }
.contest-type-chip--team_low_net   { background: #dbeafe; color: #1e40af; }
.contest-type-chip--custom         { background: var(--bg-secondary); color: var(--text-muted); }

.contest-results-table .contest-rank,
.data-table .contest-rank { font-size: 1.2rem; text-align: center; }
.contest-row--first  td { background: rgba(255, 215, 0, 0.08); }
.contest-row--second td { background: rgba(192, 192, 192, 0.08); }
.contest-row--third  td { background: rgba(205, 127, 50, 0.08); }

.contest-add-form { display: flex; flex-direction: column; gap: 0; }
.contest-add-form .form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.contest-add-form .form-group { flex: 1; min-width: 160px; }

/* ── Contests: list page header (title+subtitle grouped so buttons on
   either side stay on one line down to phone widths) ── */
.contests-page-header.page-header { flex-wrap: nowrap !important; }
.contests-page-header .contests-title-block { display: flex; flex-direction: column; min-width: 0; }
.contests-page-header .contests-title-block h1 { white-space: nowrap; }
.contests-page-header .btn-sm { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
    .contests-page-header { gap: 6px; }
    .contests-page-header .btn-sm { padding: 4px 8px; font-size: 0.72rem; }
    .contests-page-header h1 { font-size: 1.15rem; }
    .contests-page-header .page-subtitle { font-size: 0.72rem; }
}

/* ── Contests: "Add New Contest" header row (heading + Every-week toggle
   on one line, so the row doesn't reflow when the Week field appears/
   disappears below it) ── */
.contest-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.contest-form-header h2 { margin: 0; }
.contest-form-header .form-group--checkbox { margin-bottom: 0; }

/* ── Contests: results/list tables — contained horizontal scroll instead
   of the whole page overflowing, plus tidier action-cell spacing ── */
.contests-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.contest-actions-cell { display: flex; gap: 0.4rem; align-items: center; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.contest-actions-cell form { display: flex; gap: 0.35rem; align-items: center; }
.contest-actions-cell select { width: auto; padding: 3px 6px; font-size: 0.8rem; }

/* ── Dues Tracker ──────────────────────────────────────────────────────────── */
.dues-summary-bar { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dues-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1.25rem; min-width: 110px; text-align: center; }
.dues-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.dues-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

.dues-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .dues-layout { grid-template-columns: 1fr; } }

.dues-main { min-width: 0; }
.dues-main .card { overflow-x: auto; max-width: 100%; }

.dues-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dues-table th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--border); color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dues-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dues-table tr:last-child td { border-bottom: none; }

.dues-row-paid td { background: rgba(34, 197, 94, 0.04); }
.dues-row-unpaid td { background: rgba(239, 68, 68, 0.03); }
.dues-status-paid { display: inline-block; background: #dcfce7; color: #15803d; border-radius: 4px; padding: 2px 8px; font-size: 0.78rem; font-weight: 600; }
.dues-status-unpaid { display: inline-block; background: #fee2e2; color: #b91c1c; border-radius: 4px; padding: 2px 8px; font-size: 0.78rem; font-weight: 600; }
.dues-paid-badge { display: inline-block; background: #dcfce7; color: #15803d; border-radius: 4px; padding: 1px 6px; font-size: 0.73rem; font-weight: 600; margin-left: 6px; }
.dues-player-cell { font-weight: 500; }
.dues-notes { color: var(--text-muted); font-size: 0.82rem; max-width: 160px; }

.dues-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.dues-form { display: flex; flex-direction: column; gap: 0.6rem; }
.dues-form .form-group { margin: 0; }
.dues-form label { font-size: 0.82rem; color: var(--text-muted); }
.dues-form input, .dues-form select { font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-xs { padding: 3px 10px; font-size: 0.78rem; border-radius: 4px; cursor: pointer; border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.btn-xs:hover { background: var(--accent); color: #fff; }
.btn-icon-danger { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.6; padding: 2px 4px; }
.btn-icon-danger:hover { opacity: 1; }

.dues-info-bar { background: var(--bg-secondary); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.9rem; }
.dues-info-item { color: var(--text-secondary); }

.dues-my-status { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.dues-my-status-paid { border-left: 4px solid #22c55e; }
.dues-my-status-unpaid { border-left: 4px solid #ef4444; }
.dues-my-icon { font-size: 1.5rem; line-height: 1; }
.dues-my-text strong { display: block; margin-bottom: 4px; }
.dues-my-detail { font-size: 0.88rem; color: var(--text-muted); }
.dues-you-badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 0.72rem; font-weight: 700; margin-left: 6px; vertical-align: middle; }

/* ── Sub Requests ─────────────────────────────────────────────────────────── */
.sub-req-matchup-info { background: var(--bg-secondary); border-radius: 8px; padding: 1rem; margin-bottom: 1.25rem; }
.sub-req-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; align-items: center; }
.sub-req-date { font-size: 0.9rem; color: var(--text-secondary); }
.sub-req-teams { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-weight: 600; }
.sub-req-team { font-size: 0.95rem; }
.sub-req-vs { color: var(--text-muted); font-size: 0.85rem; }
.sub-req-player-notes { font-size: 0.88rem; color: var(--text-secondary); background: var(--bg-secondary); border-radius: 6px; padding: 0.4rem 0.7rem; margin: 0.3rem 0; }
.sub-req-admin-card { border-left: 3px solid var(--warning, #f59e0b); }
.sub-req-admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.sub-req-admin-meta { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }

/* ── Course Statistics page ─────────────────────────────────────────────── */
.course-stats-summary-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.course-stats-summary-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1.25rem;
    text-align: center;
    min-width: 100px;
    flex: 1;
}
.course-stats-summary-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}
.course-stats-summary-lbl {
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.course-stats-hole-table td, .course-stats-hole-table th {
    white-space: nowrap;
}
.cs-eagle-col { color: #b8860b; }
.cs-birdie-col { color: #2d7a2d; }
.cs-par-col { color: #4a7a4a; }
.cs-bogey-col { color: #c0392b; }
.cs-double-col { color: #7b241c; }
.cs-val-good { color: #2d7a2d; font-weight: 600; }
.cs-val-bad  { color: #c0392b; font-weight: 600; }
.cs-difficulty-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .8rem;
    background: var(--bg-subtle, #f4f4f4);
    color: var(--text-muted);
}
.cs-difficulty-badge.cs-hard {
    background: #fde8e8;
    color: #c0392b;
    font-weight: 600;
}
.cs-difficulty-badge.cs-easy {
    background: #e8f8e8;
    color: #2d7a2d;
}
.cs-best-row {
    background: #fffbea;
}
.score-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
}

/* ── Email Settings ─────────────────────────────────────────────────────── */
.email-settings-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 860px) {
    .email-settings-layout { grid-template-columns: 1fr; }
}
.email-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    flex-wrap: wrap;
}
.email-status-enabled  { background: #e8f5e9; color: #2d6a2d; border: 1px solid #a5d6a7; }
.email-status-disabled { background: #fafafa; color: #666; border: 1px solid #ddd; }
.email-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.email-status-enabled  .email-status-dot { background: #43a047; }
.email-status-disabled .email-status-dot { background: #bbb; }
.email-triggers-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.email-triggers-grid .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}
.email-triggers-grid .checkbox-label:hover { background: #fafafa; }
.email-triggers-grid .checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.email-triggers-grid .checkbox-label small { display: block; color: #888; font-size: 12px; margin-top: 2px; }
.email-help-card { margin-top: 16px; }
.email-help-body { padding-top: 0; }
.email-help-item { margin-bottom: 14px; font-size: 13px; }
.email-help-item:last-child { margin-bottom: 0; }
.email-help-item code { background: #f0f0f0; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.email-help-item a { color: #2d6a4f; }
.settings-section-label { font-size: 14px; font-weight: 600; color: #555; margin: 4px 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.form-row--checkbox { margin: 10px 0; }
.form-row--checkbox .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-divider { border: none; border-top: 1px solid #eee; margin: 16px 0 14px; }
.text-green { color: #2d7a2d; font-weight: 600; }

/* ── Stableford scoring mode ──────────────────────────────────────────────── */
.stableford-legend { background: #f0f7ff; border: 1px solid #bde0ff; border-radius: 6px; }
.pts-sb-eagle  { background: #ffe066; color: #7a5c00; font-weight: 700; border-radius: 3px; padding: 1px 3px; }
.pts-sb-birdie { background: #d4f5b4; color: #2d5a1b; font-weight: 700; border-radius: 3px; padding: 1px 3px; }
.pts-sb-par    { background: #e8f5e9; color: #1b5e20; font-weight: 600; border-radius: 3px; padding: 1px 3px; }
.pts-sb-bogey  { background: #ffd6d6; color: #7f1d1d; font-weight: 600; border-radius: 3px; padding: 1px 3px; }
.pts-sb-double { background: #ffaaaa; color: #6b1c1c; font-weight: 700; border-radius: 3px; padding: 1px 3px; }

/* ── Player Edit Form ───────────────────────────────────────────────────── */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    max-width: 640px;
    margin-bottom: 1.5rem;
}
.form-card .form-group { margin-bottom: 1.25rem; }
.form-card label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--text); }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="number"],
.form-card textarea {
    width: 100%; box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--input-bg, #fff);
    color: var(--text);
}
.form-card textarea { resize: vertical; font-family: inherit; }
.form-group--narrow { max-width: 200px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin: 0.3rem 0 0; }
.form-optional { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.required { color: var(--danger, #d9534f); margin-left: 2px; }

/* ── Individual Player Standings ── */
.indiv-summary-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.indiv-leader-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 12px 18px;
  min-width: 150px;
  flex: 1;
}
.ilc-label { font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: .5px; margin-bottom: 4px; }
.ilc-name  { font-size: 15px; font-weight: 600; }
.ilc-name a { color: var(--text-primary, #111); text-decoration: none; }
.ilc-name a:hover { text-decoration: underline; }
.ilc-value { font-size: 13px; color: #4b8b3b; font-weight: 500; margin-top: 2px; }

.indiv-table { font-size: 13px; }
.indiv-table th { white-space: nowrap; }
.indiv-table .rank-col { width: 36px; text-align: center; }
.indiv-table .role-col { width: 50px; text-align: center; }
.indiv-table .pts-cell { font-size: 14px; }
.indiv-table .wlt-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wlt-w { color: #2e7d32; font-weight: 600; }
.wlt-t { color: #888; }
.wlt-l { color: #c62828; }
.role-chip { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.role-chip.role-a { background: #e8f5e9; color: #2e7d32; }
.role-chip.role-b { background: #e3f2fd; color: #1565c0; }
.score-avg-pill  { background: #f5f5f5; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.best-round-pill { background: #e8f5e9; border-radius: 4px; padding: 1px 6px; font-size: 12px; color: #2e7d32; font-weight: 600; }
.stat-eagle { color: #b8860b; font-weight: 600; }
.stat-birdie { color: #2e7d32; }
.stat-double { color: #c62828; }
.indiv-top3 { background: #fafff8; }
.indiv-note { font-size: 12px; color: #888; margin-top: 12px; }

/* ── Points Trend Chart ───────────────────────────────────────────────────── */

.trend-controls {
  margin: 16px 0;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: opacity .15s, background .15s;
  background: #fff;
  user-select: none;
}

.trend-legend-item input[type="checkbox"] {
  display: none;
}

.trend-legend-item--off {
  opacity: .4;
  background: #f5f5f5;
}

.trend-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trend-legend-name {
  font-weight: 500;
  color: #333;
}

.trend-legend-pts {
  color: #888;
  font-size: 12px;
}

.trend-chart-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.trend-chart-wrap canvas {
  display: block;
  width: 100%;
}

/* Trend table */
.trend-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 8px;
}

.trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.trend-table th {
  background: #f8f9fa;
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #e5e5e5;
  white-space: nowrap;
}

.trend-th-team {
  text-align: left !important;
  min-width: 140px;
}

.trend-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  vertical-align: middle;
}

.trend-table tr:last-child td {
  border-bottom: none;
}

.trend-td-name {
  text-align: left !important;
  font-weight: 500;
  white-space: nowrap;
}

.trend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.trend-td-wk {
  white-space: nowrap;
}

.trend-wk-pts {
  font-weight: 600;
  color: #333;
}

.trend-cumul {
  font-size: 11px;
  color: #999;
  margin-left: 2px;
}

.trend-td-total {
  font-weight: 700;
  color: var(--color-primary, #2ecc71);
}

.trend-row--hidden {
  display: none;
}

.trend-table-note {
  font-size: 11px;
  color: #aaa;
  margin: 6px 12px 10px;
}

/* ── Week Summary / Recap ──────────────────────────────────────────────── */
.ws-meta-bar { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.ws-meta-sep { color: var(--border); }
.ws-meta-course { color: var(--text-muted); }
.ws-type-chip { background: var(--primary-light); color: var(--primary); border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 600; }

.ws-section { margin-bottom: 28px; }
.ws-section-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; border-bottom: 2px solid var(--primary); padding-bottom: 4px; display: inline-block; }

/* Matchup cards */
.ws-matchup-grid { display: flex; flex-direction: column; gap: 14px; }
.ws-matchup-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.ws-matchup-card--done { border-left: 4px solid var(--primary); }
.ws-matchup-teams { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ws-matchup-team { flex: 1; display: flex; align-items: center; gap: 8px; }
.ws-matchup-team--winner .ws-matchup-team-name { font-weight: 700; color: var(--primary); }
.ws-matchup-team--loser { opacity: 0.6; }
.ws-matchup-team-name { font-size: 15px; }
.ws-matchup-vs { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.ws-matchup-pts { margin-left: auto; font-size: 22px; font-weight: 700; color: var(--text-muted); min-width: 32px; text-align: right; }
.ws-matchup-pts--high { color: var(--primary); }
.ws-win-badge { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.ws-matchup-tie { text-align: center; color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }

/* Per-player breakdown table */
.ws-player-breakdown { overflow-x: auto; margin-bottom: 8px; }
.ws-player-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.ws-player-table th { background: var(--surface-alt); font-weight: 600; padding: 4px 8px; text-align: left; color: var(--text-muted); }
.ws-player-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); }
.ws-sep-col { width: 8px; background: var(--border); padding: 0 !important; }
.ws-pts-cell { font-weight: 700; color: var(--primary); }
.ws-matchup-footer { margin-top: 8px; }

/* Two-column layout */
.ws-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 768px) { .ws-two-col { grid-template-columns: 1fr; } }

/* Leader cards */
.ws-leaders { display: flex; flex-direction: column; gap: 12px; }
.ws-leader-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.ws-leader-card--eagle { border-left: 3px solid #f59e0b; }
.ws-leader-card--birdie { border-left: 3px solid var(--success); }
.ws-leader-card__title { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.ws-leader-list { display: flex; flex-direction: column; gap: 5px; }
.ws-leader-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.ws-leader-name { color: var(--text); }
.ws-leader-val { font-weight: 700; color: var(--text); background: var(--surface-alt); padding: 1px 8px; border-radius: 10px; font-size: 13px; }
.ws-leader-val--eagle { color: #92400e; background: #fef3c7; }
.ws-leader-val--birdie { color: #065f46; background: #d1fae5; }

/* Right column cards */
.ws-right-col { display: flex; flex-direction: column; gap: 14px; }
.ws-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ws-card__header { background: var(--surface-alt); padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border); }

/* Skins table */
.ws-skins-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ws-skins-table th { padding: 6px 12px; text-align: left; font-weight: 600; color: var(--text-muted); font-size: 11px; border-bottom: 1px solid var(--border); }
.ws-skins-table td { padding: 6px 12px; border-bottom: 1px solid var(--border); }
.ws-skins-holes { color: var(--text-muted); font-size: 12px; }
.ws-skins-payout { font-weight: 700; color: var(--primary); }

/* Standings table */
.ws-standings-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ws-standings-table th { padding: 6px 12px; text-align: left; font-weight: 600; color: var(--text-muted); font-size: 11px; border-bottom: 1px solid var(--border); }
.ws-standings-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); }
.ws-standings-first { background: #f0fdf4; }
.ws-standings-pos { font-size: 14px; width: 32px; }
.ws-standings-total { font-weight: 700; }
.ws-standings-week { color: var(--text-muted); }
.ws-standings-week--earned { color: var(--success); font-weight: 600; }
.ws-standings-footer { padding: 8px 12px; font-size: 12px; }
.ws-standings-footer a { color: var(--primary); text-decoration: none; }

/* ── League Activity Feed ────────────────────────────────────────────────── */
.league-activity-section {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.league-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.league-activity-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.league-activity-all {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
}
.league-activity-all:hover { text-decoration: underline; }

.league-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}
.laf-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.laf-item:last-child { border-bottom: none; }
.laf-item:hover { background: var(--hover-bg, #f8f8f8); }

.laf-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.laf-body {
  flex: 1;
  min-width: 0;
}
.laf-message {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.laf-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.laf-type-chip {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--badge-bg, #e8e8e8);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: capitalize;
}
.laf-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.laf-action {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  align-self: center;
  padding: 0.2rem 0.5rem;
}
.laf-action:hover { text-decoration: underline; }

/* event type accent colors */
.laf-type-round-completed .laf-type-chip { background: #d4edda; color: #1a5c2a; }
.laf-type-announcement .laf-type-chip    { background: #d1ecf1; color: #0c4a6e; }
.laf-type-sub-assigned .laf-type-chip   { background: #fff3cd; color: #7a5c00; }
.laf-type-alert .laf-type-chip          { background: #f8d7da; color: #7a1520; }

.league-activity-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}
.league-activity-empty__icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.league-activity-empty p { font-size: 0.88rem; margin: 0; max-width: 420px; margin: 0 auto; }

/* ── Forum ──────────────────────────────────────────────────────────────── */
.forum-topic-list { display:flex; flex-direction:column; gap:0; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.forum-row { display:flex; align-items:center; gap:14px; padding:14px 16px; background:var(--card-bg); text-decoration:none; color:var(--text); border-bottom:1px solid var(--border); transition:background .15s; }
.forum-row:last-child { border-bottom:none; }
.forum-row:hover { background:var(--hover-bg,#f5f7fa); }
.forum-row--pinned { background:var(--pin-bg,#fffde7); }
.forum-row--pinned:hover { background:#fff9c4; }
.forum-row--locked { opacity:.85; }
.forum-row__icon { font-size:20px; flex-shrink:0; }
.forum-row__body { flex:1; min-width:0; }
.forum-row__title { font-weight:600; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.forum-row__meta { font-size:12px; color:var(--text-muted); margin-top:3px; }
.forum-row__stats { text-align:center; flex-shrink:0; min-width:52px; }
.forum-reply-count { display:block; font-size:20px; font-weight:700; color:var(--green,#2e7d32); line-height:1; }
.forum-reply-label { font-size:11px; color:var(--text-muted); }
.forum-badge { display:inline-block; font-size:10px; font-weight:700; padding:1px 6px; border-radius:10px; margin-left:6px; vertical-align:middle; }
.forum-badge--pin { background:#fff3cd; color:#7d5a00; }
.forum-badge--lock { background:#f3e5f5; color:#6a1b9a; }
.forum-badge--op { background:#e3f2fd; color:#0d47a1; }
.forum-pagination { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:18px; }
.forum-page-info { font-size:14px; color:var(--text-muted); }

/* Forum post / topic view */
.forum-post { background:var(--card-bg); border:1px solid var(--border); border-radius:8px; margin-bottom:14px; overflow:hidden; }
.forum-post--op { border-color:var(--green,#2e7d32); border-width:2px; }
.forum-post__meta { display:flex; align-items:center; gap:10px; padding:10px 16px; background:var(--section-bg,#f8f9fa); border-bottom:1px solid var(--border); font-size:13px; }
.forum-post__author { font-weight:700; color:var(--text); }
.forum-post__date { color:var(--text-muted); font-size:12px; }
.forum-post__body { padding:16px; white-space:pre-wrap; word-break:break-word; font-size:14px; line-height:1.65; }
.forum-reply-card { background:var(--card-bg); border:1px solid var(--border); border-radius:8px; padding:18px; margin-top:18px; }
.forum-reply-card__title { font-size:15px; font-weight:700; margin:0 0 12px; }
.forum-locked-notice { background:#f3e5f5; border:1px solid #ce93d8; border-radius:8px; padding:14px 18px; color:#6a1b9a; font-size:14px; margin-top:18px; }
.btn-xs { font-size:11px; padding:2px 8px; }

/* ── Team Profile Page ────────────────────────────────────────────────────── */
.tp-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.tp-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    min-width: 100px;
}
.tp-stat-card--wins { border-color: var(--accent); }
.tp-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.tp-stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.tp-form-dots { display: flex; gap: 4px; justify-content: center; }
.tp-form-dot {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: #fff;
}
.tp-form-dot--w { background: var(--success); }
.tp-form-dot--t { background: var(--warning, #f0a500); }
.tp-form-dot--l { background: var(--danger); }

.tp-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 800px) { .tp-grid { grid-template-columns: 1fr; } }

.tp-player-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.tp-player-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.tp-player-name { font-weight: 600; font-size: 1rem; color: var(--accent); text-decoration: none; }
.tp-player-name:hover { text-decoration: underline; }
.tp-player-pts { font-size: 0.85rem; color: var(--text-muted); }
.tp-player-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-pstat { text-align: center; min-width: 54px; }
.tp-pstat-val { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); display: block; }
.tp-pstat-lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }

.tp-h2h-table td, .tp-h2h-table th { padding: 7px 10px; }
.tp-h2h-record { font-weight: 600; }
.tp-h2h--pos  { color: var(--success); }
.tp-h2h--neg  { color: var(--danger); }
.tp-h2h--even { color: var(--text-muted); }

.tp-matches-table td, .tp-matches-table th { padding: 7px 10px; }
.tp-row--win  { background: rgba(34,197,94,.06); }
.tp-row--loss { background: rgba(239,68,68,.05); }
.tp-row--tie  { background: rgba(245,158,11,.05); }
.tp-score { font-weight: 600; font-size: 0.9rem; }
.tp-outcome-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: .04em;
}
.tp-outcome-badge--w { background: var(--success); color: #fff; }
.tp-outcome-badge--l { background: var(--danger);  color: #fff; }
.tp-outcome-badge--t { background: var(--warning, #f0a500); color: #fff; }

.week-num-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.week-num-link:hover { text-decoration: underline; }
.team-profile-link { color: var(--text-primary); text-decoration: none; }
.team-profile-link:hover { color: var(--accent); text-decoration: underline; }

/* ═══════════════════════════════════
   SEASON AWARDS
   ═══════════════════════════════════ */
.awards-intro {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px 0;
  font-style: italic;
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.award-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.award-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.award-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.award-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 3px;
}
.award-desc {
  font-size: 12px;
  color: var(--muted);
}
.award-podium {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.award-podium-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
}
.award-rank-1 { border-left: 3px solid #f0c040; }
.award-rank-2 { border-left: 3px solid #aaa; }
.award-rank-3 { border-left: 3px solid #cd7f32; }
.award-rank-badge { font-size: 15px; flex-shrink: 0; width: 22px; }
.award-podium-name { flex: 1; font-weight: 500; }
.award-podium-name a { color: var(--link); text-decoration: none; }
.award-podium-name a:hover { text-decoration: underline; }
.award-podium-value { font-weight: 700; font-size: 14px; color: var(--green); white-space: nowrap; }
.award-podium-sub { font-size: 11px; white-space: nowrap; }
.award-empty {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 12px 0;
}
@media (max-width: 600px) {
  .awards-grid { grid-template-columns: 1fr; }
  .award-podium-sub { display: none; }
}

/* ============================================================
   Live Leaderboard  (session 29)
   ============================================================ */
.live-badge-pulse {
  display: inline-flex; align-items: center; gap: 5px;
  background: #dc2626; color: #fff;
  font-size: 13px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; animation: live-blink 1.6s infinite;
}
.live-badge-done {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--success); color: #fff;
  font-size: 13px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px;
}
.live-badge-waiting {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--text-muted); color: #fff;
  font-size: 13px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px;
}
@keyframes live-blink { 0%,100%{opacity:1} 50%{opacity:.55} }

.live-last-updated { font-size: 12px; color: var(--text-muted); }

.live-progress-bar-wrap {
  position: relative;
  background: var(--border-color); border-radius: 6px;
  height: 8px; margin: 12px 0 20px; overflow: hidden;
}
.live-progress-bar-fill {
  background: var(--success); height: 100%;
  border-radius: 6px; transition: width .5s ease;
}
.live-progress-label {
  position: absolute; right: 0; top: -20px;
  font-size: 12px; color: var(--text-muted);
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 800px) {
  .live-grid { grid-template-columns: 1fr; }
}

.live-section-heading {
  font-size: 15px; font-weight: 700; margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted);
}

/* Matchup card */
.live-matchup-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 10px; margin-bottom: 14px; overflow: hidden;
  transition: box-shadow .2s;
}
.live-matchup-card.winner-left  { border-left: 4px solid var(--success); }
.live-matchup-card.winner-right { border-right: 4px solid var(--success); }
.live-matchup-card.winner-tie   { border-left: 4px solid #f59e0b; }

.live-matchup-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px;
  background: var(--table-header-bg); border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}
.live-tee-time   { font-weight: 600; }
.live-start-hole { color: var(--text-muted); }
.live-scorecard-link { margin-left: auto; color: var(--primary-color); text-decoration: none; font-weight: 600; }
.live-scorecard-link:hover { text-decoration: underline; }

.live-status-chip {
  padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700;
}
.live-status-completed  { background: #d1fae5; color: #065f46; }
.live-status-scheduled  { background: #f1f5f9; color: #64748b; }

.live-matchup-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; padding: 14px;
  align-items: start;
}
.live-team { padding: 0 10px; }
.live-team-right { text-align: right; }
.live-team-winner .live-team-name { color: var(--success); font-weight: 700; }
.live-team-loser  .live-team-name { color: var(--text-muted); }

.live-team-name {
  font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.2;
}

.live-player-row {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.live-team-right .live-player-row { justify-content: flex-end; }
.live-player-name { color: var(--text-color); }
.live-role-chip {
  background: var(--border-color); color: var(--text-muted);
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
}
.live-player-pts {
  font-weight: 700; padding: 2px 7px; border-radius: 10px; font-size: 11px;
}
.pts-high { background: #d1fae5; color: #065f46; }
.pts-mid  { background: #fef3c7; color: #92400e; }
.pts-low  { background: #fee2e2; color: #991b1b; }
.live-gross { color: var(--text-muted); font-size: 11px; }

.live-score-vs {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 0 8px; font-size: 22px; font-weight: 800;
  min-width: 90px;
}
.live-score { display: inline-block; min-width: 28px; text-align: center; }
.live-score-sep { color: var(--text-muted); font-weight: 400; }
.score-win  { color: var(--success); }
.score-loss { color: var(--text-muted); }
.score-tie  { color: #f59e0b; }
.live-score-pending { color: var(--text-muted); font-size: 14px; font-weight: 400; }

/* Standings card */
.live-standings-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 10px; overflow: hidden;
}
.live-standings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.live-standings-table th {
  background: var(--table-header-bg); padding: 8px 10px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); border-bottom: 1px solid var(--border-color);
}
.live-standings-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-color); }
.live-standings-table tr:last-child td { border-bottom: none; }
.live-row-active { background: rgba(45,106,79,.04); }
.live-rank { font-size: 15px; }
.live-week-pts { font-weight: 600; }
.pts-earned { color: var(--success); }
.live-total-pts { font-size: 14px; }

/* Refresh countdown bar */
.live-refresh-notice {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 10px 14px; margin-top: 14px;
  font-size: 12px; color: var(--text-muted);
}
.live-refresh-bar-wrap {
  background: var(--border-color); border-radius: 4px; height: 4px; margin-top: 8px;
  overflow: hidden;
}
.live-refresh-bar-fill {
  background: var(--primary-color); height: 100%;
  border-radius: 4px; transition: width .25s linear;
}

/* Live button in schedule header */
.live-leaderboard-btn {
  background: #dc2626; color: #fff; border: none; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.live-leaderboard-btn:hover { background: #b91c1c; color: #fff; }

/* ── API Settings ─────────────────────────────────────────────────────────── */
.api-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .api-settings-grid { grid-template-columns: 1fr; } }

.api-key-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; margin: 12px 0;
}
.api-key-value {
  flex: 1; font-family: monospace; font-size: 13px;
  word-break: break-all; color: var(--text-primary);
}
.api-key-hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
.api-key-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.api-no-key { padding: 12px 0; }

.api-code-block {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; font-size: 12px;
  font-family: monospace; white-space: pre-wrap; word-break: break-all;
  color: var(--text-primary); margin: 8px 0 0;
}
.api-usage-intro { font-size: 13px; color: var(--text-muted); margin: 0; }

.api-endpoints-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.api-endpoints-table th {
  text-align: left; padding: 8px 12px;
  background: var(--bg-secondary); border-bottom: 2px solid var(--border);
  color: var(--text-muted); font-size: 12px; text-transform: uppercase;
}
.api-endpoints-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.api-endpoints-table tr:last-child td { border-bottom: none; }
.api-endpoints-table code { font-size: 12px; }

.api-method-chip {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; font-family: monospace;
}
.api-method-get  { background: #d1fae5; color: #065f46; }
.api-method-post { background: #dbeafe; color: #1e40af; }

/* ── Player Nicknames ──────────────────────────────────────────────────────── */
.nick-display-badge {
    font-size: 0.65em;
    font-weight: 500;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 12px;
    padding: 2px 10px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.01em;
}
.nick-section-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: 10px;
}
.nick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.nick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    transition: border-color 0.15s;
}
.nick-item--primary {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--card-bg));
}
.nick-label {
    font-size: 0.95rem;
    font-weight: 500;
}
.nick-primary-chip {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 6px;
    padding: 1px 6px;
    margin-left: 6px;
    letter-spacing: 0.04em;
}
.nick-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nick-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.78rem;
    border-radius: 5px;
    padding: 3px 8px;
    transition: background 0.15s;
}
.nick-btn--primary {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.nick-btn--primary:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.nick-btn--delete {
    color: var(--danger, #c0392b);
    background: transparent;
}
.nick-btn--delete:hover { background: #fdecea; }
.nick-btn--save {
    color: #fff;
    background: var(--accent);
}
.nick-btn--save:hover { background: color-mix(in srgb, var(--accent) 80%, #000); }
.nick-edit-form {
    display: none;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.nick-edit-input { flex: 1; min-width: 0; }
.nick-text:hover { text-decoration: underline dotted; }
.nick-add-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}
.nick-input {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    background: var(--input-bg, var(--bg));
    color: var(--text);
    width: 260px;
    max-width: 100%;
}
.nick-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.nick-empty {
    font-style: italic;
    margin-bottom: 12px;
}

.nick-score-badge {
    font-size: 0.72em;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.8;
    margin-left: 4px;
}

/* ── Player Comparison Page ───────────────────────────── */
.cmp-selector-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cmp-selector-group { display: flex; flex-direction: column; gap: 6px; }
.cmp-selector-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.cmp-label-p1 { color: #2563eb; }
.cmp-label-p2 { color: #dc2626; }
.cmp-select { min-width: 200px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 14px; }
.cmp-vs-badge { font-size: 20px; font-weight: 800; color: var(--muted); padding: 0 4px; align-self: flex-end; padding-bottom: 9px; }

.cmp-header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    margin-bottom: 24px;
    align-items: stretch;
}
.cmp-player-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    text-align: center;
}
.cmp-card-p1 { border-color: #2563eb33; }
.cmp-card-p2 { border-color: #dc262633; }
.cmp-player-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cmp-player-hcp { font-size: 28px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.cmp-player-sub { font-size: 12px; color: var(--muted); }

.cmp-header-record {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 200px;
}
.cmp-h2h-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 8px; }
.cmp-h2h-score { font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; }
.cmp-h2h-p1 { color: #2563eb; }
.cmp-h2h-p2 { color: #dc2626; }
.cmp-h2h-mid { color: var(--muted); font-size: 16px; }
.cmp-h2h-sub { font-size: 11px; color: var(--muted); margin-top: 6px; }

.cmp-section { margin-bottom: 32px; }
.cmp-section-title { font-size: 16px; font-weight: 700; margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

/* Stat comparison rows */
.cmp-stat-grid { display: flex; flex-direction: column; gap: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cmp-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.cmp-stat-row:last-child { border-bottom: none; }
.cmp-stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.cmp-stat-val { font-size: 22px; font-weight: 700; }
.cmp-val-p1 { color: #2563eb; }
.cmp-val-p2 { color: #dc2626; }
.cmp-winner { background: #f0fdf4; border-radius: 6px; }

/* Score distribution */
.cmp-dist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp-dist-col { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.cmp-dist-name { font-size: 15px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.cmp-dist-bars { display: flex; flex-direction: column; gap: 8px; }
.cmp-dist-row { display: grid; grid-template-columns: 52px 1fr 80px; gap: 10px; align-items: center; }
.cmp-dist-label { font-size: 12px; font-weight: 600; text-align: right; }
.cmp-dist-bar-wrap { background: var(--border); border-radius: 4px; height: 14px; overflow: hidden; }
.cmp-dist-bar { height: 100%; border-radius: 4px; transition: width .3s; }
.cmp-dist-pct { font-size: 12px; color: var(--muted); }
.cmp-dist-total { font-size: 11px; text-align: center; margin-top: 12px; }

.dist-eagle { color: #d97706; }
.dist-birdie { color: #16a34a; }
.dist-par { color: var(--text); }
.dist-bogey { color: #dc2626; }
.dist-double { color: #7f1d1d; }
.dist-eagle-bar  { background: #fbbf24; }
.dist-birdie-bar { background: #4ade80; }
.dist-par-bar    { background: #93c5fd; }
.dist-bogey-bar  { background: #f87171; }
.dist-double-bar { background: #ef4444; }

/* Trend chart */
.cmp-chart-legend { font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cmp-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.cmp-legend-p1 { background: #2563eb; }
.cmp-legend-p2 { background: #dc2626; }
.cmp-trend-canvas { display: block; width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); }

/* H2H table columns */
.cmp-col-p1 { background: #eff6ff; }
.cmp-col-p2 { background: #fff5f5; }
.cmp-win-cell  { color: #16a34a; font-weight: 700; }
.cmp-tie-cell  { color: var(--muted); }
.cmp-loss-cell { color: #dc2626; }

.outcome-chip { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.chip-win  { background: #dcfce7; color: #166534; }
.chip-tie  { background: #f3f4f6; color: #4b5563; }
.chip-loss { background: #fee2e2; color: #991b1b; }

@media (max-width: 640px) {
    .cmp-header-grid { grid-template-columns: 1fr; }
    .cmp-dist-grid { grid-template-columns: 1fr; }
    .cmp-selector-bar { flex-direction: column; }
}

/* ── Commissioner Week Notes ─────────────────────────────────────────────── */
.commissioner-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 10px 0 14px;
    font-size: 14px;
    line-height: 1.5;
}
.commissioner-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.commissioner-note-text { color: #78350f; flex: 1; white-space: pre-wrap; }

/* ── CSV Export Cards ─────────────────────────────────────────────────────── */
.reports-section-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 8px;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.export-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.export-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    text-decoration: none;
}

.export-card__icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.export-card__body {
    flex: 1;
    min-width: 0;
}

.export-card__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.export-card__desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.4;
}

.export-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    background: #dbeafe;
    color: #1d4ed8;
}

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

/* ── Bulk Tee-Time Editor (edit_week.html) ───────────────────── */
.ew-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0 20px; }
.ew-tee-section { margin-bottom: 8px; }
.ew-tee-heading { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.ew-apply-all { background: var(--surface-2, #f8f9fa); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.ew-apply-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ew-apply-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.ew-bulk-input, .ew-bulk-select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; background: var(--surface); color: var(--text); }
.ew-tee-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ew-tee-table th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--border); color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ew-tee-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-light, #eee); vertical-align: middle; }
.ew-tee-table tr:last-child td { border-bottom: none; }
.ew-tee-table tr:hover td { background: var(--surface-2, #f8f9fa); }
.ew-matchup-label { font-weight: 500; color: var(--text); }
.ew-vs { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; margin: 0 4px; }
.ew-tee-input { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; background: var(--surface); color: var(--text); }
.ew-tee-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light, rgba(45,106,79,.15)); }
.ew-hole-select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; background: var(--surface); color: var(--text); }

/* ============================================================
   Seed Handicaps page
   ============================================================ */
.seed-explainer {
    background: var(--card-bg, #f8f9fa);
    border: 1px solid var(--border, #dee2e6);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.seed-explainer p { margin: 0 0 0.5rem; }
.seed-explainer p:last-child { margin-bottom: 0; }
.seed-no-changes { color: #198754; font-weight: 600; }
.seed-summary-note { color: #0d6efd; }

.seed-table .seed-row-changed { background: #fff8e1; }
.seed-table .seed-row-same    { opacity: 0.75; }

.seed-hcp-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.seed-proposed { color: #0d6efd; }
.seed-none     { color: #aaa; font-weight: 400; }
.seed-source   { font-size: 0.82rem; color: #666; }

.seed-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.seed-chip-update { background: #ffe082; color: #7a5000; }
.seed-chip-ok     { background: #d4edda; color: #155724; }
.seed-chip-skip   { background: #e9ecef; color: #495057; }

.seed-confirm-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

/* ── Committee Handicap Adjustment ─────────────────────────────────────── */

.adj-stat-card { border-top: 3px solid var(--warning, #f59e0b); }

.adj-value-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.02em;
}
.adj-badge--plus  { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; }
.adj-badge--minus { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.adj-label-note {
    display: block;
    font-size: 0.72rem;
    color: var(--muted, #888);
    margin-top: 1px;
}

/* Section */
.adj-section { margin-top: 2rem; }

.adj-current-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}
.adj-current-icon { font-size: 1.4rem; flex-shrink: 0; }
.adj-current-body { flex: 1; }
.adj-current-reason { font-size: 0.85rem; color: #555; margin-top: 2px; }
.adj-current-date   { font-size: 0.78rem; color: #aaa; margin-top: 2px; }
.adj-value { font-size: 1rem; }
.adj-remove-btn { margin-left: auto; flex-shrink: 0; }

.adj-no-adj { margin-bottom: 1rem; font-style: italic; }

/* Form */
.adj-form { background: var(--card-bg, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 1.1rem 1.25rem; }
.adj-form-row { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.adj-form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.adj-form-label { font-size: 0.82rem; font-weight: 600; color: #444; }
.adj-input { width: 120px; padding: 0.45rem 0.6rem; border: 1px solid var(--border, #d1d5db); border-radius: 6px; font-size: 1rem; }
.adj-reason-input { width: 320px; max-width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--border, #d1d5db); border-radius: 6px; font-size: 0.9rem; }
.adj-form-hint { font-size: 0.75rem; color: #888; max-width: 260px; }
.adj-save-btn { margin-top: 0.25rem; }

/* ── Week Preview Page ──────────────────────────────────────────────────── */
.wp-course-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}
.wp-course-icon { font-size: 18px; }
.wp-course-name { font-weight: 600; color: var(--text-primary); }
.wp-course-sep  { color: var(--border); }
.wp-tee-badge   { color: #fff; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }

.wp-hole-table { width: 100%; font-size: 12px; border-collapse: collapse; margin-bottom: 18px; }
.wp-hole-table th, .wp-hole-table td { padding: 4px 6px; border: 1px solid var(--border); }
.wp-col-label { width: 110px; font-weight: 600; background: var(--surface-alt, #f8f9fa); }
.wp-col-hole  { width: 32px; }
.wp-col-total { width: 42px; font-weight: 700; }
.wp-par-tr td { background: var(--surface); }
.wp-hcp-tr td { background: var(--surface-alt, #f8f9fa); color: var(--text-muted); font-size: 11px; }

.wp-matchup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.wp-matchup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary, #2d6a4f);
  color: #fff;
  padding: 12px 20px;
  gap: 16px;
}
.wp-team-header { display: flex; align-items: center; gap: 8px; flex: 1; }
.wp-team-left   { justify-content: flex-start; }
.wp-team-right  { justify-content: flex-end; }
.wp-team-num    { background: rgba(255,255,255,.2); border-radius: 50%; width: 28px; height: 28px;
                  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.wp-team-name   { font-weight: 600; font-size: 15px; }
.wp-vs-center   { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.wp-vs          { font-weight: 800; font-size: 18px; letter-spacing: 2px; }
.wp-tee-time    { font-size: 12px; opacity: .85; }
.wp-start-hole  { font-size: 11px; opacity: .7; }

.wp-h2h-bar {
  padding: 8px 20px;
  background: var(--surface-alt, #f8f9fa);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.wp-h2h-label  { font-weight: 600; color: var(--text-muted); }
.wp-h2h-record { display: flex; align-items: center; gap: 6px; }
.wp-h2h-team   { color: var(--text-muted); font-size: 12px; }

.wp-flights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 700px) {
  .wp-flights { grid-template-columns: 1fr; }
}

.wp-flight-card {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.wp-flight-card:last-child { border-right: none; }

.wp-flight-badge {
  display: inline-block;
  background: var(--primary, #2d6a4f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.wp-flight-badge-b { background: #5a7fc4; }

.wp-flight-players {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wp-flight-player { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.wp-fp-left  { align-items: flex-start; text-align: left; }
.wp-fp-right { align-items: flex-end;   text-align: right; }
.wp-player-link { font-weight: 600; font-size: 13px; color: var(--primary, #2d6a4f); text-decoration: none; }
.wp-player-link:hover { text-decoration: underline; }
.wp-hdcp-badge  { font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--surface-alt,#f0f0f0); padding: 2px 6px; border-radius: 6px; }

.wp-form-dots   { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 2px; }
.wp-dot         { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
                  border-radius: 50%; font-size: 9px; font-weight: 700; color: #fff; }
.wp-dot-w { background: #22c55e; }
.wp-dot-t { background: #f59e0b; }
.wp-dot-l { background: #ef4444; }
.wp-dot-? { background: #94a3b8; }

.wp-flight-mid  { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 6px; min-width: 80px; }
.wp-strokes-given { display: flex; align-items: center; gap: 4px; background: #fef3c7; border-radius: 8px; padding: 4px 8px; }
.wp-strokes-num   { font-weight: 800; font-size: 20px; color: #92400e; }
.wp-strokes-label { font-size: 10px; color: #92400e; font-weight: 600; }
.wp-arrow         { font-size: 16px; color: #b45309; }
.wp-stroke-note   { font-size: 10px; color: var(--text-muted); text-align: center; }
.wp-even          { font-size: 12px; color: var(--text-muted); font-style: italic; }

.wp-stroke-row    { margin-top: 8px; }
.wp-stroke-table  { width: 100%; border-collapse: collapse; font-size: 11px; }
.wp-stroke-table tr { border-top: 1px solid var(--border); }
.wp-stroke-table td { padding: 3px 4px; text-align: center; }
.wp-stroke-label  { text-align: left !important; padding-left: 4px !important; font-weight: 600; min-width: 90px; color: var(--text-muted); }
.wp-stroke-cell   { color: var(--text-muted); }
.wp-gets-stroke   { color: #2d6a4f; font-weight: 700; background: #f0fdf4; }
.wp-stroke-total  { font-weight: 700; border-left: 1px solid var(--border); }

.wp-matchup-footer {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt, #f8f9fa);
}

/* ── Player Registration ─────────────────────────────────────── */
.reg-pending-row:hover { background: #f0faf5; }
.reg-message { font-size: .82rem; color: #4b5563; }
.reg-status-chip {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: .78rem; font-weight: 600;
}
.reg-status-chip--approved { background: #dcfce7; color: #166534; }
.reg-status-chip--rejected { background: #fee2e2; color: #991b1b; }

/* ── My Stats page ─────────────────────────────────────────── */
.mys-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.mys-card {
    border-radius: 10px;
    padding: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}
.mys-card--hdcp    { background: linear-gradient(135deg, var(--color-primary), #1a4a30); }
.mys-card--pts     { background: linear-gradient(135deg, #2563eb, #1e40af); }
.mys-card--record  { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.mys-card--avg     { background: linear-gradient(135deg, #0891b2, #0e7490); }
.mys-card--standing { background: linear-gradient(135deg, #d97706, #b45309); }
.mys-card--dues-ok   { background: linear-gradient(135deg, #16a34a, #15803d); }
.mys-card--dues-owed { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.mys-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-bottom: 6px; }
.mys-card-value { font-size: 34px; font-weight: 700; line-height: 1; }
.mys-card-sub   { font-size: 12px; opacity: .8; margin-top: 5px; }
.mys-sparkline  { display: block; width: 100%; height: 32px; margin-top: 8px; }
.mys-sparkline-label { font-size: 10px; opacity: .6; margin-top: 2px; }
.mys-wlt { display: flex; align-items: baseline; gap: 4px; font-size: 26px; font-weight: 700; }
.mys-wlt small { font-size: 11px; font-weight: 400; opacity: .8; margin-left: 1px; }
.mys-wlt-sep   { opacity: .5; font-size: 20px; }

.mys-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .mys-two-col { grid-template-columns: 1fr; } }

.mys-col { display: flex; flex-direction: column; gap: 16px; }
.mys-section-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 18px;
}
.mys-section-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--color-text); }

/* Upcoming round */
.mys-upcoming-week  { font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; }
.mys-upcoming-date  { font-size: 16px; font-weight: 600; margin: 2px 0 6px; }
.mys-upcoming-vs    { font-size: 14px; margin-bottom: 6px; }
.mys-upcoming-course{ font-size: 13px; color: var(--color-muted); margin-bottom: 3px; }
.mys-upcoming-tee   { font-size: 13px; color: var(--color-muted); margin-bottom: 10px; }
.mys-upcoming-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Team card */
.mys-team-name    { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mys-team-partner { font-size: 13px; color: var(--color-muted); margin-bottom: 3px; }
.mys-team-rank    { font-size: 13px; color: var(--color-muted); margin-bottom: 10px; }
.mys-partner-link { color: var(--color-primary); text-decoration: none; }
.mys-partner-link:hover { text-decoration: underline; }
.mys-team-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* HCP chart */
.mys-hcp-chart-wrap { width: 100%; }
.mys-hcp-chart { width: 100%; height: 60px; }
.mys-hcp-axis  { display: flex; justify-content: space-between; font-size: 10px; color: var(--color-muted); margin-top: 2px; }
.mys-hcp-values { font-size: 12px; margin-top: 4px; }

/* Rounds table */
.mys-rounds-table { width: 100%; font-size: 13px; }
.mys-outcome { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.mys-outcome--win  { background: #dcfce7; color: #15803d; }
.mys-outcome--tie  { background: #fef9c3; color: #92400e; }
.mys-outcome--loss { background: #fee2e2; color: #dc2626; }

/* Notification card */
.mys-notif-badge {
    display: inline-block; background: #ef4444; color: white;
    font-size: 10px; font-weight: 700; border-radius: 10px;
    padding: 1px 6px; margin-left: 6px; vertical-align: middle;
}

/* Quick links */
.mys-quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mys-quick-link {
    display: inline-block; padding: 6px 12px;
    background: var(--color-bg); border: 1px solid var(--color-border);
    border-radius: 6px; font-size: 13px; color: var(--color-text);
    text-decoration: none; transition: border-color .15s, background .15s;
}
.mys-quick-link:hover { border-color: var(--color-primary); background: var(--color-surface); }

/* ── Pre-round Reminder Card (edit_week.html) ── */
.ew-reminder-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ew-reminder-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ew-reminder-icon { font-size: 22px; line-height: 1.2; }
.ew-reminder-desc {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* ── Commissioner Overview Dashboard ── */
.ov-alert-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px;
    padding: 12px 16px; margin-bottom: 20px;
}
.ov-alert-icon { font-size: 18px; flex-shrink: 0; }
.ov-alert-banner strong { color: #92400e; }
.ov-alert-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ov-alert-chip {
    background: #f59e0b; color: #fff; padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ov-alert-chip:hover { background: #d97706; }

.ov-stat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px; margin-bottom: 24px;
}
.ov-stat-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px;
    padding: 16px; display: flex; gap: 12px; align-items: flex-start;
}
.ov-stat-card--warn { border-color: #f59e0b; background: #fffbeb; }
.ov-stat-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.ov-stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.ov-leader-name { font-size: 16px; }
.ov-stat-denom { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.ov-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 2px 0 4px; }
.ov-stat-sub { font-size: 12px; color: var(--text-muted); }
.ov-progress-bar { height: 5px; background: var(--border-color); border-radius: 3px; margin: 5px 0 3px; }
.ov-progress-fill { height: 100%; background: var(--primary-color); border-radius: 3px; transition: width .3s; }

.ov-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .ov-two-col { grid-template-columns: 1fr; } }
.ov-col { display: flex; flex-direction: column; gap: 16px; }

.ov-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px;
}
.ov-card--compact { padding: 12px 16px; }
.ov-card-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color); padding-bottom: 10px;
}
.ov-card-icon { font-size: 16px; }
.ov-card-header h3 { margin: 0; font-size: 14px; font-weight: 600; flex: 1; }
.ov-card-link { font-size: 12px; color: var(--primary-color); text-decoration: none; }
.ov-card-link:hover { text-decoration: underline; }
.ov-empty { color: var(--text-muted); font-size: 13px; margin: 0; }

.ov-next-round { display: flex; flex-direction: column; gap: 5px; }
.ov-nr-week { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.ov-nr-date { font-size: 14px; color: var(--text-muted); }
.ov-nr-course, .ov-nr-time { font-size: 13px; color: var(--text-secondary); }
.ov-nr-actions { display: flex; gap: 8px; margin-top: 8px; }

.ov-results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-results-table tr { border-bottom: 1px solid var(--border-color); }
.ov-results-table tr:last-child { border-bottom: none; }
.ov-results-table td { padding: 6px 4px; }
.ov-rnd-week { font-weight: 600; color: var(--text-muted); white-space: nowrap; width: 40px; }
.ov-rnd-teams { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ov-rnd-score { font-weight: 700; white-space: nowrap; color: var(--text-primary); }
.ov-winner { font-weight: 700; color: var(--primary-color); }
.ov-rnd-link a { font-size: 11px; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.ov-rnd-link a:hover { color: var(--primary-color); }

.ov-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-quick-btn {
    display: flex; align-items: center; gap: 6px; justify-content: space-between;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 6px; padding: 8px 10px; font-size: 12px; font-weight: 500;
    color: var(--text-primary); text-decoration: none; transition: background .15s;
}
.ov-quick-btn:hover { background: var(--border-color); }
.ov-quick-btn--alert { border-color: #f59e0b; background: #fffbeb; }
.ov-quick-btn--alert:hover { background: #fef3c7; }
.ov-badge {
    background: #ef4444; color: #fff; border-radius: 10px;
    padding: 1px 6px; font-size: 10px; font-weight: 700;
}

.ov-forum-list { display: flex; flex-direction: column; gap: 8px; }
.ov-forum-item { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ov-forum-title { font-size: 13px; color: var(--text-primary); text-decoration: none; flex: 1; }
.ov-forum-title:hover { color: var(--primary-color); text-decoration: underline; }
.ov-forum-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.ov-season-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-season-link {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 5px; padding: 4px 10px; font-size: 12px;
    color: var(--text-primary); text-decoration: none;
}
.ov-season-link:hover { background: var(--border-color); }

/* ── Playoff Picture ─────────────────────────────────────────── */
.pp-summary-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 14px 20px; margin-bottom: 16px;
}
.pp-summary-item { display: flex; flex-direction: column; align-items: center; }
.pp-summary-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pp-summary-value { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.pp-summary-badge { font-size: 13px; font-weight: 600; }
.pp-badge-final { color: var(--accent); }

.pp-legend {
    font-size: 13px; color: var(--text-muted); margin-bottom: 14px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}

.pp-chip { display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pp-chip-clinched { background: #d1fae5; color: #065f46; }
.pp-chip-alive    { background: #fef3c7; color: #92400e; }
.pp-chip-elim     { background: #fee2e2; color: #991b1b; }
.pp-chip-sm { padding: 2px 7px; font-size: 11px; }

.pp-table-wrap { margin-bottom: 24px; }
.pp-table thead th { font-size: 12px; }
.pp-subhead { font-size: 10px; font-weight: 400; color: var(--text-muted); }
.pp-th-rank { width: 50px; }
.pp-th-team { min-width: 160px; }
.pp-th-record { width: 55px; }
.pp-th-status { width: 110px; }
.pp-th-magic { width: 70px; }

.pp-row-in  { background: rgba(16,185,129,.04); }
.pp-row-clinched { background: rgba(16,185,129,.07) !important; }
.pp-row-eliminated td { opacity: .65; }

.pp-cutline-row td { padding: 0; }
.pp-cutline-cell { text-align: center; padding: 6px 0 !important; background: var(--bg-primary); }
.pp-cutline-label { font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .06em; }

.pp-rank { font-weight: 700; font-size: 15px; }
.pp-spot-dot { display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 6px; flex-shrink: 0; vertical-align: middle; }
.pp-dot-in  { background: #10b981; }
.pp-dot-out { background: #d1d5db; }
.pp-team-name { display: flex; align-items: center; font-weight: 500; }

.pp-pts-cell { font-weight: 700; font-size: 15px; }
.pp-rnd-cell { font-size: 13px; }
.pp-of-total { color: var(--text-muted); font-size: 11px; }
.pp-left-cell { font-weight: 600; }

.pp-leader-badge { background: #fef3c7; color: #92400e;
    padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.pp-above-cut { color: #059669; font-weight: 700; }
.pp-below-cut { color: #dc2626; font-weight: 700; }

.pp-magic-num { font-weight: 700; font-size: 15px; color: var(--accent); }

/* Progress bars */
.pp-bars-section { background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
.pp-bars-heading { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.pp-bars-hint { font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }

.pp-bars-list { display: flex; flex-direction: column; gap: 10px; }
.pp-bar-row { display: grid; grid-template-columns: 220px 1fr 80px; gap: 12px; align-items: center; }
.pp-bar-label { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.pp-bar-rank { font-weight: 700; color: var(--text-muted); font-size: 11px; width: 16px; flex-shrink: 0; }
.pp-bar-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.pp-bar-track { position: relative; height: 18px; background: var(--bg-secondary);
    border-radius: 9px; overflow: hidden; }
.pp-bar-max  { position: absolute; top: 0; left: 0; height: 100%;
    background: var(--border-color); border-radius: 9px; }
.pp-bar-fill { position: absolute; top: 0; left: 0; height: 100%;
    border-radius: 9px; transition: width .3s; }
.pp-bar-in  { background: #10b981; }
.pp-bar-out { background: #94a3b8; }
.pp-bar-cutline { position: absolute; top: 0; bottom: 0; width: 2px;
    background: #ef4444; border-radius: 1px; }

.pp-bar-pts { font-size: 12px; text-align: right; white-space: nowrap; }
.pp-bar-cur { font-weight: 700; }
.pp-bar-sep { margin: 0 2px; }

.pp-explainer { font-size: 12px; color: var(--text-muted); background: var(--bg-secondary);
    border-radius: 8px; padding: 12px 16px; line-height: 1.6; }

/* ── Player Availability ─────────────────────────────────────────────────── */
.avail-explainer {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.avail-explainer-icon { font-size: 20px; flex-shrink: 0; }

/* Member availability grid */
.avail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.avail-week-card {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    transition: border-color .15s, background .15s;
}
.avail-card--avail  { border-color: #16a34a; background: #f0fdf4; }
.avail-card--unavail { border-color: #dc2626; background: #fef2f2; }
.avail-card-header  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.avail-rnd-label    { font-weight: 600; font-size: 14px; }
.avail-date         { font-size: 12px; color: var(--color-muted); }
.avail-toggle-row   { display: flex; gap: 6px; margin-bottom: 8px; }
.avail-toggle       { flex: 1; cursor: pointer; }
.avail-toggle input[type="radio"] { display: none; }
.avail-btn          { display: block; text-align: center; padding: 6px 4px; border-radius: 5px; font-size: 12px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: all .15s; }
.avail-btn--yes     { border-color: #16a34a; color: #15803d; background: #dcfce7; }
.avail-btn--no      { border-color: #dc2626; color: #b91c1c; background: #fee2e2; }
.avail-toggle input:checked + .avail-btn--yes { background: #16a34a; color: #fff; }
.avail-toggle input:checked + .avail-btn--no  { background: #dc2626; color: #fff; }
.avail-note-input   { width: 100%; box-sizing: border-box; font-size: 12px; padding: 5px 8px; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-bg); color: var(--color-text); }
.avail-save-bar     { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.avail-save-hint    { font-size: 13px; color: var(--color-muted); }

/* Admin grid */
.avail-admin-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.avail-summary-chip  { padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.avail-chip--total   { background: var(--color-surface); border: 1px solid var(--color-border); }
.avail-chip--weeks   { background: var(--color-surface); border: 1px solid var(--color-border); }
.avail-chip--warn    { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }
.avail-chip--ok      { background: #dcfce7; border: 1px solid #16a34a; color: #166534; }

.avail-admin-table  { font-size: 13px; }
.avail-col-player   { min-width: 130px; }
.avail-col-team     { min-width: 120px; }
.avail-col-week     { min-width: 60px; }
.avail-col-week--flagged { background: #fff7ed; }
.avail-col-out      { min-width: 40px; }
.avail-wk-head      { font-weight: 600; font-size: 12px; }
.avail-wk-date      { font-size: 10px; color: var(--color-muted); }
.avail-wk-flag      { font-size: 10px; color: #b45309; font-weight: 600; }
.avail-cell         { padding: 6px 4px !important; }
.avail-cell--yes    { background: #f0fdf4; }
.avail-cell--no     { background: #fef2f2; }
.avail-dot          { font-size: 14px; font-weight: 700; }
.avail-dot--yes     { color: #16a34a; }
.avail-dot--no      { color: #dc2626; }
.avail-note-icon    { font-size: 11px; cursor: help; }
.avail-row--has-unavail td:first-child { border-left: 3px solid #f59e0b; }
.avail-out-badge    { display: inline-block; background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; border-radius: 12px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.avail-admin-footer { font-size: 12px; color: var(--color-muted); margin-top: 16px; }

/* ── League Info / Rules Page ─────────────────────────────────────────────── */
.li-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.li-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}
.li-card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .7rem;
}
.li-card-icon { font-size: 1.3rem; }
.li-card-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.li-dl {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: .4rem .75rem;
    margin: 0;
    font-size: .9rem;
}
.li-dl dt { font-weight: 600; color: var(--text-muted); padding-top: .15rem; }
.li-dl dd { margin: 0; line-height: 1.5; }
.li-note { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.li-badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}
.li-badge--green { background: #d1fae5; color: #065f46; }
.li-badge--blue  { background: #dbeafe; color: #1e3a8a; }
.li-badge--gray  { background: #f3f4f6; color: #6b7280; }
.li-tee-badge {
    display: inline-block;
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .75rem;
    color: #fff;
    font-weight: 600;
    margin-left: .3rem;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.li-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: .3rem;
    width: 100%;
    max-width: 240px;
}
.li-progress-fill { height: 100%; background: var(--green); border-radius: 4px; }
.li-progress-label { font-size: .82rem; color: var(--text-muted); }
.li-intro { font-size: .9rem; color: var(--text-muted); margin: 0 0 .75rem; }
.li-tb-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.li-tb-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
}
.li-tb-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Handicap Detail Page ── */
.hd-filters { margin-bottom: 20px; }
.hd-filters .filter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hd-filters .filter-group { min-width: 0; flex: 1 1 200px; }
.hd-filters .filter-group select { width: 100%; min-width: 0; box-sizing: border-box; }
.hd-summary-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.hd-summary-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 14px 20px; flex: 1; min-width: 120px;
}
.hd-card-primary { border-left: 4px solid var(--color-primary); }
.hd-card-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.hd-card-value { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.hd-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.hd-adj-badge { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 10px; vertical-align: middle; margin-left: 6px; }
.hd-adj-pos { background: #fef3c7; color: #92400e; }
.hd-adj-neg { background: #dbeafe; color: #1e40af; }
.hd-adj-banner {
  background: #fef9c3; border: 1px solid #fde047; border-radius: 8px;
  padding: 10px 16px; margin-bottom: 16px; font-size: 13px; color: #713f12;
}
.hd-adj-icon { margin-right: 6px; }
.hd-warning {
  background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; color: #9a3412; font-size: 14px;
}
.hd-section { margin-bottom: 28px; }
.hd-section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.hd-section-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.hd-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hd-chip { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.hd-chip-counting    { background: #dcfce7; color: #166534; }
.hd-chip-dropped-high { background: #fee2e2; color: #991b1b; }
.hd-chip-dropped-low  { background: #fef3c7; color: #92400e; }
.hd-chip-padding      { background: #f1f5f9; color: #64748b; }
.hd-row-counting      { background: #f0fdf4; }
.hd-row-dropped_high  { background: #fef2f2; opacity: .85; }
.hd-row-dropped_low   { background: #fffbeb; opacity: .85; }
.hd-row-padding       { background: #f8fafc; opacity: .75; }
.hd-diff-cell { font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-diff-pos { color: #dc2626; }
.hd-diff-neg { color: #16a34a; }
.hd-formula-box {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 20px 24px; max-width: 560px;
}
.hd-formula-step { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border-color); }
.hd-formula-step:last-child { border-bottom: none; }
.hd-formula-result { border-top: 2px solid var(--color-primary) !important; border-bottom: none; padding-top: 10px; margin-top: 4px; }
.hd-formula-label { font-size: 13px; color: var(--text-muted); }
.hd-formula-val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-formula-index { font-size: 22px; color: var(--color-primary); }
.hd-formula-vals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hd-diff-pill { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.hd-details { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 16px; }
.hd-details-summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.hd-details-summary:hover { color: var(--color-primary); }
.hd-history-current { background: #f0fdf4; font-weight: 600; }
.hd-snapshot-banner {
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px;
}
.hd-snapshot-banner a { color: #1e40af; font-weight: 600; margin-left: 8px; }
.hd-row-snapshot { outline: 2px solid var(--color-primary, #2e7d32); outline-offset: -2px; }
.hd-chip-snapshot { background: #dbeafe; color: #1e40af; margin-left: 6px; }
.hd-mismatch { font-size: 11px; color: #b45309; }
.hd-settings-intro { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.hd-settings-table { max-width: 720px; }
.hd-settings-letter {
  font-weight: 700; color: var(--color-primary); text-align: center;
  width: 28px;
}
.hd-pill-link {
  display: inline-block; font-size: 10px; font-weight: 600; text-decoration: none;
  background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
  border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}
.hd-pill-link:hover { background: #dbeafe; }

/* ── Email Preferences ─────────────────────────────────────────────────────── */
.ep-notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.ep-notice--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.ep-notice--warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.ep-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 14px;
  transition: opacity .2s;
}
.ep-card--off { opacity: .65; }
.ep-card--info-only { background: #f8fafc; }
.ep-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ep-card-info { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.ep-card-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.ep-card-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.ep-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.ep-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.ep-section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 20px 0 10px; }
.ep-managed-badge { font-size: 12px; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 4px 10px; white-space: nowrap; flex-shrink: 0; }
.ep-actions { display: flex; gap: 10px; margin-top: 24px; }
.ep-email-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
/* Toggle switch */
.ep-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.ep-toggle input { opacity: 0; width: 0; height: 0; }
.ep-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #cbd5e1; border-radius: 26px; transition: .2s;
}
.ep-toggle-slider:before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ep-toggle input:checked + .ep-toggle-slider { background: #dc2626; }
.ep-toggle input:checked + .ep-toggle-slider:before { transform: translateX(22px); }
/* When checked = opted OUT, use red. Subtypes: when checked = opted out of that type */

/* ── Email Prefs — admin profile section ──────────────────────────────────── */
.ep-admin-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ep-admin-stat { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 16px; min-width: 130px; text-align: center; }
.ep-admin-stat--off { background: #fef2f2; border-color: #fca5a5; }
.ep-admin-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.ep-admin-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.ep-admin-val { font-size: 13px; font-weight: 600; margin-top: 4px; }
.ep-admin-stat--off .ep-admin-val { color: #dc2626; }
.ep-admin-form { display: flex; flex-direction: column; gap: 8px; }
.ep-admin-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ep-admin-chk input { width: 16px; height: 16px; cursor: pointer; accent-color: #dc2626; }

/* ── Bulk Score Import ─────────────────────────────────────────────────── */
.si-results-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.si-results-summary { display: flex; gap: .5rem; flex-wrap: wrap; }
.si-badge { padding: .3rem .7rem; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.si-badge--success { background: #d1fae5; color: #065f46; }
.si-badge--warn { background: #fef3c7; color: #92400e; }
.si-badge--error { background: #fee2e2; color: #991b1b; }
.si-badge--info { background: #e0f2fe; color: #075985; }
.si-winner { font-weight: 700; color: var(--green-dark); }
.si-error-list { margin: .5rem 0 0 1.2rem; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.si-error-list li { color: #b91c1c; }
.si-empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--card-bg); border-radius: 8px; }

.si-upload-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 2rem; margin-bottom: 2rem; }
.si-upload-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.si-upload-icon { font-size: 1.8rem; }
.si-upload-header h2 { margin: 0; font-size: 1.2rem; }
.si-format-info { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: .9rem; }
.si-format-cols { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .75rem; }
.si-format-cols code { background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: .15rem .45rem; font-size: .8rem; color: var(--green-dark); }
.si-format-notes { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .2rem; color: #555; }
.si-format-notes li strong { color: var(--text); }

.si-upload-form { margin-bottom: 1rem; }
.si-file-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.si-file-input { flex: 1; min-width: 200px; padding: .4rem; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; background: var(--bg); color: var(--text); }
.si-template-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.si-template-note { font-size: .85rem; color: var(--muted); }

.si-ref-note { margin: -.25rem 0 .75rem; font-size: .9rem; color: var(--muted); }
.si-row-done td { opacity: .55; }
.si-players-col { font-size: .8rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.si-player-name { white-space: nowrap; }
.si-player-sep { color: var(--border); }

/* ── Migration runner (admin/run_migrations.html) ─────────────────────────── */
.mig-card{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:1.5rem;max-width:780px;}
.mig-header{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;}
.mig-icon{font-size:2rem;line-height:1;}
.mig-title{font-size:1.2rem;font-weight:700;margin:0 0 .25rem;}
.mig-desc{color:var(--text-muted);margin:0;font-size:.9rem;}
.mig-table td,.mig-table th{padding:.5rem .75rem;}
.mig-row--ok td:first-child{color:var(--text-muted);}
.mig-row--missing{background:rgba(234,179,8,.06);}
.mig-row--error{background:rgba(220,38,38,.06);}
.mig-chip{display:inline-block;font-size:.75rem;padding:.15rem .5rem;border-radius:4px;font-weight:600;}
.mig-chip--ok{background:rgba(34,197,94,.15);color:#16a34a;}
.mig-chip--missing{background:rgba(234,179,8,.2);color:#92400e;}
.mig-chip--created{background:rgba(99,102,241,.15);color:#4338ca;}
.mig-chip--error{background:rgba(220,38,38,.15);color:#b91c1c;}
.mig-feature{font-size:.82rem;color:var(--text-muted);}

/* ── 18-Hole Scorecard (OUT / IN / TOT columns) ─────────────────────────── */
.sc-col-out,
.sc-col-tot      { width: 50px; min-width: 46px; }
.sc-subtotal-col { background: #f0f7f0 !important; border-left: 2px solid #c8e6c9; border-right: 2px solid #c8e6c9; font-weight: 700; }
.sc-row-holes th.sc-subtotal-col { background: #c8e6c9 !important; }
.sc-row-par  td.sc-subtotal-col  { background: #dff0df !important; }
.holes-section-label { font-weight: 700; color: var(--color-primary); margin: 1rem 0 0.4rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.holes-totals-bar    { margin-top: 0.75rem; padding: 0.5rem 1rem; background: #f0f7f0; border-radius: 6px; font-size: 0.9rem; }
.tee-format-badge    { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; }
.tee-format-18       { background: #c8e6c9; color: #1b5e20; }
.tee-format-9        { background: #e3f2fd; color: #0d47a1; }
.bsc-subtotal-col { background: #e8f4ea !important; border-left: 1px solid #a5d6a7; border-right: 1px solid #a5d6a7; }

/* ── Schedule yearly view — team reference card ── */
.team-ref-card { border: 1px solid #ddd; border-radius: 6px; padding: 0; background: #fff; margin-bottom: 16px; }
.team-ref-summary { padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: #1a5c2a; list-style: none; }
.team-ref-summary::-webkit-details-marker { display: none; }
.team-ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 10px 14px 12px; border-top: 1px solid #eee; }
.team-ref-item { display: flex; align-items: baseline; gap: 8px; font-size: 0.85rem; }
.team-ref-num { font-weight: 700; color: #1a5c2a; min-width: 28px; }
.team-ref-names { color: #333; }
.team-ref-nick { color: #888; font-style: italic; font-size: 0.8rem; }

/* ── Next-step banner (roster → teams prompt) ─────────────────────────── */
.next-step-banner{display:flex;align-items:center;gap:10px;padding:12px 16px;margin-bottom:18px;background:#e8f4ea;border:1px solid #a5d6a7;border-radius:8px;font-size:.95rem;}
.next-step-label{font-weight:700;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#fff;background:var(--color-primary);padding:2px 8px;border-radius:10px;white-space:nowrap;}
.next-step-link{font-weight:600;color:var(--color-primary);}

/* ── Golf Course API browse panel ───────────────────────────────────────── */
.gc-api-panel { padding: 0; }
.gc-api-summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a5c2a;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gc-api-summary::-webkit-details-marker { display: none; }
.gc-api-hint { font-size: 0.78rem; font-weight: 400; color: #888; }
.gc-api-body { padding: 0 16px 16px; border-top: 1px solid #eee; }
.gc-api-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }

/* ── Mobile nav / hamburger ──────────────────────────────────────────────── */
html { overflow-x: hidden; }

/* Hamburger button — always visible */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    nav { padding: 0 16px; }
    .nav-brand { padding: 13px 0; }
}

/* ── Schedule yearly — inline edit mode ─────────────────────────────────── */
.schedule-yearly-table .edit-mode-field { display: none !important; }
.schedule-yearly-table.editing .view-text { display: none !important; }
.schedule-yearly-table.editing .edit-mode-field {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
}
.sch-edit-select {
    font-size: 0.78rem;
    padding: 2px 4px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    max-width: 80px;
}
.sch-edit-date {
    font-size: 0.78rem;
    padding: 2px 4px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    width: 120px;
}
.sch-edit-save-bar {
    display: none;
    position: sticky;
    bottom: 16px;
    margin-top: 12px;
    background: #1a5c2a;
    color: white;
    padding: 10px 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    align-items: center;
    gap: 12px;
    z-index: 50;
}
.sch-edit-save-bar.visible {
    display: flex;
}
.sch-edit-save-bar .btn:not(.btn-danger) { background: white; color: #1a5c2a; font-weight: 700; }
.sch-edit-save-bar .btn:not(.btn-danger):hover { background: #e8f4ea; }
.sch-edit-save-bar { margin-left: auto; margin-right: auto; }
.next-step-link:hover{text-decoration:underline;}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE FIXES — 768px and 480px breakpoints
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* ── Global layout ── */
    main {
        margin: 20px auto;
        padding: 0 14px;
    }
    .page-header h1 { font-size: 1.5rem; }
    .page-header p  { font-size: 0.9rem; }

    /* ── Dashboard page-header (flex row) → stack ── */
    .page-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    .header-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ── Filter bar ── */
    .filter-group select { min-width: 0; width: 100%; }
    .schedule-filter-bar { padding: 12px 14px; gap: 10px; flex-direction: column; align-items: stretch; }

    /* ── Schedule filter bar: Week + Team side by side instead of each
       stacking full-width, action buttons scroll horizontally instead of
       wrapping onto their own lines -- this bar was taking 300+px of
       vertical space on phones before. ── */
    .schedule-filter-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
    .schedule-filter-selects .filter-group { width: 100%; }
    .schedule-filter-actions {
        display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
        -webkit-overflow-scrolling: touch; width: 100%;
    }
    .schedule-filter-actions .btn { flex-shrink: 0; white-space: nowrap; }

    /* ── Admin schedule widget header (Season Schedule / Last Names /
       Edit Schedule / Rain Outs) — keep the actions on one scrollable row
       instead of wrapping across several full-height lines. ── */
    .admin-widget__header-actions {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .admin-widget__header-actions > * { flex-shrink: 0; }

    /* ── Matchup row — prevent cramping ── */
    .matchup-row { flex-wrap: wrap; gap: 6px; }

    /* ── Word-break for long strings ── */
    .player-email, .forum-body, .list-card { word-break: break-word; overflow-wrap: anywhere; }

    /* ── Grids collapse at 768px for mid-size values ── */
    .archive-grid     { grid-template-columns: 1fr; }
    .courses-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    /* ── Tighter global layout for phones ── */
    main { padding: 0 10px; margin: 14px auto; }
    .page-header h1 { font-size: 1.3rem; }

    /* ── All large grids → single column ── */
    .settings-grid  { grid-template-columns: 1fr; }
    .courses-grid   { grid-template-columns: 1fr; }
    .archive-grid   { grid-template-columns: 1fr; }
    .ov-stat-grid   { grid-template-columns: 1fr 1fr; }

    /* ── Profile header buttons — wrap on small screens ── */
    .page-header-actions { width: 100%; justify-content: flex-start; }

    /* ── Subnav — ensure it doesn't overflow ── */
    .subnav-link { padding: 8px 12px; font-size: 0.82rem; }

    /* ── Card lists ── */
    .list-card { padding: 12px 14px; }

    /* ── Button groups wrap tighter ── */
    .header-actions { gap: 6px; }
    .btn { white-space: nowrap; }
}

/* ── Score entry header — keep buttons on one line on mobile, scroll instead of wrap ── */
.header-actions.ew-header-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ew-header-actions .btn,
.ew-header-actions .week-jump-select {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   P2–P3 POLISH FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── P2: Touch targets — buttons and nav links ≥ 44px tall ── */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn.btn-sm { min-height: 36px; }
.subnav-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ── P2: Consolidate color variables ── */
:root {
    --brand-green:     #1a5c2a;
    --brand-green-mid: #2d7a3a;
    --brand-green-lt:  #e8f4ea;
    --danger:          #dc2626;
    --danger-lt:       #fef2f2;
    --warning:         #f59e0b;
    --warning-lt:      #fffbeb;
    --success:         #16a34a;
}

/* ── P2: schedule-filter-bar very narrow ── */
@media (max-width: 360px) {
    .schedule-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .schedule-filter-bar .filter-group { width: 100%; }
    .schedule-filter-bar .btn { width: 100%; }
}

/* ── P2: col-player-name overflow on very narrow screens ── */
@media (max-width: 480px) {
    .col-player-name {
        min-width: 100px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ── P3: ov-stat-grid single column at 320px ── */
@media (max-width: 340px) {
    .ov-stat-grid { grid-template-columns: 1fr; }
}

/* ── P3: ov-stat-label bump to 12px ── */
.ov-stat-label { font-size: 12px; }

/* ── P3: form-row form-group min-width 0 on mobile ── */
@media (max-width: 480px) {
    .form-row .form-group { min-width: 0; }
}

/* ── P3: text-overflow ellipsis on player name cells in data tables ── */
.data-table td.player-name-cell,
.data-table td.col-player {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── P3: forum row metadata tighten ── */
.forum-row-meta {
    flex-wrap: wrap;
    row-gap: 2px;
    line-height: 1.4;
}

/* ── P2: touch targets — ensure small interactive elements meet 44px minimum ── */
@media (pointer: coarse) {
    .subnav-link,
    .btn-link,
    .tab-link,
    .standings-tab,
    .filter-btn,
    .page-btn {
        min-height: var(--touch-min);
        display: inline-flex;
        align-items: center;
    }
    .status-badge,
    .si-badge {
        min-height: 32px; /* badges stay compact but easier to tap */
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

/* --- Debug pages: "Admin Only" badge (promoted from per-template locals) --- */
.dbg-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
    margin-left: 8px;
}
