:root {
    color-scheme: light;
    --ink: #17211b;
    --muted: #657169;
    --surface: #ffffff;
    --line: #dfe7e1;
    --green: #1d7044;
    --green-dark: #115333;
    --green-soft: #e9f5ed;
    --danger: #9c2f2f;
    --danger-soft: #fff0f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #f3f6f3;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top right, #d7efdf 0, transparent 38%), #f3f6f3;
}

.login-card {
    width: min(100%, 440px);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 22px 60px rgb(29 74 48 / 12%);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 26px;
    border-radius: 16px;
    color: white;
    background: var(--green);
    font-weight: 800;
    letter-spacing: -.04em;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin-top: 0; }
.intro { margin: 14px 0 30px; color: var(--muted); line-height: 1.6; }

.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: .9rem; font-weight: 700; }
.login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd6ce;
    border-radius: 10px;
    background: #fbfcfb;
    color: var(--ink);
    font: inherit;
}
.login-form input:focus { outline: 3px solid #bfe3cb; border-color: var(--green); }
.login-form button, .logout-button {
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.login-form button { margin-top: 16px; padding: 14px; color: white; background: var(--green); }
.login-form button:hover { background: var(--green-dark); }

.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: var(--danger-soft); }
.topbar { display: flex; align-items: center; gap: clamp(20px, 4vw, 54px); padding: 14px clamp(20px, 5vw, 70px); border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { color: var(--green); font-size: 1.2rem; font-weight: 850; text-decoration: none; }
.logout-button { padding: 9px 14px; color: var(--ink); background: var(--green-soft); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 9px 11px; border-radius: 8px; color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); background: var(--green-soft); }
.account-menu { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.account-menu span { max-width: 220px; overflow: hidden; color: var(--muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.page { width: min(1100px, calc(100% - 40px)); margin: 70px auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 22px; }
.stat-card, .notice { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stat-card span { display: block; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.stat-card strong { font-size: 1.65rem; }
.notice { margin-top: 18px; line-height: 1.6; }
.notice p { margin-bottom: 0; color: var(--muted); }
.notice p + p { margin-top: 14px; }
.text-link, .back-link { color: var(--green); font-weight: 750; }
.back-link { text-decoration: none; }
.footer { padding: 0 20px 30px; color: var(--muted); font-size: .8rem; text-align: center; }
.development-grid { display: grid; gap: 22px; }
.document-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.document-card pre { margin: 0; overflow-x: auto; color: var(--ink); white-space: pre-wrap; font: 0.92rem/1.65 Inter, system-ui, sans-serif; }
.page-wide { width: min(1380px, calc(100% - 40px)); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.primary-link { padding: 12px 17px; border-radius: 10px; color: white; background: var(--green); font-weight: 750; text-decoration: none; }
.alert-success { color: var(--green-dark); background: var(--green-soft); }
.form-card { margin-bottom: 24px; }
.editor-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.editor-form [hidden] { display: none; }
.competition-kind { display: flex; flex-wrap: wrap; gap: 18px; }
.editor-form .competition-kind label { display: flex; align-items: center; gap: 7px; }
.competition-kind input { width: auto; }
.participant-row { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.participant-heading { display: flex; align-items: center; gap: 14px; }
.participant-heading label { flex: 1; min-width: 0; }
.participant-overrides { margin-top: 10px; }
.participant-overrides summary { color: var(--green); cursor: pointer; font-size: .85rem; }
.participant-overrides > label, .participant-overrides > div { margin-top: 12px; }
.editor-form .participant-check { display: flex; align-items: center; gap: 8px; }
.participant-check input { width: auto; }
.editor-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
.editor-form small { color: var(--muted); font-weight: 400; }
.accepted-sports { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.editor-form .accepted-sports label { display: inline-flex; align-items: center; gap: 7px; margin: 6px 18px 6px 0; }
.accepted-sports input[type="checkbox"] { width: auto; }
.accepted-sports p { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.editor-form input, .editor-form select, .filter-bar input, .filter-bar select { width: 100%; padding: 11px 12px; border: 1px solid #cbd6ce; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-actions button, .filter-bar button { padding: 11px 18px; border: 0; border-radius: 9px; color: white; background: var(--green); font: inherit; font-weight: 750; cursor: pointer; }
.form-actions a { color: var(--muted); }
.batch-form .check-label { white-space: normal; }
.batch-form .form-actions { flex-wrap: wrap; }
.batch-form [data-batch-status] { color: var(--muted); font-size: .85rem; }
.batch-toggle { display: block; margin-top: 6px; padding: 7px 10px; border: 1px solid var(--green); border-radius: 7px; background: var(--surface); color: var(--green); font: inherit; font-size: .8rem; cursor: pointer; }
.batch-toggle[hidden] { display: none; }
.batch-toggle:disabled { opacity: .5; cursor: default; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 210px 180px auto; gap: 10px; margin: 24px 0 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f8faf8; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { color: var(--green); text-decoration: underline; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: .8rem; font-weight: 750; }
.status-active { color: var(--green-dark); background: var(--green-soft); }
.status-inactive { color: #6d6262; background: #eeeaea; }
.actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.actions a, .link-button { color: var(--green); font: inherit; font-size: .88rem; font-weight: 700; }
.actions form { display: inline; }
.link-button { padding: 0; border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.result-count { color: var(--muted); font-size: .85rem; }
.empty-state { padding: 30px; border: 1px dashed #bfcac2; border-radius: 14px; color: var(--muted); background: #fafcfb; text-align: center; }
.competition-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.competition-filters > label:not(.check-label) { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.competition-filter-help { color: var(--muted); font-size: .85rem; }
.user-competition-table { table-layout: fixed; }
.user-competition-table th:first-child { width: 30%; }
.user-competition-table td { overflow-wrap: anywhere; font-size: .88rem; }
.user-competition-table small { display: block; margin-top: 5px; color: var(--muted); }
.user-competition-name strong { font-size: .94rem; }
.user-competition-name .status { margin-top: 7px; }
.user-competition-dates { white-space: nowrap; }
.competition-star { color: #a66b00; }
.competition-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.danger-link, .form-actions .danger-button { background: var(--danger); }
.form-actions .danger-button:disabled { opacity: .5; cursor: default; }
.check-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.check-label input { width: auto; }
.competition-list { display: grid; gap: 12px; }
.competition-card { display: grid; grid-template-columns: 190px 1fr auto; gap: 22px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.competition-date { display: grid; gap: 4px; color: var(--muted); font-size: .88rem; }
.competition-main h2 { margin: 0 0 7px; font-size: 1.15rem; letter-spacing: -.01em; }
.competition-main p { margin: 0 0 12px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.status-neutral { color: #46534b; background: #edf1ee; }
.competition-link { white-space: nowrap; }
.competition-table { min-width: 1250px; }
.competition-table td { font-size: .88rem; }
.competition-name { min-width: 260px; font-weight: 700; }
.competition-row-closed { color: #89918c; }
.competition-row-virtual .competition-name { color: var(--green); }
.competition-row-featured .competition-name { color: #b02f35; }
.time-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.time-fields legend { padding: 0 7px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.searchable-select { position: relative; }
.searchable-input { width: 100%; }
.searchable-native { position: absolute; width: 1px !important; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.searchable-options { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; left: 0; max-height: 280px; overflow-y: auto; padding: 5px; border: 1px solid #cbd6ce; border-radius: 10px; background: white; box-shadow: 0 15px 35px rgb(20 45 29 / 16%); }
.searchable-options button, .searchable-options span { display: block; width: 100%; padding: 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; font: inherit; text-align: left; }
.searchable-options button { cursor: pointer; }
.searchable-options button:hover, .searchable-options button.active, .searchable-options button.selected { background: var(--green-soft); color: var(--green-dark); }
.performance-filters { grid-template-columns: 145px 145px minmax(120px,160px) minmax(150px,1fr) 170px auto; align-items: end; }
.performance-user-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
.performance-filters label { display:grid; min-width:0; gap:6px; color:var(--muted); font-size:.82rem; font-weight:700; }
.performance-filters [hidden] { display: none !important; }
.performance-sort { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.performance-sort select { padding: 7px 10px; }
.performance-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0 14px; }
.performance-summary div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.performance-summary span { color: var(--muted); font-size: .88rem; }
.performance-summary > div:last-child strong { color: var(--green); font-size: 1.3rem; }
.performance-table { min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.performance-table th, .performance-table td { padding: 8px 12px; overflow-wrap: anywhere; }
.performance-table thead th { position: sticky; top: 0; z-index: 5; border-top: 1px solid var(--line); }
.performance-table td { background: white; font-size: .88rem; }
.performance-table .performance-athlete { width: 17%; }
.performance-table .performance-date { width: 125px; white-space: nowrap; }
.performance-table .performance-sport { width: 160px; }
.performance-table .performance-points { width: 65px; }
.performance-table .performance-state { width: 145px; }
.performance-table .performance-operations { width: 140px; }
.performance-table .performance-admin-operations { width: 180px; }
.performance-history { margin-top: 24px; }
.performance-history-list { list-style: none; padding: 0; margin: 16px 0; }
.performance-history-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.performance-history-list li > div { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.performance-history-list li > div > span { display: block; margin-top: 4px; }
.performance-history-refresh, .performance-history-delete { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--green); cursor: pointer; font: inherit; }
.performance-history-delete { color: var(--danger); }
.performance-history button[hidden] { display: none; }
.performance-table .sort-link { white-space: normal; }
.performance-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.performance-name-badge { display: inline-block; padding: 4px 7px; border: 1px solid transparent; border-radius: 7px; }
.performance-featured-star { display: inline-flex; width: 18px; height: 18px; margin-left: 3px; vertical-align: -3px; }
.performance-featured-star svg { width: 100%; height: 100%; fill: #fbbc04; stroke: #976200; stroke-width: 1; stroke-linejoin: round; }
.performance-type-real { background: #d8eee5; border-color: #82b99f; }
.performance-type-virtual { background: #e0e4ff; border-color: #9aa5e2; }
.performance-type-legend { display: flex; gap: 16px; margin-bottom: 10px; color: var(--muted); font-size: .78rem; }
.performance-type-legend span { display: inline-flex; align-items: center; gap: 5px; }
.performance-type-legend i { width: 13px; height: 13px; border: 1px solid var(--line); border-radius: 4px; }
.performance-sport-value { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.performance-sport-value strong { white-space: nowrap; }
.performance-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none; }
.performance-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.performance-icon-info { color: #315a7d; background: #edf3fa; border-color: #dce6f0; }
.performance-icon-approve { color: #156a36; background: #e4f5e9; border-color: #cae6d2; }
.performance-icon-edit { color: #86560e; background: #fff3dd; border-color: #efdfbd; }
.performance-icon-delete { background: #fff0f0; border-color: #f0caca; color: #a02121; }
.performance-icon:hover { filter: brightness(.95); }
.performance-icon:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.performance-icon-info[aria-expanded="true"] { color: white; background: #315a7d; }
.performance-actions form { margin: 0; }
.performance-actions a, .performance-actions button { font-size: .82rem; }
.performance-point-value { font-weight: 750; }
.performance-details { padding: 8px; }
.performance-details h2 { margin-bottom: 14px; font-size: 1rem; }
.performance-details dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 24px; margin: 0; }
.performance-details dt { margin-bottom: 5px; color: var(--muted); font-size: .78rem; }
.performance-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.performance-details .performance-note { grid-column: 1 / -1; }
.performance-detail-row td { background: #f8faf8; }
.performance-table .performance-pending .performance-title { color: #bd252d; }
.performance-table .status { white-space: normal; }
.performance-table td small { display:block; margin-top:4px; color:var(--muted); }
.performance-table small.distance-approved { color: var(--green); }
.performance-table small.distance-pending { color: var(--danger); }
.distance-approved { color:var(--green); font-weight:750; }
.distance-pending,.virtual-points { color:#bd252d; font-weight:750; }
.summary-filter { grid-template-columns:150px auto; justify-content:start; }
.summary-filter label { display:grid; gap:6px; color:var(--muted); font-size:.82rem; font-weight:700; }
.summary-table { min-width:2100px; }
.summary-table td { text-align:center; }
.summary-table td:nth-child(2) { min-width:190px; text-align:left; font-weight:700; }
.summary-table td span,.summary-table td strong { display:block; white-space:nowrap; }
.summary-table td strong { margin-top:5px; color:#25834d; }
.distance-picker { margin-bottom: 24px; }
.distance-rows { display: grid; gap: 6px; min-width: 0; }
.distance-editor-row { display: grid; grid-template-columns: minmax(160px, 260px) minmax(100px, 140px) auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.distance-editor-row label { min-width: 0; gap: 3px; font-size: .78rem; }
.distance-editor-row input, .distance-editor-row select { padding: 6px 8px; }
.distance-editor .distance-check { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .82rem; }
.distance-editor .distance-check input { width: 16px; height: 16px; margin: 0; padding: 0; flex-shrink: 0; accent-color: var(--green); }
.distance-editor-row input[readonly], .distance-editor-row select:disabled { background: #f0f3f0; color: var(--muted); }
.distance-row-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; color: var(--muted); }
.distance-row-info .link-button { font-size: .78rem; }
.distance-editor-row .distance-row-info small { font-size: .82rem; }
.distance-editor .distance-delete { color: var(--danger); }
.distance-editor .distance-delete input { accent-color: var(--danger); }
.distance-editor-row:has(.distance-delete input:checked) { border-color: var(--danger); background: var(--danger-soft); }
.distance-row-limit { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
    .competition-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .user-competition-wrap { overflow: visible; border: 0; background: transparent; }
    .user-competition-table, .user-competition-table tbody { display: block; }
    .user-competition-table thead { display: none; }
    .user-competition-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
    .user-competition-table td { min-width: 0; padding: 12px; border: 0; }
    .user-competition-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: .74rem; }
    .user-competition-table .user-competition-name { grid-column: 1 / -1; }
    .user-competition-name::before { display: none !important; }
    .performance-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .performance-table, .performance-table tbody { display: block; }
    .performance-table thead { display: none; }
    .performance-table .performance-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
    .performance-table .performance-row.is-open { border-radius: 12px 12px 0 0; }
    .performance-table .performance-row td { width: auto; min-width: 0; border: 0; }
    .performance-row td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: .74rem; font-weight: 600; }
    .performance-table .performance-title, .performance-table .performance-person, .performance-table .performance-operation-cell { grid-column: 1 / -1; }
    .performance-title strong { font-size: 1rem; }
    .performance-title::before, .performance-operation-cell::before { display: none !important; }
    .performance-table .performance-operation-cell { border-top: 1px solid var(--line); }
    .performance-icon { width: 40px; height: 40px; }
    .performance-table .performance-detail-row { display: block; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
    .performance-detail-row > td { display: block; border: 0; }
    .performance-details dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.performance-list [hidden] { display: none !important; }
.performance-row.performance-own > td, .performance-detail-row.performance-own > td { background: #eef8f2; }
.performance-row.performance-own > td:first-child { box-shadow: inset 4px 0 var(--green); }
.performance-point-breakdown { font-size: .88rem; }
.performance-points-notice { color: var(--muted); font-size: .88rem; line-height: 1.5; }

@media (max-width: 700px) {
    .login-card { padding: 30px 24px; }
    .page { margin-top: 45px; }
    .stats { grid-template-columns: 1fr; }
    .editor-form, .filter-bar { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .page-heading { align-items: start; flex-direction: column; }
    .topbar { align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; padding-top: 5px; }
    .account-menu { margin-left: auto; }
    .account-menu span { display: none; }
    .competition-card { grid-template-columns: 1fr; gap: 12px; }
    .distance-editor-row { grid-template-columns: minmax(0, 1fr) 70px auto; gap: 6px 8px; padding: 8px; }
    .distance-row-info { grid-column: 1 / -1; }
    .performance-filters { grid-template-columns: 1fr; }
    .performance-details dl { grid-template-columns: 1fr; }
}

/* Évadösszesítés */
.season-filter { grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(150px, 1fr)); align-items: end; }
.season-filter label { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.season-info { margin: 20px 0; }
.season-info h2 { margin-bottom: 8px; }
.season-info p { margin: 8px 0; }
.summary-scrollbar { overflow-x: auto; overflow-y: hidden; height: 21px; position: sticky; top: 0; z-index: 5; background: var(--surface); }
.summary-scrollbar[hidden] { display: none; }
.summary-scrollbar > div { height: 1px; }
.season-info > .primary-link { display: inline-block; margin: 6px 0; }
.season-table-wrap { max-height: 70vh; }
.season-table { width: max-content; min-width: 100%; font-size: .86rem; }
.season-table th, .season-table td { white-space: nowrap; text-align: right; padding: 12px; }
.season-table th:last-child, .season-table td:last-child { padding-right: 28px; }
.season-table thead th { position: sticky; top: 0; z-index: 2; background: #f2f7f4; }
.season-table .summary-name { position: sticky; left: 0; min-width: 200px; max-width: 260px; white-space: normal; text-align: left; background: white; z-index: 1; box-shadow: 2px 0 3px #0000000c; }
.season-table thead .summary-name { z-index: 3; background: #f2f7f4; }
.season-table td.summary-name { font-weight: 700; }
.season-table th small { display: block; color: var(--muted); }
.season-table td strong { display: block; color: var(--green); }
.summary-parts { display: block; color: var(--muted); font-size: .76rem; }
.summary-total { background: #edf7ef; }
.season-table .summary-group th { text-align: left; color: var(--green); background: #e4f2e9; }
.season-table .summary-own > td { background: #e3f2ea; }
.season-table .summary-own > td.summary-name { background: #d1e9dd; box-shadow: inset 4px 0 var(--green), 2px 0 3px #0000000c; }
.summary-own-label { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--green); color: white; font-size: .72rem; }
.registration-settings { margin: 24px 0; }
.registration-settings .form-actions { flex-wrap: wrap; }
.registration-settings label { display: grid; gap: 6px; }
.registration-settings select { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; }
.status-pending { background: #fff1d5; color: #785000; }
.request-list { list-style: none; padding: 0; }
.request-list > li { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.request-list form { display: inline-block; margin-left: 12px; }
.request-response { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.rules-content { line-height: 1.7; overflow-wrap: anywhere; }
.rules-content h2 { margin: 1.4em 0 .6em; font-size: 1.3rem; }
.rules-content > :first-child { margin-top: 0; }
.rules-content p, .rules-content ul, .rules-content ol { margin: 0 0 1em; }
.rules-content ul, .rules-content ol { padding-left: 1.6em; }
.rules-content li { margin: .25em 0; }
.rules-content .rules-gap { margin: 0; }
.rules-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.rules-toolbar button { padding: 8px 12px; min-height: 44px; }
#rules-source { resize: vertical; min-height: 300px; font-weight: 400; line-height: 1.5; }
.rules-preview { margin-top: 24px; }
@media (max-width: 900px) { .season-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .season-filter { grid-template-columns: 1fr; }
    .season-table .summary-name { min-width: 125px; max-width: 155px; }
    .season-table th, .season-table td { padding: 10px; }
}
/* Bejelentkezés és önregisztráció */
.login-form select { width: 100%; padding: 13px 14px; border: 1px solid #cbd6ce; border-radius: 10px; background: #fbfcfb; color: var(--ink); font: inherit; }
.auth-alternative { margin-top: 12px; }
.login-form .google-button { color: #1f1f1f; background: #fff; border: 1px solid #747775; }
.login-form .google-button:hover { background: #f0f4f9; }
.auth-register-link { margin-top: 24px; }
.auth-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .login-card { padding: 25px; } }
