:root {
    --navy: #0f2d49;
    --navy-2: #163b5d;
    --blue: #1f55d5;
    --blue-dark: #1744ad;
    --blue-soft: #eaf1ff;
    --bg: #f3f6fb;
    --panel: #ffffff;
    --text: #132037;
    --muted: #65758b;
    --border: #d9e2ef;
    --border-strong: #c3d0e1;
    --green: #17734c;
    --green-soft: #e8f7ef;
    --amber: #8a5b00;
    --amber-soft: #fff6df;
    --red: #b42318;
    --red-soft: #fff0ee;
    --neutral-soft: #eef2f7;
    --shadow: 0 12px 34px rgba(15, 45, 73, .08);
    --shadow-hover: 0 18px 42px rgba(15, 45, 73, .14);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--blue); }

.topbar {
    min-height: 68px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    box-shadow: 0 5px 18px rgba(5, 24, 42, .12);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark { font-size: 23px; font-weight: 950; letter-spacing: .02em; }
.brand-name { color: #c9def2; font-size: 21px; font-weight: 560; }
.topbar nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a, .nav-button {
    color: #dbeafe;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.topbar nav a:hover, .nav-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.inline { display: inline; }

.container { max-width: 1240px; margin: 34px auto; padding: 0 22px; min-height: calc(100vh - 150px); }
.footer { text-align: center; padding: 26px 20px; color: var(--muted); font-size: 13px; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 5px 0 9px; letter-spacing: -.025em; }
h2 { margin: 0 0 18px; line-height: 1.2; }
h3 { margin: 0 0 12px; }
p { margin-top: 0; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--blue); }
.muted, .field-note { color: var(--muted); }

.panel, .login-card, .stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel { padding: 24px; margin-bottom: 24px; }
.login-card { max-width: 620px; margin: 90px auto; padding: 50px; }
.login-card p { font-size: 17px; color: var(--muted); }
.note { margin-top: 22px; padding: 13px; background: #f7f9fc; border-radius: 8px; color: var(--muted); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    padding: 10px 17px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,45,73,.10); }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.large { padding: 14px 22px; margin-top: 12px; }
.button.small-button { padding: 6px 10px; min-height: 34px; font-size: 12px; }
.button.danger-outline { border-color: #e7aaa5; color: var(--red); background: #fff; }
.light-button { background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.55); }

.notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(15,45,73,.06);
}
.notice-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 950;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice p { margin: 0; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice-success { background: var(--green-soft); border-color: #bfe7d1; color: #135b3d; }
.notice-success .notice-icon { color: #fff; background: var(--green); }
.notice-danger { background: var(--red-soft); border-color: #f1c5c0; color: #8f2018; }
.notice-danger .notice-icon { color: #fff; background: var(--red); }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert.success { background: var(--green-soft); color: var(--green); }
.alert.danger { background: var(--red-soft); color: var(--red); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head h2 { margin-bottom: 4px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 28px 0 17px; }
.section-heading h2 { font-size: 22px; margin-bottom: 4px; }
.section-heading p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0; }
.stat { padding: 21px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 30px; margin-top: 7px; }
.stat strong.small { font-size: 16px; margin-top: 13px; }
.list-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); }
.list-row:first-of-type { border-top: 0; }
.list-row span, .list-row small { display: block; color: var(--muted); }
.right { text-align: right; }

.badge, .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
}
.badge, .chip-game { background: #e8effc; color: #244a87; }
.chip-success { background: var(--green-soft); color: var(--green); }
.chip-warning { background: var(--amber-soft); color: var(--amber); }
.chip-danger { background: var(--red-soft); color: var(--red); }
.chip-neutral { background: var(--neutral-soft); color: #526174; }
.chip-info { background: var(--blue-soft); color: var(--blue-dark); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td small { display: block; color: var(--muted); }
code { background: #eef2f7; padding: 3px 6px; border-radius: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #bfcadd; border-radius: 8px; padding: 11px 12px; background: #fff; font: inherit; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid rgba(31,85,213,.12); border-color: var(--blue); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid label.checkbox, .form-grid label.radio { flex-direction: row; align-items: center; font-weight: 500; }
.form-grid label.checkbox input, .form-grid label.radio input { width: auto; }
.section-title { border-top: 1px solid var(--border); padding-top: 21px; margin-top: 8px; font-size: 18px; }
.section-title:first-of-type { border-top: 0; padding-top: 0; }
.actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.field-note { font-size: 13px; background: #f7f9fc; border: 1px solid var(--border); padding: 11px 13px; border-radius: 7px; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.toggle-card { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 11px !important; border: 1px solid var(--border); border-radius: 9px; padding: 14px; background: #fafcff; font-weight: 500 !important; }
.toggle-card input { width: auto !important; margin-top: 4px; }
.toggle-card span { display: flex; flex-direction: column; gap: 3px; }
.toggle-card small, .mapping-option small { color: var(--muted); font-weight: 400; }
.inline-toggle { align-self: end; }
.label-title { font-weight: 700; margin-bottom: 8px; }
.mapping-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mapping-option { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 10px !important; border: 1px solid var(--border); padding: 12px; border-radius: 8px; background: #fff; font-weight: 500 !important; }
.mapping-option input { width: auto !important; margin-top: 4px; }
.mapping-option span { display: flex; flex-direction: column; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.method-card { border: 1px solid var(--border); border-radius: 9px; padding: 16px; }
.method-card p { color: var(--muted); font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.method-line { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
dt { color: var(--muted); }
dd { margin: 0; }
.row-actions { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.mini-check { display: inline-block; margin: 2px; padding: 2px 6px; border-radius: 12px; font-size: 11px; }
.mini-check.passed { background: var(--green-soft); color: var(--green); }
.mini-check.failed { background: var(--red-soft); color: var(--red); }

.participation-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 34px 38px;
    color: #fff;
    background: linear-gradient(125deg, #102d49 0%, #174a76 68%, #1f55d5 145%);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(15,45,73,.17);
}
.participation-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -130px;
    top: -195px;
    border: 55px solid rgba(255,255,255,.07);
    border-radius: 50%;
}
.participation-hero > * { position: relative; z-index: 1; }
.participation-hero .eyebrow { color: #9dc7ff; }
.participation-hero h1 { margin: 6px 0 10px; }
.participation-hero p { max-width: 720px; margin: 0; color: #d8e7f6; font-size: 16px; }
.compact-hero { padding-top: 28px; padding-bottom: 28px; }

.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.event-card-modern {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card-modern:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #b8c8df; }
.event-accent { position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--blue), #65a3ff); }
.event-card-body { padding: 23px 24px 22px 28px; }
.event-card-topline, .event-card-footer, .application-topline, .state-topline, .hero-chips { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-main { display: flex; align-items: center; gap: 17px; margin: 20px 0; }
.event-date-box {
    flex: 0 0 68px;
    width: 68px;
    height: 76px;
    border: 1px solid #cfe0f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7faff, #edf4ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}
.event-date-box strong { font-size: 25px; color: var(--navy); }
.event-date-box span { margin-top: 3px; color: var(--blue); text-transform: uppercase; font-size: 11px; font-weight: 900; }
.event-date-box small { color: var(--muted); font-size: 10px; }
.event-copy { min-width: 0; }
.event-copy h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.015em; }
.event-organization { margin: 0; color: var(--muted); }
.event-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.event-facts > div { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 11px; background: #f7f9fc; border: 1px solid #edf1f6; min-width: 0; }
.fact-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; background: #e7eef9; color: var(--blue-dark); font-weight: 900; }
.event-facts span span, .application-facts span { display: flex; flex-direction: column; min-width: 0; }
.event-facts small, .application-facts small, .hero-facts small, .state-category small, .my-registration-strip small { color: var(--muted); font-size: 11px; }
.event-facts strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.my-registration-strip { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 13px; border-radius: 11px; }
.my-registration-strip > span:last-child { display: flex; flex-direction: column; }
.my-registration-strip.tone-success { background: var(--green-soft); color: #145b3d; }
.my-registration-strip.tone-warning { background: var(--amber-soft); color: #71500b; }
.my-registration-strip.tone-danger { background: var(--red-soft); color: #8d231b; }
.my-registration-strip.tone-neutral { background: var(--neutral-soft); color: #526174; }
.mini-state-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.72); font-weight: 950; }
.event-card-footer { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 16px; }
.event-code { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.event-action { min-height: 39px; padding: 8px 13px; }

.tournament-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    padding: 30px 32px;
    margin-bottom: 22px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(125deg, #102d49, #17476f 68%, #1f55d5 160%);
    box-shadow: 0 16px 42px rgba(15,45,73,.15);
}
.tournament-hero-card .chip-game { background: rgba(255,255,255,.14); color: #fff; }
.tournament-hero-card .chip-info { background: rgba(157,199,255,.16); color: #cfe4ff; }
.tournament-hero-card h1 { margin: 14px 0 8px; }
.tournament-hero-card p { color: #d8e7f6; font-size: 16px; }
.tournament-hero-copy { flex: 1; min-width: 0; }
.hero-chips { justify-content: flex-start; }
.hero-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-facts > span { display: flex; flex-direction: column; min-width: 150px; padding: 10px 13px; border-radius: 11px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }
.hero-facts small { color: #bbd5ec; }
.hero-facts strong { color: #fff; }

.registration-state-card {
    margin-bottom: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.registration-state-card.tone-success { border-top: 5px solid var(--green); }
.registration-state-card.tone-warning { border-top: 5px solid #d99a15; }
.registration-state-card.tone-danger { border-top: 5px solid var(--red); }
.registration-state-card.tone-neutral { border-top: 5px solid #7a8798; }
.state-summary { display: flex; gap: 18px; padding: 24px 26px; }
.state-large-icon { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: 23px; font-weight: 950; }
.tone-success .state-large-icon { background: var(--green-soft); color: var(--green); }
.tone-warning .state-large-icon { background: var(--amber-soft); color: var(--amber); }
.tone-danger .state-large-icon { background: var(--red-soft); color: var(--red); }
.tone-neutral .state-large-icon { background: var(--neutral-soft); color: #526174; }
.state-copy { flex: 1; min-width: 0; }
.state-copy h2 { margin: 8px 0 7px; font-size: 25px; }
.state-copy > p { margin-bottom: 15px; color: var(--muted); max-width: 850px; }
.state-topline { justify-content: space-between; }
.state-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 900; background: var(--neutral-soft); color: #526174; }
.tone-success .state-badge { background: var(--green-soft); color: var(--green); }
.tone-warning .state-badge { background: var(--amber-soft); color: var(--amber); }
.tone-danger .state-badge { background: var(--red-soft); color: var(--red); }
.state-category { display: inline-flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; background: #f6f8fb; border: 1px solid #e8edf4; }
.eligibility-results { border-top: 1px solid var(--border); padding: 21px 26px 25px; background: #fbfcfe; }
.eligibility-results h3 { font-size: 16px; }
.eligibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eligibility-item { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.eligibility-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 950; }
.eligibility-item.tone-success .eligibility-icon { background: var(--green-soft); color: var(--green); }
.eligibility-item.tone-danger .eligibility-icon { background: var(--red-soft); color: var(--red); }
.eligibility-item p { margin: 3px 0; color: var(--muted); font-size: 13px; }
.eligibility-item small { color: #46566b; font-weight: 700; }
.next-step-box, .inline-info { display: flex; align-items: flex-start; gap: 11px; margin: 0 26px 22px; padding: 13px 15px; border-radius: 11px; background: #edf4ff; color: #244a87; }
.next-step-box > span, .inline-info > span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.next-step-box p, .inline-info p { margin: 2px 0 0; }
.state-actions { display: flex; justify-content: flex-end; padding: 0 26px 24px; }

.category-selection-panel { padding: 28px; }
.selection-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.step-number { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 950; box-shadow: 0 8px 18px rgba(31,85,213,.22); }
.selection-heading h2 { margin: 4px 0 5px; font-size: 25px; }
.selection-heading p { margin: 0; color: var(--muted); }
.process-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; padding: 14px; margin-bottom: 18px; border: 1px solid #dce7f5; border-radius: 13px; background: #f7faff; }
.process-note > div { display: flex; align-items: flex-start; gap: 9px; }
.process-note > div > span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e3edfc; color: var(--blue-dark); font-size: 11px; font-weight: 950; }
.process-note p { display: flex; flex-direction: column; margin: 0; }
.process-note small { margin-top: 2px; color: var(--muted); }
.inline-info { margin: 0 0 18px; }
.category-grid-modern { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.category-card { position: relative; display: block; min-width: 0; cursor: pointer; }
.category-card.disabled { cursor: not-allowed; opacity: .62; }
.category-radio { position: absolute; opacity: 0; pointer-events: none; }
.category-card-inner {
    display: flex;
    flex-direction: column;
    gap: 13px;
    height: 100%;
    min-height: 250px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.category-card:not(.disabled):hover .category-card-inner { transform: translateY(-2px); border-color: #aebfda; box-shadow: 0 12px 26px rgba(15,45,73,.09); }
.category-radio:checked + .category-card-inner { border-color: var(--blue); background: #fbfdff; box-shadow: 0 0 0 3px rgba(31,85,213,.11), 0 12px 26px rgba(15,45,73,.09); }
.category-card-head { display: flex; align-items: center; justify-content: space-between; }
.category-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eef3fb; color: #53657c; font-weight: 950; font-size: 12px; }
.category-check { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 2px solid #cbd5e2; color: transparent; font-weight: 950; }
.category-radio:checked + .category-card-inner .category-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.category-radio:checked + .category-card-inner .category-symbol { background: var(--blue-soft); color: var(--blue-dark); }
.category-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.category-name-row > strong { font-size: 19px; line-height: 1.25; }
.category-code { flex: 0 0 auto; border-radius: 7px; padding: 4px 7px; background: var(--neutral-soft); color: #617087; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.category-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.category-tags > span { padding: 4px 8px; border-radius: 999px; background: #f0f3f8; color: #526174; font-size: 11px; font-weight: 750; }
.requirement-box { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 12px; border-radius: 11px; }
.requirement-box > span:last-child { display: flex; flex-direction: column; }
.requirement-box small { margin-top: 2px; font-weight: 500; }
.requirement-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 950; }
.requirement-license { background: #fff7e7; color: #75500b; }
.requirement-license .requirement-icon { background: #f3d791; color: #75500b; }
.requirement-free { background: var(--green-soft); color: #155f40; }
.requirement-free .requirement-icon { background: var(--green); color: #fff; }
.category-instruction { font-size: 12px; color: var(--muted); }
.category-closed { padding: 8px 10px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 750; }
.application-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 17px 18px; border: 1px solid #d5e1f2; border-radius: 14px; background: #f8faff; }
.application-action-bar p { margin: 2px 0 0; color: var(--muted); }
.large-action { min-height: 48px; padding: 12px 20px; white-space: nowrap; }

.application-list { display: grid; gap: 15px; }
.application-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 21px; border: 1px solid var(--border); border-left-width: 5px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.application-card.tone-success { border-left-color: var(--green); }
.application-card.tone-warning { border-left-color: #d99a15; }
.application-card.tone-danger { border-left-color: var(--red); }
.application-card.tone-neutral { border-left-color: #7a8798; }
.application-state-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--neutral-soft); font-size: 18px; font-weight: 950; }
.application-card.tone-success .application-state-icon { background: var(--green-soft); color: var(--green); }
.application-card.tone-warning .application-state-icon { background: var(--amber-soft); color: var(--amber); }
.application-card.tone-danger .application-state-icon { background: var(--red-soft); color: var(--red); }
.application-content { min-width: 0; }
.application-topline { justify-content: flex-start; }
.application-content h2 { margin: 10px 0 4px; font-size: 21px; }
.application-content > p { margin-bottom: 13px; color: var(--muted); }
.application-facts { display: flex; flex-wrap: wrap; gap: 9px; }
.application-facts > span { min-width: 150px; padding: 8px 10px; border-radius: 9px; background: #f7f9fc; }
.application-view { white-space: nowrap; }

.empty, .empty-state { padding: 34px; text-align: center; color: var(--muted); }
.empty.compact, .empty-state.compact { padding: 24px; }
.empty-state { grid-column: 1 / -1; }
.empty-state h2, .empty-state h3 { color: var(--text); margin: 10px 0 6px; }
.empty-state p { margin-bottom: 17px; }
.empty-state-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 15px; background: var(--blue-soft); color: var(--blue); font-size: 23px; font-weight: 950; }

/* Önceki yönetim ekranlarıyla geriye uyumlu sınıflar */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 21px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.event-card:hover { transform: translateY(-2px); border-color: #a9bce0; }
.event-card h2 { font-size: 20px; margin: 14px 0 4px; }
.event-card p { color: var(--muted); min-height: 44px; }
.event-card-top, .result-head, .category-title, .category-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-card dl { grid-template-columns: 90px 1fr; margin: 16px 0 0; }
.status-dot { font-size: 12px; font-weight: 800; color: var(--muted); }
.status-dot.open { color: var(--green); }
.registration-result { border-left: 5px solid var(--blue); }
.status-pill { display: inline-block; border-radius: 20px; padding: 5px 10px; background: #edf2f8; color: #43546c; font-size: 11px; font-weight: 900; }
.status-confirmed { background: var(--green-soft); color: var(--green); }
.status-submitted, .status-waitlisted { background: var(--amber-soft); color: var(--amber); }
.status-eligibility_failed, .status-capacity_full, .status-rejected, .status-cancelled { background: var(--red-soft); color: var(--red); }
.check-list { margin: 16px 0; }
.check-row { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--border); }
.check-row.passed span { color: var(--green); }
.check-row.failed span { color: var(--red); }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-option { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 12px !important; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; font-weight: 500 !important; cursor: pointer; }
.category-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(29,78,216,.10); }
.category-option.disabled { opacity: .6; cursor: not-allowed; }
.category-option > input { width: auto !important; margin-top: 5px; }
.category-content { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.category-meta { justify-content: flex-start; flex-wrap: wrap; }
.category-meta b { font-size: 12px; color: #43546c; background: #eef2f7; padding: 3px 7px; border-radius: 14px; }
.accepted-plans { font-size: 13px; color: #43546c; }
.closed-text { color: var(--red) !important; }

@media (max-width: 1050px) {
    .event-grid { grid-template-columns: 1fr; }
    .event-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid-modern { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr; }
    .mapping-list { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    .topbar { height: auto; padding: 14px 18px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .topbar nav { gap: 3px; justify-content: flex-start; width: 100%; }
    .topbar nav a, .nav-button { padding: 7px 8px; font-size: 13px; }
    .container { margin-top: 20px; padding: 0 14px; }
    .stats, .two-col, .form-grid, .method-grid, .card-grid, .category-grid, .eligibility-grid { grid-template-columns: 1fr; }
    .page-head, .panel-head, .result-head, .tournament-hero-card, .participation-hero, .application-action-bar { align-items: flex-start; flex-direction: column; }
    .form-grid .span-2 { grid-column: auto; }
    .participation-hero, .tournament-hero-card { padding: 25px 22px; }
    .participation-hero .button, .tournament-hero-card .button { width: 100%; }
    .event-facts { grid-template-columns: 1fr; }
    .process-note { grid-template-columns: 1fr; }
    .hero-facts { width: 100%; }
    .hero-facts > span { flex: 1 1 140px; }
    .state-summary { padding: 21px 18px; }
    .eligibility-results { padding: 18px; }
    .next-step-box, .inline-info { margin-left: 18px; margin-right: 18px; }
    .state-actions { padding-left: 18px; padding-right: 18px; }
    .category-selection-panel { padding: 21px 16px; }
    .application-card { grid-template-columns: auto minmax(0, 1fr); }
    .application-view { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
    h1 { font-size: 30px; }
    .event-card-body { padding: 19px; }
    .event-main { align-items: flex-start; }
    .event-date-box { flex-basis: 58px; width: 58px; height: 70px; }
    .event-copy h2 { font-size: 19px; }
    .event-card-footer { align-items: stretch; flex-direction: column; }
    .event-action { width: 100%; }
    .state-summary { flex-direction: column; }
    .state-topline { align-items: flex-start; flex-direction: column; }
    .category-name-row { flex-direction: column; }
    .large-action { width: 100%; white-space: normal; }
    .application-card { grid-template-columns: 1fr; }
    .application-state-icon { display: none; }
}

/* 0.2.2 — Müsabaka ve ödül kategorisi ayrımı */
[hidden] { display: none !important; }
.category-type-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}
.type-guide-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #cfdced;
    border-radius: 13px;
    background: #f8fbff;
}
.type-guide-card > div { display: flex; flex-direction: column; gap: 3px; }
.type-guide-card small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.type-guide-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}
.award-guide { background: #fffbf1; border-color: #ead9a7; }
.award-guide .type-guide-icon { background: #9a6a08; }
.both-guide { background: #f5f1ff; border-color: #d9c9f4; }
.both-guide .type-guide-icon { background: #6d43a5; }
.type-context {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
}
.type-context-registration { background: var(--blue-soft); color: #214a93; }
.type-context-award { background: var(--amber-soft); color: #76500b; }
.nested-form-section {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 18px 18px;
    background: #fbfcfe;
}
.nested-form-section .section-title { margin-top: 0; }
.inner-grid { gap: 16px 20px; }
.input-help { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.award-form-section { background: #fffdf8; border-color: #eadfbd; }
.category-management-panel { overflow: hidden; }
.section-kicker {
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
}
.award-kicker { color: #8a5b00; }
.award-management-panel { border-top: 4px solid #d9a52d; }
.award-button {
    border-color: #c89320;
    background: #a36d05;
    color: #fff;
}
.award-button:hover { background: #875900; border-color: #875900; color: #fff; }
.award-explainer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 15px;
    border: 1px solid #e9d69c;
    border-radius: 12px;
    background: #fff9e8;
    color: #6f4c0b;
}
.award-explainer p { margin: 0; }
.award-explainer-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #9a6a08;
    color: #fff;
    font-weight: 950;
}

@media (max-width: 860px) {
    .category-type-guide { grid-template-columns: 1fr; }
}

/* 0.2.3 — Turnuva genel başvuru şartları ve yeniden değerlendirme */
.common-condition-note,
.inherited-rules-banner,
.admin-registration-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    border: 1px solid #bfd3f5;
    border-radius: 14px;
    background: #f4f8ff;
    color: #244a84;
}
.common-condition-note p,
.inherited-rules-banner p,
.admin-registration-note p { margin: 3px 0 0; color: #526a8d; }
.common-condition-icon,
.inherited-rules-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 950;
}
.required-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}
.common-membership-toggle { border-color: #aac2ef; background: #f5f8ff; }
.field-label { display: block; margin-bottom: 8px; font-weight: 800; }
.tournament-mapping-list { margin-top: 10px; }
.general-conditions-card { border-top: 4px solid var(--blue); }
.general-conditions-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.general-conditions-heading h2 { margin: 3px 0 4px; }
.general-conditions-heading p { margin: 0; color: var(--muted); }
.general-conditions-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 950;
}
.general-condition-list,
.general-rule-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.general-condition-list > div,
.general-rule-admin-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfe;
}
.general-condition-list > div.wide,
.general-rule-admin-grid > div.wide { grid-column: 1 / -1; }
.general-condition-list small,
.general-rule-admin-grid span { color: var(--muted); line-height: 1.4; }
.category-general-note {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f2f6fc;
    color: #52647e;
    font-size: 12px;
    font-weight: 650;
}
.reevaluation-box form { margin-top: 10px; }
.inherited-rules-banner { margin-bottom: 18px; border-color: #cbd9ef; }
.inherited-rules-banner small { color: #607493; }
.common-rules-admin-panel { border-top: 4px solid #3a66b7; }
.admin-registration-note { margin-bottom: 16px; }
.admin-check-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 240px; }
.stacked-actions { align-items: stretch; flex-direction: column; }
.stacked-actions form, .stacked-actions button { width: 100%; }

@media (max-width: 900px) {
    .required-profile-grid,
    .general-condition-list,
    .general-rule-admin-grid { grid-template-columns: 1fr; }
    .general-condition-list > div.wide,
    .general-rule-admin-grid > div.wide { grid-column: auto; }
}
.event-requirements-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid #cbd9ef;
    border-radius: 11px;
    background: #f5f8fe;
}
.event-requirements-strip strong { margin-right: 3px; color: #284d86; }
.event-requirements-strip span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: #53657e;
    font-size: 12px;
    font-weight: 700;
}

/* 0.2.4 — Kontenjan ve yedek liste yönetimi */
.registration-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.registration-summary-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 45, 90, .05);
}
.registration-summary-card > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.registration-summary-card > strong {
    color: var(--navy);
    font-size: 34px;
    line-height: 1;
}
.registration-summary-card > small { color: var(--muted); line-height: 1.4; }
.registration-summary-card.waitlist-card { border-color: #e5cf8f; background: #fffaf0; }
.registration-summary-card.waitlist-card > strong { color: #8a5b00; }
.waitlist-policy-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #c9921c;
    background: #fffaf0;
}
.waitlist-policy-note p { margin: 4px 0 0; color: #6d5b35; }
.registration-filter-bar {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(200px, 1fr) minmax(240px, 1.4fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}
.filter-actions { display: flex; gap: 8px; padding-bottom: 1px; }
.waitlist-row { background: #fffdf7; }
.queue-position-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid #ead6a1;
    border-radius: 10px;
    background: #fff9e8;
    color: #79530a;
}
.queue-position-badge small { color: #796a4a; }
.participant-queue-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #ead6a1;
    border-radius: 13px;
    background: #fff9e8;
    color: #6f4c0b;
}
.participant-queue-card p { margin: 3px 0; color: #6f6044; }
.participant-queue-card small { color: #7b6a49; }
.queue-number {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #9a6a08;
    color: #fff;
    font-size: 21px;
    font-weight: 950;
}
.capacity-tag-open { color: #176b42 !important; background: #eaf8f1 !important; }
.capacity-tag-full { color: #8a5b00 !important; background: #fff2cc !important; }
.application-queue-fact em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
}

@media (max-width: 980px) {
    .registration-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .registration-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-actions { align-self: end; }
}

@media (max-width: 620px) {
    .registration-summary-grid,
    .registration-filter-bar { grid-template-columns: 1fr; }
    .waitlist-policy-note { align-items: flex-start; flex-direction: column; }
    .filter-actions, .filter-actions .button { width: 100%; }
    .participant-queue-card { align-items: flex-start; }
}

/* 0.2.5 — Turnuva günü kayıt kontrolü ve aktif katılımcı listesi */
.checkin-operation-banner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #c9d7ec;
    border-left: 5px solid #60789f;
    border-radius: 15px;
    background: #f7f9fd;
}
.checkin-operation-banner.status-open { border-left-color: #16845a; background: #f1fbf6; }
.checkin-operation-banner.status-finalized { border-left-color: #315ca8; background: #f2f6fd; }
.checkin-operation-banner.status-closed { border-left-color: #b7780c; background: #fff9ed; }
.checkin-operation-banner > div { display: flex; flex-direction: column; gap: 4px; }
.checkin-operation-banner small { color: var(--muted); font-weight: 750; }
.checkin-operation-banner strong { color: var(--navy); line-height: 1.35; }
.checkin-tools-grid { margin-bottom: 16px; }
.inline-tool-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.hidden-form { display: none; }
.checkin-admin-table td { vertical-align: top; }
.checkin-admin-table td > small,
.checkin-admin-table td > strong { display: block; }
.checkin-complete-row { background: #f5fcf8; }
.admin-checkin-methods { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.method-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid #d6deea;
    border-radius: 999px;
    background: #f8fafc;
    color: #68778c;
    font-size: 11px;
    font-weight: 800;
}
.method-chip.done { border-color: #a9ddc3; background: #eaf8f1; color: #176b42; }
.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 20px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfe;
}
.bulk-action-bar span { color: var(--muted); font-size: 12px; }
.checkin-participant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checkin-participant-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-top: 4px solid #c38a22;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(24, 46, 83, .07);
}
.checkin-participant-card.is-complete { border-top-color: #16845a; }
.checkin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.checkin-card-head h2 { margin: 9px 0 4px; font-size: 21px; }
.checkin-card-head p { margin: 0; color: var(--muted); }
.checkin-code-box {
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px dashed #a9b8cc;
    border-radius: 11px;
    background: #f7f9fc;
    text-align: center;
}
.checkin-code-box small { display: block; color: var(--muted); font-size: 10px; }
.checkin-code-box strong { display: block; margin-top: 4px; letter-spacing: .12em; color: var(--navy); }
.checkin-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.checkin-facts > div { padding: 11px; border-radius: 10px; background: #f7f9fc; }
.checkin-facts small { display: block; margin-bottom: 4px; color: var(--muted); }
.checkin-facts strong { font-size: 13px; }
.method-progress-list { display: grid; gap: 8px; margin-bottom: 16px; }
.method-progress-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dde4ee; border-radius: 10px; }
.method-progress-row > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #edf1f6; color: #6a788b; font-weight: 900; }
.method-progress-row > div { display: flex; flex-direction: column; }
.method-progress-row small { color: var(--muted); }
.method-progress-row.done { border-color: #b3dec9; background: #f2fbf6; }
.method-progress-row.done > span { background: #16845a; color: #fff; }
.notice-inline { margin-top: 12px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.notice-inline.info { background: #eef5ff; color: #315989; }
.notice-inline.success { background: #eaf8f1; color: #176b42; }
.full-width { width: 100%; }
.status-pill.status-pending { background: #fff3d6; color: #835800; }

@media (max-width: 980px) {
    .checkin-operation-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkin-participant-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .checkin-operation-banner,
    .checkin-facts { grid-template-columns: 1fr; }
    .checkin-card-head { flex-direction: column; }
    .checkin-code-box { width: 100%; }
    .inline-tool-form { grid-template-columns: 1fr; }
    .bulk-action-bar { align-items: stretch; flex-direction: column; }
}

/* 0.2.6 — Rating verileri ve başlangıç sıralaması */
.notice-warning {
    border-color: #ead39d;
    background: #fff9e9;
    color: #6f4d0c;
}
.notice-warning .notice-icon { background: #b57a0c; color: #fff; }
.success-button { border-color: #16845a !important; background: #16845a !important; color: #fff !important; }
.danger-button { border-color: #bc4b4b !important; background: #fff4f4 !important; color: #9c3030 !important; }
.status-success { background: #eaf8f1; color: #176b42; }
.seeding-warning { align-items: flex-start; }
.seeding-warning .button { margin-top: 10px; }
.seeding-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.seeding-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(24, 46, 83, .06);
}
.seeding-summary-card > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.seeding-summary-card > strong { color: var(--navy); font-size: 24px; line-height: 1.15; }
.seeding-summary-card > small { margin-top: auto; color: var(--muted); }
.seeding-config-grid { align-items: stretch; }
.compact-head { margin-bottom: 4px; }
.seeding-workflow-panel { display: flex; flex-direction: column; }
.workflow-steps {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}
.workflow-steps li {
    display: flex;
    gap: 11px;
    padding: 11px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #f9fbfd;
}
.workflow-steps li > span {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dce4ef;
    color: #53647b;
    font-size: 12px;
    font-weight: 900;
}
.workflow-steps li > div { display: flex; flex-direction: column; gap: 3px; }
.workflow-steps li small { color: var(--muted); line-height: 1.4; }
.workflow-steps li.done { border-color: #b4dfca; background: #f2fbf6; }
.workflow-steps li.done > span { background: #16845a; color: #fff; }
.seeding-action-stack { display: grid; gap: 9px; margin-top: auto; }
.lock-state-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px;
    border: 1px solid #a9c1e8;
    border-radius: 11px;
    background: #eef4ff;
    color: #284e88;
}
.lock-state-card small { color: #597199; }
.starting-list-table td { vertical-align: middle; }
.starting-list-table td > strong,
.starting-list-table td > small { display: block; }
.seed-input { width: 84px; text-align: center; font-weight: 900; }
.rating-input { width: 130px; }
.rating-source-badge {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #d6dfeb;
    border-radius: 999px;
    background: #f7f9fc;
    color: #53647b;
    font-size: 11px;
    font-weight: 850;
}
.starting-list-table td > .rating-source-badge + small { margin-top: 5px; color: var(--muted); }
.seeding-note-panel {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-left: 4px solid #315ca8;
    background: #f4f7fc;
}
.seeding-note-panel p { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }
.tournament-seeding-overview { border-top: 4px solid #315ca8; }

@media (max-width: 980px) {
    .seeding-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .seeding-summary-grid { grid-template-columns: 1fr; }
    .starting-list-table input { width: 100%; min-width: 90px; }
    .seeding-note-panel { flex-direction: column; }
}

/* 0.2.7 — Reyting onayı, temsilci yetkileri ve resmî/geçici reyting ayrımı */
.rating-workflow-panel { border-top: 4px solid #7a8799; }
.rating-workflow-approved { border-top-color: #b88a18; background: linear-gradient(180deg, #fffdf7 0%, #fff 38%); }
.rating-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #c89b2b;
    border-radius: 999px;
    background: #fff5cf;
    color: #765407;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    white-space: nowrap;
}
.rating-seal.small { padding: 7px 10px; font-size: 10px; }
.rating-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.rating-review-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid #dde4ed;
    border-radius: 13px;
    background: #f9fbfd;
}
.rating-review-grid small { color: var(--muted); font-weight: 750; }
.rating-review-grid strong { font-size: 15px; }
.rating-review-grid span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.rating-request-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.rating-request-form textarea { min-height: 74px; }
.decision-note { margin: 14px 0; padding: 13px 15px; border-left: 4px solid #d4a52f; background: #fff9e9; border-radius: 8px; }
.decision-note p { margin: 5px 0 0; color: #65542c; }
.compact-notice { margin: 14px 0; }
.rating-approved, .chip-rating, .rating-status-approved { background: #fff2c6 !important; color: #745407 !important; border-color: #d4a52f !important; }
.rating-status-pending { background: #fff5df !important; color: #8a5b00 !important; border-color: #e8bf67 !important; }
.rating-status-changes_requested { background: #eef4ff !important; color: #315a97 !important; border-color: #a9c1e8 !important; }
.rating-status-rejected { background: #fff0f0 !important; color: #9d3434 !important; border-color: #e2aaaa !important; }
.rating-status-withdrawn, .rating-status-not_requested { background: #f1f4f7 !important; color: #667487 !important; border-color: #d4dce6 !important; }
.public-rating-note { display: flex; align-items: center; gap: 16px; border-left: 4px solid #c89b2b; }
.public-rating-note.neutral { border-left-color: #8190a5; background: #f7f9fc; }
.public-rating-note p { margin: 5px 0 0; color: var(--muted); }
.rating-neutral-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e3e9f1; color: #53647b; font-weight: 900; }
.rating-approval-list { display: grid; gap: 16px; }
.rating-approval-card { margin: 0; }
.rating-review-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e7ee; }
.review-form { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid #dce3ec; border-radius: 12px; background: #fbfcfe; }
.review-form label { flex: 1; }
.review-form textarea { min-height: 84px; }
.filter-row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.filter-row label { min-width: 260px; }
.warning-button { background: #fff3d6; border-color: #e2b64f; color: #76520a; }
.stat-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.stat-link:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(25, 46, 78, .12); }
.seeding-rating-context { margin-bottom: 16px; }
.starting-list-table td > .rating-source-badge ~ small { display: block; margin-top: 5px; color: var(--muted); }

@media (max-width: 900px) {
    .rating-review-grid, .rating-review-actions { grid-template-columns: 1fr; }
    .rating-request-form { grid-template-columns: 1fr; }
}


/* 0.3.0 — Eşlendirme motoru, lig fikstürü ve ilk İsviçre turu */
.tournament-pairing-overview { border-top: 4px solid #6d4bb6; }
.pairing-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.pairing-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(24, 46, 83, .06);
}
.pairing-summary-card > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pairing-summary-card > strong { color: var(--navy); font-size: 23px; line-height: 1.2; }
.pairing-summary-card > small { margin-top: auto; color: var(--muted); line-height: 1.4; }
.pairing-control-panel { border-left: 4px solid #6d4bb6; }
.pairing-ready-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #b9dfcd;
    border-radius: 12px;
    background: #f2fbf6;
}
.pairing-ready-box > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #16845a;
    color: #fff;
    font-weight: 950;
}
.pairing-ready-box > div { display: flex; flex-direction: column; gap: 4px; }
.pairing-ready-box small { color: var(--muted); }
.pairing-scope-note { align-items: flex-start; }
.pairing-category-section { margin: 24px 0; }
.pairing-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.pairing-category-head h2 { margin: 4px 0 0; }
.pairing-round-list { display: grid; gap: 16px; }
.pairing-round-card { margin: 0; overflow: hidden; }
.round-title-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.round-title-line h3 { margin: 0; font-size: 21px; }
.round-status-draft { background: #f1f4f7; color: #647386; }
.round-status-published { background: #eef4ff; color: #315a97; }
.round-status-locked { background: #eaf8f1; color: #176b42; }
.round-status-completed { background: #fff2c6; color: #745407; }
.pairing-table td { vertical-align: middle; }
.paired-player { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.paired-player > div { display: flex; flex-direction: column; gap: 3px; }
.paired-player small { color: var(--muted); }
.seed-chip {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf1f7;
    color: #35465f;
    font-weight: 950;
}
.versus-cell { width: 52px; text-align: center; color: #768399; font-weight: 900; }
.bye-row { background: #fffaf0; }
.pairing-empty-state { padding: 38px 20px; text-align: center; }
.pairing-empty-state strong { display: block; color: var(--navy); font-size: 19px; }
.pairing-empty-state p { margin: 8px 0 0; color: var(--muted); }
.public-pairing-section { margin-top: 18px; }
.public-pairing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.public-pairing-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    background: #fff;
}
.public-pairing-card.bye { background: #fffaf0; }
.board-number {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #f7f9fc;
    color: #5e6d81;
    font-size: 10px;
    font-weight: 850;
    z-index: 1;
}
.public-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 116px;
    padding: 28px 15px 14px;
}
.public-player:last-child { text-align: right; }
.public-player small { color: var(--muted); }
.public-player strong { margin: 5px 0; color: var(--navy); font-size: 15px; }
.public-player span { color: var(--muted); font-size: 11px; }
.public-versus {
    min-width: 52px;
    display: grid;
    place-items: center;
    padding-top: 15px;
    background: #f4f6fa;
    color: #6b788a;
    font-size: 11px;
    font-weight: 950;
}
@media (max-width: 980px) {
    .pairing-summary-grid,
    .public-pairing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .pairing-summary-grid,
    .public-pairing-grid { grid-template-columns: 1fr; }
    .pairing-category-head { align-items: flex-start; flex-direction: column; }
    .paired-player { min-width: 150px; }
    .pairing-table { min-width: 760px; }
}

.participant-pairing-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-left: 4px solid #6d4bb6;
    background: linear-gradient(135deg, #f7f3ff 0%, #fff 55%);
}
.participant-pairing-callout h2 { margin: 5px 0; }
.participant-pairing-callout p { margin: 0; color: var(--muted); }
@media (max-width: 680px) {
    .participant-pairing-callout { align-items: stretch; flex-direction: column; }
}

/* Test Merkezi */
.test-mode-banner {
    display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
    padding:10px 18px;background:#7a1f1a;color:#fff;font-weight:800;
    box-shadow:0 4px 12px rgba(122,31,26,.22);
}
.test-mode-banner form{margin:0}.test-mode-banner .button{min-height:32px;padding:5px 10px}
.test-user-form{display:grid;grid-template-columns:140px 110px minmax(150px,1fr) minmax(150px,1fr);gap:7px;min-width:650px}
.test-user-form input,.test-user-form select,td>input[type=number]{border:1px solid var(--border-strong);border-radius:7px;padding:7px;background:#fff;max-width:170px}
@media(max-width:900px){.test-user-form{grid-template-columns:1fr 1fr;min-width:480px}}
