:root {
    --ink: #15171c;
    --muted: #626976;
    --line: #dde1e8;
    --paper: #f5f6f8;
    --panel: #ffffff;
    --red: #c81e35;
    --blue: #125cc7;
    --gold: #d5a11e;
    --green: #138a56;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
a { color: inherit; text-decoration: none; }
.impersonation-bar {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 18px;
    color: #1b1304;
    background: #ffd76a;
    font-weight: 900;
}
.impersonation-bar form { margin: 0; }
.impersonation-bar .btn {
    min-height: 30px;
    border-color: rgba(0,0,0,.18);
    background: rgba(255,255,255,.72);
}
.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #101216;
    color: white;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), var(--gold));
}
.topbar nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #d8dce5;
    font-size: 14px;
}
.nav-menu {
    position: relative;
}
.nav-menu summary {
    list-style: none;
    cursor: pointer;
    color: #f3f5f9;
    font-weight: 800;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.nav-menu[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}
.nav-menu > div {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    min-width: 230px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: #171a20;
    box-shadow: 0 22px 60px rgba(0,0,0,.34);
}
.nav-menu:first-of-type > div {
    right: auto;
    left: 0;
}
.nav-menu > div a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: #edf1f7;
}
.nav-menu > div a:hover {
    background: rgba(255,255,255,.08);
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 32px auto; }
.site-footer {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px max(18px, calc((100vw - 1180px) / 2));
    color: #aeb6c5;
    background: #101216;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 0 12px;
    color: #eef2f8;
    background: rgba(255,255,255,.06);
    font-weight: 900;
}
.privacy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: end;
    margin: -32px calc(50% - 50vw) 24px;
    padding: 64px max(24px, calc((100vw - 1180px) / 2));
    color: white;
    background:
        linear-gradient(115deg, rgba(8, 10, 14, .96), rgba(13, 17, 25, .92) 55%, rgba(102, 14, 29, .76)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 86px),
        #0d1016;
}
.privacy-hero .eyebrow { color: var(--gold); }
.privacy-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .94;
}
.privacy-hero p {
    max-width: 620px;
    color: #d6dbe6;
    font-size: 19px;
    line-height: 1.55;
}
.privacy-badges {
    display: grid;
    gap: 10px;
}
.privacy-badges span {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.privacy-card {
    min-height: 240px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: white;
    box-shadow: 0 18px 50px rgba(18, 24, 38, .08);
}
.privacy-card > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 11px;
    color: white;
    background: var(--ink);
    font-size: 12px;
    font-weight: 950;
}
.privacy-card.primary {
    background:
        linear-gradient(135deg, rgba(200, 30, 53, .1), transparent 54%),
        white;
}
.privacy-card h2 {
    margin: 18px 0 10px;
    font-size: 32px;
}
.privacy-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}
.cookie-token {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.cookie-token strong, .cookie-token em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    font-style: normal;
    font-weight: 900;
}
.cookie-token strong {
    background: #f3f6fb;
    border: 1px solid var(--line);
}
.cookie-token em {
    color: #0f5132;
    background: #dcf6e7;
}
.privacy-card.contact .btn {
    margin-top: 12px;
}
.auth {
    min-height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: 1.2fr 420px;
    align-items: center;
    gap: 56px;
}
.auth h1, .page-head h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: 0; }
.auth p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.auth-home {
    min-height: calc(100vh - 68px);
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: clamp(32px, 6vw, 86px);
    margin: -32px calc(50% - 50vw);
    padding: 58px max(24px, calc((100vw - 1180px) / 2));
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(115deg, rgba(8, 10, 14, .96), rgba(13, 17, 25, .9) 52%, rgba(102, 14, 29, .82)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 86px),
        #0d1016;
}
.auth-home::before {
    content: "";
    position: absolute;
    width: min(74vw, 920px);
    aspect-ratio: 1.72;
    left: max(26px, calc((100vw - 1180px) / 2));
    bottom: 56px;
    border: 2px solid rgba(255,255,255,.16);
    transform: perspective(620px) rotateX(62deg) rotateZ(-3deg);
    transform-origin: bottom left;
    box-shadow:
        inset 0 0 0 14px rgba(200, 30, 53, .18),
        inset 0 0 0 28px rgba(213, 161, 30, .08),
        0 34px 90px rgba(0,0,0,.35);
}
.auth-home::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, black, transparent 76%);
    pointer-events: none;
}
.auth-showcase, .auth-card { position: relative; z-index: 1; }
.auth-showcase {
    max-width: 760px;
    padding-top: 24px;
}
.auth-showcase .eyebrow {
    color: var(--gold);
}
.auth-showcase h1 {
    max-width: 720px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .9;
    text-wrap: balance;
}
.auth-showcase p {
    max-width: 610px;
    margin: 24px 0 0;
    color: #d6dbe6;
    font-size: clamp(18px, 2vw, 22px);
}
.auth-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
    max-width: 520px;
    margin-top: 32px;
}
.auth-highlights span {
    min-height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    padding: 0 14px;
    color: #f5f7fb;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
    backdrop-filter: blur(14px);
}
.auth-card {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 30px;
    background: rgba(255,255,255,.96);
    color: var(--ink);
    box-shadow: 0 32px 90px rgba(0,0,0,.42);
}
.auth-card .btn {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    font-size: 15px;
}
.auth-card input {
    min-height: 48px;
}
.auth-card .form-links {
    justify-content: space-between;
}
.auth-card .strong-link {
    color: var(--red);
}
.auth-note {
    margin: 18px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    color: var(--muted);
    font-size: 13px !important;
    line-height: 1.45 !important;
}
.participant-auth {
    min-height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    align-items: center;
    gap: 52px;
    margin: -32px calc(50% - 50vw);
    padding: 56px max(32px, calc((100vw - 1180px) / 2));
    color: white;
    background:
        radial-gradient(circle at 18% 22%, rgba(200, 30, 53, .32), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(18, 92, 199, .28), transparent 30%),
        linear-gradient(135deg, #090b10, #121722 58%, #080a0e);
    overflow: hidden;
    position: relative;
}
.participant-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black, transparent 82%);
}
.participant-copy, .participant-login-card { position: relative; z-index: 1; }
.participant-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 14px;
    color: #171006;
    background: var(--gold);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    box-shadow: 0 0 34px rgba(213, 161, 30, .42);
}
.participant-copy h1 {
    max-width: 760px;
    margin: 18px 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .92;
    letter-spacing: 0;
}
.participant-copy p {
    max-width: 650px;
    color: #c6ccd8;
    font-size: 20px;
    line-height: 1.55;
}
.participant-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.participant-points span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 0 13px;
    color: #eef2f8;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 800;
}
.participant-login-card {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 26px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(0,0,0,.36);
    backdrop-filter: blur(18px);
}
.login-card-head {
    margin-bottom: 22px;
}
.login-card-head span {
    color: var(--red);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.login-card-head h2 {
    margin: 6px 0;
    font-size: 32px;
}
.login-card-head p {
    margin: 0;
    color: var(--muted);
}
.participant-login-card .btn {
    width: 100%;
    margin-top: 6px;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
}
.panel, .card, .table-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(18, 24, 38, .08);
}
.panel { padding: 24px; }
.panel.compact { max-width: 440px; }
.panel.wide { margin-top: 24px; }
h2 { margin: 0 0 18px; }
label { display: grid; gap: 8px; margin-bottom: 16px; color: #333946; font-weight: 700; font-size: 14px; }
.form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 800;
}
.form-links a { color: var(--blue); }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
input, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ccd2dd;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: white;
}
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #cbd2df;
    border-radius: 6px;
    padding: 0 14px;
    background: white;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}
.btn.primary, button.primary { background: var(--red); border-color: var(--red); color: white; }
.btn.ghost { background: #f7f8fa; }
.btn.danger, button.danger { background: #fff1f3; border-color: #ffc7d0; color: #a8132a; }
.btn.subtle {
    border-color: #e3e7ef;
    color: #4b5563;
    background: #f8fafc;
}
.btn.small {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stats-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: white;
    box-shadow: 0 18px 50px rgba(18, 24, 38, .08);
}
.stats-grid span {
    display: block;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    color: var(--red);
}
.stats-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.dashboard-grid > * { min-width: 0; }
.dashboard-grid h2 { margin: 0 0 10px; }
.dashboard-feature { min-height: 240px; }
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-plan-grid span {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
    color: var(--muted);
    font-weight: 800;
}
.admin-plan-grid strong {
    color: var(--red);
    font-size: 34px;
    line-height: 1;
}
.demo-actions {
    display: grid;
    grid-template-columns: 1fr;
}
.price-box {
    display: grid;
    gap: 6px;
    max-width: 360px;
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #f8fafc;
}
.price-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.price-box strong {
    color: var(--red);
    font-size: 42px;
    line-height: 1;
}
.price-box p { margin: 0; color: var(--muted); }
.card { padding: 22px; }
.card h2 { margin-top: 16px; }
.card-top, .actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.actions { margin-top: 20px; justify-content: flex-start; }
.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    background: #e9edf5;
}
.status.live { background: #ffe6ea; color: var(--red); }
.status.awaiting_result { background: #fff2cf; color: #8a6100; }
.status.weigh_in { background: #fff2cf; color: #8a6100; }
.status.rest { background: #fff2cf; color: #8a6100; }
.status.finished { background: #dff6ea; color: var(--green); }
.status.ready { background: #e3efff; color: var(--blue); }
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 170px;
}
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    background: #eef1f6;
    color: #394150;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
.tag.neutral { background: #eef1f6; color: #394150; }
.tag.gold, .tag.rest { background: #fff2cf; color: #7a5100; }
.tag.blue, .tag.ready { background: #e3efff; color: var(--blue); }
.tag.live { background: #ffe6ea; color: var(--red); }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.split > * { min-width: 0; }
.tournament-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 8px;
    color: white;
    background:
        linear-gradient(135deg, rgba(9, 11, 16, .98), rgba(18, 23, 34, .96) 58%, rgba(88, 12, 26, .9)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 76px);
    box-shadow: 0 24px 70px rgba(18, 24, 38, .2);
}
.tournament-command .eyebrow { color: var(--gold); }
.tournament-command h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(42px, 6vw, 74px);
    line-height: .94;
}
.tournament-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.inline-reset-form {
    display: contents;
}
.live-counter-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.live-counter-card span {
    display: block;
    color: #c7cedb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.live-counter-card strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
}
.live-counter-card p {
    margin: 8px 0 0;
    color: #d5dbe7;
    line-height: 1.45;
}
.counter-orbit {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.13);
}
.counter-orbit::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,.08);
}
.counter-orbit::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gold);
    border-right-color: var(--red);
    animation: counterSpin 1.4s linear infinite;
}
.counter-orbit span {
    position: absolute;
    inset: 29px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 24px rgba(200, 30, 53, .7);
}
.live-counter-card.finished .counter-orbit::after {
    animation: none;
    border-top-color: var(--green);
    border-right-color: var(--green);
}
.stage-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.stage-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 86px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: white;
    box-shadow: 0 10px 30px rgba(18, 24, 38, .06);
    overflow: hidden;
    color: var(--ink);
    text-align: left;
}
.stage-flow .stage-card {
    cursor: pointer;
}
.stage-flow .stage-card:hover:not(:disabled) {
    border-color: rgba(200, 30, 53, .28);
    transform: translateY(-1px);
}
.stage-flow .stage-card:disabled {
    cursor: default;
}
.stage-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #dfe4ed;
}
.stage-card span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    color: var(--muted);
    background: #f3f6fb;
    font-size: 12px;
    font-weight: 950;
}
.stage-card strong {
    display: block;
    margin-top: 9px;
    font-size: 20px;
}
.stage-card small {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}
.stage-card.active {
    border-color: rgba(200, 30, 53, .26);
    background: linear-gradient(135deg, #fff7df, #fff);
}
.stage-card.active::after { background: var(--red); }
.stage-card.complete {
    border-color: rgba(19, 138, 86, .22);
    background: linear-gradient(135deg, #effbf5, #fff);
}
.stage-card.complete::after { background: var(--green); }
.admin-correction-banner,
.admin-reopen-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 12px;
    border: 1px solid rgba(200, 30, 53, .18);
    border-radius: 10px;
    padding: 18px 20px;
    background:
        linear-gradient(135deg, rgba(200, 30, 53, .09), rgba(255, 255, 255, .96)),
        #fff;
    box-shadow: 0 14px 34px rgba(18, 24, 38, .08);
}
.admin-correction-banner.readonly {
    border-color: rgba(79, 90, 108, .18);
    background:
        linear-gradient(135deg, rgba(79, 90, 108, .08), rgba(255, 255, 255, .96)),
        #fff;
}
.admin-correction-banner h2,
.admin-reopen-card h2 {
    margin: 0;
    font-size: 22px;
}
.admin-correction-banner p,
.admin-reopen-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 750;
}
.admin-reopen-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.tournament-control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}
.tournament-control-grid > * {
    min-width: 0;
}
.draft-side-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.compact-draft-panel {
    padding: 0;
    overflow: hidden;
}
.draft-details summary {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}
.draft-details summary::-webkit-details-marker { display: none; }
.draft-details summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.draft-details summary strong {
    color: var(--ink);
    font-size: 18px;
}
.draft-details summary::after {
    content: "Modifier";
    justify-self: start;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--red);
    background: #fff5f6;
    font-size: 12px;
    font-weight: 900;
}
.draft-details[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.draft-details form {
    padding: 16px 18px 18px;
}
.compact-field-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.compact-field-grid label {
    margin-bottom: 10px;
    font-size: 12px;
}
.compact-field-grid input {
    min-height: 38px;
    padding: 7px 9px;
}
.compact-club-grid {
    max-height: 184px;
    margin-bottom: 12px;
}
.compact-club-grid .check-card {
    min-height: 38px;
    padding: 7px 10px;
}
.bout-create-panel {
    overflow: hidden;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(200,30,53,.05), transparent 34%),
        white;
}
.bout-create-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.bout-create-head > div {
    min-width: 0;
}
.bout-create-head h2 {
    margin: 0 0 4px;
}
.bout-create-head .muted {
    margin: 0;
}
.proposal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.proposal-summary span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    color: #4b5563;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 850;
}
.proposal-summary strong {
    color: var(--ink);
}
.pairing-list {
    display: grid;
    gap: 12px;
}
.bulk-bout-form .pairing-list {
    gap: 10px;
}
.pairing-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.82));
}
.bulk-bout-form .pairing-card {
    border-radius: 14px;
    padding: 10px;
}
.pairing-card.warning-pair {
    border-color: rgba(213, 161, 30, .45);
    background:
        linear-gradient(135deg, rgba(255,247,220,.86), rgba(255,255,255,.96) 46%),
        #fff;
}
.pairing-card.invalid-pair {
    border-color: #ff9caf;
    background: #fff5f6;
}
.pairing-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.bulk-bout-form .pairing-card > header {
    min-height: 34px;
    margin-bottom: 8px;
}
.pairing-card > header span {
    color: var(--red);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pairing-corners {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
.bulk-bout-form .pairing-corners {
    gap: 8px;
}
.pair-fighter-card {
    padding: 12px 12px 12px 16px;
}
.bulk-bout-form .fight-corner-card {
    border: 0;
    border-radius: 14px;
    padding: 14px;
    color: #fff;
}
.bulk-bout-form .fight-corner-card::before {
    display: none;
}
.bulk-bout-form .red-corner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 48%),
        linear-gradient(135deg, #d7193f, #96152c);
}
.bulk-bout-form .blue-corner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 48%),
        linear-gradient(135deg, #125cc7, #083b91);
}
.bulk-bout-form .corner-tag {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
}
.pair-fighter-card label {
    margin-bottom: 0;
}
.bulk-bout-form .pair-fighter-card label {
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pair-fighter-card select {
    min-height: 42px;
    margin-top: 5px;
    font-weight: 900;
}
.bulk-bout-form .pair-fighter-card select {
    min-height: 40px;
    color: #101827;
    background: rgba(255, 255, 255, .94);
}
.pair-versus {
    align-self: center;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #8a6100;
    background: #fff2c6;
    font-size: 13px;
    font-weight: 950;
}
.bulk-bout-form .pair-versus {
    width: 38px;
    height: 38px;
    color: #101827;
    background: #ffe6a6;
    box-shadow: 0 10px 24px rgba(18, 24, 38, .16);
}
.pair-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
.pair-alert {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}
.pair-alert.weight {
    border: 1px solid rgba(213, 161, 30, .36);
    color: #805600;
    background: #fff1c2;
}
.pair-alert.club {
    border: 1px solid rgba(200, 30, 53, .22);
    color: #a8132a;
    background: #fff1f3;
}
.empty-pairing-state {
    border: 1px dashed #cbd2df;
    border-radius: 8px;
    padding: 18px;
    color: var(--muted);
    background: #f8fafc;
    font-weight: 750;
}
.empty-pairing-state.soft {
    padding: 12px 14px;
    color: #6b7280;
    background: #fff;
    font-size: 13px;
}
.bout-builder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.quick-match-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.05fr) minmax(260px, .95fr);
    gap: 12px;
    align-items: stretch;
}
.fight-corner-card {
    position: relative;
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}
.fight-corner-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 8px 0 0 8px;
    content: "";
}
.red-corner {
    border-color: rgba(200, 30, 53, .28);
    background: linear-gradient(135deg, rgba(200, 30, 53, .06), #fff 38%);
}
.red-corner::before {
    background: var(--red);
}
.blue-corner {
    border-color: rgba(29, 78, 216, .24);
    background: linear-gradient(135deg, rgba(29, 78, 216, .06), #fff 38%);
}
.blue-corner::before {
    background: #1d4ed8;
}
.corner-tag {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}
.red-corner .corner-tag {
    background: var(--red);
}
.blue-corner .corner-tag {
    background: #1d4ed8;
}
.quick-match-row label,
.fighter-pick {
    min-width: 0;
    margin-bottom: 0;
}
.quick-match-row select {
    min-width: 0;
}
.auto-opponent-box {
    display: grid;
    align-content: center;
    gap: 5px;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}
.auto-opponent-box > span {
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.auto-opponent-box strong {
    overflow: hidden;
    color: #171b22;
    font-size: 24px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fighter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 28px;
}
.fighter-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    color: #4b5563;
    background: rgba(248,250,252,.92);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}
.red-corner .fighter-meta span {
    border-color: rgba(200, 30, 53, .2);
    background: #fff5f6;
}
.blue-corner .fighter-meta span {
    border-color: rgba(29, 78, 216, .18);
    background: #eff6ff;
}
.bulk-bout-form .fighter-meta span,
.bulk-bout-form .red-corner .fighter-meta span,
.bulk-bout-form .blue-corner .fighter-meta span {
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
    background: rgba(255, 255, 255, .14);
}
.bout-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    margin-top: 10px;
}
.match-options,
.advanced-bout-options,
.manual-opponent {
    margin-top: 0;
}
.match-options[open] {
    flex-basis: 100%;
}
.match-options summary,
.advanced-bout-options summary,
.manual-opponent summary {
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    background: #f8fafc;
    cursor: pointer;
    color: #364152;
    font-size: 13px;
    font-weight: 900;
}
.match-options[open] summary,
.advanced-bout-options[open] summary,
.manual-opponent[open] summary {
    border-color: rgba(200,30,53,.28);
    color: var(--red);
    background: #fff5f6;
}
.advanced-bout-options .compact-field-grid {
    max-width: 430px;
    margin-top: 10px;
}
.manual-opponent label {
    margin-top: 10px;
    max-width: 520px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px 18px; }
.panel-inner {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}
.club-filter-input {
    margin: 10px 0 0;
    max-width: 420px;
}
.check-grid-scroll {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}
.check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: white;
}
.check-card[hidden] { display: none; }
.check-card input { width: auto; min-height: auto; }
.duplicate-option {
    margin: 16px 0 0;
    max-width: 520px;
}
.table-wrap { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.compact-table-wrap,
.compact-edit-table {
    box-shadow: none;
}
.compact-edit-table {
    min-width: 860px;
}
.club-master-table {
    min-width: 1120px;
}
.club-master-table td:nth-child(1) {
    min-width: 210px;
}
.club-master-table td:nth-child(2) {
    min-width: 260px;
}
.club-master-table td:nth-child(5) {
    min-width: 160px;
}
.compact-edit-table th,
.compact-edit-table td {
    padding: 8px 10px;
}
.compact-edit-table th {
    font-size: 11px;
    letter-spacing: .07em;
}
.compact-edit-table tr.editing-row {
    background: #fff9e8;
}
.compact-edit-table input,
.compact-edit-table select,
.compact-edit-table .inline-edit-form input {
    min-height: 34px;
    min-width: 0;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 13px;
}
.compact-edit-table .inline-edit-form {
    min-width: 150px;
}
.participant-club-table {
    min-width: 980px;
}
.participant-club-table td:nth-child(5) {
    min-width: 180px;
}
.fighter-edit-table td:nth-child(3),
.fighter-edit-table td:nth-child(4) {
    width: 86px;
}
.fighter-edit-table td:nth-child(3) input,
.fighter-edit-table td:nth-child(4) input {
    width: 76px;
}
.row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.row-actions form {
    margin: 0;
}
.stacked-actions {
    align-items: stretch;
    flex-direction: column;
    width: max-content;
}
.stacked-actions .btn,
.stacked-actions button {
    width: 100%;
}
.tournament-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.compact-btn {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.flash-stack {
    position: fixed;
    top: 84px;
    left: 50%;
    z-index: 80;
    display: grid;
    gap: 10px;
    width: min(720px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}
.impersonation-bar + .topbar + .flash-stack {
    top: 132px;
}
.flash {
    position: relative;
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(19, 138, 86, .22);
    border-radius: 8px;
    padding: 14px 18px;
    color: #0c5d39;
    background: rgba(239, 252, 245, .96);
    box-shadow: 0 18px 55px rgba(18, 24, 38, .18);
    backdrop-filter: blur(16px);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    pointer-events: auto;
}
.flash::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #17a468;
    box-shadow: 0 0 0 6px rgba(23, 164, 104, .13);
}
.flash.error {
    border-color: rgba(200, 30, 53, .24);
    color: #9f1730;
    background: rgba(255, 241, 244, .97);
}
.flash.error::before {
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(200, 30, 53, .12);
}
.bout-list { display: grid; gap: 10px; }
.bout-row {
    display: grid;
    grid-template-columns: 64px 1fr 52px 1fr 110px auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.bout-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.bout-rank { font-size: 20px; font-weight: 900; color: var(--red); }
.versus { font-weight: 900; color: var(--gold); text-align: center; }
.program-panel {
    overflow: hidden;
    padding: 0;
}
.program-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
}
.program-summary::-webkit-details-marker { display: none; }
.program-summary h2 {
    margin-bottom: 8px;
}
.program-summary::after {
    content: "Ouvrir";
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--red);
    background: #fff5f6;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}
.program-panel[open] .program-summary {
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.program-panel[open] .program-summary::after {
    content: "Reduire";
}
.program-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.program-form {
    display: grid;
    gap: 14px;
    padding: 18px 24px 24px;
}
.program-planner {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #fff, #f8fafc);
}
.program-planner label {
    margin: 0;
    gap: 6px;
    color: #182333;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.program-planner input {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 950;
}
.program-planner strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}
.program-planner small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.program-drag-list {
    display: grid;
    gap: 10px;
}
.program-row {
    grid-template-columns: 34px 52px minmax(0, 1fr) 52px minmax(0, 1fr) 210px auto;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease, transform .16s ease;
}
.live-order-form {
    display: none;
}
.live-control-list {
    padding: 18px 24px 0;
}
.live-control-card {
    grid-template-columns: 34px 48px minmax(260px, 1fr) minmax(126px, .35fr) minmax(360px, .72fr);
    align-items: stretch;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(200, 30, 53, .06), transparent 44%, rgba(18, 92, 199, .07)),
        #fff;
}
.live-control-card.live {
    border-color: rgba(200, 30, 53, .28);
    box-shadow: 0 18px 42px rgba(200, 30, 53, .11);
}
.live-control-card.paused {
    border-color: rgba(213, 161, 30, .42);
    background: linear-gradient(135deg, #fff8e8, #fff);
}
.live-control-card.intermission {
    border-color: rgba(28, 97, 214, .24);
    background: linear-gradient(135deg, #eef5ff, #fff);
}
.live-control-card.awaiting-result {
    border-color: rgba(213, 161, 30, .44);
    background: linear-gradient(135deg, #fff8e8, #fff);
}
.live-control-card.awaiting-result .live-state {
    border-color: rgba(213, 161, 30, .42);
    background: #fffaf0;
}
.live-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.live-corner {
    min-width: 0;
}
.live-corner span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.live-corner.red-side span {
    color: var(--red);
    background: #ffe8ec;
}
.live-corner.blue-side span {
    color: #125cc7;
    background: #e8f0ff;
}
.live-corner strong {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-corner small {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-state {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    min-height: 76px;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    text-align: center;
}
.live-state strong {
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.live-state small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.live-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(94px, 1fr));
    gap: 7px;
    align-content: center;
}
.live-btn {
    min-height: 38px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    padding: 0 10px;
    color: #1d2736;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}
.live-result-note {
    grid-column: 1 / -1;
    align-self: center;
    justify-self: stretch;
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #cfeedd;
    border-radius: 9px;
    color: var(--green);
    background: #edfbf3;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}
.start-btn {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}
.pause-btn {
    color: #111827;
    border-color: #e6b63d;
    background: var(--gold);
}
.finish-btn {
    color: #0d6b42;
    border-color: rgba(19, 138, 86, .28);
    background: #e9f8f0;
}
.live-btn.red-win {
    color: var(--red);
    border-color: rgba(200, 30, 53, .25);
    background: #fff1f4;
}
.live-btn.blue-win {
    color: #125cc7;
    border-color: rgba(18, 92, 199, .24);
    background: #edf4ff;
}
.draw-btn {
    color: #5f6878;
}
.live-footer-actions {
    padding: 14px 24px 24px;
}
.program-row.dragging {
    border-color: rgba(200, 30, 53, .35);
    box-shadow: 0 18px 42px rgba(21, 23, 28, .16);
    opacity: .72;
    transform: scale(.995);
}
.drag-handle {
    width: 32px;
    min-height: 42px;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    padding: 0;
    color: #7b8494;
    background: #f8fafc;
    cursor: grab;
    font-size: 17px;
    line-height: 1;
    letter-spacing: -4px;
}
.drag-handle:active {
    cursor: grabbing;
}
.program-row label {
    margin: 0;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.program-time input {
    min-height: 38px;
}
.program-row .inline-actions {
    min-width: 0;
    justify-content: flex-end;
}
.program-footer-actions {
    display: flex;
    justify-content: flex-end;
}
.danger-link {
    color: #a8132a;
    background: #fff1f3;
}
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 360px;
}
.bout-time-input {
    width: 168px;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 12px;
}
.icon-btn { width: 38px; min-height: 38px; padding: 0; }
.text-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
    background: #f7f8fb;
}
.mini-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mini-form select {
    min-height: 36px;
    min-width: 110px;
    padding: 6px 8px;
}
.mini-form .btn {
    min-height: 36px;
}
.inline-edit-form {
    min-width: 180px;
}
td > input,
td > select,
td .inline-edit-form input {
    min-width: 150px;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
}
td .btn {
    min-height: 36px;
    white-space: nowrap;
}
.match-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    max-width: 760px;
}
.match-suggestion {
    display: grid;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: #333946;
    background: #f8fafc;
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-suggestion strong {
    overflow: hidden;
    color: #171b22;
    font-size: 14px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.match-suggestion span {
    overflow: hidden;
    color: #5d6676;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.match-suggestion em {
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    color: #7a4d00;
    background: #fff4d4;
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}
.match-suggestion.active {
    border-color: rgba(200, 30, 53, .35);
    background: #fff1f4;
}
.match-suggestion.active strong {
    color: var(--red);
}
.weigh-in-panel {
    background:
        linear-gradient(135deg, rgba(213, 161, 30, .08), transparent 38%),
        white;
}
.weigh-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.weigh-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.weigh-stats strong {
    margin-right: 6px;
    color: var(--ink);
    font-size: 20px;
}
.weigh-form {
    display: grid;
    gap: 16px;
}
.weigh-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.weigh-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: white;
    box-shadow: 0 12px 34px rgba(18, 24, 38, .07);
}
.weigh-card-compact {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) 118px 150px minmax(138px, .8fr) 108px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
}
.weigh-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.weigh-card-compact header {
    display: block;
    margin: 0;
    min-width: 0;
}
.weigh-card header span {
    display: block;
    color: var(--red);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.weigh-card header strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.1;
}
.weigh-card-compact header strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}
.weigh-card header small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}
.weigh-card-compact header small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 850;
}
.weigh-card header .music-note {
    color: #8a6100;
    font-weight: 850;
}
.weigh-card header em {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    color: #6c4b00;
    background: #fff2cf;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}
.weigh-card.validated {
    border-color: rgba(19, 138, 86, .25);
    background: linear-gradient(135deg, #effbf5, #fff);
}
.weigh-card.overweight {
    border-color: rgba(200, 30, 53, .48);
    box-shadow: 0 16px 38px rgba(200, 30, 53, .14);
}
.weigh-card.validated header em {
    color: #0d6b42;
    background: #dff6ea;
}
.weigh-card.measured header em {
    color: #8a6100;
    background: #fff2cf;
}
.weigh-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
}
.weigh-metric {
    min-height: 72px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    padding: 11px;
    background: #f8fafc;
}
.weigh-metric-compact {
    min-height: 58px;
    padding: 9px 10px;
}
.weigh-metric span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.weigh-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    line-height: 1;
}
.weigh-metric-compact strong {
    margin-top: 6px;
    font-size: 18px;
}
.weigh-input {
    margin: 0;
}
.weigh-input-compact {
    display: grid;
    gap: 5px;
    color: #364152;
    font-size: 12px;
    font-weight: 900;
}
.weigh-input-compact span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.weigh-input-compact input {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 900;
}
.weigh-check {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #f8fafc;
}
.weigh-check input {
    width: auto;
    min-height: auto;
}
.weigh-alert {
    min-height: 54px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid #e1e6ef;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    color: #667085;
}
.weigh-alert strong {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.weigh-alert small {
    color: inherit;
    font-size: 12px;
    font-weight: 850;
}
.weigh-alert.is-visible {
    border-color: rgba(200, 30, 53, .35);
    background: #fff0f3;
    color: var(--red);
}
.weigh-validate-btn {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(19, 138, 86, .34);
    border-radius: 999px;
    padding: 0 14px;
    background: #e7f8ef;
    color: #0d6b42;
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.weigh-validate-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.weigh-validate-btn.is-valid,
.weigh-validate-btn:has(input:checked) {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(19, 138, 86, .22);
}
.weigh-validate-btn:has(input:disabled) {
    cursor: not-allowed;
    opacity: .56;
}
.weigh-delta {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.slot-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.section-toolbar.compact {
    margin-bottom: 0;
}
.slot-grid {
    display: grid;
    gap: 12px;
}
.slot-grid-compact {
    gap: 10px;
}
.slot-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #f8fafc);
    box-shadow: 0 12px 34px rgba(18, 24, 38, .07);
}
.slot-card-compact {
    border-radius: 14px;
}
.slot-card-compact[open] {
    box-shadow: 0 18px 42px rgba(18, 24, 38, .12);
}
.slot-summary {
    display: grid;
    grid-template-columns: minmax(140px, .9fr) minmax(240px, 1.45fr) minmax(86px, .38fr) auto;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    background:
        linear-gradient(90deg, rgba(200, 30, 53, .09), transparent 42%, rgba(18, 92, 199, .1)),
        #fff;
}
.slot-summary::-webkit-details-marker {
    display: none;
}
.slot-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.slot-summary small {
    display: block;
    margin-top: 4px;
    color: #5f6878;
    font-size: 12px;
    font-weight: 850;
}
.slot-summary-fighters {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.slot-summary-fighters strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 950;
}
.slot-summary-fighters em {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.slot-summary-fighters .red-name {
    color: var(--red);
}
.slot-summary-fighters .blue-name {
    color: var(--blue);
}
.slot-summary-time {
    display: grid;
    gap: 2px;
    color: var(--ink);
    text-align: center;
}
.slot-summary-time span {
    color: #6a7280;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.slot-summary-time strong {
    font-size: 20px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.slot-summary-action {
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    background: #101827;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 950;
    letter-spacing: .08em !important;
}
.slot-card-compact[open] .slot-summary-action {
    background: var(--gold);
    color: #101827 !important;
}
.slot-official-edit {
    display: grid;
    grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    border-top: 1px solid var(--line);
    padding: 12px 14px;
    background: #f8fafc;
}
.slot-official-edit label {
    margin: 0;
    color: #182333;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.slot-official-edit input {
    min-height: 40px;
    margin-top: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 900;
}
.slot-official-edit small {
    color: #5f6878;
    font-size: 12px;
    font-weight: 850;
}
.slot-format-edit {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    background: #fff;
}
.slot-format-compact {
    grid-template-columns: minmax(135px, .52fr) minmax(230px, .82fr) auto;
    align-items: end;
}
.slot-format-current {
    display: grid;
    gap: 4px;
}
.slot-format-current span {
    color: #6a7280;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.slot-format-current strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
}
.slot-format-current small {
    font-size: 12px;
}
.slot-format-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.slot-format-compact .btn {
    min-height: 40px;
    align-self: end;
    white-space: nowrap;
}
.slot-format-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.slot-format-note strong {
    color: #182333;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.slot-format-note small {
    flex: 1 1 220px;
}
.slot-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 13px 16px;
    background:
        linear-gradient(90deg, rgba(200,30,53,.08), transparent 42%, rgba(18,92,199,.08)),
        white;
}
.slot-card > header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.slot-card > header small {
    display: block;
    margin-top: 5px;
    color: #5f6878;
    font-size: 13px;
    font-weight: 850;
}
.slot-card > header strong {
    color: var(--ink);
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}
.slot-fighters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.slot-fighters-compact {
    gap: 0;
    border-top: 1px solid var(--line);
}
.slot-fighter {
    display: grid;
    gap: 12px;
    padding: 16px;
}
.slot-fighters-compact .slot-fighter {
    padding: 16px;
    color: #fff;
}
.slot-fighters-compact .slot-fighter.red-side {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 48%),
        linear-gradient(135deg, #d7193f, #96152c);
}
.slot-fighters-compact .slot-fighter.blue-side {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 48%),
        linear-gradient(135deg, #125cc7, #083b91);
}
.slot-fighter + .slot-fighter {
    border-left: 1px solid var(--line);
}
.slot-fighters-compact .slot-fighter + .slot-fighter {
    border-left-color: rgba(255, 255, 255, .24);
}
.slot-fighter span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.slot-fighter.red-side span { color: var(--red); }
.slot-fighter.blue-side span { color: var(--blue); }
.slot-fighter .corner-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    line-height: 1;
}
.slot-fighter.red-side .corner-pill {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
}
.slot-fighter.blue-side .corner-pill {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
}
.slot-fighter strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}
.slot-fighters-compact .slot-fighter strong,
.slot-fighters-compact .slot-fighter small,
.slot-fighters-compact .slot-fighter span {
    color: #fff;
}
.slot-fighter small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-weight: 750;
}
.change-request-box {
    display: grid;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, .92);
    color: #182333;
}
.change-request-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.change-request-head span,
.format-request > span {
    color: #182333;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.change-request-head small {
    color: #7a8494;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}
.change-request-grid {
    display: grid;
    grid-template-columns: minmax(170px, .9fr) minmax(220px, 1.1fr);
    gap: 10px;
}
.slot-fighters-compact .change-request-grid {
    grid-template-columns: 1fr;
}
.change-request-grid label,
.change-request-box > label {
    margin: 0;
    color: #364152;
    font-size: 12px;
    font-weight: 850;
}
.change-request-grid input,
.change-request-box > label input {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
}
.format-request {
    display: grid;
    gap: 6px;
}
.format-request-row {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto minmax(86px, 1fr);
    align-items: end;
    gap: 8px;
}
.format-request-row > span {
    margin: 0 0 10px;
    color: #8a6100;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}
.slot-fighter .music-note {
    color: #ffe6a6;
}
.slot-fighter label {
    margin: 0;
}
@keyframes counterSpin {
    to { transform: rotate(360deg); }
}
.admin-user-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 8px;
    min-width: 520px;
}
.admin-user-form input,
.admin-user-form select {
    min-height: 36px;
    padding: 6px 8px;
}
.admin-user-form .btn {
    min-height: 36px;
}
.red-win { color: var(--red); border-color: rgba(200, 30, 53, .35); }
.blue-win { color: var(--blue); border-color: rgba(18, 92, 199, .35); }
.participant-list { display: flex; flex-wrap: wrap; gap: 10px; }
.participant-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 13px;
    background: #f3f6fb;
    border: 1px solid var(--line);
    font-weight: 800;
}
.config-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.section-toolbar h2 { margin: 0; }
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
}
.tabs a.active {
    border-color: var(--ink);
    color: white;
    background: var(--ink);
}
.expiry-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.expiry-badge.active { color: #0d6b42; background: #dff6ea; }
.expiry-badge.warning { color: #7a5100; background: #fff2cf; }
.expiry-badge.expired { color: #9f1730; background: #ffe8ec; }
.expiry-badge.pending { color: #4d596a; background: #edf1f7; }
.expiry-detail {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.compact-edit-table .expiry-badge {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
}
.compact-edit-table .expiry-detail {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
}
.access-expiry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -6px 0 22px;
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #101216;
    color: white;
    box-shadow: 0 22px 60px rgba(18, 24, 38, .12);
}
.access-expiry-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.access-expiry-card strong {
    display: block;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1;
}
.access-expiry-card p {
    margin: 9px 0 0;
    color: #cbd3df;
}
.access-expiry-card.warning {
    background: linear-gradient(135deg, #2b1b02, #111827);
    border-color: #f2d37a;
}
.access-expiry-card.expired {
    background: linear-gradient(135deg, #3a0711, #111827);
    border-color: #f3a0ad;
}
.access-expiry-card.pending {
    background: linear-gradient(135deg, #202733, #101216);
}
.account-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -8px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 50px rgba(18, 24, 38, .08);
}
.account-status-banner span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.account-status-banner strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}
.account-status-banner p {
    margin: 8px 0 0;
    color: var(--muted);
}
.account-status-banner.rest {
    border-color: #f2d37a;
    background: #fff9e8;
}
.account-status-banner.ready {
    border-color: #a8e1c5;
    background: #effbf5;
}
.account-status-banner.live {
    border-color: #f3a0ad;
    background: #fff1f4;
}
.club-fighter-list {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.club-fighter-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: white;
    box-shadow: 0 18px 50px rgba(18, 24, 38, .08);
}
.club-fighter-card header {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.club-fighter-card h2 {
    margin: 0 0 4px;
    font-size: 28px;
}
.club-fighter-card header > strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    color: white;
    background: var(--ink);
    white-space: nowrap;
}
.fighter-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}
.fighter-mini-card {
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}
.fighter-mini-card span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    color: var(--red);
    background: #ffe8ec;
    font-size: 12px;
    font-weight: 900;
}
.fighter-mini-card strong {
    display: block;
    margin-top: 8px;
    font-size: 17px;
}
.fighter-edit-form {
    display: grid;
    gap: 10px;
}
.fighter-edit-form label {
    margin: 0;
    gap: 5px;
    font-size: 12px;
}
.fighter-edit-form input,
.fighter-edit-form select {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 13px;
}
.fighter-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mini-delete-form {
    margin-top: 12px;
}
.mini-delete-form .btn {
    min-height: 34px;
    width: 100%;
    font-size: 12px;
}
.profile-logo-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}
.logo-preview {
    width: 150px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
    color: var(--muted);
    font-weight: 900;
}
.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

@media (max-width: 820px) {
    .topbar { height: auto; padding: 18px; align-items: flex-start; gap: 16px; flex-direction: column; }
    .topbar nav { flex-wrap: wrap; gap: 12px; }
    .nav-menu > div {
        left: 0;
        right: auto;
    }
    .auth, .split { grid-template-columns: 1fr; }
    .privacy-hero, .privacy-grid { grid-template-columns: 1fr; }
    .privacy-hero {
        margin: -32px -16px 18px;
        padding: 38px 18px;
    }
    .privacy-hero h1 { font-size: clamp(38px, 11vw, 56px); }
    .auth-home {
        min-height: auto;
        margin: -32px -16px;
        padding: 30px 18px;
        gap: 26px;
    }
    .auth-home::before {
        width: 92vw;
        left: 18px;
        bottom: 34px;
        opacity: .55;
    }
    .auth-showcase { padding-top: 0; }
    .auth-showcase h1 { font-size: clamp(38px, 10vw, 52px); }
    .auth-showcase p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.5;
    }
    .auth-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 20px;
    }
    .auth-highlights span {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }
    .auth-card { padding: 24px; }
    .profile-logo-row { grid-template-columns: 1fr; }
    .participant-auth {
        grid-template-columns: 1fr;
        margin: -32px -16px;
        padding: 34px 18px;
    }
    .tournament-command {
        grid-template-columns: 1fr;
        margin: -16px 0 18px;
        padding: 22px;
    }
    .tournament-command h1 { font-size: clamp(38px, 11vw, 54px); }
    .live-counter-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .counter-orbit {
        width: 58px;
        height: 58px;
    }
    .counter-orbit span { inset: 22px; }
    .stage-strip {
        grid-template-columns: 1fr;
    }
    .stage-card {
        min-height: auto;
    }
    .admin-correction-banner,
    .admin-reopen-card {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-reopen-actions,
    .admin-reopen-actions .btn {
        width: 100%;
    }
    .tournament-control-grid {
        grid-template-columns: 1fr;
    }
    .draft-side-stack {
        grid-template-columns: 1fr;
    }
    .quick-match-row,
    .bout-create-grid {
        grid-template-columns: 1fr;
    }
    .pairing-corners {
        grid-template-columns: 1fr;
    }
    .pair-versus {
        width: 100%;
        height: 30px;
    }
    .bout-create-head {
        align-items: stretch;
        flex-direction: column;
    }
    .auto-opponent-box strong {
        white-space: normal;
    }
    .compact-field-grid {
        grid-template-columns: 1fr;
    }
    .weigh-stats {
        justify-content: flex-start;
    }
    .weigh-values {
        grid-template-columns: 1fr;
    }
    .weigh-card-compact {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .weigh-card-compact header strong,
    .weigh-card-compact header small {
        white-space: normal;
    }
    .slot-summary {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
    .slot-summary-fighters {
        grid-column: 1 / -1;
        order: 3;
    }
    .slot-summary-time {
        justify-self: end;
    }
    .slot-summary-action {
        grid-column: 1 / -1;
        width: 100%;
    }
    .slot-official-edit {
        grid-template-columns: 1fr;
    }
    .slot-format-compact {
        grid-template-columns: 1fr;
    }
    .slot-format-compact .btn {
        width: 100%;
    }
    .slot-format-fields {
        grid-template-columns: 1fr;
    }
    .program-planner {
        grid-template-columns: 1fr;
    }
    .program-planner .btn {
        width: 100%;
    }
    .slot-fighters {
        grid-template-columns: 1fr;
    }
    .change-request-grid {
        grid-template-columns: 1fr;
    }
    .slot-fighter + .slot-fighter {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .fighter-edit-row {
        grid-template-columns: 1fr;
    }
    .live-control-list {
        padding: 16px;
    }
    .bout-row.live-control-card {
        grid-template-columns: 34px 1fr;
        gap: 10px;
    }
    .live-control-card .bout-rank {
        align-self: center;
    }
    .live-matchup,
    .live-state,
    .live-actions {
        grid-column: 1 / -1;
    }
    .live-matchup {
        grid-template-columns: 1fr;
    }
    .live-matchup .versus {
        text-align: left;
    }
    .live-actions {
        grid-template-columns: 1fr 1fr;
    }
    .live-footer-actions {
        padding: 12px 16px 18px;
    }
.page-head { align-items: flex-start; flex-direction: column; }
.section-toolbar { align-items: flex-start; flex-direction: column; }
.dashboard-grid { grid-template-columns: 1fr; }
.form-grid { grid-template-columns: 1fr; }
.bout-row { grid-template-columns: 1fr; }
}

.club-create-panel {
    padding: 0;
    overflow: hidden;
}

.club-create-panel > summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 950;
}

.club-create-panel > summary::marker {
    color: var(--red);
}

.club-create-panel > p,
.club-create-panel > form {
    margin-left: 24px;
    margin-right: 24px;
}

.club-create-panel > form {
    margin-bottom: 24px;
}

.club-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px 18px;
    align-items: end;
}

.club-directory-panel .section-toolbar {
    align-items: flex-end;
}

.sport-club-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: start;
    gap: 14px;
}

.sport-club-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 24, 38, .06);
    overflow: hidden;
    min-width: 0;
}

.sport-club-card-form {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.sport-club-card-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 16px 16px 0;
}

.sport-club-card-head h3 {
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.club-id {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.club-title-input {
    width: 100%;
    min-height: 44px;
    border-radius: 7px;
    font-size: 20px;
    font-weight: 950;
}

.sport-club-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
}

.sport-club-form-grid label {
    margin: 0;
}

.sport-club-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #eef1f6;
    padding-top: 14px;
}

.club-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sport-club-card > .club-metrics {
    padding: 0 16px 14px;
}

.club-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 850;
}

.club-metrics strong {
    color: var(--ink);
}

.club-contact-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 16px 12px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 850;
}

.club-contact-preview span {
    min-width: 0;
    max-width: 100%;
    border: 1px solid #eef1f6;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fbfcfe;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sport-club-edit-details {
    border-top: 1px solid #eef1f6;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.sport-club-edit-details > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    color: var(--red);
    font-size: 13px;
    font-weight: 950;
}

.sport-club-edit-details[open] > summary {
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 14px;
}

.sport-club-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #eef1f6;
    padding: 12px 18px;
    background: #fbfcfe;
}

.sport-club-actions form {
    margin: 0;
}

.club-tech-details {
    border-top: 1px solid #eef1f6;
    padding: 0 18px;
    background: #fbfcfe;
}

.club-tech-details > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.club-tech-details .api-key-cell {
    padding: 0 0 16px;
}

.api-key-cell {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.api-key-cell small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.copy-key-input {
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    padding: 9px 10px;
    width: 100%;
}

@media (max-width: 900px) {
    .club-create-grid,
    .sport-club-form-grid {
        grid-template-columns: 1fr;
    }

    .club-directory-panel .section-toolbar {
        align-items: flex-start;
    }

    .sport-club-card-head,
    .sport-club-card-bottom {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sport-club-card-head {
        display: grid;
    }

    .sport-club-card-bottom {
        display: grid;
    }

    .sport-club-card-bottom .btn,
    .sport-club-actions .btn,
    .sport-club-actions button,
    .club-tech-details .btn,
    .club-tech-details button {
        width: 100%;
    }

    .sport-club-actions {
        display: grid;
    }
}
