:root {
    --pb-bg: #101313;
    --pb-bg-soft: #141819;
    --pb-panel: #181d1e;
    --pb-panel-2: #202627;
    --pb-border: #2d3839;

    --pb-text: #f5f5f0;
    --pb-muted: #9aa4a5;

    --pb-teal: #2fa3a5;
    --pb-teal-light: #39c1c4;
    --pb-yellow: #f5bf17;
    --pb-orange: #f05a28;
    --pb-red: #d91f4c;
    --pb-green: #35c97b;
    --pb-blue: #4f8cff;

    --pb-radius: 16px;
    --pb-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: clip;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(47, 163, 165, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 191, 23, 0.14), transparent 30rem),
    linear-gradient(135deg, #0d1010 0%, #101313 45%, #090b0c 100%);
    color: var(--pb-text);
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    top: 0;
    width: 8px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        #c2185b 0 12%,
        #f44321 12% 24%,
        #ff8a22 24% 36%,
        #f5bf17 36% 48%,
        #2fa3a5 48% 60%,
        transparent 60%
    );
    pointer-events: none;
    opacity: 0.95;
}

a {
    color: var(--pb-teal-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.pb-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(13, 16, 16, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pb-border);
}

.pb-rainbow {
    height: 10px;
    background: linear-gradient(
        to right,
        #c2185b,
        #f44321,
        #ff8a22,
        #f5bf17,
        #2fa3a5,
        #0d1010 42%,
        #0d1010 58%,
        #2fa3a5,
        #f5bf17,
        #ff8a22,
        #f44321,
        #c2185b
    );
}

.pb-nav {
    width: min(1760px, calc(100vw - 80px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pb-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--pb-text);
}

.pb-brand:hover {
    text-decoration: none;
}

.pb-logo-image {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(47, 163, 165, 0.08);
}

.pb-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #08100f;
    background: linear-gradient(135deg, var(--pb-yellow), var(--pb-teal-light));
    font-size: 16px;
    font-weight: 950;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(47, 163, 165, 0.08);
}

.brand-kita_pickle {
    --pb-bg: #070908;
    --pb-bg-soft: #0b100d;
    --pb-panel: #101512;
    --pb-panel-2: #161d18;
    --pb-border: #2a332c;
    --pb-text: #f4f0df;
    --pb-muted: #a9ac9f;
    --pb-teal: #1f5c3b;
    --pb-teal-light: #789f63;
    --pb-yellow: #f2c20f;
    --pb-orange: #b24a2f;
    --pb-red: #8f3028;
    --pb-green: #2f6b42;
    --pb-blue: #7e9f88;
    --pb-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.brand-kita_pickle body,
body.brand-kita_pickle {
    background:
        linear-gradient(135deg, rgba(5, 7, 6, 0.72), rgba(4, 5, 4, 0.88)),
        radial-gradient(circle at top left, rgba(37, 88, 50, 0.25), transparent 32rem),
        radial-gradient(circle at 84% 8%, rgba(242, 194, 15, 0.12), transparent 24rem),
        radial-gradient(circle at 82% 78%, rgba(25, 63, 38, 0.18), transparent 34rem),
        url("/images/tournaments/kita-pickle/jungle-background.png"),
        linear-gradient(135deg, #050706 0%, #0b100d 46%, #040504 100%);
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
    background-position: center, center, top left, top right, center top, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-y, no-repeat;
    background-size: cover, cover, auto, auto, 100% auto, cover;
}

.brand-kita_pickle .pb-rainbow {
    background: linear-gradient(
        to right,
        #050706,
        #1a3c25,
        #789f63,
        #f2c20f,
        #f4f0df,
        #050706 43%,
        #050706 57%,
        #f4f0df,
        #f2c20f,
        #789f63,
        #1a3c25,
        #050706
    );
}

body.brand-kita_pickle::after {
    background: linear-gradient(
        to bottom,
        #050706 0 10%,
        #1a3c25 10% 26%,
        #789f63 26% 40%,
        #f2c20f 40% 56%,
        #f4f0df 56% 68%,
        transparent 68%
    );
}

.brand-kita_pickle .pb-topbar {
    background: rgba(5, 7, 6, 0.94);
    border-bottom-color: rgba(120, 159, 99, 0.28);
}

.brand-kita_pickle .pb-logo-image {
    background: #050706;
    box-shadow:
        0 0 0 2px rgba(244, 240, 223, 0.16),
        0 0 0 6px rgba(242, 194, 15, 0.10),
        0 12px 28px rgba(0, 0, 0, 0.44);
}

.brand-kita_pickle .pb-brand-title strong {
    color: #f4f0df;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.brand-kita_pickle .pb-brand-title span,
.brand-kita_pickle .pb-kicker {
    color: #f2c20f;
}

.brand-kita_pickle .card {
    background:
        linear-gradient(180deg, rgba(244, 240, 223, 0.045), rgba(244, 240, 223, 0.015)),
        var(--pb-panel);
    border-color: rgba(120, 159, 99, 0.26);
}

.pb-brand-title {
    line-height: 1;
}

.pb-brand-title strong {
    display: block;
    font-size: 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pb-brand-title span {
    display: block;
    margin-top: 4px;
    color: var(--pb-teal-light);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pb-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pb-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--pb-text);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pb-nav-link:hover {
    text-decoration: none;
    border-color: var(--pb-border);
    background: rgba(255, 255, 255, 0.04);
}

.pb-logout-form {
    margin: 0;
}

.pb-logout-button {
    min-height: auto;
    background: transparent;
    box-shadow: none;
}

.admin-login-shell {
    min-height: calc(100vh - 190px);
    display: grid;
    place-items: center;
}

.admin-login-card {
    width: min(100%, 460px);
    padding: clamp(24px, 5vw, 40px);
}

.admin-login-card h1 {
    font-size: clamp(36px, 7vw, 54px);
}

.admin-login-form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.admin-login-form > label:not(.admin-login-remember) {
    margin-top: 6px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--pb-text);
    background: var(--pb-bg-soft);
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    font: inherit;
}

.admin-login-form input:focus-visible {
    border-color: var(--pb-teal-light);
    outline: 2px solid color-mix(in srgb, var(--pb-teal-light) 30%, transparent);
    outline-offset: 2px;
}

.admin-login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 10px;
    color: var(--pb-text);
    cursor: pointer;
}

.admin-login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--pb-teal-light);
}

.admin-login-form button {
    width: 100%;
}

.pb-page {
    width: min(1760px, calc(100vw - 80px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

.pb-page-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.pb-kicker {
    color: var(--pb-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 0.95;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    margin: 0 0 16px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pb-subtitle {
    color: var(--pb-muted);
    margin-top: 10px;
    max-width: 760px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--pb-panel);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--pb-shadow);
}

.card-accent {
    border-color: rgba(47, 163, 165, 0.45);
}

.card-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.card-heading-row h2 {
    margin-bottom: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.detail-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin-inline: 0;
}

.detail-grid-single .program-info-grid {
    max-width: none;
}

.detail-grid-wide {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.admin-program-record-grid {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.reclub-record-page {
    max-width: 1480px;
    margin: 0 auto;
}

.reclub-record-page h1 {
    font-size: clamp(30px, 3.3vw, 46px);
}

.reclub-record-page .pb-page-header {
    margin-bottom: 20px;
}

.reclub-record-page .admin-data-overview {
    margin-bottom: 16px;
}

.reclub-record-page .admin-data-stat {
    min-height: 74px;
    padding: 14px 16px;
}

.reclub-record-page .admin-record-summary .admin-data-stat strong {
    font-size: 18px;
}

.reclub-record-page .admin-form,
.reclub-record-page .admin-record-panel {
    padding: 18px 20px;
}

.reclub-record-page .admin-form-section {
    padding: 13px;
}

.reclub-record-page .admin-readonly-row {
    grid-template-columns: 160px minmax(0, 1fr);
}

.reclub-program-record-page .admin-program-record-grid {
    grid-template-columns: minmax(460px, 520px) minmax(0, 1fr);
}

.reclub-program-record-page .admin-record-list .admin-data-row {
    min-height: 54px;
    padding: 9px 12px;
}

.reclub-program-record-page .admin-record-list .admin-data-main {
    grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
    gap: 18px;
}

.reclub-program-record-page .admin-record-list .admin-data-actions .button {
    min-width: 74px;
    min-height: 34px;
    padding: 8px 12px;
}

.reclub-program-record-page .admin-participant-record-list .admin-data-row {
    min-height: 48px;
    padding: 8px 12px;
    gap: 12px;
}

.reclub-program-record-page .admin-participant-record-list .admin-data-main {
    grid-template-columns: minmax(190px, 0.58fr) minmax(128px, 0.22fr) minmax(260px, 1fr);
    gap: 12px;
}

.reclub-program-record-page .admin-participant-record-list .admin-data-title-line {
    min-width: 0;
    flex-wrap: nowrap;
}

.reclub-program-record-page .admin-participant-record-list .admin-data-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-record-id {
    min-width: 0;
    overflow: hidden;
    color: #c7cdce;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-record-id-wide {
    color: #aeb8b9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 700;
}

.admin-participant-record-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
}

.admin-resolve-card {
    align-self: start;
}

.admin-resolve-card .admin-resolve-row {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.admin-resolve-card .button {
    width: 100%;
}

.competitive-session-detail-page {
    display: flex;
    flex-direction: column;
    max-width: none;
}

.competitive-session-detail-page > .event-workspace-header {
    order: 1;
}

.competitive-session-detail-page > .event-workspace-switcher {
    order: 2;
}

.competitive-session-detail-page > .competitive-session-hero {
    order: 3;
}

.competitive-session-detail-page > .host-mode-panel {
    order: 4;
}

.competitive-session-detail-page > .competitive-participants-card {
    order: 5;
}

.competitive-session-detail-page > .session-live-panel {
    order: 6;
}

.competitive-session-detail-page > .event-ops-draft-card {
    order: 7;
}

.competitive-session-detail-page > .event-ops-draft-preview {
    order: 5;
}

.competitive-session-detail-page > .event-ops-saved-schedule {
    order: 7;
}

.competitive-session-detail-page h1 {
    font-size: clamp(34px, 4vw, 50px);
}

.event-workspace-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
}

.event-workspace-switcher > a,
.event-workspace-switcher > span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--pb-muted);
    text-decoration: none;
}

.event-workspace-switcher > a:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--pb-text);
    background: rgba(255, 255, 255, 0.035);
}

.event-workspace-switcher > .is-active {
    border-color: rgba(245, 191, 23, 0.32);
    color: var(--pb-text);
    background: linear-gradient(90deg, rgba(245, 191, 23, 0.13), rgba(255, 255, 255, 0.03));
}

.event-workspace-switcher > .is-disabled {
    opacity: 0.46;
}

.event-workspace-switcher > a > span,
.event-workspace-switcher > span > span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #101414;
    background: #657073;
    font-weight: 950;
}

.event-workspace-switcher > .is-active > span {
    background: var(--pb-yellow);
}

.event-workspace-switcher strong {
    align-self: end;
    color: inherit;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-workspace-switcher small {
    align-self: start;
    font-size: 11px;
}

.event-session-workspace-page {
    width: min(1540px, 100%);
    margin: 0 auto;
}

.schedule-dupr-warning {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 18px;
    padding: 15px 18px;
    border: 1px solid rgba(245, 188, 66, 0.46);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 188, 66, 0.16), rgba(245, 119, 66, 0.09));
    color: #f7d98f;
    box-shadow: 0 12px 28px rgba(49, 29, 4, 0.16);
}

.schedule-dupr-warning-icon {
    flex: 0 0 auto;
    font-size: 23px;
    line-height: 1;
}

.schedule-dupr-warning strong {
    display: block;
    color: #ffe7a9;
    font-size: 15px;
}

.schedule-dupr-warning p {
    margin: 4px 0 0;
    color: #d9cab0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.competitive-session-detail-page > .schedule-dupr-warning {
    order: 3;
}

.event-workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.event-workspace-header h1 {
    font-size: clamp(32px, 4vw, 50px);
}

.event-workspace-header p {
    margin: 9px 0 0;
    color: var(--pb-muted);
    font-weight: 700;
}

.event-workspace-header .actions,
.event-run-command-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.event-run-command-bar {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.2fr) minmax(220px, auto);
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(245, 191, 23, 0.24);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 50%, rgba(245, 191, 23, 0.1), transparent 42%),
        rgba(13, 17, 17, 0.92);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.event-run-command-status {
    display: grid;
    gap: 3px;
}

.event-run-command-status > span {
    color: var(--pb-yellow);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-run-command-status > strong {
    font-size: 17px;
}

.event-run-command-status > small {
    color: var(--pb-muted);
}

.event-run-progress {
    display: grid;
    gap: 8px;
}

.event-live-late-arrivals {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(49, 176, 190, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(49, 176, 190, 0.11), transparent 34%),
        rgba(13, 20, 20, 0.94);
}

.event-live-late-arrivals-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 38px;
    cursor: pointer;
    list-style: none;
}

.event-live-late-arrivals-summary::-webkit-details-marker {
    display: none;
}

.event-live-late-arrivals-summary::after {
    content: "⌄";
    color: #7be1e5;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transition: transform 160ms ease;
}

.event-live-late-arrivals[open] .event-live-late-arrivals-summary::after {
    transform: rotate(180deg);
}

.event-live-late-arrivals-summary-copy {
    display: grid;
    gap: 2px;
}

.event-live-late-arrivals-summary-copy > span {
    color: #7be1e5;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-live-late-arrivals-summary-copy > strong {
    font-size: 17px;
}

.event-live-late-arrivals-summary-status {
    margin-left: auto;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 800;
}

.event-live-late-arrivals-summary-status.has-absences {
    color: #ffe292;
}

.event-live-late-arrivals-body {
    display: grid;
    gap: 14px;
    padding-top: 16px;
}

.event-live-late-arrivals:not([open]) > .event-live-late-arrivals-body {
    display: none;
}

.event-live-late-arrivals-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.event-live-late-arrivals-heading > div {
    display: grid;
    gap: 3px;
}

.event-live-late-arrivals-heading > div > span,
.event-live-late-arrivals-heading label > span {
    color: #7be1e5;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-live-late-arrivals-heading > div > strong {
    font-size: 18px;
}

.event-live-late-arrivals-heading small {
    color: var(--pb-muted);
}

.event-live-late-arrivals-heading label {
    display: grid;
    flex: 0 0 min(340px, 40%);
    gap: 6px;
}

.event-live-late-arrivals-heading select {
    width: 100%;
}

.event-live-late-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.event-live-late-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.event-live-late-player:has(input:checked) {
    border-color: rgba(245, 191, 23, 0.42);
    background: rgba(245, 191, 23, 0.08);
}

.event-live-late-player.is-checked-in {
    border-color: rgba(79, 190, 125, 0.24);
    background: rgba(79, 190, 125, 0.06);
    cursor: default;
}

.event-live-late-player.is-checked-in small {
    color: #8fe0ad;
}

.event-live-late-player input:disabled {
    opacity: 0.5;
}

.event-live-late-player input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.event-live-late-player > span {
    display: grid;
    min-width: 0;
}

.event-live-late-player strong,
.event-live-late-player small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-live-late-player small {
    color: var(--pb-muted);
}

.event-live-late-arrivals-checked-in {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 10px;
}

.event-live-late-arrivals-checked-in > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--pb-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    list-style: none;
}

.event-live-late-arrivals-checked-in > summary::-webkit-details-marker {
    display: none;
}

.event-live-late-arrivals-checked-in > summary span {
    color: #8fe0ad;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-live-late-arrivals-checked-in-hide {
    display: none;
}

.event-live-late-arrivals-checked-in[open] .event-live-late-arrivals-checked-in-show {
    display: none;
}

.event-live-late-arrivals-checked-in[open] .event-live-late-arrivals-checked-in-hide {
    display: inline;
}

.event-live-late-arrivals-checked-in > .event-live-late-arrivals-grid {
    margin-top: 10px;
}

.event-live-late-arrivals footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 14px;
}

.event-run-progress > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.event-run-progress > div:first-child strong {
    font-size: 22px;
}

.event-run-progress > div:first-child span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.event-run-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.event-run-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pb-teal), var(--pb-yellow));
}

.event-run-section-label {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 24px 2px 10px;
}

.event-run-section-label > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(245, 191, 23, 0.34);
    border-radius: 50%;
    color: var(--pb-yellow);
    font-size: 11px;
    font-weight: 950;
}

.event-run-section-label > div {
    display: grid;
    gap: 1px;
}

.event-run-section-label strong {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-run-section-label small,
.event-run-section-label > a {
    color: var(--pb-muted);
    font-size: 11px;
}

.event-run-section-label > a {
    margin-left: auto;
}

.event-run-page > .session-live-panel,
.event-run-page > .host-mode-panel {
    margin-bottom: 20px;
}

.event-run-mc-label {
    margin-top: 32px;
}

.event-demo-controller {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(77, 208, 225, 0.34);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(77, 208, 225, 0.12), transparent 38%),
        rgba(12, 18, 19, 0.95);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.event-demo-controller-heading,
.event-demo-controls,
.event-demo-controls > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.event-demo-controller-heading {
    margin-bottom: 12px;
}

.event-demo-controller-heading > div {
    display: grid;
    gap: 2px;
}

.event-demo-controller-heading span {
    color: var(--pb-teal-light);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.event-demo-controller-heading strong {
    color: var(--pb-muted);
    font-size: 12px;
}

.event-demo-stages {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.event-demo-stages a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    color: var(--pb-muted);
    background: rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

.event-demo-stages a:hover {
    color: var(--pb-text);
    border-color: rgba(77, 208, 225, 0.28);
}

.event-demo-stages a.is-active {
    color: var(--pb-text);
    border-color: rgba(77, 208, 225, 0.46);
    background: rgba(77, 208, 225, 0.12);
}

.event-demo-stages a > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #102022;
    background: #687476;
    font-size: 10px;
    font-weight: 950;
}

.event-demo-stages a.is-active > span {
    background: var(--pb-teal-light);
}

.event-demo-stages a strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.event-demo-controls {
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-demo-controller .button.is-disabled {
    pointer-events: none;
    opacity: 0.35;
}

.event-demo-autoplay-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.event-demo-autoplay-progress span {
    display: block;
    height: 100%;
    transform-origin: left;
    background: linear-gradient(90deg, var(--pb-teal), var(--pb-yellow));
    animation: event-demo-progress 18s linear forwards;
}

@keyframes event-demo-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.event-demo-finale {
    margin-bottom: 24px;
}

.event-demo-tv-preview {
    position: relative;
    width: min(920px, 100%);
    aspect-ratio: 16 / 9;
    margin: 14px auto 0;
    overflow: hidden;
    border: 1px solid rgba(245, 191, 23, 0.3);
    border-radius: 14px;
    background: #050606;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.event-demo-tv-preview iframe {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: 1920px;
    height: 1080px;
    border: 0;
    transform-origin: top left;
}

.host-mode-panel.is-demo-preview {
    position: relative;
}

.host-mode-panel.is-demo-preview::after {
    content: "Demo preview · Controls disabled";
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(77, 208, 225, 0.26);
    border-radius: 999px;
    color: var(--pb-teal-light);
    background: rgba(7, 13, 14, 0.92);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.event-live-cockpit {
    display: grid;
    grid-template-columns: minmax(230px, 0.8fr) minmax(260px, 0.9fr) minmax(360px, 1.3fr);
    gap: 10px;
    margin-bottom: 14px;
}

.event-live-cockpit > article {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(17, 22, 22, 0.92);
}

.event-live-now {
    display: grid;
    gap: 12px;
    border-color: rgba(245, 191, 23, 0.3) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 191, 23, 0.12), transparent 55%),
        rgba(17, 22, 22, 0.94) !important;
}

.event-live-now > span,
.event-live-cockpit article > header > span {
    color: var(--pb-yellow);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.event-live-now > div:nth-child(2) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.event-live-now > div:nth-child(2) > strong {
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.event-live-now > div:nth-child(2) > small,
.event-live-cockpit article > header > small {
    color: var(--pb-muted);
    font-weight: 800;
}

.event-live-now-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.event-live-now-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pb-teal), var(--pb-yellow));
}

.event-live-now footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-live-now footer span {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-live-now footer strong {
    color: var(--pb-teal-light);
    font-size: 14px;
}

.event-live-cockpit article > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.event-live-leaders ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-live-leaders li {
    display: grid;
    grid-template-columns: 28px minmax(90px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.event-live-leaders li > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #111;
    background: #6e797b;
    font-size: 11px;
    font-weight: 950;
}

.event-live-leaders li:first-child > span {
    background: var(--pb-yellow);
}

.event-live-leaders li > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-live-leaders li > small {
    color: var(--pb-muted);
    font-weight: 850;
}

.event-live-movement {
    min-width: 28px;
    color: var(--pb-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    text-align: center;
    text-transform: uppercase;
}

.event-live-movement.is-up {
    color: #69e0ac;
}

.event-live-movement.is-down {
    color: #ff8a80;
}

.event-live-empty {
    padding: 18px 4px;
    color: var(--pb-muted);
    line-height: 1.45;
}

.event-live-story {
    border-color: rgba(47, 163, 165, 0.26) !important;
}

.event-live-story > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
    text-transform: uppercase;
}

.event-live-story p {
    margin: 0 0 8px;
    color: var(--pb-muted);
}

.event-live-story blockquote {
    margin: 0;
    padding-left: 12px;
    border-left: 3px solid var(--pb-teal);
    color: #e4eded;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.opening-cue-lines {
    display: grid;
    gap: 7px;
}

.opening-cue-lines span {
    display: block;
}

.session-live-panel:not(.show-all-rounds) .match-round-card.is-operational-secondary {
    display: none;
}

.match-round-card.is-current-round {
    border-color: rgba(245, 191, 23, 0.38);
    box-shadow: 0 0 0 1px rgba(245, 191, 23, 0.08);
}

.match-round-card.is-next-round {
    border-color: rgba(47, 163, 165, 0.24);
}

.match-round-card.is-next-round .match-round-title::after {
    content: " · Up next";
    color: var(--pb-teal-light);
    font-size: 10px;
    letter-spacing: 0.08em;
}

#overview,
#host,
#roster,
#live,
#schedule-job,
#schedule-prep,
#saved-schedule,
.match-round-card {
    scroll-margin-top: 112px;
}

.event-ops-saved-schedule-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.competitive-session-hero {
    margin-bottom: 16px;
}

.host-mode-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px;
    border-color: rgba(77, 208, 225, 0.28);
    background:
        radial-gradient(circle at 95% 0%, rgba(77, 208, 225, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--pb-panel);
}

.host-mode-final {
    border-color: rgba(255, 200, 87, 0.34);
    background:
        radial-gradient(circle at 95% 0%, rgba(255, 200, 87, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--pb-panel);
}

.host-mode-header,
.host-mode-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.host-mode-header h2,
.host-mode-section-heading h3 {
    margin: 0;
}

.host-mode-header p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--pb-muted);
}

.host-mode-auto-status {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(77, 208, 225, 0.2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.17);
}

.host-mode-auto-status span,
.host-mode-auto-status small {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.host-mode-auto-status strong {
    color: var(--pb-teal-light);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.host-mode-auto-status small::before {
    content: "·";
    margin-right: 8px;
}

.host-mode-status-grid {
    display: grid;
    grid-template-columns: 150px 150px minmax(280px, 1fr);
    gap: 10px;
}

.host-mode-status-grid > article {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.17);
}

.host-mode-status-grid span,
.host-mode-section-heading span {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.host-mode-status-grid strong {
    font-size: 22px;
    line-height: 1.12;
}

.host-mode-status-grid small,
.host-mode-section-heading small,
.host-mode-podium-place small {
    color: var(--pb-muted);
}

.host-mode-next-action {
    border-color: rgba(77, 208, 225, 0.2) !important;
}

.host-mode-next-action strong {
    color: #fff;
    font-size: 16px;
}

.host-tv-director {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(77, 208, 225, 0.32);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(77, 208, 225, 0.14), transparent 42%),
        rgba(0, 0, 0, 0.2);
}

.host-tv-director.is-updating {
    opacity: 0.7;
}

.host-tv-director-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.host-tv-director-head > div:first-child {
    display: grid;
    gap: 4px;
}

.host-tv-director-head span {
    color: var(--pb-teal-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.host-tv-director-head strong {
    font-size: 17px;
}

.host-tv-director-head small {
    color: var(--pb-muted);
}

.host-tv-director-clock {
    min-width: 126px;
    color: #fff;
    font-size: 38px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-align: right;
}

.host-tv-director-clock.is-paused {
    color: #ffc533;
}

.host-tv-timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.host-tv-display-control {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.host-tv-display-control > span {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.host-tv-display-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.host-tv-display-actions .button.is-active {
    color: #071011;
    border-color: var(--pb-teal-light);
    background: var(--pb-teal-light);
}

.host-tv-timeline-actions[hidden],
.host-tv-timeline-actions .button[hidden],
.host-tv-director-error[hidden] {
    display: none !important;
}

.host-tv-director-error {
    padding: 9px 11px;
    border-radius: 8px;
    color: #ffd0d0;
    background: rgba(205, 55, 55, 0.18);
}

.host-mode-finale-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 200, 87, 0.4);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 200, 87, 0.15), transparent 45%),
        rgba(255, 200, 87, 0.07);
}

.host-mode-finale-control > div {
    display: grid;
    gap: 5px;
}

.host-mode-finale-control span {
    color: #ffd66f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.host-mode-finale-control strong {
    font-size: 17px;
}

.host-mode-finale-control form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
}

.host-mode-finale-control.is-live {
    border-color: rgba(255, 79, 79, 0.45);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 79, 79, 0.16), transparent 45%),
        rgba(255, 79, 79, 0.06);
}

.host-mode-social-export {
    overflow: hidden;
    border: 1px solid rgba(77, 208, 225, 0.24);
    border-radius: 12px;
    background: rgba(77, 208, 225, 0.055);
}

.host-mode-social-export > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
}

.host-mode-social-export > summary::-webkit-details-marker {
    display: none;
}

.host-mode-social-export > summary > div,
.host-mode-social-export-intro > div {
    display: grid;
    gap: 4px;
}

.host-mode-social-export > summary > div > span {
    color: #65dce7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.host-mode-social-export > summary small,
.host-mode-social-export-intro small {
    color: var(--pb-muted);
}

.host-mode-social-export-body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.host-mode-social-export-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(77, 208, 225, 0.15);
}

.host-mode-social-export-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.host-mode-social-export-grid article {
    display: grid;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}

.host-mode-social-export-grid article > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.host-mode-social-export-grid .button {
    flex: 1 1 auto;
    padding-inline: 10px;
    font-size: 11px;
    white-space: nowrap;
}

.finale-social-exporter {
    display: grid;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.finale-social-exporter-header,
.finale-social-exporter-status,
.finale-social-exporter-grid article {
    border: 1px solid rgba(77, 208, 225, 0.2);
    border-radius: 14px;
    background: rgba(6, 13, 15, 0.78);
}

.finale-social-exporter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.finale-social-exporter-header > div {
    display: grid;
    gap: 6px;
}

.finale-social-exporter-header span {
    color: #65dce7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.finale-social-exporter-header h1,
.finale-social-exporter-header p {
    margin: 0;
}

.finale-social-exporter-header p,
.finale-social-exporter-status small {
    color: var(--pb-muted);
}

.finale-social-exporter-status {
    display: grid;
    gap: 12px;
    padding: 16px 20px;
}

.finale-social-exporter-status > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.finale-social-exporter-track {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.finale-social-exporter-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pb-yellow), #65dce7);
    transition: width 180ms ease;
}

.finale-social-exporter.has-error .finale-social-exporter-track span {
    background: #ff7070;
}

.finale-social-exporter-pack {
    min-height: 54px;
    font-size: 15px;
}

.finale-social-exporter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.finale-social-exporter-grid article {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.finale-social-exporter-grid article > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.finale-social-exporter-grid article > div:first-child span {
    color: var(--pb-yellow);
    font-size: 12px;
    font-weight: 900;
}

.finale-social-exporter-formats {
    display: grid;
    gap: 7px;
}

.finale-social-exporter-formats .button {
    justify-content: flex-start;
}

.finale-social-exporter.is-exporting .button {
    cursor: wait;
    opacity: 0.62;
}

.finale-social-export-render-stage {
    position: fixed;
    left: -20000px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.finale-social-export-render-stage iframe {
    display: block;
    border: 0;
}

.host-mode-venue-control {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 197, 51, 0.28);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 121, 58, 0.13), transparent 44%),
        rgba(255, 197, 51, 0.045);
}

.host-mode-venue-control > div {
    display: grid;
    gap: 4px;
}

.host-mode-venue-control span {
    color: #ffd66f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.host-mode-venue-control strong {
    font-size: 16px;
}

.host-mode-venue-control small {
    color: var(--pb-muted);
}

.host-mode-venue-control form {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.host-mode-venue-control-compact {
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
}

.host-mode-venue-action {
    display: flex;
    gap: 6px;
}

.host-mode-venue-action .button[hidden] {
    display: none;
}

.host-mode-podium {
    display: grid;
    gap: 10px;
}

.host-mode-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.host-mode-podium-place {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}

.host-mode-podium-place > span {
    color: var(--pb-muted);
    font-weight: 900;
}

.host-mode-podium-place > strong {
    font-size: 18px;
}

.host-mode-podium-1 {
    border-color: rgba(255, 200, 87, 0.35);
    background: rgba(255, 200, 87, 0.08);
}

.host-mode-podium-1 > span {
    color: #ffd66f;
}

.host-mode-story-library {
    overflow: hidden;
    border: 1px solid rgba(77, 208, 225, 0.16);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.host-mode-story-library > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    cursor: pointer;
    list-style: none;
}

.host-mode-story-library > summary::-webkit-details-marker {
    display: none;
}

.host-mode-story-library > summary > div {
    display: grid;
    gap: 2px;
}

.host-mode-story-library > summary > div > span,
.host-mode-story-library > summary > span {
    color: var(--pb-teal-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.host-mode-story-library > summary strong {
    font-size: 15px;
}

.host-mode-story-library > summary small {
    color: var(--pb-muted);
}

.host-mode-story-library > summary > span::after {
    content: "Show";
    display: inline-block;
    min-width: 38px;
    margin-left: 9px;
    color: var(--pb-muted);
    text-align: right;
}

.host-mode-story-library[open] > summary > span::after {
    content: "Hide";
}

.host-mode-story-library-body {
    display: grid;
    gap: 16px;
    padding: 2px 15px 15px;
}

.host-mode-story-scope {
    display: grid;
    gap: 9px;
}

.host-mode-story-scope > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.host-mode-story-scope > header small {
    color: var(--pb-muted);
}

.host-mode-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.host-mode-story {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 2px solid rgba(77, 208, 225, 0.65);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.15);
}

.host-mode-story h4,
.host-mode-story p {
    margin: 0;
}

.host-mode-story h4 {
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.host-mode-story p {
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-line;
}

.host-mode-story-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.host-mode-story-meta > span {
    font-size: 18px;
    line-height: 1;
}

.host-mode-story-meta small {
    overflow: hidden;
    color: var(--pb-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.host-mode-story-meta em {
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 999px;
    color: #071415;
    background: var(--pb-teal-light);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.host-mode-story.is-current {
    border-color: rgba(77, 208, 225, 0.42);
    background: rgba(77, 208, 225, 0.07);
}

.host-mode-story-gold {
    border-top-color: #ffc857;
}

.host-mode-story-orange {
    border-top-color: #ff8a4c;
}

.host-mode-story-purple {
    border-top-color: #aa82ff;
}

.host-mode-dismissed {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
}

.host-mode-dismissed summary {
    cursor: pointer;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.host-mode-dismissed > div {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.host-mode-dismissed form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.14);
}

@media (max-width: 760px) {
    .host-mode-header,
    .host-mode-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .host-mode-status-grid,
    .host-mode-podium-grid,
    .host-mode-story-grid,
    .host-mode-social-export-grid {
        grid-template-columns: 1fr;
    }

    .host-mode-auto-status {
        grid-template-columns: auto auto;
        justify-content: start;
        border-radius: 10px;
    }

    .host-mode-auto-status small {
        grid-column: 1 / -1;
    }

    .host-mode-auto-status small::before {
        display: none;
    }

    .host-mode-finale-control {
        align-items: stretch;
        flex-direction: column;
    }

    .host-tv-director-head {
        align-items: stretch;
        flex-direction: column;
    }

    .host-tv-director-clock {
        min-width: 0;
        text-align: left;
    }

    .host-tv-display-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .host-tv-display-actions .button {
        width: 100%;
    }

    .host-mode-social-export > summary,
    .host-mode-social-export-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .host-mode-venue-control {
        align-items: stretch;
        flex-direction: column;
    }

    .host-mode-venue-control-compact {
        grid-template-columns: 1fr;
    }

    .host-mode-venue-control form {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .host-mode-finale-control form {
        justify-content: flex-start;
    }

    .host-mode-story-library > summary {
        align-items: flex-start;
    }
}

.competitive-session-summary {
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        var(--pb-panel);
    box-shadow: var(--pb-shadow);
    padding: 16px;
}

.competitive-session-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.competitive-session-meta > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.competitive-session-status-tile {
    border-color: rgba(47, 163, 165, 0.25);
}

.competitive-session-meta span {
    display: block;
    margin-bottom: 8px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitive-session-meta strong {
    display: block;
    overflow: hidden;
    color: var(--pb-text);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitive-session-status-tile strong {
    color: var(--pb-teal-light);
}

.competitive-session-meta small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ops-session-settings {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-ops-session-settings > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}

.event-ops-session-settings > summary::-webkit-details-marker {
    display: none;
}

.event-ops-session-settings > summary::after {
    content: "Edit";
    flex: 0 0 44px;
    text-align: right;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-session-settings[open] > summary::after {
    content: "Hide";
}

.event-ops-action-menu {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-ops-action-menu-status {
    min-width: 0;
}

.event-ops-action-menu-status span {
    display: block;
    margin-bottom: 5px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-action-menu-status strong {
    display: block;
    overflow: hidden;
    color: var(--pb-text);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ops-action-menu-status small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ops-action-menu-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.event-ops-session-settings strong,
.event-ops-session-settings small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ops-session-settings strong {
    display: block;
    color: var(--pb-text);
    font-size: 14px;
    font-weight: 900;
}

.event-ops-session-settings small {
    display: block;
    margin-top: 3px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 800;
}

.event-ops-session-settings-body {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.event-ops-session-settings-body .button {
    min-height: 38px;
}

.event-ops-setting-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    min-width: 0;
}

.event-ops-score-setting {
    grid-template-columns: minmax(140px, 220px) auto;
    max-width: 560px;
}

.event-ops-league-setting {
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-ops-league-copy > span {
    display: block;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-league-copy small {
    white-space: normal;
}

.event-ops-league-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
}

.event-ops-league-choices,
.event-ops-league-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.event-ops-league-choices label {
    cursor: pointer;
}

.event-ops-league-choices input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.event-ops-league-choices span {
    display: inline-flex;
    min-height: 36px;
    padding: 0 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 900;
    transition: 120ms ease;
}

.event-ops-league-choices input:checked + span {
    border-color: rgba(245, 191, 23, 0.52);
    background: rgba(245, 191, 23, 0.12);
    color: #ffe292;
}

.event-ops-league-choices input:focus-visible + span {
    outline: 2px solid var(--pb-teal-light);
    outline-offset: 2px;
}

.event-ops-league-actions .button-quiet {
    border-color: transparent;
    background: transparent;
    color: var(--pb-muted);
}

.event-ops-league-actions .button-quiet:hover {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.035);
    color: var(--pb-text);
}

.event-ops-league-season-select {
    min-width: min(100%, 320px);
    min-height: 38px;
}

.competitive-workflow-card,
.competitive-participants-card {
    padding: 18px;
    border-color: rgba(47, 163, 165, 0.42);
    background:
        linear-gradient(180deg, rgba(47, 163, 165, 0.045), rgba(47, 163, 165, 0.012)),
        var(--pb-panel);
}

.competitive-manual-player-form {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(47, 163, 165, 0.22);
    border-radius: 10px;
    background: rgba(7, 11, 12, 0.28);
}

.competitive-manual-player-form .participants-heading {
    margin-bottom: 14px;
}

.competitive-manual-player-controls {
    display: grid;
    grid-template-columns: minmax(180px, 320px) max-content;
    gap: 12px;
    align-items: end;
}

.competitive-manual-player-controls--identity {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) max-content;
}

.competitive-manual-player-controls .button {
    min-width: 180px;
}

.competitive-manual-player-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.competitive-manual-player-field span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.competitive-manual-player-field input {
    width: 100%;
    text-transform: uppercase;
}

.competitive-manual-player-field--name input {
    text-transform: none;
}

.competitive-workflow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.competitive-workflow-header h2,
.competitive-participants-card h2 {
    margin-bottom: 4px;
}

.competitive-score-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(47, 163, 165, 0.32);
    border-radius: 999px;
    color: var(--pb-teal-light);
    background: rgba(47, 163, 165, 0.10);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.competitive-score-pill-ready {
    border-color: rgba(53, 201, 123, 0.42);
    color: #76f0ad;
    background: rgba(53, 201, 123, 0.12);
}

.competitive-score-progress {
    margin: -2px 0 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background: rgba(15, 18, 19, 0.72);
}

.competitive-score-progress-header {
    margin-bottom: 9px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 850;
}

.competitive-score-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.competitive-score-progress-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pb-teal), var(--pb-yellow));
}

.schedule-job-progress {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background: rgba(15, 18, 19, 0.72);
}

.schedule-job-progress-header,
.schedule-job-progress-meta,
.schedule-job-progress-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-job-progress-header {
    color: var(--pb-text);
    font-size: 14px;
    font-weight: 900;
}

.schedule-job-progress-header span,
.schedule-job-progress-meta,
.schedule-job-progress-stats {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 800;
}

.schedule-job-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.schedule-job-progress-fill {
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pb-teal), var(--pb-yellow));
}

.schedule-job-progress-working:not(.schedule-job-progress-live) .schedule-job-progress-fill::after {
    position: absolute;
    inset: 0 auto 0 -35%;
    width: 32%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: schedule-job-working-sheen 1.6s ease-in-out infinite;
}

@keyframes schedule-job-working-sheen {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(425%);
    }
}

.schedule-job-progress-live .schedule-job-progress-track {
    position: relative;
}

.schedule-job-progress-live .schedule-job-progress-fill {
    width: 38% !important;
    min-width: 120px;
    animation: schedule-job-live-sweep 1.45s ease-in-out infinite;
}

@keyframes schedule-job-live-sweep {
    0% {
        transform: translateX(-115%);
    }

    50% {
        transform: translateX(85%);
    }

    100% {
        transform: translateX(260%);
    }
}

.schedule-job-progress-stats {
    justify-content: flex-start;
}

.schedule-job-progress-stats span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--pb-text);
}

.competitive-workflow-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.event-ops-run-actions {
    display: grid;
    gap: 12px;
}

.event-ops-run-primary,
.event-ops-run-final,
.event-ops-run-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.event-ops-run-final {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.event-ops-run-secondary {
    justify-content: flex-end;
}

.event-ops-run-secondary .button {
    color: var(--pb-muted);
}

.competitive-workflow-label {
    margin-bottom: 10px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-workspace-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.ops-workspace-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.ops-workspace-card-header {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin-bottom: 13px;
}

.ops-workspace-card-header span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-workspace-card-header strong {
    overflow: hidden;
    color: var(--pb-text);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-workspace-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.ops-workspace-card-body .button,
.ops-workspace-card-body button {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 11px;
}

.event-ops-prep-card {
    margin-bottom: 18px;
}

.event-ops-prep-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.event-ops-prep-header h2 {
    margin-bottom: 4px;
}

.event-ops-prep-header p {
    margin: 0;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 700;
}

.event-ops-prep-badges,
.event-ops-court-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-ops-prep-form {
    display: grid;
    gap: 14px;
}

.event-ops-empty-state {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 11px 12px;
    border: 1px solid rgba(245, 191, 23, 0.18);
    border-radius: 8px;
    background: rgba(245, 191, 23, 0.035);
}

.event-ops-empty-state strong {
    color: var(--pb-text);
    font-size: 14px;
    font-weight: 900;
}

.event-ops-empty-state span {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 750;
}

.event-ops-prep-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.event-ops-prep-summary > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.022);
}

.event-ops-prep-summary span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-prep-summary strong,
.event-ops-prep-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ops-prep-summary small {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 700;
}

.event-ops-prep-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.event-ops-schedule-settings-grid {
    grid-template-columns: minmax(110px, 0.55fr) minmax(190px, 1fr);
}

.event-ops-generation-note {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.event-ops-generation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.event-ops-generation-action.button {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 4px;
    min-height: 86px;
    padding: 13px 15px;
    text-align: left;
    white-space: normal;
}

.event-ops-generation-action > span {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.09em;
    opacity: 0.72;
    text-transform: uppercase;
}

.event-ops-generation-action > strong {
    font-size: 14px;
    line-height: 1.2;
}

.event-ops-generation-action > small {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.35;
    opacity: 0.8;
    text-transform: none;
}

.event-ops-prep-field,
.event-ops-rating-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.event-ops-prep-field > span,
.event-ops-rating-field > span,
.event-ops-prep-label {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-prep-field input,
.event-ops-rating-field input {
    width: 100%;
}

.event-ops-prep-toggle,
.event-ops-court-option,
.event-ops-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--pb-text);
    font-size: 12px;
    font-weight: 850;
}

.event-ops-prep-section {
    display: grid;
    gap: 8px;
}

.event-ops-player-settings {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.event-ops-player-settings > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.event-ops-player-settings > summary::-webkit-details-marker {
    display: none;
}

.event-ops-player-settings > summary span {
    color: var(--pb-muted);
    font-size: 12px;
}

.event-ops-roster-add {
    margin: 14px 0;
    border: 1px solid rgba(47, 163, 165, 0.18);
    border-radius: 10px;
    background: rgba(7, 18, 19, 0.42);
}

.event-ops-roster-players {
    margin-top: 14px;
    border: 1px solid rgba(47, 163, 165, 0.18);
    border-radius: 10px;
    background: rgba(7, 18, 19, 0.42);
}

.event-ops-roster-add > summary,
.event-ops-roster-players > summary,
.event-ops-player-relationships > summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
    border-radius: 10px;
}

.event-ops-roster-add > summary::-webkit-details-marker,
.event-ops-roster-players > summary::-webkit-details-marker,
.event-ops-player-relationships > summary::-webkit-details-marker {
    display: none;
}

.event-ops-roster-add > summary span,
.event-ops-roster-players > summary span,
.event-ops-player-relationships > summary span {
    color: var(--pb-muted);
    font-size: 12px;
}

.event-ops-roster-players > summary strong {
    display: block;
    color: var(--pb-text);
    font-size: 14px;
}

.event-ops-player-relationships {
    margin-top: 12px;
    border: 1px solid rgba(77, 208, 225, 0.15);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.host-mode-player-relationships {
    margin-top: 18px;
    background: rgba(77, 208, 225, 0.045);
}

.host-mode-player-relationships > summary {
    justify-content: space-between;
}

.host-mode-player-relationships > summary > span:first-child strong {
    color: var(--pb-text);
    font-size: 15px;
}

.host-mode-player-relationships > summary > span:last-child {
    color: var(--pb-teal-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.event-ops-player-relationships > summary {
    padding: 13px 14px;
}

.event-ops-player-relationships > summary strong,
.event-ops-player-relationships > summary small {
    display: block;
}

.event-ops-player-relationships > summary small {
    margin-top: 3px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.event-ops-player-relationships-body {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.event-ops-player-relationship-list {
    display: grid;
    gap: 7px;
}

.event-ops-player-relationship-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(77, 208, 225, 0.06);
}

.event-ops-player-relationship-list article > div {
    display: grid;
    gap: 3px;
}

.event-ops-player-relationship-list small {
    color: var(--pb-muted);
}

.event-ops-player-relationship-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.2fr) minmax(140px, 1fr) minmax(220px, 1.2fr) auto;
    align-items: end;
    gap: 9px;
}

.event-ops-player-relationship-form label {
    display: grid;
    gap: 5px;
}

.event-ops-player-relationship-form label > span {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-ops-player-relationship-form input {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 1200px) {
    .event-ops-player-relationship-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-ops-player-relationship-form .button {
        justify-self: start;
    }
}

.event-ops-roster-players > summary small {
    display: block;
    margin-top: 3px;
    color: var(--pb-muted);
    font-size: 12px;
}

.event-ops-roster-players > summary > span:first-child {
    margin-right: auto;
}

.event-ops-roster-players > summary > span:nth-child(2) {
    flex: 0 0 auto;
}

.event-ops-roster-players > summary::after {
    content: "Show";
    flex: 0 0 44px;
    text-align: right;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-roster-players[open] > summary::after {
    content: "Hide";
}

.event-ops-roster-add .competitive-manual-player-form {
    margin: 0;
    padding: 14px 12px 12px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 0;
    background: transparent;
}

.event-ops-add-player-note {
    margin-bottom: 12px;
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.35;
}

.event-ops-roster-players .competitive-tv-name-form {
    padding: 0 12px 12px;
}

.event-ops-late-arrival-capacity-note {
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 11px 13px;
    border: 1px solid rgba(245, 191, 23, 0.28);
    border-radius: 10px;
    background: rgba(245, 191, 23, 0.07);
}

.event-ops-late-arrival-capacity-note strong {
    color: #ffe292;
    font-size: 12px;
}

.event-ops-late-arrival-capacity-note span {
    color: var(--pb-muted);
    font-size: 11px;
    line-height: 1.4;
}

.event-ops-roster-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.event-ops-roster-summary > span:first-child {
    padding: 4px 8px;
    border: 1px solid rgba(47, 163, 165, 0.24);
    border-radius: 999px;
    color: var(--pb-teal-light);
    background: rgba(47, 163, 165, 0.08);
}

.event-ops-player-settings-list {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px;
}

.event-ops-player-settings-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 110px 86px 96px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.022);
}

.event-ops-player-name {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.event-ops-player-name strong,
.event-ops-player-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ops-player-name span {
    color: var(--pb-muted);
    font-size: 12px;
}

.event-ops-roster-settings {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 100px auto auto;
    gap: 8px;
    align-items: end;
    min-width: 0;
}

.competitive-player-row .event-ops-roster-settings {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.competitive-player-row .event-ops-rating-field {
    grid-column: 1 / -1;
}

.event-ops-roster-settings .competitive-tv-name-field,
.event-ops-roster-settings .event-ops-rating-field {
    min-width: 0;
}

.competitive-player-flags {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.competitive-roster-card .event-ops-roster-settings > .competitive-player-flags {
    grid-column: 2 / -1;
}

.competitive-player-row .event-ops-roster-settings > .competitive-player-flags {
    grid-column: 1 / -1;
}

.event-ops-schedule-preview {
    margin: 0 0 18px;
}

.event-ops-draft-card,
.event-ops-draft-preview {
    border-color: rgba(245, 191, 23, 0.34);
    background:
        linear-gradient(180deg, rgba(245, 191, 23, 0.055), rgba(245, 191, 23, 0.018)),
        var(--pb-panel);
}

.event-ops-draft-card h2,
.event-ops-draft-preview .event-ops-schedule-preview-header strong {
    color: #ffe27a;
}

.event-ops-saved-schedule {
    border-color: rgba(47, 163, 165, 0.34);
}

.event-ops-saved-schedule .event-ops-schedule-preview-header {
    margin-bottom: 0;
}

.event-ops-schedule-preview-header,
.event-ops-schedule-preview > summary,
.event-ops-rounds-details > summary,
.event-ops-regenerate-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.event-ops-schedule-preview > summary::-webkit-details-marker,
.event-ops-rounds-details > summary::-webkit-details-marker,
.event-ops-regenerate-details > summary::-webkit-details-marker {
    display: none;
}

.event-ops-schedule-preview > summary::after,
.event-ops-rounds-details > summary::after,
.event-ops-regenerate-details > summary::after {
    content: "Show";
    flex: 0 0 44px;
    text-align: right;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-schedule-preview[open] > summary::after,
.event-ops-rounds-details[open] > summary::after,
.event-ops-regenerate-details[open] > summary::after {
    content: "Hide";
}

.event-ops-schedule-preview-header > div,
.event-ops-schedule-preview > summary span,
.event-ops-rounds-details > summary span,
.event-ops-regenerate-details > summary span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.event-ops-schedule-preview-header small,
.event-ops-schedule-preview > summary small,
.event-ops-rounds-details > summary small,
.event-ops-regenerate-details > summary small {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 700;
}

.event-ops-schedule-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.event-ops-schedule-compare > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.022);
}

.event-ops-schedule-compare span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-schedule-compare small {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 700;
}

.event-ops-draft-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(245, 191, 23, 0.18);
    border-radius: 8px;
    background: rgba(245, 191, 23, 0.03);
}

.event-ops-draft-summary span {
    color: #ffe27a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-ops-draft-summary strong {
    color: var(--pb-text);
    font-size: 14px;
    font-weight: 900;
}

.event-ops-draft-summary small {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 750;
}

.event-ops-preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
}

.event-ops-rounds-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.event-ops-saved-rounds-details {
    padding-top: 0;
    border-top: 0;
}

.event-ops-saved-rounds-details > summary {
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.016);
}

.event-ops-saved-schedule .event-ops-regenerate-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.event-ops-regenerate-details > summary {
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.016);
}

.event-ops-draft-card.event-ops-regenerate-details > summary strong {
    color: #ffe27a;
}

.event-ops-regenerate-body {
    display: grid;
    gap: 14px;
    padding-top: 14px;
}

.event-ops-regenerate-details:not([open]) > .event-ops-regenerate-body {
    display: none;
}

.event-ops-rounds-details > .card {
    margin-top: 14px;
}

.event-ops-rounds-details:not([open]) > :not(summary) {
    display: none;
}

.event-ops-advanced-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.event-ops-advanced-link {
    align-self: center;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.event-ops-advanced-link:hover {
    color: var(--pb-text);
    text-decoration: underline;
}

.competitive-score-target-card {
    margin: 0 0 18px;
}

.competitive-score-target-form {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.competitive-score-target-form h2 {
    margin-bottom: 4px;
}

.competitive-score-target-field {
    display: grid;
    gap: 6px;
    min-width: 150px;
}

.competitive-score-target-field span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitive-score-target-field input {
    width: 120px;
}

.competitive-player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 10px;
}

.competitive-player-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-height: 46px;
    padding: 12px;
    border: 1px solid rgba(47, 163, 165, 0.22);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(47, 163, 165, 0.04), rgba(47, 163, 165, 0.012)),
        rgba(7, 17, 18, 0.72);
}

.competitive-player-row-editable {
    min-height: 126px;
}

.competitive-player-row-editable.is-tv-only,
.competitive-roster-card.is-tv-only {
    gap: 9px;
    min-height: 0;
}

.competitive-player-row-editable.is-tv-only {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.competitive-player-row-editable.is-tv-only .competitive-player-topline {
    grid-column: 1 / -1;
}

.competitive-player-row-editable.is-tv-only .competitive-tv-name-field {
    grid-column: 1;
}

.competitive-player-row-editable.is-tv-only .competitive-player-actions {
    grid-column: 2;
}

.competitive-roster-card.is-tv-only .event-ops-roster-settings {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.competitive-roster-card.is-tv-only {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.competitive-roster-card.is-tv-only .competitive-roster-card-header,
.competitive-roster-card.is-tv-only .competitive-roster-metrics {
    grid-column: 1 / -1;
}

.competitive-roster-card.is-tv-only .competitive-tv-name-field {
    grid-column: 1;
}

.competitive-roster-card.is-tv-only .competitive-roster-card-footer {
    grid-column: 2;
}

.competitive-player-row-editable.is-tv-only .competitive-tv-name-field,
.competitive-roster-card.is-tv-only .competitive-tv-name-field {
    display: grid;
    gap: 5px;
}

.competitive-player-row-editable.is-tv-only .competitive-player-actions,
.competitive-roster-card.is-tv-only .competitive-roster-card-footer {
    margin-top: 0;
}

.competitive-player-row-editable.is-tv-only .button-danger-soft,
.competitive-roster-card.is-tv-only .button-danger-soft {
    min-height: 34px;
    padding: 6px 11px;
    white-space: nowrap;
}

.competitive-dropped-players {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.competitive-dropped-players > summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--pb-muted);
    cursor: pointer;
    list-style: none;
}

.competitive-dropped-players > summary::-webkit-details-marker {
    display: none;
}

.competitive-dropped-players > summary strong {
    display: block;
    color: var(--pb-text);
    font-size: 14px;
}

.competitive-dropped-players > summary small {
    display: block;
    margin-top: 2px;
    color: var(--pb-muted);
    font-size: 12px;
}

.competitive-dropped-players > summary > span:last-child {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitive-dropped-players > summary::after {
    content: "Show";
    flex: 0 0 44px;
    text-align: right;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitive-dropped-players[open] > summary::after {
    content: "Hide";
}

.competitive-dropped-player-list {
    display: grid;
    gap: 8px;
    padding-bottom: 4px;
}

.competitive-dropped-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.012);
    opacity: 0.84;
}

.competitive-dropped-player-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.competitive-dropped-player-main strong {
    color: var(--pb-text);
    font-size: 13px;
}

.competitive-dropped-player-main span {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 800;
}

.competitive-player-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.competitive-player-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: start;
}

.competitive-player-row strong {
    color: var(--pb-text);
    font-size: 15px;
    line-height: 1.2;
}

.competitive-player-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.competitive-player-row > span,
.competitive-player-rating {
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 900;
}

.competitive-player-rating {
    justify-self: end;
    padding: 2px 7px;
    border: 1px solid rgba(47, 163, 165, 0.22);
    border-radius: 999px;
    background: rgba(47, 163, 165, 0.08);
    color: var(--pb-teal-light);
    line-height: 1;
}

.competitive-player-match-count {
    justify-self: end;
    padding: 2px 6px;
    border: 1px solid rgba(245, 191, 23, 0.24);
    border-radius: 999px;
    color: #d8c77a;
    background: rgba(245, 191, 23, 0.075);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.competitive-roster-rating-wrap {
    overflow-x: auto;
}

.competitive-roster-rating-table {
    width: 100%;
    min-width: 760px;
}

.competitive-roster-rating-table th,
.competitive-roster-rating-table td {
    vertical-align: middle;
}

.competitive-roster-rating-table td:first-child {
    min-width: 190px;
}

.competitive-roster-rating-table strong {
    color: var(--pb-text);
}

.competitive-roster-rating-table .muted {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
}

.competitive-roster-mobile-label {
    display: none;
}

.competitive-tv-name-compact-input {
    width: 135px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid rgba(47, 163, 165, 0.30);
    border-radius: 8px;
    color: var(--pb-text);
    background: rgba(4, 10, 11, 0.66);
    font-weight: 800;
}

.competitive-roster-rating-actions {
    width: 116px;
    text-align: right;
}

.competitive-roster-rating-actions .button {
    min-width: 86px;
}

.competitive-roster-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.competitive-roster-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(47, 163, 165, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(47, 163, 165, 0.04), rgba(47, 163, 165, 0.012)),
        rgba(7, 17, 18, 0.72);
}

.competitive-roster-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.competitive-roster-card-header strong {
    display: block;
    color: var(--pb-text);
    font-size: 15px;
    line-height: 1.2;
}

.competitive-roster-card-header .competitive-player-badges {
    margin-top: 6px;
}

.competitive-roster-used-pill {
    padding: 2px 6px;
    border: 1px solid rgba(47, 163, 165, 0.22);
    border-radius: 999px;
    color: var(--pb-teal-light);
    background: rgba(47, 163, 165, 0.08);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.competitive-roster-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.competitive-roster-metric {
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(4, 10, 11, 0.38);
}

.competitive-roster-metric span {
    display: block;
    margin-bottom: 5px;
    color: var(--pb-muted);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitive-roster-metric strong {
    display: block;
    color: var(--pb-text);
    font-size: 16px;
    line-height: 1;
}

.competitive-roster-metric small {
    display: block;
    min-height: 12px;
    margin-top: 5px;
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.competitive-roster-metric-used strong {
    color: var(--pb-teal-light);
}

.competitive-roster-metric-matches strong {
    color: var(--pb-text);
}

.competitive-roster-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.competitive-roster-card .event-ops-roster-settings {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.competitive-roster-card .competitive-tv-name-field {
    grid-column: 1 / -1;
}

.competitive-roster-card .event-ops-rating-field {
    grid-column: 1 / -1;
}

.competitive-roster-card .event-ops-check {
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
}

.competitive-roster-card-footer .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 680px) {
    .competitive-roster-card-list {
        grid-template-columns: 1fr;
    }

    .competitive-roster-card {
        padding: 10px;
    }

    .competitive-roster-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .competitive-player-topline {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .competitive-player-match-count {
        grid-column: 2;
    }

    .event-ops-roster-settings,
    .competitive-player-row .event-ops-roster-settings {
        grid-template-columns: 1fr 1fr;
    }

    .competitive-roster-rating-wrap {
        overflow: visible;
    }

    .competitive-roster-rating-table,
    .competitive-roster-rating-table thead,
    .competitive-roster-rating-table tbody,
    .competitive-roster-rating-table tr,
    .competitive-roster-rating-table th,
    .competitive-roster-rating-table td {
        display: block;
    }

    .competitive-roster-rating-table {
        min-width: 0;
    }

    .competitive-roster-rating-table thead {
        display: none;
    }

    .competitive-roster-rating-table tbody {
        display: grid;
        gap: 8px;
    }

    .competitive-roster-rating-table tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border: 1px solid rgba(47, 163, 165, 0.16);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.018);
    }

    .competitive-roster-rating-table td {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .competitive-roster-rating-table td:first-child {
        min-width: 0;
    }

    .competitive-roster-player-cell {
        grid-column: 1 / -1;
    }

    .competitive-roster-player-cell strong {
        display: block;
        font-size: 14px;
        line-height: 1.2;
    }

    .competitive-roster-metric-cell {
        min-width: 0;
        padding: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.075) !important;
        border-radius: 8px;
        background: rgba(4, 10, 11, 0.38) !important;
    }

    .competitive-roster-mobile-label {
        display: block;
        margin-bottom: 4px;
        color: var(--pb-muted);
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .competitive-roster-metric-cell strong {
        display: block;
        font-size: 15px;
        line-height: 1;
    }

    .competitive-roster-metric-cell .muted {
        margin-top: 5px;
        font-size: 10px;
    }

    .competitive-roster-tv-cell {
        grid-column: 1 / 3;
    }

    .competitive-tv-name-compact-input {
        width: 100%;
        min-height: 34px;
    }

    .competitive-roster-rating-actions {
        display: flex !important;
        align-items: stretch;
        justify-content: flex-end;
        width: auto;
        text-align: right;
    }

    .competitive-roster-rating-actions .button {
        min-width: 0;
        width: 100%;
        padding-inline: 10px;
    }
}

.competitive-tv-name-field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.competitive-tv-name-field span {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitive-tv-name-field input,
.competitive-tv-name-field select {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(47, 163, 165, 0.30);
    border-radius: 9px;
    color: var(--pb-text);
    background: rgba(4, 10, 11, 0.66);
    font-weight: 800;
}

.competitive-tv-name-field select {
    appearance: auto;
}

.competitive-tv-name-field input::placeholder {
    color: rgba(244, 240, 229, 0.34);
}

.competitive-tv-name-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.competitive-tv-name-actions.is-tv-only {
    margin-top: 8px;
}

.competitive-tv-name-actions.is-tv-only .button {
    min-height: 30px;
    padding: 5px 10px;
    border-color: rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--pb-muted);
    box-shadow: none;
    font-size: 11px;
}

.competitive-tv-name-actions.is-tv-only .button:hover {
    color: var(--pb-text);
    border-color: rgba(47, 163, 165, 0.32);
    background: rgba(47, 163, 165, 0.06);
}

.competitive-player-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
}

.competitive-player-actions .button {
    min-width: 92px;
}

.button-danger-soft {
    border: 1px solid rgba(255, 151, 124, 0.14);
    color: #e9aaa0;
    background: rgba(255, 103, 82, 0.055);
}

.button-danger-soft:hover {
    border-color: rgba(255, 103, 82, 0.46);
    color: #fff0ec;
    background: rgba(255, 103, 82, 0.10);
}

.event-ops-drop-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(255, 151, 124, 0.28);
    border-radius: 18px;
    color: var(--pb-text);
    background: #0b1718;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.event-ops-drop-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.event-ops-drop-dialog form {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.event-ops-drop-dialog-header {
    display: grid;
    gap: 8px;
}

.event-ops-drop-dialog-header .badge {
    justify-self: start;
}

.event-ops-drop-dialog-header h2,
.event-ops-drop-dialog-header p,
.event-ops-drop-safety {
    margin: 0;
}

.event-ops-drop-dialog-header h2 {
    color: var(--pb-text);
    font-size: 22px;
}

.event-ops-drop-dialog-header p,
.event-ops-drop-safety {
    color: var(--pb-muted);
    font-size: 13px;
    line-height: 1.45;
}

.event-ops-drop-boundaries {
    display: grid;
    gap: 10px;
}

.event-ops-drop-boundary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 140ms ease, background 140ms ease;
}

.event-ops-drop-boundary:hover,
.event-ops-drop-boundary:has(input:checked) {
    border-color: rgba(255, 151, 124, 0.54);
    background: rgba(255, 103, 82, 0.08);
}

.event-ops-drop-boundary input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ff8c74;
}

.event-ops-drop-boundary span,
.event-ops-drop-boundary strong,
.event-ops-drop-boundary small {
    display: block;
}

.event-ops-drop-boundary strong {
    color: var(--pb-text);
    font-size: 14px;
}

.event-ops-drop-boundary small {
    margin-top: 4px;
    color: var(--pb-muted);
    font-size: 12px;
}

.event-ops-drop-safety {
    padding: 10px 12px;
    border-left: 3px solid rgba(47, 163, 165, 0.58);
    background: rgba(47, 163, 165, 0.06);
}

.event-ops-drop-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.event-ops-drop-dialog-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.competitive-player-note {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
}

.competitive-technical-details {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.012);
}

@media (max-width: 680px) {
    .competitive-player-list {
        grid-template-columns: 1fr;
    }

    .competitive-player-row-editable.is-tv-only,
    .competitive-roster-card.is-tv-only {
        grid-template-columns: 1fr;
    }

    .competitive-player-row-editable.is-tv-only .competitive-tv-name-field,
    .competitive-player-row-editable.is-tv-only .competitive-player-actions,
    .competitive-roster-card.is-tv-only .event-ops-roster-settings,
    .competitive-roster-card.is-tv-only .competitive-roster-card-footer {
        grid-column: 1;
    }

    .competitive-roster-card.is-tv-only .event-ops-roster-settings {
        grid-template-columns: 1fr;
    }

    .competitive-tv-name-actions {
        justify-content: stretch;
    }

    .competitive-tv-name-actions .button {
        width: 100%;
    }

    .competitive-tv-name-actions.is-tv-only {
        justify-content: flex-end;
    }

    .competitive-tv-name-actions.is-tv-only .button {
        width: auto;
    }

    .competitive-player-actions {
        justify-content: stretch;
    }

    .competitive-player-actions .button {
        width: 100%;
    }

    .competitive-player-note {
        text-align: left;
    }

    .event-ops-drop-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin-bottom: 10px;
        border-radius: 16px;
    }

    .event-ops-drop-dialog form {
        padding: 18px;
    }

    .event-ops-drop-dialog-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.competitive-technical-details > summary {
    cursor: pointer;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid,
.program-info-grid {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 10px 18px;
}

.program-summary-card {
    padding: 12px 16px;
}

.program-info-cards {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.detail-grid:not(.detail-grid-single) .program-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 16px;
}

.program-info-card {
    min-height: 0;
    min-width: 0;
    flex: 1 1 0;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
}

.detail-grid:not(.detail-grid-single) .program-info-card {
    padding: 0;
    border-right: 0;
}

.program-info-card::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 9px;
    border-radius: 999px;
    background: var(--pb-teal-light);
}

.program-info-card:nth-child(2)::before {
    background: var(--pb-yellow);
}

.program-info-card:nth-child(3)::before {
    background: var(--pb-orange);
}

.program-info-card:nth-child(4)::before {
    background: var(--pb-red);
}

.program-info-card:nth-child(5)::before {
    background: var(--pb-teal);
}

.program-info-card:first-child {
    padding-left: 0;
}

.program-info-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.program-info-card-primary {
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
}

.program-info-card-warning {
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
}

.program-info-card-danger {
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
}

.program-info-card > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-info-card strong {
    display: block;
    color: var(--pb-text);
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-grid:not(.detail-grid-single) .program-info-card strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.program-info-card small {
    display: block;
    margin-top: 3px;
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.25;
}

.program-info-card-courts {
    display: flex;
    flex-direction: column;
}

.program-info-card-courts::before {
    margin-bottom: 9px;
}

.program-court-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.program-info-card strong.program-court-list {
    display: flex;
}

.program-info-card-courts .program-court-list {
    flex-direction: column;
}

.label {
    color: var(--pb-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.muted {
    color: var(--pb-muted);
}

.nowrap {
    white-space: nowrap;
}

code {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--pb-teal-light);
    padding: 3px 6px;
    border-radius: 6px;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 12px;
    background: #0f1213;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    padding: 12px;
    color: #d7dddd;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--pb-border);
    border-radius: 12px;
    background: #0f1213;
}

.table-wrapper table {
    min-width: 1400px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pb-border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #0f1213;
    color: var(--pb-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

td {
    font-size: 14px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #303738;
    color: var(--pb-text);
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge.synced,
.badge-ok {
    background: rgba(53, 201, 123, 0.18);
    color: #72e6a7;
    border-color: rgba(53, 201, 123, 0.35);
}

.badge.failed,
.badge-danger {
    background: rgba(217, 31, 76, 0.18);
    color: #ff7d9a;
    border-color: rgba(217, 31, 76, 0.35);
}

.badge.partial,
.badge.needs_mapping,
.badge-warning {
    background: rgba(245, 191, 23, 0.16);
    color: #ffd75b;
    border-color: rgba(245, 191, 23, 0.36);
}

.badge.pending {
    background: rgba(79, 140, 255, 0.16);
    color: #8cb2ff;
    border-color: rgba(79, 140, 255, 0.35);
}

.badge-winner {
    margin-left: 8px;
    background: rgba(245, 191, 23, 0.20);
    color: #ffe28a;
    border-color: rgba(245, 191, 23, 0.46);
}

.pod-winner-row td {
    background: rgba(245, 191, 23, 0.045);
}

.pod-winners-callout {
    display: grid;
    gap: 10px;
    margin: 10px 0 14px;
    padding: 14px;
    border: 1px solid rgba(245, 191, 23, 0.32);
    border-radius: 10px;
    background: rgba(245, 191, 23, 0.06);
}

.pod-winners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.pod-winner-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 191, 23, 0.24);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.pod-winner-medal {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.pod-winner-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pod-winner-pod,
.pod-winner-points {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pod-winner-name {
    color: var(--pb-text);
    font-size: 18px;
    font-weight: 800;
}

.pod-winner-badge-link {
    justify-self: start;
    margin-top: 2px;
    color: var(--pb-yellow);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.whatsapp-recap {
    display: grid;
    gap: 10px;
    margin: 10px 0 18px;
    padding: 14px;
    border: 1px solid rgba(245, 191, 23, 0.28);
    border-radius: 12px;
    background: rgba(245, 191, 23, 0.045);
}

.whatsapp-recap-text {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--pb-text);
    font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.pod-select {
    min-width: 94px;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--pb-text);
    font-weight: 800;
}

.pod-override-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 18px;
}

.pod-override-warnings {
    margin: 8px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 191, 23, 0.34);
    border-radius: 10px;
    background: rgba(245, 191, 23, 0.07);
    color: var(--pb-text);
}

.pod-override-warnings ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.avoid-pairs-grid {
    display: grid;
    gap: 10px;
}

.avoid-pair-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.badge-muted {
    background: rgba(154, 164, 165, 0.14);
    color: #c8d0d1;
    border-color: rgba(154, 164, 165, 0.24);
}

.badge-normal {
    color: #4fd1c5;
    background: rgba(79, 209, 197, 0.12);
    border-color: rgba(79, 209, 197, 0.25);
}

.is-hidden {
    display: none !important;
}

.badge-tournament {
    color: #f6ad55;
    background: rgba(246, 173, 85, 0.12);
    border-color: rgba(246, 173, 85, 0.25);
}

.badge-lesson {
    color: #90cdf4;
    background: rgba(144, 205, 244, 0.12);
    border-color: rgba(144, 205, 244, 0.25);
}

.badge-class {
    color: #90cdf4;
    background: rgba(144, 205, 244, 0.12);
    border-color: rgba(144, 205, 244, 0.25);
}

.badge-training {
    color: #b794f4;
    background: rgba(183, 148, 244, 0.12);
    border-color: rgba(183, 148, 244, 0.25);
}

.badge-unknown {
    color: #cbd5e0;
    background: rgba(203, 213, 224, 0.12);
    border-color: rgba(203, 213, 224, 0.25);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.inline-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.button:hover,
button:hover {
    text-decoration: none;
    filter: brightness(1.08);
}

.button:disabled,
button:disabled {
    cursor: not-allowed;
    filter: none;
    opacity: 0.48;
}

.button-dark {
    background: #0e1111;
    color: var(--pb-text);
    border-color: var(--pb-border);
}

.button-grey {
    background: #273032;
    color: var(--pb-text);
    border-color: var(--pb-border);
}

.button-blue,
.button-teal {
    background: var(--pb-teal);
    color: white;
}

.button-yellow {
    background: var(--pb-yellow);
    color: #111;
}

.button-action {
    background: var(--pb-yellow);
    color: #111;
    border-color: rgba(245, 191, 23, 0.56);
    box-shadow: 0 10px 24px rgba(245, 191, 23, 0.15);
}

.button-action-secondary {
    background:
        linear-gradient(90deg, rgba(47, 163, 165, 0.18), rgba(255, 255, 255, 0.04)),
        #202b2d;
    color: #d9eeee;
    border-color: rgba(47, 163, 165, 0.24);
}

.button-primary {
    background: var(--pb-yellow);
    color: #111;
    border-color: rgba(245, 191, 23, 0.5);
    box-shadow: 0 10px 24px rgba(245, 191, 23, 0.18);
}

.button-large {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 13px;
}

button {
    background: #273032;
    color: var(--pb-text);
    border-color: var(--pb-border);
}

input[type="text"],
input[type="number"],
input[type="url"],
textarea {
    padding: 9px 10px;
    border: 1px solid var(--pb-border);
    border-radius: 9px;
    background: #0f1213;
    color: var(--pb-text);
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.pb-select {
    padding: 9px 10px;
    min-height: 38px;
    border: 1px solid var(--pb-border);
    border-radius: 9px;
    background: #0f1213;
    color: var(--pb-text);
    font-weight: 700;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-form h2 {
    margin-bottom: 0;
}

.admin-form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}

.admin-form-section-title {
    color: var(--pb-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-readonly-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.admin-readonly-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.018);
}

.admin-readonly-row:last-child {
    border-bottom: 0;
}

.admin-readonly-row span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-readonly-row strong {
    min-width: 0;
    color: var(--pb-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-readonly-note {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: #c1c8c9;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    line-height: 1.4;
}

.admin-readonly-note-warning {
    border-color: rgba(245, 191, 23, 0.24);
    background: rgba(245, 191, 23, 0.07);
    color: #f5df94;
}

.admin-resolve-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-form label span {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tracked-players-form {
    gap: 18px;
}

.tracked-players-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}

.tracked-players-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.tracked-players-table th,
.tracked-players-table td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.tracked-players-table th {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.025);
}

.tracked-players-table tr:last-child td {
    border-bottom: 0;
}

.tracked-players-table input[type="text"],
.tracked-players-table input[type="url"],
.tracked-players-table select {
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    background: #0f1213;
    color: var(--pb-text);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.tracked-players-table select {
    appearance: none;
}

.tracked-players-table th:nth-child(1),
.tracked-players-table td:nth-child(1) {
    width: 28%;
}

.tracked-players-table th:nth-child(2),
.tracked-players-table td:nth-child(2) {
    width: 18%;
}

.tracked-players-table th:nth-child(3),
.tracked-players-table td:nth-child(3) {
    width: 10%;
}

.tracked-players-table th:nth-child(4),
.tracked-players-table td:nth-child(4) {
    width: 13%;
}

.tracked-players-table th:nth-child(5),
.tracked-players-table td:nth-child(5) {
    width: 23%;
}

.tracked-players-remove {
    width: 72px;
    text-align: center;
}

.tracked-players-remove label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tracked-players-table-actions {
    display: flex;
    justify-content: flex-start;
}

.tracked-players-remove-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pb-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.tracked-players-remove-button:hover {
    color: var(--pb-yellow);
}

.tt-admin-header {
    margin-bottom: 14px;
}

.tt-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.tt-admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 14px;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    background: rgba(8, 12, 10, 0.74);
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.tt-admin-nav a:hover {
    border-color: rgba(245, 191, 23, 0.34);
    color: var(--pb-text);
    text-decoration: none;
}

.tt-admin-nav a.is-active {
    background: var(--pb-yellow);
    border-color: rgba(245, 191, 23, 0.65);
    color: #111;
    box-shadow: 0 12px 28px rgba(245, 191, 23, 0.16);
}

.tt-admin-card {
    padding: 18px;
}

.tt-admin-card .admin-form-heading {
    gap: 6px;
    padding-bottom: 2px;
}

.tt-admin-card .admin-form-heading h2 {
    font-size: 22px;
}

.tt-admin-card .muted {
    color: #c4cbc5;
}

.tt-admin-card input[type="text"],
.tt-admin-card input[type="url"],
.tt-admin-card input[type="date"],
.tt-admin-card select {
    width: 100%;
    min-height: 40px;
}

.tt-admin-card input::placeholder {
    color: rgba(244, 241, 225, 0.48);
}

.tt-admin-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pb-yellow);
}

.tt-admin-table {
    min-width: 960px;
}

.tt-admin-table th,
.tt-admin-table td {
    padding: 10px;
}

.tt-admin-table th {
    background: rgba(255, 255, 255, 0.035);
}

.tt-admin-table tbody tr {
    background: rgba(255, 255, 255, 0.008);
}

.tt-admin-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.tt-admin-table tbody tr:hover {
    background: rgba(245, 191, 23, 0.035);
}

.tt-tournament-list {
    display: grid;
    gap: 10px;
}

.tt-tournament-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(150px, 0.7fr) minmax(135px, 0.6fr) minmax(115px, 0.5fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.tt-tournament-row:hover {
    border-color: rgba(245, 191, 23, 0.28);
    background: rgba(245, 191, 23, 0.045);
}

.tt-tournament-main {
    display: grid;
    gap: 5px;
}

.tt-tournament-title {
    color: var(--pb-text);
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.tt-tournament-title:hover {
    color: var(--pb-yellow);
}

.tt-tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #c4cbc5;
    font-size: 13px;
}

.tt-tournament-meta span + span::before {
    content: "#";
    opacity: 0.65;
}

.tt-tournament-source,
.tt-tournament-detail {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.tt-tournament-label {
    color: rgba(244, 241, 225, 0.55);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tt-tournament-detail strong {
    color: var(--pb-text);
    font-size: 14px;
    line-height: 1.25;
}

.tt-tournament-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.tt-tournament-actions .button {
    min-height: 36px;
    padding: 9px 12px;
}

.tt-tournament-empty {
    padding: 18px 4px;
}

.tt-admin-stack {
    display: grid;
    gap: 12px;
}

.tt-admin-panel {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
    overflow: hidden;
}

.tt-admin-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 14px 18px;
    cursor: pointer;
    color: var(--pb-text);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    list-style: none;
}

.tt-admin-panel > summary::-webkit-details-marker {
    display: none;
}

.tt-admin-panel > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(245, 191, 23, 0.14);
    color: var(--pb-yellow);
}

.tt-admin-panel[open] > summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(245, 191, 23, 0.045);
}

.tt-admin-panel[open] > summary::before {
    content: "-";
}

.tt-admin-panel > summary span {
    margin-right: auto;
}

.tt-admin-panel > summary strong {
    color: #c4cbc5;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.tt-admin-panel > .tt-admin-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tt-admin-panel-group {
    display: grid;
    gap: 1px;
}

.tt-admin-panel-group > .tt-admin-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tt-admin-panel-group > .tt-admin-card + .tt-admin-card {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.tt-admin-table-players th:nth-child(1),
.tt-admin-table-players td:nth-child(1) {
    width: 28%;
}

.tt-admin-table-players th:nth-child(2),
.tt-admin-table-players td:nth-child(2) {
    width: 17%;
}

.tt-admin-table-players th:nth-child(3),
.tt-admin-table-players td:nth-child(3) {
    width: 10%;
}

.tt-admin-table-players th:nth-child(4),
.tt-admin-table-players td:nth-child(4) {
    width: 13%;
}

.tt-admin-table-players th:nth-child(5),
.tt-admin-table-players td:nth-child(5) {
    width: 24%;
}

.tt-admin-table-divisions {
    min-width: 820px;
}

.tt-admin-table-divisions th:nth-child(1),
.tt-admin-table-divisions td:nth-child(1) {
    width: calc(100% - 90px);
}

.tt-admin-table-divisions th:nth-child(2),
.tt-admin-table-divisions td:nth-child(2) {
    width: 90px;
}

.tt-admin-table-tournament-players th:nth-child(1),
.tt-admin-table-tournament-players td:nth-child(1) {
    width: 34%;
}

.tt-admin-table-tournament-players th:nth-child(2),
.tt-admin-table-tournament-players td:nth-child(2) {
    width: 26%;
}

.tt-admin-table-tournament-players th:nth-child(3),
.tt-admin-table-tournament-players td:nth-child(3) {
    width: 16%;
}

.tt-admin-table-tournament-players th:nth-child(4),
.tt-admin-table-tournament-players td:nth-child(4) {
    width: 12%;
}

.tt-admin-player-name {
    color: var(--pb-text);
    font-weight: 900;
}

.tt-admin-source-chip,
.tt-admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #d6ddd7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.tt-admin-status-pill {
    border-color: rgba(245, 191, 23, 0.24);
    background: rgba(245, 191, 23, 0.08);
    color: var(--pb-yellow);
}

.admin-form .tt-admin-check {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: fit-content;
    padding: 10px 12px;
    border: 1px solid rgba(245, 191, 23, 0.22);
    border-radius: 10px;
    background: rgba(245, 191, 23, 0.06);
}

.admin-form .tt-admin-check span {
    color: var(--pb-text);
}

.tt-admin-live-form .admin-form-section {
    gap: 16px;
}

.tt-court-stream-courts {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tt-court-stream-courts > span {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tt-court-stream-court-options {
    display: flex;
    min-height: 42px;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-form .tt-court-stream-court-options label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.admin-form .tt-court-stream-court-options label:has(input:checked) {
    border-color: rgba(245, 191, 23, 0.55);
    background: rgba(245, 191, 23, 0.1);
}

.admin-form .tt-court-stream-court-options label span {
    color: var(--pb-text);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.tt-court-stream-court-options input { margin: 0; }
.tt-court-stream-courts small { color: var(--pb-muted); font-size: 11px; }

.admin-data-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-data-stat {
    padding: 15px;
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-data-stat strong {
    display: block;
    color: var(--pb-teal-light);
    font-size: 28px;
    line-height: 1;
    overflow-wrap: anywhere;
}

.admin-data-stat span {
    display: block;
    margin-top: 7px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-data-stat.is-warning {
    border-color: rgba(245, 191, 23, 0.38);
    background: rgba(245, 191, 23, 0.08);
}

.admin-data-stat.is-warning strong {
    color: var(--pb-yellow);
}

.admin-data-stat.is-ok {
    border-color: rgba(53, 201, 123, 0.30);
    background: rgba(53, 201, 123, 0.06);
}

.admin-data-stat.is-ok strong {
    color: #86f2b6;
}

.admin-data-stat.is-soft {
    border-color: rgba(154, 164, 165, 0.18);
    background: rgba(154, 164, 165, 0.035);
}

.admin-data-stat.is-soft strong {
    color: #c1c8c9;
}

.admin-record-summary .admin-data-stat {
    min-width: 0;
}

.admin-record-summary .admin-data-stat strong {
    font-size: 20px;
    line-height: 1.1;
}

.admin-record-panel {
    min-width: 0;
}

.admin-record-panel h2 {
    margin-bottom: 0;
}

.admin-record-panel .admin-form-heading {
    margin-bottom: 14px;
}

.admin-record-list {
    gap: 8px;
}

.admin-record-list .admin-data-row {
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 10px;
}

.admin-record-list .admin-data-main {
    display: grid;
    grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.admin-record-list .admin-data-title-line {
    margin-bottom: 0;
}

.admin-record-list .admin-data-meta {
    justify-content: flex-start;
}

.admin-record-list .admin-data-actions .button {
    min-height: 38px;
}

.admin-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 12px;
}

.admin-search-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-search-form label span {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-data-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.reclub-sync-page {
    max-width: 1480px;
    margin: 0 auto;
}

.reclub-sync-page .admin-data-overview {
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
}

.reclub-sync-page .admin-data-stat {
    min-height: 70px;
    padding: 14px 16px;
}

.reclub-sync-page .admin-search-form {
    min-height: 76px;
    padding: 16px 20px;
}

.reclub-sync-page .admin-data-section {
    padding: 18px 20px 20px;
}

.reclub-sync-page .program-section-header {
    align-items: center;
}

.reclub-sync-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
}

.reclub-sync-list-head,
.reclub-sync-row {
    display: grid;
    grid-template-columns: 116px minmax(320px, 1fr) 210px 88px 116px 72px;
    gap: 14px;
    align-items: center;
}

.reclub-sync-list-head {
    padding: 10px 14px;
    color: var(--pb-muted);
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.reclub-sync-row {
    min-height: 66px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.012);
}

.reclub-sync-row:last-child {
    border-bottom: 0;
}

.reclub-sync-row:hover {
    background: rgba(47, 163, 165, 0.055);
}

.reclub-sync-row.has-issue {
    background:
        linear-gradient(90deg, rgba(245, 191, 23, 0.075), rgba(255, 255, 255, 0.012) 32%),
        rgba(255, 255, 255, 0.012);
}

.reclub-sync-row.is-muted {
    opacity: 0.66;
}

.reclub-sync-when strong,
.reclub-sync-count strong {
    display: block;
    color: var(--pb-text);
    font-size: 14px;
    line-height: 1.15;
}

.reclub-sync-when span,
.reclub-sync-count span,
.reclub-sync-mirror > span:not(.badge),
.reclub-sync-type {
    display: block;
    margin-top: 4px;
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.25;
}

.reclub-sync-program {
    min-width: 0;
}

.reclub-sync-program > a {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: var(--pb-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reclub-sync-program > a:hover {
    color: var(--pb-teal-light);
    text-decoration: none;
}

.reclub-sync-mirror {
    min-width: 0;
}

.reclub-sync-mirror .badge {
    margin-bottom: 2px;
}

.reclub-sync-action {
    display: flex;
    justify-content: flex-end;
}

.reclub-sync-action .button {
    min-height: 34px;
    padding: 8px 12px;
}

.reclub-sync-list .program-empty {
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.reclub-sync-hidden-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-top: 4px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.reclub-sync-hidden-summary span {
    display: block;
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.reclub-sync-hidden-summary strong {
    display: block;
    margin-top: 4px;
    color: #cbd3d4;
    font-size: 13px;
}

.reclub-sync-hidden-summary p {
    max-width: 640px;
    margin: 0;
    color: var(--pb-muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

.admin-data-section {
    border-color: rgba(255, 255, 255, 0.09);
}

.admin-data-section-primary {
    border-color: rgba(47, 163, 165, 0.38);
    background:
        linear-gradient(90deg, rgba(47, 163, 165, 0.08), rgba(255, 255, 255, 0.015) 32%),
        var(--pb-panel);
}

.admin-data-section-ok {
    border-color: rgba(53, 201, 123, 0.22);
    background:
        linear-gradient(90deg, rgba(53, 201, 123, 0.055), rgba(255, 255, 255, 0.012) 30%),
        var(--pb-panel);
}

.program-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.program-section-header h2 {
    margin-bottom: 5px;
}

.program-section-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--pb-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-data-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(47, 163, 165, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(47, 163, 165, 0.06), rgba(255, 255, 255, 0.018) 36%),
        rgba(255, 255, 255, 0.018);
}

.admin-data-row:hover {
    border-color: rgba(47, 163, 165, 0.34);
    background:
        linear-gradient(90deg, rgba(47, 163, 165, 0.10), rgba(255, 255, 255, 0.026) 36%),
        rgba(255, 255, 255, 0.026);
}

.admin-data-row-muted {
    opacity: 0.72;
    border-color: rgba(154, 164, 165, 0.13);
    background: rgba(255, 255, 255, 0.012);
}

.admin-data-main {
    min-width: 0;
}

.admin-data-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-data-title {
    color: var(--pb-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.admin-data-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-data-meta span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: #c1c8c9;
    background: rgba(0, 0, 0, 0.18);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.admin-data-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-data-tools-actions {
    justify-content: flex-start;
}

.admin-data-technical {
    margin-top: 8px;
}

.admin-data-technical summary {
    width: fit-content;
    cursor: pointer;
    color: #7f8b8c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-data-technical summary:hover {
    color: var(--pb-teal-light);
}

.admin-data-technical div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.admin-data-collapsible {
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(90deg, rgba(154, 164, 165, 0.055), rgba(255, 255, 255, 0.014) 34%),
        rgba(255, 255, 255, 0.018);
}

.admin-data-collapsible summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    color: var(--pb-text);
}

.admin-data-collapsible summary::marker {
    color: var(--pb-teal-light);
}

.admin-data-collapsible summary span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-data-collapsible summary strong {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--pb-muted);
    background: rgba(0, 0, 0, 0.18);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-data-collapsible[open] summary {
    border-bottom: 1px solid var(--pb-border);
}

.admin-data-collapsible .program-details-content {
    margin-top: 0;
    padding: 14px;
}

.flash {
    position: relative;
    max-width: min(720px, 100%);
    margin: 0 auto 10px;
    padding: 8px 13px 8px 16px;
    overflow: hidden;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
}

.flash::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.95;
}

.flash-success {
    color: #d9ffe8;
    background: linear-gradient(90deg, rgba(53, 201, 123, 0.20), rgba(53, 201, 123, 0.09)),
    #102018;
    border-color: rgba(53, 201, 123, 0.52);
}

.flash-warning {
    color: #fff1b8;
    background: linear-gradient(90deg, rgba(245, 191, 23, 0.22), rgba(245, 191, 23, 0.09)),
    #241d0b;
    border-color: rgba(245, 191, 23, 0.58);
}

.flash-danger {
    color: #ffdce4;
    background: linear-gradient(90deg, rgba(217, 31, 76, 0.22), rgba(217, 31, 76, 0.09)),
    #241018;
    border-color: rgba(217, 31, 76, 0.58);
}

.flash-info {
    color: #dceaff;
    background: linear-gradient(90deg, rgba(79, 140, 255, 0.20), rgba(79, 140, 255, 0.08)),
    #101827;
    border-color: rgba(79, 140, 255, 0.52);
}

.flash + .flash {
    margin-top: 8px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    margin: 18px 0;
}

.control-grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) max-content;
    align-items: end;
    gap: 14px;
}

.control-grid label {
    display: grid;
    gap: 6px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.control-grid input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    padding: 9px 11px;
    background: var(--pb-bg-soft);
    color: var(--pb-text);
}

.control-grid .button,
.control-grid button {
    justify-self: start;
    width: auto;
    white-space: nowrap;
}

.queue-controls-grid {
    display: grid;
    grid-template-columns: minmax(160px, 440px) minmax(220px, 390px);
    gap: 18px;
    align-items: end;
    max-width: 880px;
}

.queue-controls-grid form {
    margin: 0;
}

.queue-analyze-form {
    display: contents;
}

.queue-analyze-form label {
    display: grid;
    gap: 8px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.queue-analyze-form input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--pb-bg-soft);
    color: var(--pb-text);
    font-size: 16px;
    font-weight: 900;
}

.queue-controls-grid .button {
    width: 100%;
    min-height: 54px;
    justify-content: center;
}

.queue-list {
    display: grid;
    gap: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.queue-list-teams {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.queue-list-matches {
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
}

.queue-row {
    display: grid;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}

.queue-row:last-child {
    border-bottom: 1px solid var(--pb-border);
}

.queue-team-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
}

.queue-match-row {
    grid-template-columns: 78px minmax(0, 1fr) auto;
}

.queue-rank,
.queue-court {
    color: var(--pb-text);
    font-weight: 900;
    white-space: nowrap;
}

.queue-team-name,
.queue-match-teams {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
    line-height: 1.25;
}

.queue-match-teams {
    display: grid;
    gap: 4px;
}

.queue-meta {
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.queue-team-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--pb-muted);
    font-size: 13px;
    white-space: nowrap;
}

.queue-team-meta strong {
    color: var(--pb-teal-light);
}

.queue-score {
    justify-self: end;
}

.queue-details {
    display: grid;
    gap: 12px;
}

.queue-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
    cursor: pointer;
    color: var(--pb-text);
    font-weight: 900;
    list-style: none;
}

.queue-details summary::-webkit-details-marker {
    display: none;
}

.queue-details summary::after {
    content: "Show";
    flex: 0 0 44px;
    text-align: right;
    color: var(--pb-yellow);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.queue-details[open] summary {
    margin-bottom: 12px;
}

.queue-details[open] summary::after {
    content: "Hide";
}

.queue-score-cards {
    display: grid;
    gap: 12px;
}

.queue-score-card {
    margin: 0;
}

.queue-score-card .match-court-header {
    gap: 10px;
}

.queue-score-card .match-sheet-scoreboard {
    padding: 4px 12px 12px;
}

.queue-score-card .match-sheet-score-row {
    min-height: 74px;
}

.queue-score-card .button-small {
    min-height: 34px;
}

.button-small {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .grid-two,
    .control-grid,
    .queue-list,
    .queue-list-teams,
    .queue-list-matches,
    .queue-list,
    .queue-list-teams,
    .queue-list-matches {
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--pb-border);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.14);
    }

    .queue-row {
        padding: 12px 12px;
        border-width: 0 0 1px;
        border-radius: 0;
        background: transparent;
    }

    .queue-row:last-child {
        border-bottom: 0;
    }

    .queue-match-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .queue-match-row .queue-score,
    .queue-match-row .queue-meta {
        grid-column: 2;
        justify-self: start;
    }

    .queue-team-row {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .queue-team-row .queue-meta,
    .queue-team-row .queue-team-meta {
        grid-column: 2;
        justify-self: start;
    }

    .queue-team-meta {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .control-grid .button,
    .control-grid button {
        width: 100%;
    }

    .queue-controls-grid,
    .queue-analyze-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: none;
    }

    .queue-controls-grid .button,
    .queue-analyze-form input {
        min-height: 48px;
    }
}

.stat-card {
    background: var(--pb-panel);
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    padding: 16px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--pb-teal-light);
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--pb-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.stat-card-warning {
    border-color: rgba(245, 191, 23, 0.45);
    background: linear-gradient(180deg, rgba(245, 191, 23, 0.08), rgba(245, 191, 23, 0.025)),
    var(--pb-panel);
}

.stat-card-warning strong {
    color: var(--pb-yellow);
}

.stat-card-danger {
    border-color: rgba(217, 31, 76, 0.45);
    background: linear-gradient(180deg, rgba(217, 31, 76, 0.08), rgba(217, 31, 76, 0.025)),
    var(--pb-panel);
}

.stat-card-danger strong {
    color: #ff7d9a;
}

.row-title {
    font-weight: 800;
    color: var(--pb-text);
}

.row-subtitle {
    margin-top: 4px;
    color: var(--pb-muted);
    font-size: 13px;
}

.program-main-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.program-link-actions,
.program-workflow-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.program-link-actions {
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.program-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 11px 7px 8px;
    border: 1px solid rgba(47, 163, 165, 0.28);
    border-radius: 999px;
    color: #a9f5f1;
    background:
        linear-gradient(90deg, rgba(47, 163, 165, 0.12), rgba(47, 163, 165, 0.035)),
        rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.program-link-pill:hover {
    border-color: rgba(47, 163, 165, 0.52);
    color: #ffffff;
    text-decoration: none;
}

.program-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    color: #051313;
    background: var(--pb-teal-light);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0;
}

.program-link-pill-reclub .program-link-icon {
    color: #2f57ff;
    background: var(--pb-yellow);
    font-size: 12px;
    font-weight: 950;
}

.program-link-pill-tv {
    border-color: rgba(79, 140, 255, 0.34);
    color: #c4ddff;
    background:
        linear-gradient(90deg, rgba(79, 140, 255, 0.14), rgba(79, 140, 255, 0.045)),
        rgba(255, 255, 255, 0.02);
}

.program-link-pill-tv:hover {
    border-color: rgba(79, 140, 255, 0.58);
}

.program-link-pill-tv .program-link-icon {
    color: #071226;
    background: #8fbdff;
    font-size: 13px;
}

.program-main-actions .button,
.program-main-actions button {
    min-height: 38px;
    box-sizing: border-box;
}

.program-workflow-actions .inline-form,
.program-workflow-actions .button,
.program-workflow-actions button {
    height: 38px;
}

.program-quiet-sync {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--pb-muted);
}

.program-technical-strip {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.program-technical-strip details {
    width: 100%;
}

.program-technical-strip summary,
.sync-refresh-details summary {
    cursor: pointer;
    width: fit-content;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.program-technical-strip summary:hover,
.sync-refresh-details summary:hover {
    color: var(--pb-teal-light);
}

.technical-id-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.technical-id-grid div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.technical-id-grid span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.technical-id-grid code {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technical-id-grid em {
    color: var(--pb-muted);
    font-style: normal;
}

.participants-table th:nth-child(1),
.participants-table td:nth-child(1) {
    width: 220px;
}

.participants-table th:nth-child(2),
.participants-table td:nth-child(2) {
    width: 110px;
}

.participants-table-simple th:nth-child(3),
.participants-table-simple td:nth-child(3) {
    width: 140px;
}

.participants-table-simple th:nth-child(4),
.participants-table-simple td:nth-child(4) {
    width: 170px;
}

.participants-table-simple th:nth-child(5),
.participants-table-simple td:nth-child(5) {
    width: 260px;
}

.participants-table-simple th:nth-child(6),
.participants-table-simple td:nth-child(6) {
    width: 280px;
}

.participants-table-with-league th:nth-child(3),
.participants-table-with-league td:nth-child(3) {
    width: 110px;
}

.participants-table-with-league th:nth-child(4),
.participants-table-with-league td:nth-child(4) {
    width: 140px;
}

.participants-table-with-league th:nth-child(5),
.participants-table-with-league td:nth-child(5) {
    width: 170px;
}

.participants-table-with-league th:nth-child(6),
.participants-table-with-league td:nth-child(6) {
    width: 240px;
}

.participants-table-with-league th:nth-child(7),
.participants-table-with-league td:nth-child(7) {
    width: 280px;
}

.participants-table-staff th:nth-child(1),
.participants-table-staff td:nth-child(1) {
    width: auto;
}

.table-wrapper .participants-table-staff {
    min-width: 0;
}

.participants-table-staff th:nth-child(2),
.participants-table-staff td:nth-child(2) {
    width: 120px;
}

.participants-table-staff th:last-child,
.participants-table-staff td:last-child {
    width: 210px;
}

.participants-card {
    padding: 14px 16px 16px;
    max-width: none;
    margin-inline: 0;
    overflow: visible;
}

.participants-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.participants-heading h2 {
    margin-bottom: 0;
}

.participants-heading span {
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.participants-table-staff th,
.participants-table-staff td {
    padding: 8px 12px;
    vertical-align: middle;
}

.participants-table-staff th {
    font-size: 11px;
}

.participants-table-staff td {
    font-size: 13px;
}

.participants-table-staff td:first-child strong {
    font-size: 13px;
}

.participants-compact-wrapper {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.participants-compact-wrapper .participants-table-compact,
.participants-compact-wrapper .participants-table-compact thead,
.participants-compact-wrapper .participants-table-compact tbody,
.participants-compact-wrapper .participants-table-compact tr,
.participants-compact-wrapper .participants-table-compact th,
.participants-compact-wrapper .participants-table-compact td {
    display: block;
}

.participants-compact-wrapper .participants-table-compact thead {
    display: none;
}

.participants-compact-wrapper .participants-table-compact tbody {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.participants-compact-wrapper .participants-table-compact tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px auto;
    grid-template-areas: "name dupr actions";
    gap: 10px;
    align-items: center;
    position: relative;
    min-height: 42px;
    padding: 7px 8px 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: rgba(15, 18, 19, 0.82);
}

.participants-compact-wrapper .participants-table-compact-league tr {
    grid-template-columns: minmax(0, 1fr) 64px 30px minmax(222px, auto);
    grid-template-areas: "name dupr league actions";
}

.participants-compact-wrapper .participants-table-compact tr:hover {
    border-color: rgba(47, 163, 165, 0.25);
    background: rgba(47, 163, 165, 0.055);
}

.participants-compact-wrapper .participants-table-compact td {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.participants-compact-wrapper .participants-table-compact td:nth-child(1) {
    grid-area: name;
}

.participants-compact-wrapper .participants-table-compact td:nth-child(2) {
    grid-area: dupr;
    text-align: right;
    color: var(--pb-muted);
    font-size: 12px;
}

.participants-compact-wrapper .participants-table-compact-league td:nth-child(3) {
    grid-area: league;
    text-align: right;
    color: var(--pb-text);
    font-size: 12px;
}

.participants-compact-wrapper .participants-table-compact td.actions-cell {
    grid-area: actions;
    width: auto;
    min-width: 0;
}

.participants-compact-wrapper .participants-table-compact .participant-action-box {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 6px;
}

.participants-compact-wrapper .participants-table-compact .participant-action-details > summary {
    min-width: 0;
    width: 108px;
    max-width: 108px;
    min-height: 26px;
    padding: 5px 10px;
    justify-content: center;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participants-compact-wrapper .participants-table-compact .participant-action-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participants-compact-wrapper .participants-table-compact .participant-action-details-tv > summary {
    width: 122px;
    max-width: 122px;
}

.participants-compact-wrapper .participants-table-compact .participant-action-details > summary::before {
    display: none;
}

.participants-compact-wrapper .participants-table-compact .participant-action-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: 310px;
}

.participant-workflow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 230px;
}

.workflow-main-button {
    width: 100%;
}

.workflow-secondary-button {
    width: 100%;
    background: rgba(245, 191, 23, 0.14);
    color: var(--pb-yellow);
    border-color: rgba(245, 191, 23, 0.35);
}

.workflow-secondary-button:hover {
    background: rgba(245, 191, 23, 0.22);
}

.mapped-user-box {
    padding: 10px;
    border-radius: 10px;
    background: rgba(47, 163, 165, 0.08);
    border: 1px solid rgba(47, 163, 165, 0.25);
}

.mapped-user-box .label {
    margin-bottom: 5px;
    font-size: 11px;
}

.participant-state-ok {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

td.actions-cell {
    min-width: 340px;
    width: 340px;
}

.participants-table-staff td.actions-cell {
    min-width: 210px;
    width: 210px;
}

.participant-action-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 320px;
}

.participants-table-staff .participant-action-box {
    gap: 5px;
    min-width: 190px;
}

.participant-action-details {
    position: relative;
}

.participant-action-details > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    min-width: 210px;
    justify-content: flex-start;
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.participant-action-details-reclub > summary {
    color: #9ff4ef;
    border-color: rgba(47, 163, 165, 0.42);
    background:
        linear-gradient(90deg, rgba(47, 163, 165, 0.22), rgba(47, 163, 165, 0.08)),
        rgba(255, 255, 255, 0.035);
}

.participant-action-details-guest > summary {
    color: #ffd978;
    border-color: rgba(245, 191, 23, 0.42);
    background:
        linear-gradient(90deg, rgba(245, 191, 23, 0.22), rgba(245, 191, 23, 0.08)),
        rgba(255, 255, 255, 0.035);
}

.participant-action-details-issue > summary {
    color: #ffd978;
    border-color: rgba(245, 191, 23, 0.48);
    background:
        linear-gradient(90deg, rgba(245, 191, 23, 0.20), rgba(245, 191, 23, 0.07)),
        rgba(255, 255, 255, 0.035);
}

.participant-action-details-tv > summary {
    color: #b9d8ff;
    border-color: rgba(79, 140, 255, 0.38);
    background:
        linear-gradient(90deg, rgba(79, 140, 255, 0.18), rgba(79, 140, 255, 0.06)),
        rgba(255, 255, 255, 0.035);
}

.participant-action-details-reclub > summary::before,
.participant-action-details-tv > summary::before {
    color: var(--pb-teal-light);
}

.participant-action-details-guest > summary::before {
    color: var(--pb-yellow);
}

.participants-table-staff .participant-action-details > summary {
    min-width: 160px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 10px;
}

.participant-action-details > summary::-webkit-details-marker {
    display: none;
}

.participant-action-details > summary::before {
    content: "›";
    display: inline-block;
    color: rgba(255, 255, 255, 0.52);
    transition: transform 160ms ease;
}

.participant-action-details[open] > summary {
    background: rgba(47, 163, 165, 0.18);
    border-color: rgba(47, 163, 165, 0.48);
    color: #ffffff;
}

.participant-action-details-guest[open] > summary {
    background: rgba(245, 191, 23, 0.20);
    border-color: rgba(245, 191, 23, 0.58);
}

.participant-action-details[open] > summary::before {
    transform: rotate(90deg);
    color: var(--pb-teal-light);
}

.participant-action-panel {
    margin-top: 10px;
    width: 340px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(13, 17, 22, 0.97);
    border: 1px solid rgba(47, 163, 165, 0.30);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.participants-table-staff .participant-action-panel {
    width: 310px;
}

.resolve-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.resolve-form input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 12px;
    outline: none;
}

.resolve-form input:focus {
    border-color: rgba(47, 163, 165, 0.72);
    box-shadow: 0 0 0 2px rgba(47, 163, 165, 0.14);
}

.resolve-form button {
    height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: var(--pb-teal-light);
    color: #071113;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.tv-display-name-form {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.tv-display-name-form input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12px;
    outline: none;
}

.tv-display-name-form input:focus {
    border-color: rgba(47, 163, 165, 0.62);
    box-shadow: 0 0 0 2px rgba(47, 163, 165, 0.12);
}

.tv-display-name-form button {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(47, 163, 165, 0.92);
    color: #071113;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.participant-action-help {
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.4;
}

.participant-action-divider {
    height: 1px;
    margin: 14px 0;
    background: rgba(255, 255, 255, 0.09);
}

.participant-technical-details {
    width: 100%;
}

.participant-technical-details > summary {
    cursor: pointer;
    width: fit-content;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.participant-technical-details > summary:hover {
    color: var(--pb-teal-light);
}

.participant-technical-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.participant-technical-grid div {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.participant-technical-grid span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.participant-technical-grid code {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-technical-grid em {
    color: var(--pb-muted);
    font-style: normal;
}

.participant-technical-grid strong {
    color: var(--pb-text);
}

.error-cell {
    max-width: 260px;
    white-space: normal;
    line-height: 1.25;
}

.reclub-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reclub-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--pb-border);
    background: #273032;
}

.reclub-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #273032;
    color: var(--pb-teal-light);
    font-weight: 900;
    border: 1px solid var(--pb-border);
}

.matches-rounds {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-round-card {
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    background: #0f1213;
    overflow: hidden;
}

.match-round-details:not([open]) .match-round-header {
    border-bottom: 0;
}

.match-round-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pb-border);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    list-style: none;
}

.match-round-header::-webkit-details-marker {
    display: none;
}

.match-round-title {
    color: var(--pb-yellow);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.match-round-bench {
    padding: 10px 16px 0;
    line-height: 1.35;
}

.match-courts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    padding: 14px;
}

.match-court-card {
    border: 1px solid rgba(47, 163, 165, 0.25);
    border-radius: 12px;
    background: rgba(47, 163, 165, 0.06);
    padding: 14px;
}

.match-round-save-action {
    display: none;
}

.match-court-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.match-sheet-page {
    padding-bottom: 0;
}

.match-sheet-page-readonly {
    padding-bottom: 0;
}

.match-sheet-card {
    padding: 16px;
}

.match-sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.match-sheet-heading h2 {
    margin-bottom: 8px;
}

.live-schedule-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 6px;
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.live-schedule-meta strong {
    color: var(--pb-yellow);
    font-weight: 950;
    text-transform: uppercase;
}

.live-schedule-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.live-schedule-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-round-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-schedule-tool-link,
.live-schedule-tool-button {
    color: var(--pb-muted);
    font: inherit;
    text-decoration: none;
}

.live-schedule-tool-button {
    appearance: none;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.live-schedule-tool-link:hover,
.live-schedule-tool-button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: var(--pb-text);
}

.live-schedule-tool-button-danger:hover {
    border-color: rgba(255, 110, 130, 0.32);
    color: #ff9bad;
}

.match-sheet-court-card {
    padding: 0;
    overflow: hidden;
}

.match-sheet-court-card .match-court-header {
    margin-bottom: 0;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 18, 19, 0.58);
}

.match-score-status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-score-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 2px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--pb-muted);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.match-score-edit-button:hover,
.match-score-edit-button:focus-visible {
    color: var(--pb-teal-light);
    text-decoration: underline;
    outline: none;
}

.score-input {
    width: 64px;
    min-height: 42px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.score-input-row {
    display: grid;
    grid-template-columns: 64px 18px 64px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
}

.match-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.match-score-team {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.match-score-team-right {
    justify-items: end;
    text-align: right;
}

.match-score-separator {
    align-self: end;
    padding-bottom: 10px;
    color: var(--pb-yellow);
    font-weight: 900;
    text-align: center;
}

.match-sheet-scoreboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 12px 12px;
}

.match-sheet-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 10px 0;
}

.match-sheet-score-row + .match-sheet-score-row {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.match-sheet-scoreboard-compact .match-sheet-score-row {
    min-height: 68px;
    padding-block: 8px;
}

.match-sheet-scoreboard-readonly .match-sheet-score-row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 54px;
}

.match-sheet-score-row .match-team {
    min-width: 0;
}

.match-sheet-score-row .match-team span {
    display: block;
    margin-bottom: 4px;
}

.match-sheet-score-row .match-team strong {
    display: block;
    line-height: 1.2;
}

.match-sheet-score-row .score-input {
    width: 68px;
    min-height: 58px;
    border-color: rgba(245, 191, 23, 0.3);
    background: rgba(8, 10, 10, 0.82);
    color: var(--pb-text);
    font-size: 26px;
}

.match-score-entry {
    display: grid;
    grid-template-columns: 68px 34px;
    align-items: center;
    gap: 8px;
    justify-content: end;
}

.match-score-winner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(245, 191, 23, 0.28);
    border-radius: 999px;
    background: rgba(245, 191, 23, 0.12);
    color: var(--pb-yellow);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.match-score-winner-button:hover,
.match-score-winner-button:focus-visible {
    border-color: rgba(245, 191, 23, 0.56);
    background: rgba(245, 191, 23, 0.2);
    outline: none;
}

.match-score-winner-button:disabled {
    cursor: default;
    opacity: 0.45;
}

.match-sheet-court-card.is-score-locked .match-score-winner-button {
    display: none;
}

.match-sheet-score-row .score-input:disabled {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(8, 10, 10, 0.48);
    color: var(--pb-muted);
}

.match-sheet-court-card.is-score-locked .score-input {
    border-color: rgba(53, 201, 123, 0.18);
    background: rgba(53, 201, 123, 0.07);
    color: rgba(255, 255, 255, 0.72);
    cursor: default;
}

.match-sheet-court-card.is-score-editing .score-input {
    border-color: rgba(245, 191, 23, 0.54);
    background: rgba(8, 10, 10, 0.92);
    color: var(--pb-text);
}

.match-sheet-court-card.is-score-conflict {
    border-color: rgba(217, 31, 76, 0.62);
    box-shadow: 0 0 0 1px rgba(217, 31, 76, 0.18);
}

.court-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shape-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #d7dce0;
}

.shape-badge--cluster {
    background: rgba(34, 199, 216, 0.12);
    border-color: rgba(34, 199, 216, 0.32);
    color: #22c7d8;
}

.shape-badge--soft_barbell {
    background: rgba(255, 197, 51, 0.12);
    border-color: rgba(255, 197, 51, 0.32);
    color: #ffc533;
}

.shape-badge--hard_barbell {
    background: rgba(255, 143, 31, 0.12);
    border-color: rgba(255, 143, 31, 0.32);
    color: #ff8f1f;
}

.shape-badge--mixed {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.16);
    color: #d7dce0;
}

.shape-badge--mismatch {
    background: rgba(255, 90, 54, 0.12);
    border-color: rgba(255, 90, 54, 0.32);
    color: #ff5a36;
}

.shape-badge--slight_edge {
    background: rgba(179, 139, 255, 0.12);
    border-color: rgba(179, 139, 255, 0.32);
    color: #b38bff;
}

.shape-badge--clear_edge {
    background: rgba(255, 111, 145, 0.12);
    border-color: rgba(255, 111, 145, 0.32);
    color: #ff6f91;
}

.match-edge-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: -4px 0 12px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.match-edge-note--slight_edge {
    background: rgba(179, 139, 255, 0.10);
    color: #c7b0ff;
}

.match-edge-note--clear_edge {
    background: rgba(255, 111, 145, 0.10);
    color: #ff8cab;
}

.match-team-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #8b98a5;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.match-team-meta span {
    white-space: nowrap;
}

.match-vs {
    margin: 10px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7e8a96;
}

.metric-label-with-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.info-dot--tooltip {
    position: relative;
    cursor: help;
}

.info-dot--tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 50;
}

.info-dot--tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0b1220 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    z-index: 51;
}

.info-dot--tooltip:hover::after,
.info-dot--tooltip:hover::before,
.info-dot--tooltip:focus::after,
.info-dot--tooltip:focus::before {
    opacity: 1;
    visibility: visible;
}

.shape-badge--cluster {
    background: rgba(34, 199, 216, 0.12);
    border-color: rgba(34, 199, 216, 0.32);
    color: #22c7d8;
}

.shape-badge--soft_barbell {
    background: rgba(255, 197, 51, 0.12);
    border-color: rgba(255, 197, 51, 0.32);
    color: #ffc533;
}

.shape-badge--hard_barbell {
    background: rgba(255, 143, 31, 0.12);
    border-color: rgba(255, 143, 31, 0.32);
    color: #ff8f1f;
}

.shape-badge--mixed {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: #d7dce0;
}

.shape-badge--mismatch {
    background: rgba(255, 90, 54, 0.12);
    border-color: rgba(255, 90, 54, 0.32);
    color: #ff5a36;
}

.match-team-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #9fb3bd;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.court-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.match-team {
    display: grid;
    gap: 4px;
}

.match-team span {
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-team strong {
    font-size: 15px;
    line-height: 1.3;
}

.match-team-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #9fb3bd;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.match-vs {
    margin: 10px 0;
    color: var(--pb-yellow);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.side-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.side-panel-stack .card {
    overflow: visible;
}

.metric-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--pb-border);
}

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

.metric-row span {
    color: var(--pb-muted);
    font-size: 13px;
}

.metric-row strong {
    color: var(--pb-text);
    text-align: right;
    font-size: 13px;
    white-space: nowrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.metric-card {
    padding: 14px;
    border: 1px solid var(--pb-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.metric-card strong {
    display: block;
    color: var(--pb-teal-light);
    font-size: 22px;
    line-height: 1;
}

.table-wrapper-compact table,
table.compact-table,
.compact-table {
    min-width: 0;
}

.compact-table th,
.compact-table td {
    padding: 9px 10px;
    font-size: 13px;
}

.compact-table th {
    font-size: 11px;
}

.sync-summary-card {
    overflow: hidden;
}

.sync-summary-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.sync-summary-header h2 {
    margin-bottom: 6px;
}

.sync-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sync-metric {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--pb-border);
}

.sync-metric span {
    display: block;
    margin-bottom: 8px;
    color: var(--pb-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sync-metric strong {
    display: block;
    color: var(--pb-text);
    font-size: 26px;
    line-height: 1;
}

.sync-metric-warning {
    border-color: rgba(245, 191, 23, 0.45);
    background: rgba(245, 191, 23, 0.08);
}

.sync-metric-warning strong {
    color: var(--pb-yellow);
}

.sync-metric-danger {
    border-color: rgba(217, 31, 76, 0.45);
    background: rgba(217, 31, 76, 0.08);
}

.sync-metric-danger strong {
    color: #ff7d9a;
}

.sync-summary-section,
.sync-refresh-details {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--pb-border);
}

.sync-summary-section-title {
    margin-bottom: 10px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sync-refresh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 10px;
}

.sync-refresh-grid div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sync-refresh-grid div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.sync-refresh-grid span {
    color: var(--pb-muted);
    font-size: 13px;
}

.sync-refresh-grid strong {
    color: var(--pb-text);
    font-size: 13px;
    white-space: nowrap;
}

.sync-refresh-danger strong {
    color: #ff7d9a;
}

.sync-error-list {
    margin: 0;
    padding-left: 18px;
    color: #ff9bae;
    line-height: 1.45;
}

.match-settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-controls-card {
    width: min(100%, 820px);
}

.match-controls-card h2 {
    margin-bottom: 14px;
}

.match-controls-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.match-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    align-items: start;
}

.match-setting-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.match-setting-field .pb-select {
    width: 100%;
}

.match-controls-courts {
    margin-bottom: 14px;
    max-width: 760px;
    padding: 12px;
}

.match-court-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.match-court-option {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--pb-text);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.match-court-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.match-court-option:has(input[type="checkbox"]:not(:checked)) {
    opacity: 0.5;
}

.match-controls-details {
    width: 100%;
    margin: 0;
    min-height: 0;
    padding: 9px 12px;
    max-width: 760px;
}

.match-controls-details summary {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.match-controls-details summary > span:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.match-controls-details summary strong {
    white-space: nowrap;
}

.match-advanced-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    max-width: 760px;
}

.match-player-settings-badges {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.match-player-settings-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 12px;
}

.match-player-settings-header {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 96px 74px 84px;
    gap: 10px;
    align-items: center;
    padding: 0 8px 4px;
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.match-player-settings-header span:nth-child(n+2) {
    text-align: center;
}

.match-player-settings-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 96px 74px 84px;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.match-player-settings-player {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    font-size: 13px;
    line-height: 1.15;
}

.match-player-settings-player strong,
.match-player-settings-player span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-player-settings-dupr {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.match-player-settings-dupr input {
    width: 96px;
    height: 32px;
    padding-inline: 8px;
}

.match-player-settings-check {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.match-player-settings-check input[type="checkbox"] {
    margin: 0;
}

.match-player-settings-check span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.match-controls-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    max-width: 760px;
}

.match-controls-actions .inline-form {
    margin: 0;
}

.match-controls-actions .button,
.match-controls-actions button {
    width: auto;
    min-height: 38px;
}

.unpaid-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px 10px;
    margin-top: 12px;
}

.unpaid-player-option {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.2;
}

.unpaid-player-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-dupr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.manual-dupr-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.manual-dupr-player {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.15;
}

.manual-dupr-player strong,
.manual-dupr-player span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-dupr-row input {
    width: 78px;
    height: 34px;
    padding-inline: 8px;
}

.player-stats-table {
    overflow-x: hidden;
}

.compact-table--fixed {
    width: 100%;
    table-layout: fixed;
}

.compact-table--fixed th,
.compact-table--fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-table--fixed th:first-child,
.compact-table--fixed td:first-child {
    width: 42%;
    white-space: normal;
    word-break: break-word;
}

.compact-table--fixed th:not(:first-child),
.compact-table--fixed td:not(:first-child) {
    width: 9.6%;
    text-align: center;
    white-space: nowrap;
}

.shape-help-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shape-help-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.shape-help-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.shape-help-item .shape-badge {
    display: inline-flex;
    margin-bottom: 8px;
}

.shape-help-item p {
    margin: 0;
    color: #c7ced6;
    line-height: 1.45;
    font-size: 14px;
}

.match-court-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.match-team-meta {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.watch-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.watch-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.watch-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.watch-name {
    font-weight: 700;
    line-height: 1.2;
}

.watch-reasons {
    color: rgba(255,255,255,0.78);
    line-height: 1.35;
    font-size: 0.95rem;
}

.watch-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.local-rating-apply {
    display: grid;
    grid-template-columns: minmax(180px, 240px) auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    max-width: 520px;
}

.local-rating-target {
    margin: 0;
}

.local-rating-target input {
    width: 100%;
}

.local-rating-label {
    color: rgba(255,255,255,0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.local-rating-table-wrap {
    margin-top: 16px;
}

.local-rating-table-wrap .local-rating-table {
    min-width: 720px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
    .event-live-late-arrivals-heading,
    .event-live-late-arrivals footer {
        align-items: stretch;
        flex-direction: column;
    }

    .event-live-late-arrivals-heading label {
        flex-basis: auto;
    }

    .event-live-late-arrivals footer .button {
        width: 100%;
    }

    .match-advanced-controls {
        grid-template-columns: 1fr;
    }

    .local-rating-apply {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .match-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .manual-dupr-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .detail-grid,
    .detail-grid-wide {
        grid-template-columns: 1fr;
    }

    .reclub-program-record-page .admin-program-record-grid,
    .admin-participant-record-grid {
        grid-template-columns: 1fr;
    }

    .competitive-session-hero {
        grid-template-columns: 1fr;
    }

    .competitive-session-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-ops-prep-summary,
    .event-ops-prep-grid,
    .event-ops-player-settings-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reclub-sync-list-head,
    .reclub-sync-row {
        grid-template-columns: minmax(92px, 0.14fr) minmax(260px, 1fr) minmax(170px, 0.34fr) minmax(76px, 0.13fr) auto;
    }

    .reclub-sync-list-head span:nth-child(5),
    .reclub-sync-type {
        display: none;
    }

    .match-round-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-bench-list {
        max-width: none;
        text-align: left;
    }

    .tt-tournament-row {
        grid-template-columns: minmax(280px, 1.2fr) minmax(150px, 0.7fr) minmax(135px, 0.6fr) minmax(115px, 0.5fr);
    }

    .tt-tournament-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .event-workspace-header {
        display: block;
    }

    .event-workspace-header .actions {
        margin-top: 16px;
    }

    .event-run-command-bar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .event-demo-controller-heading,
    .event-demo-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .event-demo-controller-heading .button,
    .event-demo-controls > div,
    .event-demo-controls .button {
        width: 100%;
    }

    .event-demo-controls > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-demo-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-live-cockpit {
        grid-template-columns: 1fr;
    }

    .event-run-command-actions {
        justify-content: stretch;
    }

    .event-run-command-actions > *,
    .event-run-command-actions .button,
    .event-run-command-actions button {
        width: 100%;
    }

    .event-workspace-switcher {
        grid-template-columns: 1fr;
    }

    .event-workspace-switcher > a,
    .event-workspace-switcher > span {
        min-height: 52px;
    }

    .event-run-section-label {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .event-run-page > .session-live-panel {
        margin-bottom: 8px;
    }

    .event-run-mc-label {
        margin-top: 8px;
    }

    .event-run-section-label > a {
        width: 100%;
        margin-left: 43px;
    }

    .pb-nav,
    .pb-page {
        width: calc(100% - 36px);
    }

    .pb-nav {
        padding-left: 0;
        padding-right: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .pb-brand-title strong {
        font-size: 18px;
    }

    .pb-brand-title span {
        font-size: 10px;
    }

    .pb-logo-image {
        width: 40px;
        height: 40px;
    }

    .pb-nav-links {
        width: 100%;
    }

    .pb-nav-link {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 42px;
    }

    #overview,
    #roster,
    #live,
    #schedule-job,
    #schedule-prep,
    .match-round-card {
        scroll-margin-top: 152px;
    }

    .pb-page {
        padding-top: 24px;
    }

    h1 {
        font-size: 30px;
        line-height: 1.02;
    }

    h2 {
        font-size: 17px;
    }

    .event-ops-action-menu {
        grid-template-columns: 1fr;
    }

    .event-ops-action-menu-buttons {
        justify-content: flex-start;
    }

    .card {
        padding: 16px;
    }

    .tt-tournament-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tt-tournament-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-tournament-actions .button {
        justify-content: center;
        width: 100%;
    }

    .pb-page-header {
        display: block;
    }

    .pb-page-header .actions {
        margin-top: 16px;
    }

    .tt-admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-admin-nav a {
        min-width: 0;
        padding-inline: 10px;
        text-align: center;
    }

    .grid,
    .program-info-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid,
    .detail-grid-wide {
        gap: 14px;
    }

    .program-info-cards {
        display: grid;
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .program-info-card,
    .program-info-card:first-child {
        padding: 0;
        border-right: 0;
    }

    .program-info-card strong {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .actions .button,
    .actions button {
        width: 100%;
        justify-content: center;
    }

    .inline-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .inline-form .pb-select,
    .inline-form button,
    .inline-form .button {
        width: 100%;
    }

    .admin-form-grid,
    .admin-data-overview,
    .admin-search-form,
    .admin-resolve-row {
        grid-template-columns: 1fr;
    }

    .competitive-session-meta {
        grid-template-columns: 1fr;
    }

    .ops-workspace-grid,
    .event-ops-prep-summary,
    .event-ops-schedule-compare,
    .event-ops-prep-grid,
    .event-ops-player-settings-row {
        grid-template-columns: 1fr;
    }

    .event-ops-session-settings-body {
        grid-template-columns: 1fr;
    }

    .event-ops-setting-row,
    .event-ops-score-setting {
        grid-template-columns: 1fr;
    }

    .event-ops-league-controls {
        align-items: stretch;
    }

    .ops-workspace-card-body .button,
    .ops-workspace-card-body button,
    .event-ops-generation-action.button {
        width: 100%;
        justify-content: center;
    }

    .event-ops-generation-actions {
        grid-template-columns: 1fr;
    }

    .event-ops-prep-header,
    .event-ops-player-settings > summary {
        display: grid;
    }

    .competitive-workflow-header,
    .competitive-workflow-actions,
    .event-ops-run-primary,
    .event-ops-run-final,
    .event-ops-run-secondary {
        display: block;
    }

    .competitive-workflow-actions .button,
    .competitive-workflow-actions button,
    .competitive-workflow-actions .inline-form,
    .event-ops-run-actions .button,
    .event-ops-run-actions button,
    .event-ops-run-actions .inline-form {
        width: 100%;
    }

    .competitive-workflow-actions .button,
    .competitive-workflow-actions button,
    .event-ops-run-actions .button,
    .event-ops-run-actions button {
        justify-content: center;
        margin-top: 8px;
    }

    .admin-readonly-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .reclub-record-page .admin-readonly-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-data-overview {
        gap: 10px;
    }

    .admin-data-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 13px;
    }

    .reclub-sync-list {
        border-radius: 12px;
    }

    .reclub-sync-list-head {
        display: none;
    }

    .reclub-sync-row {
        grid-template-columns: 1fr auto;
        gap: 10px 14px;
        align-items: start;
        padding: 14px;
    }

    .reclub-sync-when,
    .reclub-sync-program,
    .reclub-sync-mirror,
    .reclub-sync-count {
        grid-column: 1;
    }

    .reclub-sync-action {
        grid-column: 2;
        grid-row: 1 / span 4;
    }

    .reclub-sync-program > a {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .reclub-sync-hidden-summary {
        display: block;
    }

    .reclub-sync-hidden-summary p {
        margin-top: 8px;
        text-align: left;
    }

    .admin-record-list .admin-data-row {
        min-height: 0;
        padding: 12px;
    }

    .admin-record-list .admin-data-main {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .reclub-program-record-page .admin-participant-record-list .admin-data-main {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-record-list .admin-data-title-line {
        margin-bottom: 0;
    }

    .reclub-program-record-page .admin-participant-record-list .admin-data-title-line {
        flex-wrap: wrap;
    }

    .admin-data-actions {
        justify-content: stretch;
    }

    .admin-data-actions .button,
    .admin-data-actions button {
        flex: 1 1 140px;
        justify-content: center;
    }

    .admin-data-collapsible summary,
    .program-section-header,
    .participants-heading {
        display: block;
    }

    .admin-data-collapsible summary strong,
    .program-section-count,
    .participants-heading span {
        margin-top: 10px;
    }

    .competitive-manual-player-controls,
    .competitive-manual-player-controls--identity {
        grid-template-columns: 1fr;
    }

    .competitive-manual-player-controls .button {
        width: 100%;
        justify-content: center;
    }

    .stat-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .match-courts-grid {
        grid-template-columns: 1fr;
    }

    .metric-row {
        align-items: flex-start;
    }

    .metric-row strong {
        white-space: normal;
    }

    .program-main-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .program-link-actions,
    .program-workflow-actions {
        display: flex;
        width: 100%;
        padding-right: 0;
        border-right: 0;
    }

    .program-link-pill {
        flex: 1 1 140px;
        justify-content: center;
    }

    .program-main-actions .inline-form,
    .program-main-actions .button,
    .program-main-actions button {
        width: 100%;
        justify-content: center;
    }

    .sync-summary-header {
        display: block;
    }

    .sync-summary-header .badge {
        margin-top: 10px;
    }

    .sync-metric-grid,
    .sync-refresh-grid,
    .technical-id-grid {
        grid-template-columns: 1fr;
    }

    .technical-id-grid div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .sync-refresh-grid div {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .table-wrapper-compact table,
    table.compact-table,
    .compact-table {
        min-width: 0;
    }

    .table-wrapper {
        margin-inline: -2px;
    }

    .table-wrapper table {
        min-width: 760px;
    }

    .compact-table th,
    .compact-table td {
        padding: 9px 10px;
        font-size: 13px;
    }

    .compact-table th {
        font-size: 11px;
    }

    .participants-compact-wrapper .participants-table-compact tbody {
        grid-template-columns: 1fr;
    }

    .participants-card > .table-wrapper {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .participants-card .participants-table,
    .participants-card .participants-table thead,
    .participants-card .participants-table tbody,
    .participants-card .participants-table tr,
    .participants-card .participants-table th,
    .participants-card .participants-table td {
        display: block;
    }

    .participants-card .participants-table {
        min-width: 0;
    }

    .participants-card .participants-table thead {
        display: none;
    }

    .participants-card .participants-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .participants-card .participants-table tr {
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.075);
        border-radius: 12px;
        background: rgba(15, 18, 19, 0.82);
    }

    .participants-card .participants-table td {
        width: auto;
        min-width: 0;
        padding: 8px 0;
        border: 0;
        background: transparent;
    }

    .participants-card .participants-table td + td {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .participants-card .participants-table td:not(.actions-cell)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: var(--pb-muted);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .participants-card .participants-table td:first-child {
        padding-top: 0;
    }

    .participants-card .participants-table td:first-child::before {
        display: none;
    }

    .participants-card .participants-table td.actions-cell {
        width: 100%;
        margin-top: 8px;
        padding-top: 12px;
        padding-bottom: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .participants-card .participants-table .error-cell {
        max-width: none;
    }

    .seed-table-wrapper {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .seed-table,
    .seed-table thead,
    .seed-table tbody,
    .seed-table tr,
    .seed-table th,
    .seed-table td {
        display: block;
    }

    .seed-table {
        width: 100%;
        min-width: 0;
    }

    .table-wrapper .seed-table {
        min-width: 0;
    }

    .seed-table thead {
        display: none;
    }

    .seed-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .seed-table tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px 12px;
        align-items: center;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.075);
        border-radius: 10px;
        background: rgba(15, 18, 19, 0.82);
    }

    .seed-table td {
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .seed-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: var(--pb-muted);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .seed-table td:nth-child(1) {
        grid-row: span 2;
        align-self: center;
        min-width: 44px;
        color: var(--pb-yellow);
        font-size: 18px;
        font-weight: 900;
    }

    .seed-table td:nth-child(1)::before {
        display: none;
    }

    .seed-table td:nth-child(2) {
        grid-column: 2 / -1;
        grid-row: 1;
        font-weight: 900;
        color: var(--pb-text);
    }

    .seed-table td:nth-child(2)::before {
        display: none;
    }

    .seed-table td:nth-child(n+3) {
        display: block;
        color: var(--pb-muted);
        font-size: 12px;
    }

    .seed-table td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .seed-table td:nth-child(3),
    .seed-table td:nth-child(4),
    .seed-table td:nth-child(5) {
        min-width: 66px;
        padding-top: 2px;
    }

    .seed-table td:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        min-width: 0;
        padding: 4px 9px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.035);
        color: var(--pb-muted);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .seed-table td:nth-child(4)::before {
        content: none;
    }

    .seed-table td:nth-child(4)::after {
        content: " matches";
    }

    .seed-table td:nth-child(5) {
        text-align: left;
    }

    .participants-compact-wrapper .participants-table-compact tr,
    .participants-compact-wrapper .participants-table-compact-league tr {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: none;
        gap: 8px;
        padding: 10px;
    }

    .participants-compact-wrapper .participants-table-compact td:nth-child(2),
    .participants-compact-wrapper .participants-table-compact-league td:nth-child(3) {
        text-align: left;
    }

    .participant-action-box,
    .participant-workflow {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .participants-compact-wrapper .participants-table-compact td.actions-cell {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .participant-action-details,
    .participants-compact-wrapper .participants-table-compact .participant-action-details {
        width: 100%;
    }

    .participant-action-details > summary,
    .participants-table-staff .participant-action-details > summary,
    .participants-compact-wrapper .participants-table-compact .participant-action-details > summary,
    .participants-compact-wrapper .participants-table-compact .participant-action-details-tv > summary {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 48px;
        padding: 0 14px;
        justify-content: center;
        font-size: 12px;
    }

    .participant-action-panel,
    .participants-compact-wrapper .participants-table-compact .participant-action-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .resolve-form,
    .tv-display-name-form,
    .match-controls-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .resolve-form input,
    .tv-display-name-form input {
        width: 100%;
        min-height: 44px;
        height: 44px;
        padding: 0 13px;
        font-size: 16px;
    }

    .resolve-form button,
    .tv-display-name-form button,
    .match-controls-actions .inline-form,
    .match-controls-actions .button,
    .match-controls-actions button {
        width: 100%;
        min-height: 44px;
    }

    .match-settings-grid {
        grid-template-columns: 1fr;
    }

    .unpaid-player-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .match-advanced-controls {
        grid-template-columns: 1fr;
    }

    .match-player-settings-header {
        display: none;
    }

    .match-player-settings-row {
        grid-template-columns: minmax(0, 1fr) 98px;
        gap: 8px;
        padding: 9px;
    }

    .match-player-settings-player {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .match-player-settings-dupr input {
        width: 98px;
        min-height: 44px;
    }

    .match-player-settings-check {
        min-height: 44px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.025);
    }

    .match-player-settings-check span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
    }

    .match-player-settings-check input[type="checkbox"] {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .unpaid-player-option {
        min-height: 44px;
        padding: 9px 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.025);
    }

    .unpaid-player-option input[type="checkbox"] {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .manual-dupr-grid {
        grid-template-columns: 1fr;
    }

    .manual-dupr-row {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .manual-dupr-row input {
        width: 88px;
        min-height: 44px;
    }

    .match-round-card,
    .match-court-card {
        border-radius: 12px;
    }

    .match-sheet-page {
        padding-bottom: 96px;
    }

    .match-sheet-card {
        padding: 12px;
    }

    .match-sheet-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .match-sheet-heading .button,
    .match-sheet-heading button {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .live-schedule-actions {
        align-items: stretch;
    }

    .live-schedule-actions > form,
    .live-schedule-actions > form .button,
    .live-schedule-actions > form button {
        width: 100%;
    }

    .live-schedule-tools {
        justify-content: flex-start;
    }

    .live-round-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .live-round-actions form {
        width: 100%;
    }

    .match-courts-grid {
        padding: 10px;
    }

    .match-round-save-action {
        display: block;
        padding: 0 10px 12px;
    }

    .match-round-save-action .button,
    .match-round-save-action button {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .match-round-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .match-bench-list {
        max-width: none;
        text-align: left;
    }

    .match-sheet-scoreboard {
        padding: 2px 10px 10px;
    }

    .match-sheet-score-row {
        grid-template-columns: minmax(0, 1fr) 66px;
        min-height: 76px;
        gap: 10px;
    }

    .match-sheet-score-row .score-input {
        width: 66px;
        min-height: 56px;
        font-size: 25px;
    }

    .match-team strong {
        font-size: 14px;
    }

    .metric-row {
        flex-direction: column;
        gap: 4px;
    }

    .metric-row strong {
        text-align: left;
    }
}
/* Tournament media */
.tt-media-day { margin: 28px 0; }
.tt-media-linked-list { display: grid; gap: 14px; }
.tt-media-linked-match { display: grid; gap: 18px; }
.tt-media-linked-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tt-media-linked-header h3 { margin: 8px 0 0; }
.tt-media-linked-header code { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(120, 159, 99, .28); border-radius: 8px; color: #b8d7a8; background: rgba(120, 159, 99, .1); font-weight: 800; }
.tt-media-match-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--pb-muted); font-size: 13px; }
.tt-media-match-meta span { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 999px; background: rgba(255, 255, 255, .035); }
.tt-media-items { display: grid; gap: 10px; }
.tt-media-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid rgba(120, 159, 99, .2); border-radius: 12px; color: var(--pb-text); background: rgba(0, 0, 0, .22); }
.tt-media-item-main { min-width: 0; }
.tt-media-item-main h4 { margin: 8px 0 4px; color: var(--pb-text); overflow-wrap: anywhere; }
.tt-media-item-main small,
.tt-media-item-main a { display: block; margin-top: 5px; }
.tt-media-item-main small { color: var(--pb-muted); }
.tt-media-item-main a { color: #a9ce94; font-weight: 750; }
.tt-media-item-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-media-item-status strong { color: var(--pb-text); }
.tt-media-item-status span { padding: 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tt-media-item-status .is-visible { color: #b9f3c9; background: rgba(53, 201, 123, .16); }
.tt-media-item-status .is-hidden { color: #f7d882; background: rgba(245, 191, 23, .14); }
.tt-media-item-status .needs-attention { color: #ffc2cb; background: rgba(217, 31, 76, .18); }
.tt-media-embed-warning { margin: 10px 0 0; color: #f1b8c1; font-size: 13px; }
.tt-media-item-actions { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 8px; }
.tt-media-change-match { position: relative; }
.tt-media-change-match > summary { padding: 10px 2px; color: #d8c87f; cursor: pointer; font-weight: 800; }
.tt-media-change-match[open] { min-width: 250px; padding: 12px; border: 1px solid rgba(120, 159, 99, .28); border-radius: 10px; background: var(--pb-panel-2); box-shadow: var(--pb-shadow); }
.tt-media-change-match form { margin-top: 12px; }
.tt-media-change-match label span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.tt-media-change-match input { width: 100%; color: var(--pb-text); border-color: var(--pb-border); background: var(--pb-bg-soft); }
.tt-media-empty { margin-top: 28px; }
@media (max-width: 720px) {
    .tt-media-linked-header,
    .tt-media-item { align-items: stretch; flex-direction: column; }
    .tt-media-item-actions { flex-direction: column; }
    .tt-media-item-actions form,
    .tt-media-item-actions .button,
    .tt-media-item-actions button,
    .tt-media-change-match { width: 100%; }
}
