:root {
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #d6dee6;
    --soft: #f4f6f9;
    --panel: #ffffff;
    --blue: #0d6efd;
    --nav: #171b21;
    --nav-dark: #101318;
    --green: #179b5f;
    --red: #d71920;
    --amber: #f7c531;
    --gold: #f7c531;
    --black: #111318;
    --cream: #fff8e1;
    --shadow: 0 10px 26px rgba(17,19,24,.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(17,19,24,.04) 25%, transparent 25%) 0 0 / 34px 34px,
        radial-gradient(circle at 88% 4%, rgba(247,197,49,.18), transparent 20rem),
        linear-gradient(180deg, #f7f8fb 0%, #edf1f5 100%);
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.42;
}

a { color: inherit; text-decoration: none; }
button, .button, input, select, textarea { font: inherit; }

button, .button {
    border: 1px solid #cfd7df;
    border-radius: 3px;
    padding: 6px 12px;
    color: #343a40;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: background .15s ease, border-color .15s ease;
}

button:hover, .button:hover {
    border-color: #b8c2cc;
    background: #eef1f4;
}

button.primary, .primary { color: #fff; border-color: var(--red); background: var(--red); }
button.primary:hover, .primary:hover { border-color: #b81218; background: #b81218; }
.danger-button { color: #fff; border-color: #7f1015; background: #7f1015; }
.danger-button:hover { color: #fff; border-color: #5d0c10; background: #5d0c10; }

label {
    display: grid;
    gap: 6px;
    color: #343a40;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

input, select, textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 7px 10px;
    background: #fff;
    color: #495057;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.18);
}

textarea { min-height: 82px; resize: vertical; }
.select-search-input { margin-bottom: 6px; border-color: #9fb4c6; background: #f8fbfd; font-weight: 700; }
.select-search-input::placeholder { color: #6b7280; }

.app-shell { width: 100%; min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0,1fr); overflow-x: hidden; }
.content-shell { min-width: 0; }
.sidebar { color: #d6d9dd; background: linear-gradient(180deg, #111318 0%, #22272e 58%, #16191f 100%); box-shadow: 2px 0 12px rgba(0,0,0,.18); }
.brand { min-height: 62px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, #0f1115, #2d1215); font-size: 16px; font-weight: 800; }
.brand.big { color: #fff; }
.logo-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0,0,0,.28); }
.logo-brand span { color: #fff; font-size: 17px; line-height: 1.1; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; color: #102d43; background: #f4c542; font-weight: 900; }
.user-card { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); margin: 0; background: rgba(255,255,255,.04); }
.user-card strong { display: block; color: #fff; }
.user-card small { display: block; color: #b8c7ce; margin-top: 2px; }
.nav { display: grid; gap: 1px; padding: 8px; }
.nav a { min-height: 38px; display: flex; align-items: center; gap: 10px; border-radius: 4px; padding: 9px 10px; color: #c2c7d0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.nav a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; color: #adb5bd; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: linear-gradient(90deg, var(--red), #9f1116); box-shadow: inset 4px 0 0 var(--gold); }
.nav a.active span { color: #111318; background: var(--gold); }
.main { width: 100%; min-width: 0; max-width: none; padding: 20px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #dee2e6; }
.topbar h1 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.2; }
.topbar-actions { display: grid; justify-items: end; gap: 12px; }
.breadcrumb { color: var(--muted); font-size: 12px; white-space: nowrap; }
.home-button { min-width: 190px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border-color: #05070a; border-radius: 8px; color: #fff; background: linear-gradient(180deg, #22272e, #05070a); box-shadow: inset 0 -3px 0 rgba(255,255,255,.08), 0 10px 18px rgba(5,7,10,.18); font-size: 15px; font-weight: 900; text-transform: none; }
.home-button:hover { color: #fff; border-color: #000; background: linear-gradient(180deg, #111318, #000); }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.muted, .sub { color: var(--muted); }
.sub { display: block; font-size: 12px; margin-top: 2px; }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.gap-top { margin-top: 14px; }
.panel { border: 1px solid #dee2e6; border-radius: 8px; padding: 16px; background: var(--panel); box-shadow: var(--shadow); overflow-x: auto; }
.panel:not(.metric) { border-top: 3px solid var(--gold); }
.panel h2 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.panel > .section-head:first-child {
    margin: -16px -16px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}
.panel > .section-head:first-child h2 { margin: 0; font-size: 17px; font-weight: 500; }
.panel > .section-head:first-child .muted { margin: 4px 0 0; }
.federation-hero {
    position: relative;
    display: block;
    margin-bottom: 16px;
    padding: 28px 210px 28px 34px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%) 0 0 / 36px 36px,
        linear-gradient(125deg, rgba(17,19,24,.96), rgba(91,13,18,.92)),
        radial-gradient(circle at 82% 28%, rgba(247,197,49,.34), transparent 18rem);
    box-shadow: 0 16px 34px rgba(17,19,24,.18);
}
.federation-hero:before { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.hero-copy { min-width: 0; text-align: center; }
.federation-hero h2 { max-width: 100%; margin: 7px auto 0; font-size: clamp(13px, .95vw, 17px); line-height: 1.16; font-weight: 950; letter-spacing: .004em; white-space: nowrap; text-align: center; }
.federation-hero p { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.88); font-size: 14px; font-weight: 800; letter-spacing: .03em; text-align: center; }
.hero-kicker { display: block; color: var(--gold); font-size: 19px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.federation-hero img { position: absolute; top: 50%; right: 34px; z-index: 1; width: 126px; height: 126px; transform: translateY(-50%); border-radius: 24px; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px var(--gold), 0 18px 36px rgba(0,0,0,.32); }
.metric { min-height: 108px; position: relative; display: grid; gap: 2px; overflow: hidden; color: #fff; border: 0; border-radius: 9px; background: var(--blue); box-shadow: 0 14px 28px rgba(17,19,24,.12); }
a.metric:hover { transform: translateY(-2px); filter: brightness(1.04); }
.metric:before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(0,0,0,.18); }
.metric:after { content: ""; position: absolute; right: -28px; top: -38px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.metric strong { font-size: 30px; line-height: 1; }
.metric small { color: rgba(255,255,255,.9); font-weight: 700; text-transform: uppercase; }
.metric.accent-blue { background: linear-gradient(135deg, #111318, #263341); }
.metric.accent-green { background: linear-gradient(135deg, #126b45, var(--green)); }
.metric.accent-red { background: linear-gradient(135deg, #811017, var(--red)); }
.metric.accent-amber { color: #212529; background: linear-gradient(135deg, var(--gold), #ffdd69); }
.metric.accent-amber small { color: rgba(33,37,41,.78); }
.metric.accent-purple { background: linear-gradient(135deg, #3b1c62, #7d35c4); }
.metric.accent-cyan { background: linear-gradient(135deg, #075469, #1298b4); }
.metric.accent-navy { background: linear-gradient(135deg, #172554, #2563eb); }
.metric.accent-lime { color: #1f2937; background: linear-gradient(135deg, #84cc16, #d9f99d); }
.metric.accent-lime small { color: rgba(31,41,55,.78); }
.metric.accent-orange { color: #212529; background: linear-gradient(135deg, #ff9f1c, #ffd166); }
.metric.accent-orange small { color: rgba(33,37,41,.78); }
.metric.accent-maroon { background: linear-gradient(135deg, #4b0f24, #a61e4d); }
.metric.accent-magenta { background: linear-gradient(135deg, #701a75, #d946ef); }
.metric.accent-service { background: linear-gradient(135deg, #055160, #20c997); }
.metric.accent-contact { background: linear-gradient(135deg, #334155, #94a3b8); }
.accent-green:before { background: var(--green); }
.accent-red:before { background: var(--red); }
.accent-amber:before { background: #d9911f; }
.boxer-stat-row { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; }
.boxer-stat-row .metric { min-height: 74px; padding: 10px 12px; border-radius: 7px; box-shadow: 0 8px 16px rgba(17,19,24,.1); }
.boxer-stat-row .metric:after { right: -32px; top: -44px; width: 84px; height: 84px; }
.boxer-stat-row .metric strong { font-size: 22px; }
.boxer-stat-row .metric small { font-size: 10px; line-height: 1.15; }
.toolbar, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.actions form { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-bar { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .8fr)) auto; gap: 12px; align-items: end; margin-bottom: 16px; padding: 12px; border: 1px solid #e9ecef; border-radius: 3px; background: #fff; }
.filter-bar label { font-size: 12px; color: #495057; }
.filter-actions, .row-actions, .profile-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.row-actions form { display: flex; flex-wrap: wrap; gap: 7px; }
.table-wrap { overflow-x: auto; }
.club-table table { min-width: 920px; }
.empty-cell { padding: 24px; color: var(--muted); text-align: center; }
.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pagination a { min-width: 34px; min-height: 34px; display: grid; place-items: center; border: 1px solid #dee2e6; border-radius: 3px; background: #fff; font-weight: 700; }
.pagination a.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.profile-hero { display: flex; justify-content: flex-start; gap: 18px; align-items: flex-start; }
.profile-hero > div:last-child { min-width: 0; }
.profile-hero h2 { margin-top: 4px; font-size: 28px; }
.profile-ring-name { margin: 0 0 6px; color: var(--red); font-size: 15px; font-weight: 900; text-transform: uppercase; }
.club-photo-box { display: grid; place-items: center; flex: 0 0 160px; min-height: 118px; padding: 14px; border-radius: 14px; border: 2px dashed #d8c061; color: #7a5a00; background: #fff8d9; font-weight: 900; text-align: center; }
.club-photo-box span { display: grid; place-items: center; width: 100%; min-height: 88px; border-radius: 10px; background: rgba(255,199,44,.18); }
.club-photo-box img { width: 160px; height: 118px; border-radius: 14px; object-fit: cover; transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }
.club-photo-box:hover img { position: relative; z-index: 6; transform: scale(1.35); box-shadow: 0 18px 40px rgba(17,19,24,.22); }
.coach-profile-card { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 14px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid #ead484; border-radius: 10px; background: linear-gradient(135deg, #fffdf2, #ffffff); }
.coach-profile-name { display: grid; gap: 4px; min-width: 0; }
.coach-profile-name strong { color: var(--black); font-size: 17px; font-weight: 900; }
.coach-profile-name span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.coach-photo-frame { display: grid; place-items: center; width: 128px; height: 128px; border: 2px dashed #d8c061; border-radius: 16px; color: #7a5a00; background: #fff8d9; font-size: 26px; font-weight: 900; overflow: hidden; }
.coach-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.coach-photo-frame span { display: grid; place-items: center; width: 100%; height: 100%; background: rgba(255,199,44,.18); }
.boxer-face { display: grid; place-items: center; flex: 0 0 112px; width: 112px; height: 112px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--black), var(--red)); box-shadow: inset 0 -4px 0 var(--gold); font-size: 34px; font-weight: 900; }
.boxer-face img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }
.boxer-face:hover img { position: relative; z-index: 6; transform: scale(1.45); box-shadow: 0 18px 40px rgba(17,19,24,.24); }
.boxer-list-profile { display: flex; align-items: center; gap: 12px; }
.mini-photo { display: grid; place-items: center; flex: 0 0 58px; width: 58px; min-width: 58px; max-width: 58px; height: 58px; min-height: 58px; max-height: 58px; overflow: hidden; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--black), var(--red)); box-shadow: inset 0 -3px 0 var(--gold); font-weight: 900; line-height: 1; }
.mini-photo img { display: block; width: 58px; max-width: 58px; height: 58px; max-height: 58px; object-fit: cover; border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }
.mini-photo:hover { position: relative; overflow: visible; z-index: 80; }
.mini-photo:hover img {
    position: absolute;
    left: 74px;
    top: -56px;
    width: 180px;
    max-width: none;
    height: 180px;
    max-height: none;
    transform: none;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(17,19,24,.28);
}
.club-photo { background: linear-gradient(135deg, #14213d, #0f766e); }
.record-pill { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; border-radius: 999px; padding: 4px 9px; color: #111318; background: var(--gold); font-size: 10px; font-weight: 900; white-space: normal; }
.record-pill small { border-radius: 999px; padding: 1px 5px; color: #fff; background: var(--black); font-size: 9px; font-weight: 900; }
.record-pill-table { max-width: 220px; }
.back-link { color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.detail-list { display: grid; gap: 10px; margin: 12px 0 0; }
.detail-list div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.detail-list dd { margin: 0; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.full { grid-column: 1 / -1; }
.form-drawer { margin-bottom: 16px; }
.form-drawer summary {
    cursor: pointer;
    margin: -16px -16px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
    background: #fff;
    font-size: 18px;
    font-weight: 500;
    list-style-position: inside;
}
body.modal-open { overflow: hidden; }
details.form-drawer {
    display: none;
}
details.form-drawer[open] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    min-height: 100vh;
    display: block;
    margin: 0;
    padding: 46px 20px;
    border: 0;
    border-radius: 0;
    background: rgba(0,0,0,.48);
    box-shadow: none;
    overflow: hidden;
    overscroll-behavior: contain;
}
details.form-drawer[open] > summary,
details.form-drawer[open] > form,
details.form-drawer[open] > div,
details.form-drawer[open] > p,
details.form-drawer[open] > h2 {
    width: min(920px, calc(100vw - 40px));
    background: #fff;
}
details.form-drawer[open] > summary {
    position: relative;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 48px 14px 18px;
    border: 1px solid #dee2e6;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    list-style: none;
}
details.form-drawer[open] > summary::-webkit-details-marker { display: none; }
details.form-drawer[open] > summary:after {
    content: "x";
    position: absolute;
    right: 16px;
    top: 12px;
    color: #6c757d;
    font-size: 20px;
    font-weight: 400;
}
details.form-drawer[open] > p {
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0 18px 12px;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}
details.form-drawer[open] > h2 { display: none; }
details.form-drawer[open] > form,
details.form-drawer[open] > div {
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 18px;
    border: 1px solid #dee2e6;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

table { width: 100%; margin: 0; border-collapse: collapse; border: 1px solid #dee2e6; border-radius: 0; overflow: hidden; background: #fff; font-size: 13px; box-shadow: none; }
.table-scroll { width: 100%; overflow-x: auto; }
th, td { border: 1px solid #dee2e6; padding: 9px 12px; text-align: left; vertical-align: middle; }
th { color: #30343a; background: #fff9de; border-bottom: 2px solid #ead17d; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f8f9fa; }
tbody tr:hover { background: #f2f7ff; }
tbody tr.selected-row { background: #eef7ff; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 700; }

.status, .chip { display: inline-flex; align-items: center; min-height: 22px; border-radius: 3px; padding: 2px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status { background: #e9eef3; }
.approved, .active, .published, .compliant { color: #0f5132; background: #dff4e9; }
.pending, .review, .ready, .draft, .in-progress { color: #784f05; background: #fff1cf; }
.completed, .win { color: #0f5132; background: #dff4e9; }
.rejected, .inactive, .incomplete, .declined, .canceled, .not-completed { color: #842029; background: #f8d7da; }
.lose { color: #842029; background: #f8d7da; }
.chip { color: #495057; border: 1px solid #dee2e6; background: #f8f9fa; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.weight-chart { height: 260px; display: flex; align-items: end; gap: 8px; padding: 34px 16px 58px; border: 1px solid #f0df9c; border-radius: 8px; background: linear-gradient(180deg, #fffdf4, #fff); }
.weight-bar { position: relative; min-width: 34px; flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--red), #7e1116); box-shadow: inset 0 -4px 0 var(--gold); }
.weight-bar span { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); color: #343a40; font-size: 11px; font-weight: 800; white-space: nowrap; }
.weight-bar small { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); color: #6b7280; font-size: 10px; line-height: 1.2; font-weight: 900; text-align: center; white-space: nowrap; }
.weight-log-list { display: grid; gap: 8px; margin-top: 12px; }
.weight-log-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.weight-log-list span { color: var(--muted); font-size: 12px; }
.mini-table { margin-top: 12px; font-size: 12px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.timeline span { border: 1px solid #f0df9c; border-radius: 8px; padding: 12px; background: linear-gradient(180deg, #fffdf2, #fff8d9); font-weight: 700; }
.timeline span strong { display: block; color: var(--red); font-size: 16px; }
.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.notice-card { border: 1px solid var(--line); border-radius: 3px; padding: 14px; background: #fff; }
.notice-top { display: flex; justify-content: space-between; gap: 12px; }
.tournament-list { display: grid; gap: 8px; }
.tournament-pill { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; }
.tournament-pill span { color: var(--muted); font-size: 12px; }
.active-pill { border-color: #9fc1df; background: #f2f8fd; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.workflow-steps span { border: 1px solid #d9e8f5; border-radius: 3px; padding: 10px; color: #17415e; background: #f3f9fe; font-weight: 700; }
.bout-builder-preview { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin: 12px 0; }
.bout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bout-form-head, .bout-form .full, .judges-row, .success-button.full { grid-column: 1 / -1; }
.bout-form-head { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: end; gap: 12px; color: #111827; font-weight: 900; text-transform: uppercase; text-align: center; }
.bout-form label { display: grid; gap: 6px; color: #30343a; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.red-corner-field { border-top: 4px solid var(--red); padding-top: 8px; }
.blue-corner-field { border-top: 4px solid #0d6efd; padding-top: 8px; }
.scorecard-form {
    gap: 14px;
}
.scorecard-corners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.scorecard-corner {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.scorecard-corner span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: .86;
}
.scorecard-corner strong {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
}
.scorecard-corner-red {
    background: linear-gradient(135deg, #e31b23, #8c1015);
    border: 1px solid #ffb4b8;
}
.scorecard-corner-blue {
    background: linear-gradient(135deg, #0d6efd, #17415e);
    border: 1px solid #a8cdfd;
}
.scorecard-table-wrap {
    border: 1px solid #d6e0ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.scorecard-table {
    border: 0;
}
.scorecard-table th {
    color: #111827;
    background: #f6f8fb;
    border-bottom-color: #d6e0ea;
}
.scorecard-table th:nth-child(2) {
    color: #fff;
    background: #d71920;
    border-color: #d71920;
}
.scorecard-table th:nth-child(3) {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}
.scorecard-table td:first-child {
    width: 96px;
    color: #111827;
    background: #f8fafc;
    font-weight: 900;
    text-align: center;
}
.scorecard-table input {
    font-weight: 900;
    text-align: center;
    border-radius: 6px;
}
.scorecard-total-row td {
    border-top: 3px solid #111827;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}
.scorecard-total-row td:first-child {
    color: #111827;
    background: #ffc72c;
}
.scorecard-total-row td:nth-child(2) {
    color: #fff;
    background: #d71920;
    text-align: center;
}
.scorecard-total-row td:nth-child(3) {
    color: #fff;
    background: #0d6efd;
    text-align: center;
}
.scorecard-result-message {
    margin: 4px 0 2px;
    padding: 14px 16px;
    border: 2px solid #198754;
    border-left-width: 8px;
    border-radius: 8px;
    color: #0f5132;
    background: #e7f6ee;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 950;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(25, 135, 84, .12);
}
button.primary.scorecard-submit-button,
.primary.scorecard-submit-button {
    color: #fff;
    background: #198754;
    border-color: #198754;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
button.primary.scorecard-submit-button:hover,
.primary.scorecard-submit-button:hover {
    background: #146c43;
    border-color: #146c43;
}
.judges-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.success-button { border: 0; border-radius: 4px; padding: 11px 16px; color: #fff; background: #198754; font-weight: 900; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.checklist-field { display: flex; flex-wrap: wrap; gap: 8px 14px; align-content: start; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.checklist-field legend { padding: 0 5px; color: #30343a; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.checklist-field label { display: inline-flex; align-items: center; gap: 5px; margin: 0; text-transform: none; }
.corner-lane { min-height: 96px; display: grid; place-items: center; gap: 4px; border-radius: 8px; border: 2px dashed #ccd4dc; font-weight: 900; }
.corner-lane span { color: var(--muted); font-size: 12px; font-weight: 700; }
.red-lane { color: #fff; background: linear-gradient(135deg, #d71920, #8c1015); border-color: #ffb4b8; }
.red-lane span { color: #ffe2e4; }
.blue-lane { color: #fff; background: linear-gradient(135deg, #0d6efd, #17415e); border-color: #a8cdfd; }
.blue-lane span { color: #e7f1ff; }
.official-lane { display: grid; align-content: center; gap: 6px; }
.official-icon { display: grid; place-items: center; width: 38px; height: 32px; border-radius: 8px; color: #111318; background: var(--gold); font-size: 11px; font-weight: 900; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.group-stack { display: grid; gap: 10px; margin-top: 14px; }
.class-group { border: 1px solid var(--line); border-radius: 3px; padding: 12px; background: #fbfdff; }
.competitor-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; padding: 8px 10px; border-radius: 3px; background: #fff; }
.corner { display: inline-flex; margin-right: 7px; border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 900; color: #fff; }
.corner.red { background: var(--red); }
.corner.blue { background: var(--blue); }
td > .corner + .sub + .status { margin-top: 6px; }
.inline-form { display: grid; grid-template-columns: 90px 74px 90px minmax(150px,1fr) auto; gap: 6px; align-items: center; }
.inline-form input, .inline-form select { min-height: 32px; padding: 6px 8px; font-size: 12px; }
.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.club-layout { grid-template-columns: minmax(520px, 1.25fr) minmax(360px, .75fr); align-items: start; }
.form-panel { padding: 0; overflow: hidden; }
.form-panel > .section-head { padding: 20px 22px 0; }
.stacked-form { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.form-section { padding: 14px 0; border-top: 1px solid #e9ecef; }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section h3 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f2f4; font-size: 15px; font-weight: 600; color: #212529; }
.stacked-form > button.full { margin: 10px 0 0; width: 100%; min-height: 38px; }
.permission-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.permission-option { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid #d8dee6; border-radius: 8px; background: #fff; font-weight: 700; color: #212529; }
.permission-option input { width: auto; min-height: 0; }
.club-cards { display: grid; gap: 12px; }
.club-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,34,50,.05); }
.club-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.club-card h3 { margin: 0 0 3px; font-size: 16px; }
.club-card p { margin: 0; color: var(--muted); font-size: 12px; }
.club-meta { display: grid; gap: 4px; margin: 12px 0; color: #405166; font-size: 13px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.inline-create { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-bottom: 14px; }
.inline-create:has(select) { grid-template-columns: minmax(160px,.6fr) minmax(0,1fr) auto; }
.list-stack { display: grid; gap: 8px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; background: #fbfdff; }
.location-row { flex-wrap: wrap; }
.location-row > strong { min-width: 180px; }
.upload-grid .panel { min-height: 280px; }
.upload-card form { display: grid; gap: 12px; margin-top: 14px; }
.template-note { margin-top: 14px; padding: 10px; border-radius: 6px; color: #495057; background: #fff8d9; font-size: 12px; line-height: 1.55; }
.consent-actions { display: flex; justify-content: space-between; gap: 40px; margin-top: 18px; }
.consent-actions button { min-width: 180px; min-height: 48px; font-weight: 900; }
.alert { border-radius: 3px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); background: #fff; }
.alert.success { color: #0f5132; background: #dff4e9; }
.alert.danger { color: #842029; background: #f8d7da; }
.alert.info { color: #17415e; background: #e7f1ff; border-color: #b8d7f5; }
.guest {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25%) 0 0 / 38px 38px,
        radial-gradient(circle at 20% 12%, rgba(215,25,32,.24), transparent 24rem),
        radial-gradient(circle at 82% 16%, rgba(247,197,49,.28), transparent 20rem),
        linear-gradient(135deg, #0b0d10, #2b1013 54%, #111318);
}
.login-box {
    width: min(1320px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .55fr);
    border: 1px solid rgba(247,197,49,.24);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0,0,0,.34);
}
.login-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 56px 50px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.05) 25%, transparent 25%) 0 0 / 34px 34px,
        radial-gradient(circle at 50% 22%, rgba(247,197,49,.25), transparent 16rem),
        linear-gradient(150deg, rgba(17,19,24,.98), rgba(112,15,21,.9));
}
.login-art:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0, rgba(0,0,0,.22) 70%);
}
.login-art > * { position: relative; }
.login-art h1 { max-width: 620px; margin: 10px 0 0; font-size: 48px; line-height: 1.02; font-weight: 900; text-align: center; letter-spacing: .01em; }
.login-art h1 span { display: block; color: var(--gold); font-size: 26px; letter-spacing: .08em; }
.login-art p { width: 100%; max-width: 980px; margin: 10px auto 0; color: rgba(255,255,255,.98); font-size: clamp(11px, .78vw, 13px); line-height: 1.35; font-weight: 950; letter-spacing: .01em; white-space: nowrap; text-align: center; text-transform: uppercase; overflow: hidden; text-overflow: clip; }
.login-logo { position: relative; }
.login-logo img { width: 214px; height: 214px; border-radius: 36px; object-fit: cover; background: #fff; box-shadow: 0 0 0 5px var(--gold), 0 22px 50px rgba(0,0,0,.42); }
.login-logo span { position: absolute; right: -12px; bottom: 14px; display: grid; place-items: center; min-width: 58px; min-height: 58px; border-radius: 50%; color: #111318; background: var(--gold); border: 4px solid #fff; font-weight: 900; letter-spacing: .05em; box-shadow: 0 12px 24px rgba(0,0,0,.32); }
.login-form {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 64px;
    background: linear-gradient(180deg, #fff, #f7f9fc);
}
.login-form h2 { margin: 0 0 4px; font-size: 34px; font-weight: 900; color: var(--black); }
.login-form .muted { margin: 0; }
.login-form button { min-height: 48px; border-radius: 8px; font-weight: 900; }
.month-heading { margin: 18px 0 10px; color: var(--black); font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.notice-poster { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }
.notice-card:hover .notice-poster,
.form-section:hover .notice-poster { position: relative; z-index: 6; transform: scale(1.08); box-shadow: 0 18px 40px rgba(17,19,24,.2); }
.service-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.service-card { display: grid; grid-template-rows: auto 1fr; overflow: visible; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(17,19,24,.07); }
.service-thumb-card { overflow: hidden; }
.service-card h3 { margin: 0; font-size: 16px; }
.service-media { position: relative; min-height: 160px; display: grid; place-items: center; overflow: hidden; border-radius: 8px 8px 0 0; background: linear-gradient(135deg, #f8fafc, #fff9de); }
.service-thumb-link { cursor: zoom-in; }
.service-poster { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 8px 8px 0 0; transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }
.service-card:hover { z-index: 5; }
.service-card:hover .service-poster { transform: scale(1.08); box-shadow: 0 18px 40px rgba(17,19,24,.18); }
.service-pdf,
.service-placeholder { width: calc(100% - 28px); min-height: 122px; display: grid; place-items: center; border: 2px dashed #c9d4df; border-radius: 8px; color: #17415e; background: #f3f9fe; font-size: 28px; font-weight: 950; text-transform: uppercase; }
.service-placeholder { color: #6b7280; font-size: 15px; }
.service-body { display: grid; gap: 10px; padding: 14px; }
.service-body p { margin: 0; color: #405166; }
.service-large-view { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.service-large-view > img { width: 100%; max-height: 72vh; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.service-large-copy { display: grid; gap: 12px; }
.service-large-copy h2 { margin: 0; font-size: 24px; font-weight: 900; }
.service-large-copy p { margin: 0; color: #405166; font-size: 15px; line-height: 1.55; }
.service-large-pdf { min-height: 320px; }
.service-contact-list { display: grid; gap: 6px; margin: 0; }
.service-contact-list div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
.service-contact-list dt { color: var(--muted); font-weight: 900; text-transform: uppercase; }
.service-contact-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-us-panel { max-width: 1120px; margin-inline: auto; }
.contact-us-layout { display: grid; gap: 18px; justify-items: center; }
.contact-us-visual { overflow: hidden; width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 8px; background: #111417; box-shadow: 0 12px 26px rgba(17,19,24,.12); }
.contact-us-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-us-grid { width: min(100%, 980px); display: grid; grid-template-columns: repeat(2, minmax(360px, 1fr)); gap: 16px; align-items: stretch; }
.contact-us-card { display: grid; gap: 10px; min-height: 150px; align-content: center; justify-items: center; text-align: center; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, #fff, #f3f9fe); box-shadow: 0 10px 24px rgba(17,19,24,.06); }
.contact-us-card strong { color: var(--black); font-size: 15px; font-weight: 950; text-transform: uppercase; }
.contact-us-card a { color: #075469; font-size: clamp(24px, 1.9vw, 30px); line-height: 1.15; font-weight: 950; overflow-wrap: anywhere; word-break: normal; }
.tournament-poster-panel { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.tournament-poster-preview { display: grid; place-items: center; width: 160px; height: 116px; border-radius: 8px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0f6380, #111318); box-shadow: inset 0 -4px 0 var(--gold); font-size: 13px; font-weight: 950; text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.tournament-poster-preview:hover { transform: scale(1.2); box-shadow: 0 18px 40px rgba(17,19,24,.24), inset 0 -4px 0 var(--gold); z-index: 5; }
.tournament-poster-preview img { width: 100%; height: 100%; object-fit: cover; }
.tournament-poster-copy { min-width: 0; }
.tournament-poster-copy strong { color: var(--black); font-size: 18px; }
.poster-upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--black); background: #fff; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.poster-upload-button input { display: none; }
.nav-chip-row .nav-chip { border-color: var(--red); color: #fff; background: linear-gradient(180deg, var(--red), #9f1116); box-shadow: inset 0 -3px 0 rgba(0,0,0,.22); }
.quote-strip { margin: 0 0 12px; border-radius: 8px; padding: 10px 12px; color: #111318; background: linear-gradient(180deg, #fff8d9, #ffeaa1); font-size: 13px; font-weight: 950; text-align: center; text-transform: uppercase; }
.club-quote { color: var(--red); background: transparent; border-radius: 0; font-size: clamp(13px, 1.05vw, 18px); font-style: italic; }
.boxer-quote { color: var(--red); background: transparent; border-radius: 0; font-size: clamp(18px, 1.7vw, 30px); font-style: italic; text-transform: none; }
.weight-capture-quote { margin-top: 18px; color: var(--red); background: transparent; border-radius: 0; font-size: clamp(16px, 1.45vw, 24px); font-weight: 950; font-style: italic; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.dashboard-quote {
    display: grid;
    place-items: center;
    min-height: 96px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.05) 25%, transparent 25%) 0 0 / 30px 30px,
        linear-gradient(135deg, #111318, #5a1116);
    border-top-color: var(--red);
    box-shadow: 0 16px 32px rgba(17,19,24,.15);
}
.dashboard-quote p {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 1.15vw, 22px);
    line-height: 1.18;
    font-weight: 950;
    text-align: center;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.official-photo { background: linear-gradient(135deg, #27313c, #111318); }
.nested-drawer { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fbfdff; }
.nested-drawer summary { cursor: pointer; font-weight: 900; text-transform: uppercase; }
.print-report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gold);
}
.print-report-header > img,
.print-tournament-summary .print-report-header > img,
.print-bout-sheet .print-report-header > img {
    flex: 0 0 58px;
    display: block;
    width: 58px !important;
    min-width: 58px;
    max-width: 58px;
    height: 58px !important;
    min-height: 58px;
    max-height: 58px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}
.print-report-title {
    display: grid;
    gap: 2px;
}
.print-report-title strong {
    color: var(--black);
    font-size: 17px;
    font-weight: 950;
}
.print-report-title span {
    color: var(--muted);
    font-weight: 800;
}
.print-report-header time {
    margin-left: auto;
    color: var(--black);
    font-weight: 900;
}

@media (max-width: 900px) {
    .app-shell, .login-box, .cols-2, .cols-3, .cols-4, .form-grid, .filter-bar, .notice-grid, .service-gallery, .service-large-view, .contact-us-layout, .contact-us-grid, .tournament-poster-panel, .timeline, .workflow-steps, .inline-form, .club-layout, .inline-create, .inline-create:has(select), .detail-list div, .bout-builder-preview, .permission-grid { grid-template-columns: 1fr; }
    .contact-us-grid { width: 100%; }
    .contact-us-card { min-height: 142px; }
    .contact-us-card a { font-size: clamp(22px, 6.5vw, 28px); }
    .contact-us-visual { width: 160px; height: 160px; }
    .tournament-poster-preview { width: 100%; height: 180px; }
    .boxer-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { position: static; }
    .main { padding: 18px; }
    .profile-hero { display: grid; }
    .federation-hero { padding: 24px; text-align: center; }
    .federation-hero img { position: static; width: 88px; height: 88px; margin: 18px auto 0; transform: none; }
    .federation-hero h2 { font-size: 22px; white-space: normal; }
    .topbar { display: grid; }
    .topbar-actions { justify-items: start; }
    .home-button { width: 100%; min-width: 0; }
    details.form-drawer[open] { padding: 20px 12px; }
    .login-art p { white-space: normal; }
    .login-art h1 { font-size: 34px; }
    .login-logo img { width: 160px; height: 160px; }
}

@media print {
    body {
        background: #fff;
    }

    .sidebar,
    .topbar,
    .list-panel,
    .form-drawer,
    .no-print,
    .print-tournament-summary [data-print],
    .print-bout-sheet .row-actions,
    .print-bout-sheet th:last-child,
    .print-bout-sheet td:last-child {
        display: none !important;
    }

    .app-shell,
    .content-shell,
    .main {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 0;
        margin: 0;
        background: #fff;
    }

    .main > * {
        display: none !important;
    }

    .main > .print-tournament-summary,
    .main > .print-bout-sheet {
        display: block !important;
    }

    .panel {
        box-shadow: none;
        border: 1px solid #d6dee6;
        break-inside: avoid;
    }

    .print-tournament-summary {
        margin: 0 0 12px;
    }

    .print-report-header {
        display: flex !important;
    }

    .print-bout-sheet {
        margin-top: 0;
    }

    .print-bout-sheet table {
        font-size: 11px;
    }

    .print-bout-sheet th,
    .print-bout-sheet td {
        padding: 7px 8px;
    }
}
