:root,
.bb-theme-dark {
    --bb-bg: #0b1326;
    --bb-surface-low: #131b2e;
    --bb-surface: #171f33;
    --bb-surface-high: #222a3d;
    --bb-surface-highest: #2d3449;
    --bb-border: #584237;
    --bb-text: #dae2fd;
    --bb-muted: #a78b7d;
    --bb-primary: #f97316;
    --bb-primary-soft: #ffb690;
    --bb-success: #22c55e;
    --bb-warning: #eec200;
    --bb-danger: #ff6b6b;
    --bb-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    --bb-radius: 8px;
    --bb-focus: 0 0 0 0.2rem rgba(249, 115, 22, 0.18);
    --bb-body-bg:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 32rem),
        linear-gradient(180deg, #0b1326 0%, #10182a 100%);
    --bb-sidebar-bg: rgba(19, 27, 46, 0.96);
    --bb-topbar-bg: rgba(11, 19, 38, 0.88);
    --bb-on-primary: #111827;
}

.bb-theme-light {
    --bb-bg: #f4f7fb;
    --bb-surface-low: #eef3f8;
    --bb-surface: #ffffff;
    --bb-surface-high: #f8fafc;
    --bb-surface-highest: #e2e8f0;
    --bb-border: #d6deea;
    --bb-text: #172033;
    --bb-muted: #5f6b7a;
    --bb-primary: #f97316;
    --bb-primary-soft: #c2410c;
    --bb-success: #15803d;
    --bb-warning: #a16207;
    --bb-danger: #dc2626;
    --bb-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --bb-focus: 0 0 0 0.2rem rgba(249, 115, 22, 0.22);
    --bb-body-bg:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.11), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #e9eef6 100%);
    --bb-sidebar-bg: rgba(255, 255, 255, 0.96);
    --bb-topbar-bg: rgba(248, 250, 252, 0.9);
    --bb-on-primary: #111827;
}

html {
    min-height: 100%;
    background: var(--bb-bg);
}

body.bb-admin-body,
body.bb-public-body {
    min-height: 100vh;
    background: var(--bb-body-bg);
    color: var(--bb-text);
}

.bb-app-shell {
    min-height: 100vh;
}

.bb-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: 248px;
    padding: 1rem;
    background: var(--bb-sidebar-bg);
    border-right: 1px solid rgba(88, 66, 55, 0.72);
    box-shadow: var(--bb-shadow);
}

.bb-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bb-text);
    text-decoration: none;
}

.bb-brand:hover {
    color: #fff;
}

.bb-brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: var(--bb-radius);
    background: linear-gradient(135deg, var(--bb-primary), #c2410c);
    color: #fff;
    font-weight: 800;
}

.bb-brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.05;
}

.bb-brand-subtitle {
    display: block;
    color: var(--bb-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bb-side-nav {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.bb-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--bb-radius);
    color: var(--bb-text);
    font-weight: 700;
    text-decoration: none;
}

.bb-side-link:hover,
.bb-side-link:focus {
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.12);
    color: #fff;
}

.bb-side-link-muted {
    color: var(--bb-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.bb-side-context {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.6);
    border-radius: var(--bb-radius);
    background: rgba(34, 42, 61, 0.7);
}

.bb-side-context-label {
    color: var(--bb-primary-soft);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bb-side-context-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.bb-side-link.active {
    border-color: rgba(249, 115, 22, 0.58);
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.06)),
        var(--bb-surface-high);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--bb-primary);
}

.bb-side-link.active .bb-side-link-muted {
    color: var(--bb-primary-soft);
}

.bb-main-area {
    min-height: 100vh;
    padding-left: 248px;
}

.bb-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 64px;
    border-bottom: 1px solid rgba(88, 66, 55, 0.64);
    background: var(--bb-topbar-bg);
    backdrop-filter: blur(12px);
}

.bb-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    min-height: 64px;
    padding: 0.75rem 1rem;
}

.bb-mobile-brand {
    display: none;
}

.bb-topbar-app {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 850;
    text-decoration: none;
}

.bb-topbar-app:hover {
    color: var(--bb-primary-soft);
}

.bb-topbar-user {
    color: var(--bb-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.bb-topbar-tournament {
    max-width: 28rem;
    overflow: hidden;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-clock {
    color: var(--bb-primary-soft);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.bb-content {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 1.25rem;
}

.bb-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bb-page-header h1,
.bb-page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 850;
    letter-spacing: 0;
}

.bb-page-kicker {
    color: var(--bb-primary-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bb-surface {
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
}

.bb-card {
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-input {
    border-color: rgba(88, 66, 55, 0.88);
    background-color: var(--bb-surface-low);
    color: var(--bb-text);
}

.bb-table {
    --bs-table-color: var(--bb-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(88, 66, 55, 0.58);
}

.bb-alert {
    border-color: rgba(88, 66, 55, 0.75);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-high);
    color: var(--bb-text);
}

.bb-tabs {
    border-bottom: 1px solid rgba(88, 66, 55, 0.7);
}

.bb-muted {
    color: var(--bb-muted) !important;
}

.bb-link {
    color: var(--bb-primary-soft);
    text-decoration-color: rgba(255, 182, 144, 0.45);
}

.bb-link:hover {
    color: #fff;
}

.bb-danger-zone {
    border: 1px solid rgba(255, 107, 107, 0.36);
    border-radius: var(--bb-radius);
    background: rgba(255, 107, 107, 0.08);
}

.card,
.bb-panel,
.bb-match-card,
.kb-match-card {
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.card-header,
.card-footer {
    border-color: rgba(88, 66, 55, 0.65);
    background: var(--bb-surface-high);
    color: var(--bb-text);
}

.card-body {
    color: var(--bb-text);
}

.text-muted,
.form-text,
.small.text-muted {
    color: var(--bb-muted) !important;
}

.bb-admin-body .text-secondary,
.bb-public-body .text-secondary {
    color: var(--bb-muted) !important;
}

.bb-admin-body .text-warning,
.bb-public-body .text-warning {
    color: #ffe67a !important;
}

a {
    color: var(--bb-primary-soft);
}

a:hover {
    color: #fff;
}

.btn {
    border-radius: var(--bb-radius);
    font-weight: 700;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--bb-primary);
    background: var(--bb-primary);
    color: #111827;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    border-color: var(--bb-primary-soft);
    background: var(--bb-primary-soft);
    color: #111827;
}

.btn-success {
    border-color: var(--bb-success);
    background: var(--bb-success);
    color: #062411;
}

.btn-success:hover {
    border-color: #86efac;
    background: #86efac;
    color: #062411;
}

.btn-outline-primary {
    border-color: rgba(249, 115, 22, 0.72);
    color: var(--bb-primary-soft);
}

.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark {
    border-color: rgba(218, 226, 253, 0.24);
    color: var(--bb-text);
}

.btn-outline-secondary:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    border-color: var(--bb-primary);
    background: rgba(249, 115, 22, 0.14);
    color: #fff;
}

.btn-dark {
    border-color: var(--bb-primary);
    background: var(--bb-primary);
    color: #111827;
}

.btn-dark:hover,
.btn-dark:focus {
    border-color: var(--bb-primary-soft);
    background: var(--bb-primary-soft);
    color: #111827;
}

.btn-link,
.link-secondary {
    color: var(--bb-primary-soft) !important;
}

.btn-link:hover,
.link-secondary:hover {
    color: #fff !important;
}

.btn-outline-danger {
    border-color: rgba(255, 107, 107, 0.72);
    color: var(--bb-danger);
}

.btn-outline-danger:hover {
    border-color: var(--bb-danger);
    background: var(--bb-danger);
    color: #111827;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.form-control,
.form-select,
.form-control:read-only {
    border-color: rgba(88, 66, 55, 0.88);
    background-color: var(--bb-surface-low);
    color: var(--bb-text);
    color-scheme: dark;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bb-primary);
    background-color: #101827;
    color: #fff;
    box-shadow: var(--bb-focus);
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
    border-color: rgba(88, 66, 55, 0.78);
    background-color: rgba(19, 27, 46, 0.82);
    color: var(--bb-muted);
    opacity: 1;
}

.form-select option,
.form-select optgroup {
    background-color: var(--bb-surface-low);
    color: var(--bb-text);
}

.form-control[type="file"]::file-selector-button {
    border-color: rgba(88, 66, 55, 0.88);
    background-color: var(--bb-surface-high);
    color: var(--bb-text);
}

.form-control[type="file"]:hover::file-selector-button {
    background-color: var(--bb-surface-highest);
}

.form-control[type="date"]::-webkit-calendar-picker-indicator,
.form-control[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(1) saturate(0.45) hue-rotate(340deg);
    opacity: 0.8;
}

.form-control::placeholder {
    color: rgba(167, 139, 125, 0.78);
}

.form-label {
    color: var(--bb-text);
    font-weight: 700;
}

.form-check-input {
    background-color: var(--bb-surface-low);
    border-color: rgba(88, 66, 55, 0.88);
}

.form-check-input:checked {
    background-color: var(--bb-primary);
    border-color: var(--bb-primary);
}

.form-check-label {
    color: var(--bb-text);
}

.input-group-text {
    border-color: rgba(88, 66, 55, 0.88);
    background-color: var(--bb-surface-high);
    color: var(--bb-muted);
}

.table {
    --bs-table-color: var(--bb-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(88, 66, 55, 0.58);
    --bs-table-striped-color: var(--bb-text);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(249, 115, 22, 0.08);
}

.table thead th {
    border-bottom-color: rgba(249, 115, 22, 0.42);
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table tbody td,
.table tbody th {
    color: var(--bb-text);
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(88, 66, 55, 0.58);
}

code {
    color: var(--bb-primary-soft);
}

.badge {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.text-bg-primary,
.badge.bg-primary {
    background-color: var(--bb-primary) !important;
    color: #111827 !important;
}

.text-bg-success,
.badge.bg-success {
    background-color: var(--bb-success) !important;
    color: #062411 !important;
}

.text-bg-warning,
.badge.bg-warning {
    background-color: var(--bb-warning) !important;
    color: #1f1600 !important;
}

.text-bg-danger,
.badge.bg-danger {
    background-color: var(--bb-danger) !important;
    color: #2b0b0b !important;
}

.text-bg-secondary,
.badge.bg-secondary,
.text-bg-dark,
.badge.bg-dark,
.text-bg-info,
.badge.bg-info {
    background-color: var(--bb-surface-highest) !important;
    color: var(--bb-text) !important;
}

.text-bg-light {
    background-color: rgba(255, 182, 144, 0.12) !important;
    color: var(--bb-primary-soft) !important;
}

.border,
.border-top,
.border-end,
.border-bottom,
.border-start,
.border-secondary-subtle {
    border-color: rgba(88, 66, 55, 0.74) !important;
}

.bg-light,
.bg-light-subtle,
.bg-body,
.bg-body-tertiary,
.bg-white {
    background-color: var(--bb-surface-high) !important;
    color: var(--bb-text) !important;
}

.rounded.bg-light,
.rounded.bg-light-subtle {
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.06);
}

.bb-admin-body .card.border-0,
.bb-public-body .card.border-0 {
    border: 1px solid rgba(88, 66, 55, 0.74) !important;
}

.bb-public-body img.bg-white,
.bb-public-body .qr-box img {
    background-color: #fff !important;
}

.alert {
    border-radius: var(--bb-radius);
    border-color: rgba(88, 66, 55, 0.75);
    background: var(--bb-surface-high);
    color: var(--bb-text);
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.48);
    color: #c9f7d9;
}

.alert-warning {
    border-color: rgba(238, 194, 0, 0.48);
    color: #fff2aa;
}

.alert-danger {
    border-color: rgba(255, 107, 107, 0.54);
    color: #ffd0d0;
}

.bb-flash {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.modal-content,
.dropdown-menu,
.popover {
    border-color: rgba(88, 66, 55, 0.74);
    background: var(--bb-surface);
    color: var(--bb-text);
}

.modal-header,
.modal-footer,
.dropdown-divider {
    border-color: rgba(88, 66, 55, 0.65);
}

.dropdown-item {
    color: var(--bb-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(249, 115, 22, 0.12);
    color: #fff;
}

.list-group {
    --bs-list-group-color: var(--bb-text);
    --bs-list-group-bg: var(--bb-surface);
    --bs-list-group-border-color: rgba(88, 66, 55, 0.74);
    --bs-list-group-action-hover-color: #fff;
    --bs-list-group-action-hover-bg: rgba(249, 115, 22, 0.12);
    --bs-list-group-active-bg: var(--bb-primary);
    --bs-list-group-active-border-color: var(--bb-primary);
}

.tooltip {
    --bs-tooltip-bg: #050914;
    --bs-tooltip-color: var(--bb-text);
}

.bb-theme-light .tooltip {
    --bs-tooltip-bg: #ffffff;
    --bs-tooltip-color: var(--bb-text);
    --bs-tooltip-opacity: 1;
}

.bb-theme-light .tooltip .tooltip-inner {
    border: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow);
}

.bb-section-tabs {
    gap: 0.35rem;
    border-bottom: 1px solid rgba(88, 66, 55, 0.7);
}

.bb-section-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: var(--bb-radius) var(--bb-radius) 0 0;
    color: var(--bb-muted);
    font-weight: 800;
}

.bb-section-tabs .nav-link:hover {
    border-color: rgba(249, 115, 22, 0.35);
    color: #fff;
}

.bb-section-tabs .nav-link.active {
    border-color: rgba(249, 115, 22, 0.5) rgba(249, 115, 22, 0.5) var(--bb-surface);
    background: var(--bb-surface);
    color: #fff;
}

.bb-mobile-section-tabs {
    display: none;
}

.bb-settings-form {
    display: grid;
    gap: 1rem;
}

.bb-settings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 42%),
        var(--bb-surface);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.bb-settings-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 1.7vw, 1.7rem);
    font-weight: 850;
    letter-spacing: 0;
}

.bb-settings-header p {
    margin: 0.25rem 0 0;
    color: var(--bb-muted);
    font-weight: 650;
}

.bb-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 1rem;
    align-items: start;
}

.bb-settings-main,
.bb-settings-side {
    display: grid;
    gap: 1rem;
}

.bb-settings-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-settings-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--bb-primary);
    content: "";
}

.bb-settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(88, 66, 55, 0.58);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.bb-settings-card-header h3 {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
}

.bb-settings-card-header p {
    max-width: 22rem;
    margin: 0;
    color: var(--bb-muted);
    font-size: 0.86rem;
    font-weight: 650;
    text-align: right;
}

.bb-settings-eyebrow {
    color: var(--bb-primary-soft);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bb-settings-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
}

.bb-settings-fields-single {
    grid-template-columns: 1fr;
}

.bb-settings-fields-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bb-settings-fields-compact .form-label {
    display: flex !important;
    align-items: flex-end !important;
    min-height: 3rem;
}

.bb-field {
    min-width: 0;
}

.bb-field-full {
    grid-column: 1 / -1;
}

.bb-copy-group {
    flex-wrap: nowrap;
}

.bb-copy-group .form-control {
    min-width: 0;
}

.bb-radio-stack {
    display: grid;
    gap: 0.35rem;
}

.bb-help-badge {
    cursor: help;
}

.bb-settings-savebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: var(--bb-radius);
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.16), transparent),
        var(--bb-surface-high);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.bb-settings-savebar strong,
.bb-settings-savebar span {
    display: block;
}

.bb-settings-savebar strong {
    color: #fff;
    font-weight: 850;
}

.bb-settings-savebar span {
    color: var(--bb-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

@media (max-width: 1199.98px) {
    .bb-settings-fields-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bb-workspace {
    display: grid;
    gap: 1rem;
}

.bb-teams-workspace {
    width: 100%;
}

.bb-workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 42%),
        var(--bb-surface);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.bb-workspace-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 1.7vw, 1.7rem);
    font-weight: 850;
    letter-spacing: 0;
}

.bb-workspace-header p {
    margin: 0.25rem 0 0;
    color: var(--bb-muted);
    font-weight: 650;
}

.bb-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.bb-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    padding: 0.9rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.bb-metric-card-warning {
    border-color: rgba(238, 194, 0, 0.58);
    background:
        linear-gradient(135deg, rgba(238, 194, 0, 0.13), transparent 58%),
        var(--bb-surface);
}

.bb-metric-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--bb-primary);
    content: "";
}

.bb-metric-card span {
    display: block;
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bb-metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1;
}

.bb-metric-card-warning strong {
    color: var(--bb-warning);
}

.bb-workspace-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.bb-teams-workspace .bb-workspace-grid {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.bb-workspace-grid-narrow {
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
}

.bb-workspace-side,
.bb-workspace-main {
    display: grid;
    gap: 1rem;
}

.bb-workspace-rail,
.bb-workspace-board {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.bb-workspace-rail {
    align-self: start;
}

.bb-workspace-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-action-card,
.bb-group-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-action-card::before,
.bb-group-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-action-card-accent {
    border-color: rgba(249, 115, 22, 0.42);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.14), transparent 56%),
        var(--bb-surface);
}

.bb-group-card-unassigned {
    border-color: rgba(238, 194, 0, 0.42);
}

.bb-workspace-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-workspace-card-accent {
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.14), transparent 56%),
        var(--bb-surface);
}

.bb-workspace-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.bb-group-card-header,
.bb-board-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.bb-group-card-header h3,
.bb-board-section-heading h3 {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
}

.bb-workspace-card-header h3 {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
}

.bb-card-copy {
    margin: 0 0 0.85rem;
    color: var(--bb-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.bb-export-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.bb-export-helper,
.bb-export-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-export-helper::before,
.bb-export-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-export-helper {
    width: 100%;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.11), transparent 52%),
        var(--bb-surface);
}

.bb-export-helper p {
    margin: 0.25rem 0 0;
    color: var(--bb-muted);
    font-weight: 700;
}

.bb-export-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    min-height: 230px;
    align-self: stretch;
}

.bb-export-card-copy h3 {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.bb-export-card-copy p,
.bb-export-helper p {
    margin: 0.5rem 0 0;
    color: var(--bb-muted);
    font-weight: 650;
}

.bb-export-badges {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 0.45rem;
}

.bb-export-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.11);
    color: var(--bb-primary-soft);
    font-size: 0.76rem;
    font-weight: 850;
}

.bb-export-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: end;
}

.bb-export-card-footer .btn {
    min-width: 6.5rem;
}

@media (max-width: 767.98px) {
    .bb-export-grid {
        grid-template-columns: 1fr;
    }

    .bb-export-card {
        min-height: 0;
    }

    .bb-export-card-footer .btn {
        width: 100%;
    }
}

.bb-stack-form {
    display: grid;
    gap: 0.85rem;
}

.bb-group-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bb-group-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(249, 115, 22, 0.36);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--bb-primary-soft);
    font-size: 0.84rem;
    font-weight: 850;
}

.bb-group-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 1rem;
}

.bb-group-section {
    display: grid;
    gap: 1rem;
}

.bb-group-card {
    align-self: start;
}

.bb-team-list {
    display: grid;
    gap: 0.65rem;
}

.bb-team-card-list {
    display: grid;
    gap: 0.6rem;
}

.bb-team-card {
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid rgba(88, 66, 55, 0.62);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-team-item {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.62);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-team-item-unassigned {
    border-color: rgba(238, 194, 0, 0.34);
    background:
        linear-gradient(135deg, rgba(238, 194, 0, 0.08), transparent 58%),
        var(--bb-surface-low);
}

.bb-team-item-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.bb-team-item-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.bb-team-item-main strong {
    overflow: hidden;
    color: var(--bb-text);
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-team-item-main > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--bb-muted);
    font-size: 0.82rem;
    font-weight: 650;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bb-team-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bb-team-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.45rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.72rem;
    font-weight: 850;
}

.bb-team-item-unassigned .bb-team-badge {
    border-color: rgba(238, 194, 0, 0.38);
    background: rgba(238, 194, 0, 0.1);
    color: var(--bb-warning);
}

.bb-team-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem) auto auto;
    gap: 0.7rem;
    align-items: center;
}

.bb-team-info {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.bb-team-info strong {
    overflow: hidden;
    color: var(--bb-text);
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-team-info > span:not(.bb-team-state) {
    display: -webkit-box;
    overflow: hidden;
    color: var(--bb-muted);
    font-size: 0.82rem;
    font-weight: 650;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bb-team-state {
    color: var(--bb-primary-soft);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bb-control-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
}

.bb-control-select {
    width: 100%;
    min-width: 0;
}

.bb-team-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.bb-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.64fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(88, 66, 55, 0.62);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-team-row-editing {
    grid-template-columns: minmax(0, 1fr) auto;
}

.bb-team-row-main {
    min-width: 0;
}

.bb-team-name {
    overflow: hidden;
    color: var(--bb-text);
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-team-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--bb-muted);
    font-size: 0.82rem;
    font-weight: 650;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bb-team-assign-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
}

.bb-team-edit {
    display: contents;
}

.bb-team-edit summary,
.bb-standings-details summary {
    cursor: pointer;
    color: var(--bb-primary-soft);
    font-size: 0.84rem;
    font-weight: 850;
}

.bb-team-edit summary {
    justify-self: end;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(218, 226, 253, 0.24);
    border-radius: var(--bb-radius);
    list-style: none;
}

.bb-team-edit summary::-webkit-details-marker {
    display: none;
}

.bb-team-edit-panel {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
}

.bb-team-edit-panel[hidden] {
    display: none;
}

.bb-team-edit-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bb-team-edit-panel-header strong {
    color: var(--bb-text);
    font-size: 0.95rem;
    font-weight: 850;
}

.bb-team-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: end;
}

.bb-team-edit-form .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
}

.bb-team-assignment-form {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) auto;
    gap: 0.65rem;
    align-items: end;
}

.bb-team-assignment-form .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
}

.bb-team-delete-form {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.bb-empty-state {
    padding: 0.85rem;
    border: 1px dashed rgba(218, 226, 253, 0.24);
    border-radius: var(--bb-radius);
    background: rgba(255, 255, 255, 0.025);
    color: var(--bb-muted);
    font-weight: 700;
}

.bb-standings-details {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(88, 66, 55, 0.58);
}

.bb-stage-workspace {
    width: 100%;
}

.bb-stage-action-card,
.bb-stage-toolbar,
.bb-stage-board,
.bb-admin-match-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-stage-action-card::before,
.bb-stage-toolbar::before,
.bb-stage-board::before,
.bb-admin-match-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-stage-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 1rem;
    align-items: start;
}

.bb-stage-action-copy h3 {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.bb-stage-action-copy p {
    max-width: 46rem;
    margin: 0.45rem 0 0;
    color: var(--bb-muted);
    font-weight: 650;
}

.bb-stage-filter-form {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(150px, 220px) auto auto;
    gap: 0.65rem;
    align-items: end;
}

.bb-admin-match-table-wrap {
    overflow-x: hidden;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
}

.bb-admin-match-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.9rem;
}

.bb-admin-match-table thead th {
    background: rgba(255, 255, 255, 0.025);
}

.bb-admin-match-table th,
.bb-admin-match-table td {
    padding: 0.5rem 0.45rem;
}

.bb-match-col-order {
    width: 4.1rem;
}

.bb-match-col-group {
    width: 4.2rem;
}

.bb-match-col-match {
    width: auto;
}

.bb-match-col-result {
    width: 6.4rem;
}

.bb-match-col-court {
    width: 6.5rem;
}

.bb-match-col-start {
    width: 4.5rem;
}

.bb-match-col-status {
    width: 7rem;
}

.bb-match-col-action {
    width: 5.6rem;
}

.bb-admin-match-row {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bb-admin-match-row:hover {
    background: rgba(249, 115, 22, 0.08);
}

.bb-admin-match-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 1.8rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.78rem;
    font-weight: 850;
}

.bb-admin-match-teams {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.bb-admin-match-teams > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.35rem;
}

.bb-admin-match-team-name {
    display: inline-block;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    font-weight: 750;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.bb-admin-match-result {
    color: var(--bb-text);
    font-size: 1rem;
    font-weight: 850;
}

.bb-admin-match-cards {
    display: none;
    gap: 0.75rem;
}

.bb-admin-match-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.bb-admin-match-card-teams {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.bb-admin-match-card-teams > div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-admin-match-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.bb-admin-match-card-meta > div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: rgba(255, 255, 255, 0.025);
}

.bb-admin-match-card-meta span,
.bb-admin-match-card-meta small {
    display: block;
    color: var(--bb-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.bb-admin-match-card-meta strong {
    color: var(--bb-text);
    font-weight: 850;
}

.bb-admin-match-card-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.bb-match-detail-workspace {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.bb-match-detail-header {
    align-items: center;
}

.bb-match-detail-hero,
.bb-match-actions-card,
.bb-score-entry-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-match-detail-hero::before,
.bb-match-actions-card::before,
.bb-score-entry-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-match-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
}

.bb-match-side {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-match-side:last-child {
    text-align: right;
    justify-items: end;
}

.bb-match-side-label {
    color: var(--bb-muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-match-side strong {
    overflow-wrap: anywhere;
    color: var(--bb-text);
    font-size: clamp(1.08rem, 2vw, 1.55rem);
    line-height: 1.08;
}

.bb-match-side-winner {
    border-color: rgba(34, 197, 94, 0.55);
    background:
        radial-gradient(circle at 95% 5%, rgba(34, 197, 94, 0.14), transparent 12rem),
        var(--bb-surface-low);
}

.bb-match-score-center {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: var(--bb-radius);
    background: rgba(249, 115, 22, 0.08);
    text-align: center;
}

.bb-match-score-center strong {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.bb-match-score-center small {
    max-width: 100%;
    overflow: hidden;
    color: var(--bb-muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-match-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.bb-match-hero-meta span {
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--bb-muted);
    font-size: 0.74rem;
    font-weight: 850;
}

.bb-match-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.bb-match-actions-card,
.bb-score-entry-card {
    padding: 1rem;
}

.bb-match-actions-card {
    display: grid;
    gap: 0.85rem;
}

.bb-match-action-block {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-match-action-block strong {
    color: var(--bb-text);
    font-weight: 850;
}

.bb-match-action-block p {
    margin: 0;
    color: var(--bb-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.bb-match-action-warning {
    border-color: rgba(245, 158, 11, 0.44);
    background: rgba(245, 158, 11, 0.08);
}

.bb-score-form {
    display: grid;
    gap: 0.85rem;
}

.bb-score-entry-head,
.bb-score-set-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.85fr) minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 0.65rem;
    align-items: end;
}

.bb-score-entry-head {
    padding: 0 0.35rem;
    color: var(--bb-muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-score-entry-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-score-set-list {
    display: grid;
    gap: 0.6rem;
}

.bb-score-set-row {
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-score-set-label {
    display: grid;
    gap: 0.15rem;
}

.bb-score-set-label strong {
    color: var(--bb-text);
    font-weight: 850;
}

.bb-score-set-label small,
.bb-score-input-wrap span,
.bb-score-help p {
    color: var(--bb-muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.bb-score-input-wrap {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.bb-score-input-wrap span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-score-input {
    min-height: 2.85rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 850;
}

.bb-score-help {
    display: grid;
    gap: 0.25rem;
}

.bb-score-help p {
    margin: 0;
}

.bb-score-submit {
    display: flex;
    justify-content: flex-end;
}

.bb-knockout-shell {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.bb-knockout-header {
    align-items: center;
}

.bb-knockout-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.bb-knockout-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.78rem;
    font-weight: 850;
}

.bb-knockout-toolbar,
.bb-knockout-viewbar,
.bb-knockout-board,
.bb-bracket-match-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-knockout-toolbar::before,
.bb-knockout-viewbar::before,
.bb-knockout-board::before,
.bb-bracket-match-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-knockout-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
}

.bb-knockout-action-copy h3 {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.bb-knockout-action-copy p {
    max-width: 48rem;
    margin: 0.45rem 0 0;
    color: var(--bb-muted);
    font-weight: 650;
}

.bb-knockout-alerts {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.bb-knockout-action-panel {
    display: grid;
    gap: 0.75rem;
}

.bb-knockout-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.bb-knockout-stats > div {
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-knockout-stats span {
    display: block;
    overflow: hidden;
    color: var(--bb-muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.bb-knockout-stats strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--bb-text);
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.bb-knockout-viewbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.bb-knockout-viewbar strong {
    display: block;
    color: var(--bb-text);
    font-weight: 850;
}

.bb-view-switcher {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: 999px;
    background: var(--bb-surface-low);
}

.bb-view-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: var(--bb-muted);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.bb-view-switcher a:hover,
.bb-view-switcher a.active {
    background: var(--bb-primary);
    color: #fff;
}

.bb-knockout-board {
    padding: 1rem;
}

.bb-knockout-table-wrap {
    overflow-x: hidden;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
}

.bb-knockout-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.88rem;
}

.bb-knockout-table thead th {
    background: rgba(255, 255, 255, 0.025);
    color: var(--bb-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-knockout-table th,
.bb-knockout-table td {
    padding: 0.55rem 0.45rem;
}

.bb-ko-col-match {
    width: 8.4rem;
}

.bb-ko-col-team {
    width: auto;
}

.bb-ko-col-court {
    width: 6.3rem;
}

.bb-ko-col-start {
    width: 4.4rem;
}

.bb-ko-col-result {
    width: 6.2rem;
}

.bb-ko-col-status {
    width: 7.2rem;
}

.bb-ko-col-action {
    width: 5rem;
}

.bb-knockout-table tbody tr {
    transition: background-color 0.15s ease;
}

.bb-knockout-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.08);
}

.bb-ko-match-cell,
.bb-ko-result {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.bb-ko-match-cell strong,
.bb-ko-team-name,
.bb-ko-result strong {
    overflow: hidden;
    color: var(--bb-text);
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-ko-match-cell span,
.bb-ko-result span,
.bb-bracket-source-label {
    color: var(--bb-muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.bb-ko-team-row,
.bb-bracket-team-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.bb-ko-team-row.is-winner .bb-ko-team-name,
.bb-bracket-team-row.is-winner .bb-ko-team-name {
    color: var(--bb-success);
}

.bb-ko-team-row.is-pending .bb-ko-team-name,
.bb-bracket-team-row.is-pending .bb-ko-team-name {
    color: var(--bb-muted);
}

.bb-ko-mobile-cards {
    display: none;
    gap: 0.75rem;
}

.bb-bracket-hint {
    display: none;
    margin-bottom: 0.75rem;
    color: var(--bb-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.bb-bracket-board {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.bb-bracket-grid {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: max-content;
}

.bb-bracket-round {
    display: grid;
    flex: 0 0 300px;
    gap: 0.75rem;
    width: 300px;
}

.bb-bracket-round-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--bb-primary-soft);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bb-bracket-round-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    min-height: 1.7rem;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.74rem;
}

.bb-bracket-match-card {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem;
}

.bb-bracket-match-pending {
    opacity: 0.86;
}

.bb-bracket-match-in-progress {
    border-color: rgba(245, 158, 11, 0.55);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 58%),
        var(--bb-surface);
}

.bb-bracket-match-header,
.bb-bracket-match-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.bb-bracket-match-header > div {
    display: grid;
    min-width: 0;
}

.bb-bracket-match-header span:first-child {
    overflow: hidden;
    color: var(--bb-text);
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-bracket-match-header strong {
    overflow: hidden;
    color: var(--bb-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-bracket-team-list {
    display: grid;
    gap: 0.45rem;
}

.bb-bracket-team-row {
    padding: 0.55rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-bracket-source-label {
    margin: -0.25rem 0 0.15rem;
    padding: 0 0.55rem;
}

.bb-bracket-match-footer {
    align-items: center;
    flex-wrap: wrap;
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.bb-bracket-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(88, 66, 55, 0.58);
}

.bb-bracket-result strong {
    color: var(--bb-primary-soft);
    font-size: 1rem;
    font-weight: 900;
}

.bb-bracket-result span {
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.bb-dashboard-shell {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.bb-dashboard-header {
    align-items: center;
}

.bb-dashboard-section,
.bb-create-tournament-panel,
.bb-tournament-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-dashboard-section::before,
.bb-create-tournament-panel::before,
.bb-tournament-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-dashboard-section,
.bb-create-tournament-panel {
    padding: 1rem;
}

.bb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1rem;
}

.bb-dashboard-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 420px) auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.bb-dashboard-toolbar span {
    justify-self: end;
    color: var(--bb-muted);
    font-size: 0.84rem;
    font-weight: 850;
}

.bb-dashboard-list {
    display: grid;
    gap: 0.65rem;
}

.bb-tournament-card {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1rem;
}

.bb-tournament-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.bb-tournament-card-header > div {
    min-width: 0;
}

.bb-tournament-card-header h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bb-tournament-slug {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-tournament-slug code {
    overflow: hidden;
    color: var(--bb-primary-soft);
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-tournament-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.bb-tournament-meta > div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: rgba(255, 255, 255, 0.025);
}

.bb-tournament-meta span {
    display: block;
    color: var(--bb-muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-tournament-meta strong {
    display: block;
    overflow: hidden;
    margin-top: 0.2rem;
    color: var(--bb-text);
    font-size: 0.88rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-tournament-mode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.bb-tournament-mode-list span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.76rem;
    font-weight: 850;
}

.bb-tournament-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    padding-top: 0.15rem;
}

.bb-tournament-actions form {
    margin: 0;
}

.bb-tournament-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) minmax(300px, 460px);
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: 0.68rem 0.8rem 0.68rem 0.95rem;
    border: 1px solid rgba(88, 66, 55, 0.62);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-tournament-row::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.62);
    content: "";
}

.bb-tournament-row-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.bb-tournament-row-main h3 {
    overflow: hidden;
    margin: 0;
    color: var(--bb-text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-tournament-row-slug code {
    display: block;
    overflow: hidden;
    color: var(--bb-primary-soft);
    font-size: 0.82rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-tournament-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.bb-tournament-row-meta span {
    display: inline-flex;
    min-width: 0;
    max-width: 18rem;
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.bb-tournament-row-meta span:not(:last-child)::after {
    margin-left: 0.35rem;
    color: rgba(218, 226, 253, 0.32);
    content: "/";
}

.bb-tournament-row-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
    align-content: center;
    min-width: 0;
}

.bb-tournament-row-badges .badge {
    justify-self: start;
    min-height: 1.65rem;
}

.bb-tournament-mode-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.bb-tournament-mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    min-width: 0;
    padding: 0.14rem 0.48rem;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: center;
    white-space: nowrap;
}

.bb-tournament-row .bb-tournament-actions {
    display: block;
    justify-self: end;
    width: 100%;
    min-width: 0;
    padding-top: 0;
}

.bb-tournament-row .bb-tournament-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    white-space: nowrap;
}

.bb-tournament-primary-action {
    min-width: 4.2rem;
}

.bb-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: end;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.bb-action-group form {
    margin: 0;
}

.bb-create-tournament-form {
    display: grid;
    gap: 1rem;
}

.bb-create-form-section {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-create-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bb-create-form-section-head > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--bb-primary-soft);
    font-size: 0.78rem;
    font-weight: 900;
}

.bb-create-form-section-head h4 {
    margin: 0;
    color: var(--bb-text);
    font-size: 1rem;
    font-weight: 850;
}

.bb-create-form-section-head p {
    margin: 0.18rem 0 0;
    color: var(--bb-muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.bb-create-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.bb-create-form-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bb-create-form-grid-single {
    grid-template-columns: minmax(0, 26rem);
}

.bb-dashboard-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: var(--bb-radius);
    background: rgba(249, 115, 22, 0.08);
}

.bb-dashboard-savebar strong,
.bb-dashboard-savebar span {
    display: block;
}

.bb-dashboard-savebar strong {
    color: var(--bb-text);
    font-weight: 850;
}

.bb-dashboard-savebar span {
    color: var(--bb-muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.bb-public-settings-shell {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.bb-public-settings-header {
    align-items: center;
}

.bb-public-settings-form {
    display: grid;
    gap: 1rem;
}

.bb-public-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.bb-display-control-card,
.bb-public-overview-card,
.bb-branding-card,
.bb-public-screens-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.bb-display-control-card::before,
.bb-public-overview-card::before,
.bb-branding-card::before,
.bb-public-screens-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(249, 115, 22, 0.72);
    content: "";
}

.bb-display-control-card,
.bb-branding-card {
    grid-column: 1;
}

.bb-public-overview-card {
    grid-column: 2;
    grid-row: span 2;
}

.bb-display-control-grid {
    display: grid;
    gap: 1rem;
}

.bb-toggle-stack {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-display-control-fields,
.bb-public-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.bb-public-overview-grid {
    grid-template-columns: 1fr;
}

.bb-long-input {
    min-height: 2.85rem;
}

.bb-large-textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.bb-map-embed-textarea {
    min-height: 11rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

.bb-map-field .form-text {
    max-width: 48rem;
}

.bb-branding-layout,
.bb-logo-upload-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: stretch;
}

.bb-logo-upload-area {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-logo-upload-area strong,
.bb-logo-upload-area span {
    display: block;
}

.bb-logo-upload-area strong {
    color: var(--bb-text);
    font-weight: 850;
}

.bb-logo-upload-area span {
    color: var(--bb-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.bb-logo-preview,
.bb-logo-preview-box {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.45rem;
    min-height: 11rem;
    padding: 1rem;
    border: 1px dashed rgba(218, 226, 253, 0.24);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
    color: var(--bb-muted);
    text-align: center;
}

.bb-logo-preview img {
    max-width: 100%;
    max-height: 6.5rem;
    border-radius: 8px;
    object-fit: contain;
}

.bb-logo-preview-box img {
    max-width: 100%;
    max-height: 7.5rem;
    border-radius: 8px;
    object-fit: contain;
}

.bb-logo-preview strong,
.bb-logo-preview span,
.bb-logo-preview-box strong,
.bb-logo-preview-box span {
    display: block;
}

.bb-logo-preview strong,
.bb-logo-preview-box strong {
    color: var(--bb-text);
    font-weight: 850;
}

.bb-logo-preview span,
.bb-logo-preview-box span {
    color: var(--bb-muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.bb-logo-preview-label {
    color: var(--bb-primary-soft) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-public-save-actions,
.bb-screen-savebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.bb-public-screen-list {
    display: grid;
    gap: 0.65rem;
}

.bb-public-screen-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.85fr) minmax(120px, 0.4fr) 5.5rem minmax(220px, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-low);
}

.bb-public-screen-name {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.bb-public-screen-name strong {
    overflow: hidden;
    color: var(--bb-text);
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-info-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    cursor: help;
    font-size: 0.76rem;
    font-weight: 900;
}

.bb-public-screen-enabled {
    display: flex;
    justify-content: center;
}

.bb-public-screen-order {
    display: grid;
    gap: 0.2rem;
}

.bb-public-screen-order .form-label {
    margin: 0;
    color: var(--bb-muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-public-screen-order span {
    color: var(--bb-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.bb-direct-link {
    display: block;
    overflow: hidden;
    min-width: 0;
    padding: 0.42rem 0.55rem;
    border: 1px solid rgba(88, 66, 55, 0.58);
    border-radius: var(--bb-radius);
    background: rgba(255, 255, 255, 0.025);
    color: var(--bb-primary-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-public-screen-open {
    justify-self: end;
}

.bb-screen-count {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--bb-primary-soft);
    font-size: 0.76rem;
    font-weight: 850;
}

.bb-screen-savebar {
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(88, 66, 55, 0.58);
}

.bb-screen-savebar span {
    color: var(--bb-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .bb-workspace-grid,
    .bb-workspace-grid-narrow {
        grid-template-columns: 1fr;
    }

    .bb-workspace-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-workspace-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bb-group-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    }
}

.bb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: var(--bb-surface-highest);
    color: var(--bb-text);
    font-size: 0.78rem;
    font-weight: 800;
}

.bb-court-badge {
    border: 1px solid rgba(249, 115, 22, 0.34);
    background: rgba(249, 115, 22, 0.14);
    color: var(--bb-primary-soft);
}

.match-winner-name,
.ko-team-winner,
.kb-team-name-win,
.public-winner-name,
.bb-winner-label {
    color: var(--bb-success) !important;
    font-weight: 800;
}

.match-winner-badge,
.bb-winner-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: 0.12rem 0.38rem;
    border: 1px solid rgba(34, 197, 94, 0.34) !important;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12) !important;
    color: #b8f7cc !important;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.bb-match-card {
    padding: 0.85rem;
}

.bb-bracket-card,
.kb-match-card {
    position: relative;
}

.bb-bracket-card::before,
.kb-match-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: var(--bb-radius) 0 0 var(--bb-radius);
    background: var(--bb-primary);
    content: "";
}

.kb-wrap {
    overflow-x: auto;
    padding: 1rem;
}

.kb-grid {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: max-content;
}

.kb-round {
    width: 290px;
    flex: 0 0 290px;
}

.kb-round-title {
    margin-bottom: 0.5rem;
    color: var(--bb-primary-soft);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kb-match-card {
    padding: 0.75rem 0.8rem 0.75rem 0.95rem;
    margin-bottom: 0.8rem;
    background: var(--bb-surface-high);
}

.kb-match-header,
.kb-team-row,
.kb-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-match-header,
.kb-team-row {
    justify-content: space-between;
}

.kb-match-header {
    margin-bottom: 0.4rem;
}

.kb-match-label {
    font-size: 0.86rem;
    font-weight: 800;
}

.kb-team-row {
    margin-bottom: 0.2rem;
    font-size: 0.94rem;
}

.kb-source,
.ko-source-label,
.ko-result-detail,
.kb-meta {
    color: var(--bb-muted);
    font-size: 0.8rem;
    line-height: 1.2;
}

.kb-result {
    margin-top: 0.4rem;
    color: var(--bb-primary-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.kb-meta {
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.pk-wrap {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.pk-grid {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    min-width: max-content;
}

.pk-round {
    width: 340px;
    flex: 0 0 340px;
}

.pk-round-title {
    margin-bottom: 0.65rem;
    color: var(--bb-primary-soft);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pk-card {
    margin-bottom: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(88, 66, 55, 0.74);
    border-radius: var(--bb-radius);
    background: var(--bb-surface-high);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.pk-card-header,
.pk-team-row,
.pk-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pk-card-header,
.pk-team-row {
    justify-content: space-between;
}

.pk-card-header {
    margin-bottom: 0.45rem;
}

.pk-match-label {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
}

.pk-team-row {
    margin-bottom: 0.23rem;
    font-size: 1rem;
}

.pk-source,
.pk-meta {
    color: var(--bb-muted);
}

.pk-source {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.pk-result {
    margin-top: 0.35rem;
    color: var(--bb-primary-soft);
    font-size: 0.9rem;
    font-weight: 800;
}

.pk-meta {
    flex-wrap: wrap;
    margin-top: 0.42rem;
    font-size: 0.82rem;
}

.bb-public-body {
    overflow-x: hidden;
}

.bb-public-main {
    min-height: 100vh;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.bb-public-display {
    min-height: calc(100vh - 2rem);
}

.bb-public-shell {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: min(100%, 1680px);
    margin: 0 auto;
}

.bb-public-body .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.bb-public-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(88, 66, 55, 0.72);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.14), transparent 34%),
        var(--bb-surface);
    box-shadow: var(--bb-shadow);
}

.bb-public-header > div:first-child {
    min-width: 0;
}

.bb-public-kicker {
    color: var(--bb-primary-soft);
    font-size: clamp(0.74rem, 1.1vw, 0.9rem);
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-title {
    color: #fff;
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.bb-public-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
    color: var(--bb-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 700;
}

.bb-public-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bb-public-meta-line span + span::before {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--bb-primary);
    content: "";
}

.bb-public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-bottom: 0.1rem;
}

.bb-public-nav-link {
    flex: 0 1 auto;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(218, 226, 253, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--bb-text);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.bb-public-nav-link:hover,
.bb-public-nav-link.active {
    border-color: rgba(249, 115, 22, 0.58);
    background: rgba(249, 115, 22, 0.16);
    color: #fff;
}

.bb-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
    min-height: min(720px, calc(100vh - 13rem));
}

.bb-public-hero-copy,
.bb-public-hero-side,
.bb-public-map,
.bb-public-empty,
.bb-public-match-card,
.bb-public-standings-card,
.bb-public-feed-item,
.bb-public-result-item,
.bb-public-bracket-card {
    border: 1px solid rgba(88, 66, 55, 0.72);
    border-radius: 14px;
    background: var(--bb-surface);
    color: var(--bb-text);
    box-shadow: var(--bb-shadow);
}

.bb-public-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.3rem;
    padding: clamp(1.3rem, 3.5vw, 3rem);
    background:
        radial-gradient(circle at 92% 12%, rgba(249, 115, 22, 0.2), transparent 18rem),
        linear-gradient(135deg, var(--bb-surface-high), var(--bb-surface));
}

.bb-public-hero-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 6.6rem);
    font-weight: 900;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.bb-public-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.bb-public-stat {
    padding: 0.8rem;
    border: 1px solid rgba(88, 66, 55, 0.62);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.bb-public-stat span,
.bb-public-description span,
.bb-public-section-heading span,
.bb-public-result-stage {
    display: block;
    color: var(--bb-muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bb-public-stat strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--bb-text);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.bb-public-description {
    max-width: 72rem;
    padding: 1rem;
    border: 1px solid rgba(88, 66, 55, 0.62);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.bb-public-description p {
    margin: 0.35rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bb-public-hero-side {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: 1rem;
}

.bb-public-logo-panel {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
}

.bb-public-logo-panel img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.bb-public-map {
    overflow: hidden;
}

.bb-public-map iframe {
    display: block;
    min-height: min(58vh, 420px);
}

.bb-public-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    flex-wrap: wrap;
}

.bb-public-section-heading strong {
    display: block;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.bb-public-empty {
    padding: clamp(1rem, 2vw, 1.5rem);
    color: var(--bb-muted);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 800;
}

.bb-public-live-grid,
.bb-public-match-grid,
.bb-public-standings-grid {
    display: grid;
    gap: 1rem;
}

.bb-public-live-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}

.bb-public-match-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
}

.bb-public-standings-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
}

.bb-public-match-card {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
    padding: 1rem;
}

.bb-public-live-card {
    min-height: 240px;
    border-color: rgba(238, 194, 0, 0.42);
    background:
        linear-gradient(135deg, rgba(238, 194, 0, 0.12), transparent 48%),
        var(--bb-surface-high);
}

.bb-public-match-top,
.bb-public-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bb-public-match-top {
    color: var(--bb-muted);
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-public-match-top > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bb-public-match-top > .badge {
    flex: 0 0 auto;
}

.bb-public-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(6rem, 12vw, 9.5rem) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.bb-public-team {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    color: var(--bb-text);
    font-size: clamp(1.25rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.bb-public-team:last-child {
    text-align: right;
}

.bb-public-score {
    min-width: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.16);
    color: var(--bb-primary-soft);
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 950;
    text-align: center;
    white-space: nowrap;
}

.bb-public-winner {
    justify-self: start;
    width: fit-content;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    color: var(--bb-success);
    font-size: 0.8rem;
    font-weight: 950;
}

.bb-public-team:last-child .bb-public-winner {
    justify-self: end;
}

.bb-public-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(4.2rem, 8vw, 6rem) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    color: var(--bb-text);
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.bb-public-match-teams strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bb-public-match-teams strong:last-child {
    text-align: right;
}

.bb-public-match-teams span {
    min-width: 0;
    color: var(--bb-primary-soft);
    font-weight: 950;
    text-align: center;
    white-space: nowrap;
}

.bb-public-match-meta {
    flex-wrap: wrap;
    color: var(--bb-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.bb-public-match-meta > * {
    min-width: 0;
}

.public-subtitle {
    color: var(--bb-muted) !important;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.public-table {
    font-size: clamp(1rem, 1.55vw, 1.28rem);
}

.public-table th,
.public-table td {
    padding: 0.62rem 0.45rem;
    vertical-align: middle;
}

.public-table thead th {
    color: var(--bb-primary-soft);
}

.public-match-row {
    line-height: 1.35;
}

.public-result-sub {
    color: var(--bb-muted);
    font-size: 0.88em;
}

.public-standings {
    table-layout: fixed;
    width: 100%;
}

.public-standings th,
.public-standings td {
    min-width: 0;
    text-align: center;
}

.public-standings th.col-team,
.public-standings td.col-team {
    width: auto;
    text-align: left;
    overflow-wrap: anywhere;
}

.public-standings th.col-rank,
.public-standings td.col-rank {
    width: clamp(2.55rem, 5vw, 3rem);
}

.public-standings th.col-num,
.public-standings td.col-num {
    width: clamp(2.85rem, 6vw, 3.7rem);
}

.bb-public-standings-card {
    min-width: 0;
    overflow: hidden;
}

.bb-public-card-title {
    padding: 1rem 1rem 0.65rem;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 900;
}

.public-standings .col-rank span {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    background: var(--bb-surface-highest);
    font-weight: 950;
}

.bb-public-advancing-row {
    background: rgba(34, 197, 94, 0.09) !important;
}

.bb-public-points {
    color: var(--bb-primary-soft) !important;
    font-size: 1.1em;
    font-weight: 950;
}

.bb-public-feed {
    display: grid;
    gap: 0.8rem;
}

.bb-public-feed-item,
.bb-public-result-item {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
}

.bb-public-feed-item > *,
.bb-public-result-item > * {
    min-width: 0;
}

.bb-public-feed-time {
    color: var(--bb-primary-soft);
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    font-weight: 950;
}

.bb-public-feed-main {
    display: grid;
    gap: 0.3rem;
}

.bb-public-schedule-item {
    grid-template-columns: clamp(4.5rem, 8vw, 6rem) minmax(0, 1.25fr) clamp(5.25rem, 9vw, 7rem) minmax(0, 1.25fr) minmax(7.5rem, 0.45fr);
    grid-template-areas: "time team-a score team-b meta";
    align-items: center;
}

.bb-public-schedule-item .bb-public-feed-time {
    grid-area: time;
}

.bb-public-schedule-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: var(--bb-text);
    font-size: clamp(1.02rem, 1.8vw, 1.45rem);
    line-height: 1.12;
}

.bb-public-schedule-team strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bb-public-schedule-team-a {
    grid-area: team-a;
}

.bb-public-schedule-team-b {
    grid-area: team-b;
    justify-content: flex-end;
    text-align: right;
}

.bb-public-schedule-score {
    grid-area: score;
    display: grid;
    gap: 0.16rem;
    justify-items: center;
    min-width: 0;
    padding: 0.25rem 0.45rem;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.12);
    text-align: center;
}

.bb-public-schedule-score strong {
    color: var(--bb-primary-soft);
    font-size: clamp(1.25rem, 2.2vw, 1.9rem);
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.bb-public-schedule-score .public-result-sub {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(0.72rem, 1.1vw, 0.86rem);
    line-height: 1.15;
}

.bb-public-schedule-meta {
    grid-area: meta;
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    min-width: 0;
}

.bb-public-schedule-meta .badge {
    width: fit-content;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.bb-public-schedule-group {
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.bb-public-bracket-wrap {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.bb-public-bracket-grid {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.bb-public-bracket-round {
    width: clamp(285px, 30vw, 340px);
    flex: 0 0 clamp(285px, 30vw, 340px);
}

.bb-public-bracket-round-title {
    margin-bottom: 0.7rem;
    color: var(--bb-primary-soft);
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bb-public-bracket-card {
    position: relative;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    min-width: 0;
    padding: 0.9rem;
    background: var(--bb-surface-high);
}

.bb-public-bracket-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: var(--bb-primary);
    content: "";
}

.bb-public-bracket-card.is-pending {
    opacity: 0.82;
}

.bb-public-bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 0;
    color: var(--bb-text);
    font-size: 1.05rem;
    font-weight: 850;
}

.bb-public-bracket-team span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bb-public-source {
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.bb-public-bracket-result {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    color: var(--bb-primary-soft);
    font-size: 1.25rem;
    font-weight: 950;
}

.bb-public-bracket-result span {
    min-width: 0;
    color: var(--bb-muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.bb-public-result-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    width: 100%;
}

.bb-public-result-item {
    grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1.25fr) clamp(5.25rem, 9vw, 7rem) minmax(0, 1.25fr) minmax(7.5rem, 0.45fr);
    grid-template-areas: "stage team-a score team-b badges";
    align-items: center;
}

.bb-public-result-stage {
    grid-area: stage;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bb-public-result-team-a {
    grid-area: team-a;
}

.bb-public-result-team-b {
    grid-area: team-b;
}

.bb-public-result-score {
    grid-area: score;
}

.bb-public-result-badges {
    grid-area: badges;
}

.bb-public-result-item .bb-public-winner {
    background: rgba(34, 197, 94, 0.2);
}

.bb-public-result-item .bb-public-schedule-score strong {
    font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

.bb-public-mobile-team-score,
.bb-public-mobile-qr,
.bb-public-bracket-hint {
    display: none;
}

.qr-box {
    max-width: 220px;
}

.bb-public-qr {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid rgba(88, 66, 55, 0.72);
    border-radius: 14px;
    background: var(--bb-surface);
    box-shadow: var(--bb-shadow);
}

.bb-public-qr-image {
    display: grid;
    place-items: center;
    padding: 0.5rem;
    border-radius: 10px;
    background: #fff;
}

.bb-public-qr-copy {
    min-width: 0;
    color: var(--bb-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.bb-public-qr-copy a {
    display: block;
    overflow: hidden;
    color: var(--bb-primary-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-public-mobile-qr {
    border: 1px solid rgba(88, 66, 55, 0.72);
    border-radius: 12px;
    background: var(--bb-surface);
    box-shadow: var(--bb-shadow);
}

.bb-public-mobile-qr summary {
    cursor: pointer;
    padding: 0.55rem 0.75rem;
    color: var(--bb-primary-soft);
    font-size: 0.82rem;
    font-weight: 900;
    list-style: none;
    text-align: center;
}

.bb-public-mobile-qr summary::-webkit-details-marker {
    display: none;
}

.bb-public-mobile-qr-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0 0.75rem 0.75rem;
}

.bb-public-mobile-qr-panel .bb-public-qr-image {
    justify-self: center;
    width: min(100%, 150px);
}

.bb-public-mobile-qr-panel a {
    overflow: hidden;
    color: var(--bb-primary-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.img-thumbnail {
    border-color: rgba(88, 66, 55, 0.75);
    background: var(--bb-surface-high);
}

.bb-theme-light .bb-sidebar {
    border-right-color: var(--bb-border);
}

.bb-theme-light.bb-public-body,
.bb-theme-light .bb-public-body {
    background: var(--bb-body-bg);
    color: var(--bb-text);
}

.bb-theme-light .bb-brand,
.bb-theme-light .bb-topbar-app,
.bb-theme-light .bb-topbar-tournament,
.bb-theme-light .bb-page-header h1,
.bb-theme-light .bb-page-title,
.bb-theme-light .bb-settings-header h2,
.bb-theme-light .bb-settings-card-header h3,
.bb-theme-light .bb-settings-savebar strong,
.bb-theme-light .bb-workspace-header h2,
.bb-theme-light .bb-workspace-card-header h3,
.bb-theme-light .bb-metric-card strong,
.bb-theme-light .bb-group-card-header h3,
.bb-theme-light .bb-board-section-heading h3,
.bb-theme-light .bb-export-card-copy h3,
.bb-theme-light .bb-stage-action-copy h3,
.bb-theme-light .bb-match-side strong,
.bb-theme-light .bb-match-score-center strong,
.bb-theme-light .bb-match-action-block strong,
.bb-theme-light .bb-score-set-label strong,
.bb-theme-light .bb-knockout-action-copy h3,
.bb-theme-light .bb-knockout-stats strong,
.bb-theme-light .bb-ko-match-cell strong,
.bb-theme-light .bb-ko-team-name,
.bb-theme-light .bb-ko-result strong,
.bb-theme-light .bb-bracket-match-header span:first-child,
.bb-theme-light .bb-tournament-card-header h3,
.bb-theme-light .bb-tournament-row-main h3,
.bb-theme-light .bb-tournament-meta strong,
.bb-theme-light .bb-create-form-section-head h4,
.bb-theme-light .bb-dashboard-savebar strong,
.bb-theme-light .bb-logo-preview strong,
.bb-theme-light .bb-logo-preview-box strong,
.bb-theme-light .bb-logo-upload-area strong,
.bb-theme-light .bb-public-screen-name strong,
.bb-theme-light .public-title,
.bb-theme-light .pk-match-label,
.bb-theme-light .bb-side-context-name {
    color: var(--bb-text);
}

.bb-theme-light .public-subtitle,
.bb-theme-light .public-result-sub,
.bb-theme-light .public-table,
.bb-theme-light .public-table td,
.bb-theme-light .public-table th {
    color: var(--bb-text);
}

.bb-theme-light .public-subtitle,
.bb-theme-light .public-result-sub {
    color: var(--bb-muted) !important;
}

.bb-theme-light .public-table thead th {
    color: var(--bb-primary-soft);
}

.bb-theme-light .bb-public-header,
.bb-theme-light .bb-public-hero-copy,
.bb-theme-light .bb-public-hero-side,
.bb-theme-light .bb-public-map,
.bb-theme-light .bb-public-empty,
.bb-theme-light .bb-public-match-card,
.bb-theme-light .bb-public-standings-card,
.bb-theme-light .bb-public-feed-item,
.bb-theme-light .bb-public-result-item,
.bb-theme-light .bb-public-bracket-card,
.bb-theme-light .bb-public-qr,
.bb-theme-light .bb-public-mobile-qr,
.bb-theme-light .bb-export-card,
.bb-theme-light .bb-export-helper {
    border-color: var(--bb-border);
    background: var(--bb-surface);
}

.bb-theme-light .bb-public-hero-copy {
    background:
        radial-gradient(circle at 92% 12%, rgba(249, 115, 22, 0.16), transparent 18rem),
        linear-gradient(135deg, #fff, #f8fafc);
}

.bb-theme-light .bb-public-hero-copy h2,
.bb-theme-light .bb-public-section-heading strong,
.bb-theme-light .bb-public-card-title {
    color: var(--bb-text);
}

.bb-theme-light .bb-public-nav-link {
    border-color: var(--bb-border);
    background: rgba(255, 255, 255, 0.68);
    color: var(--bb-text);
}

.bb-theme-light .bb-public-nav-link:hover,
.bb-theme-light .bb-public-nav-link.active {
    background: #ffedd5;
    color: #7c2d12;
}

.bb-theme-light .bb-public-stat,
.bb-theme-light .bb-public-description {
    border-color: var(--bb-border);
    background: #fff;
}

.bb-theme-light .bb-team-row,
.bb-theme-light .bb-team-card,
.bb-theme-light .bb-team-item,
.bb-theme-light .bb-team-edit-panel,
.bb-theme-light .bb-admin-match-card-teams > div,
.bb-theme-light .bb-admin-match-card-meta > div,
.bb-theme-light .bb-match-side,
.bb-theme-light .bb-match-action-block,
.bb-theme-light .bb-score-set-row,
.bb-theme-light .bb-knockout-stats > div,
.bb-theme-light .bb-bracket-team-row,
.bb-theme-light .bb-tournament-slug,
.bb-theme-light .bb-tournament-meta > div,
.bb-theme-light .bb-create-form-section,
.bb-theme-light .bb-tournament-row,
.bb-theme-light .bb-toggle-stack,
.bb-theme-light .bb-logo-preview,
.bb-theme-light .bb-logo-upload-area,
.bb-theme-light .bb-logo-preview-box,
.bb-theme-light .bb-public-screen-row,
.bb-theme-light .bb-direct-link,
.bb-theme-light .bb-empty-state {
    border-color: var(--bb-border);
    background: var(--bb-surface-high);
}

.bb-theme-light .bb-metric-card-warning strong {
    color: var(--bb-warning);
}

.bb-theme-light .bb-public-schedule-score,
.bb-theme-light .bb-public-score {
    background: #ffedd5;
}

.bb-theme-light .bb-public-winner {
    background: #dcfce7;
    color: #166534;
}

.bb-theme-light .bb-brand:hover,
.bb-theme-light .bb-topbar-app:hover,
.bb-theme-light a:hover {
    color: var(--bb-primary-soft);
}

.bb-theme-light .bb-side-link:hover,
.bb-theme-light .bb-side-link:focus,
.bb-theme-light .bb-side-link.active,
.bb-theme-light .dropdown-item:hover,
.bb-theme-light .dropdown-item:focus,
.bb-theme-light .bb-section-tabs .nav-link:hover,
.bb-theme-light .bb-section-tabs .nav-link.active {
    color: var(--bb-text);
}

.bb-theme-light .bb-side-context {
    border-color: var(--bb-border);
    background: var(--bb-surface-high);
}

.bb-theme-light .card,
.bb-theme-light .bb-panel,
.bb-theme-light .bb-card,
.bb-theme-light .bb-settings-header,
.bb-theme-light .bb-settings-card,
.bb-theme-light .bb-settings-savebar,
.bb-theme-light .bb-workspace-header,
.bb-theme-light .bb-workspace-card,
.bb-theme-light .bb-metric-card,
.bb-theme-light .bb-action-card,
.bb-theme-light .bb-group-card,
.bb-theme-light .bb-stage-action-card,
.bb-theme-light .bb-stage-toolbar,
.bb-theme-light .bb-stage-board,
.bb-theme-light .bb-admin-match-card,
.bb-theme-light .bb-match-detail-hero,
.bb-theme-light .bb-match-actions-card,
.bb-theme-light .bb-score-entry-card,
.bb-theme-light .bb-knockout-toolbar,
.bb-theme-light .bb-knockout-viewbar,
.bb-theme-light .bb-knockout-board,
.bb-theme-light .bb-bracket-match-card,
.bb-theme-light .bb-dashboard-section,
.bb-theme-light .bb-create-tournament-panel,
.bb-theme-light .bb-tournament-card,
.bb-theme-light .bb-display-control-card,
.bb-theme-light .bb-public-overview-card,
.bb-theme-light .bb-branding-card,
.bb-theme-light .bb-public-screens-card,
.bb-theme-light .bb-match-card,
.bb-theme-light .kb-match-card,
.bb-theme-light .pk-card,
.bb-theme-light .modal-content,
.bb-theme-light .dropdown-menu,
.bb-theme-light .popover {
    border-color: var(--bb-border);
    box-shadow: var(--bb-shadow);
}

.bb-theme-light .table {
    --bs-table-border-color: var(--bb-border);
    --bs-table-striped-bg: rgba(15, 23, 42, 0.035);
    --bs-table-hover-color: var(--bb-text);
    --bs-table-hover-bg: rgba(249, 115, 22, 0.1);
}

.bb-theme-light .form-control,
.bb-theme-light .form-select,
.bb-theme-light .form-control:read-only {
    border-color: var(--bb-border);
    background-color: #fff;
    color: var(--bb-text);
}

.bb-theme-light .form-control:focus,
.bb-theme-light .form-select:focus {
    background-color: #fff;
    color: var(--bb-text);
}

.bb-theme-light .form-control:disabled,
.bb-theme-light .form-select:disabled,
.bb-theme-light .form-control[readonly] {
    border-color: var(--bb-border);
    background-color: var(--bb-surface-low);
    color: var(--bb-muted);
}

.bb-theme-light .form-select option,
.bb-theme-light .form-select optgroup {
    background-color: #fff;
    color: var(--bb-text);
}

.bb-theme-light .form-control[type="file"]::file-selector-button,
.bb-theme-light .input-group-text {
    border-color: var(--bb-border);
    background-color: var(--bb-surface-high);
    color: var(--bb-text);
}

.bb-theme-light .btn-outline-secondary,
.bb-theme-light .btn-outline-light,
.bb-theme-light .btn-outline-dark {
    border-color: var(--bb-border);
    color: var(--bb-text);
}

.bb-theme-light .btn-outline-secondary:hover,
.bb-theme-light .btn-outline-light:hover,
.bb-theme-light .btn-outline-dark:hover {
    color: var(--bb-text);
}

.bb-theme-light .alert {
    border-color: var(--bb-border);
    background: var(--bb-surface);
    color: var(--bb-text);
}

.bb-theme-light .alert-success {
    background: #ecfdf3;
    color: #14532d;
}

.bb-theme-light .alert-warning {
    background: #fffbeb;
    color: #713f12;
}

.bb-theme-light .alert-danger {
    background: #fef2f2;
    color: #7f1d1d;
}

.bb-theme-light .text-bg-light,
.bb-theme-light .match-winner-badge,
.bb-theme-light .bb-winner-badge {
    background-color: rgba(21, 128, 61, 0.1) !important;
    color: var(--bb-success) !important;
}

.bb-theme-light .text-bg-primary,
.bb-theme-light .badge.bg-primary {
    background-color: #fdba74 !important;
    color: #7c2d12 !important;
}

.bb-theme-light .text-bg-success,
.bb-theme-light .badge.bg-success {
    background-color: #86efac !important;
    color: #14532d !important;
}

.bb-theme-light .text-bg-warning,
.bb-theme-light .badge.bg-warning {
    background-color: #fde68a !important;
    color: #78350f !important;
}

.bb-theme-light .text-bg-danger,
.bb-theme-light .badge.bg-danger {
    background-color: #fca5a5 !important;
    color: #7f1d1d !important;
}

.bb-theme-light .text-bg-secondary,
.bb-theme-light .badge.bg-secondary,
.bb-theme-light .text-bg-dark,
.bb-theme-light .badge.bg-dark,
.bb-theme-light .text-bg-info,
.bb-theme-light .badge.bg-info {
    background-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.bb-theme-light .bg-light,
.bb-theme-light .bg-light-subtle,
.bb-theme-light .bg-body,
.bb-theme-light .bg-body-tertiary,
.bb-theme-light .bg-white {
    background-color: var(--bb-surface-high) !important;
    color: var(--bb-text) !important;
}

.bb-theme-light .bb-public-body img.bg-white,
.bb-theme-light .bb-public-body .qr-box img,
.bb-theme-light .bb-public-body .img-thumbnail {
    background-color: #fff !important;
}

@media (max-width: 991.98px) {
    .bb-sidebar {
        display: none;
    }

    .bb-main-area {
        padding-left: 0;
    }

    .bb-mobile-brand {
        display: inline-flex;
    }

    .bb-topbar-app {
        display: none;
    }

    .bb-topbar-inner {
        flex-wrap: wrap;
    }

    .bb-clock {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .bb-content {
        padding: 1rem 0.75rem;
    }

    .bb-mobile-section-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .bb-mobile-section-tabs .nav-link {
        white-space: nowrap;
    }

    .bb-settings-grid {
        grid-template-columns: 1fr;
    }

    .bb-settings-fields-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-metric-grid,
    .bb-workspace-side,
    .bb-workspace-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-team-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .bb-team-assign-form,
    .bb-team-edit-form,
    .bb-team-assignment-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .bb-team-card-row {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
    }

    .bb-team-edit-form > div:nth-child(2) {
        grid-column: 1 / -1;
    }

    .bb-stage-action-card {
        grid-template-columns: 1fr;
    }

    .bb-stage-filter-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    }

    .bb-match-detail-grid {
        grid-template-columns: 1fr;
    }

    .bb-knockout-toolbar {
        grid-template-columns: 1fr;
    }

    .bb-knockout-table {
        font-size: 0.84rem;
    }

    .bb-create-form-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-tournament-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .bb-tournament-row-main {
        grid-column: auto;
    }

    .bb-tournament-row .bb-tournament-actions {
        justify-self: stretch;
    }

    .bb-action-group {
        justify-content: flex-start;
    }

    .bb-public-settings-grid {
        grid-template-columns: 1fr;
    }

    .bb-display-control-card,
    .bb-branding-card,
    .bb-public-overview-card {
        grid-column: auto;
        grid-row: auto;
    }

    .bb-public-screen-row {
        grid-template-columns: minmax(0, 1fr) minmax(120px, auto) 5.5rem;
        grid-template-areas:
            "name enabled order"
            "link link open";
    }

    .bb-public-screen-name {
        grid-area: name;
    }

    .bb-public-screen-enabled {
        grid-area: enabled;
    }

    .bb-public-screen-order {
        grid-area: order;
    }

    .bb-direct-link {
        grid-area: link;
    }

    .bb-public-screen-open {
        grid-area: open;
    }

    .bb-ko-col-match {
        width: 7.2rem;
    }

    .bb-ko-col-court {
        width: 5.6rem;
    }

    .bb-ko-col-status {
        width: 6.4rem;
    }

    .bb-public-header,
    .bb-public-hero,
    .bb-public-versus,
    .bb-public-feed-item {
        grid-template-columns: 1fr;
    }

    .bb-public-header {
        display: grid;
    }

    .bb-public-qr-desktop {
        display: none;
    }

    .bb-public-mobile-qr {
        display: block;
        max-width: 20rem;
    }

    .bb-public-hero {
        min-height: 0;
    }

    .bb-public-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-public-team,
    .bb-public-team:last-child,
    .bb-public-match-teams strong:last-child {
        text-align: left;
    }

    .bb-public-score {
        width: fit-content;
        min-width: min(100%, 7rem);
    }

    .bb-public-bracket-hint {
        display: block;
        margin-top: -0.25rem;
        color: var(--bb-muted);
        font-size: 0.82rem;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .bb-public-result-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "stage badges"
            "team-a team-b"
            "score score";
    }

    .bb-public-result-score {
        justify-self: center;
        width: min(100%, 18rem);
    }

    .bb-public-schedule-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "time meta"
            "team-a team-b"
            "score score";
        align-items: start;
    }

    .bb-public-schedule-item .bb-public-feed-time {
        align-self: center;
    }

    .bb-public-schedule-score {
        justify-self: center;
        width: min(100%, 18rem);
    }
}

@media (max-width: 575.98px) {
    .bb-topbar-inner {
        align-items: flex-start;
    }

    .bb-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .table {
        font-size: 0.9rem;
    }

    .bb-settings-header,
    .bb-settings-card-header,
    .bb-workspace-header,
    .bb-workspace-card-header,
    .bb-settings-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .bb-settings-card-header p {
        max-width: none;
        text-align: left;
    }

    .bb-settings-fields,
    .bb-settings-fields-compact {
        grid-template-columns: 1fr;
    }

    .bb-settings-fields-compact .form-label {
        min-height: 0;
    }

    .bb-copy-group {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .bb-copy-group .form-control,
    .bb-copy-group .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .bb-copy-group .btn {
        justify-content: center;
    }

    .bb-settings-savebar .btn {
        width: 100%;
    }

    .bb-metric-grid,
    .bb-workspace-side,
    .bb-workspace-rail,
    .bb-group-card-grid,
    .bb-team-assign-form,
    .bb-team-edit-form,
    .bb-team-assignment-form {
        grid-template-columns: 1fr;
    }

    .bb-team-card-row,
    .bb-control-row,
    .bb-team-item-header {
        grid-template-columns: 1fr;
    }

    .bb-team-edit summary,
    .bb-team-actions,
    .bb-team-delete-form {
        justify-self: stretch;
    }

    .bb-team-actions {
        justify-content: stretch;
    }

    .bb-team-actions .btn,
    .bb-team-actions form {
        width: 100%;
    }

    .bb-team-assign-form .btn,
    .bb-control-row .btn,
    .bb-team-assignment-form .btn,
    .bb-team-edit-actions .btn,
    .bb-team-delete-form .btn {
        width: 100%;
    }

    .bb-team-delete-form {
        justify-content: stretch;
    }

    .bb-stage-filter-form,
    .bb-admin-match-card-meta {
        grid-template-columns: 1fr;
    }

    .bb-match-detail-header {
        align-items: stretch;
        flex-direction: column;
    }

    .bb-match-detail-header .btn {
        width: 100%;
    }

    .bb-knockout-header,
    .bb-knockout-viewbar,
    .bb-dashboard-header,
    .bb-dashboard-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .bb-dashboard-header .btn,
    .bb-dashboard-savebar .btn {
        width: 100%;
    }

    .bb-knockout-meta,
    .bb-view-switcher {
        justify-content: stretch;
        width: 100%;
    }

    .bb-view-switcher a {
        flex: 1 1 0;
    }

    .bb-match-detail-hero {
        grid-template-columns: 1fr;
    }

    .bb-match-side,
    .bb-match-side:last-child {
        text-align: left;
        justify-items: start;
    }

    .bb-score-entry-head {
        display: none;
    }

    .bb-score-set-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .bb-score-submit,
    .bb-score-submit .btn {
        width: 100%;
    }

    .bb-knockout-stats {
        grid-template-columns: 1fr;
    }

    .bb-tournament-slug,
    .bb-tournament-meta,
    .bb-dashboard-toolbar,
    .bb-tournament-row,
    .bb-tournament-row-badges,
    .bb-tournament-row .bb-tournament-actions,
    .bb-display-control-fields,
    .bb-public-overview-grid,
    .bb-branding-layout,
    .bb-logo-upload-layout,
    .bb-public-screen-row,
    .bb-create-form-grid,
    .bb-create-form-grid-compact,
    .bb-create-form-grid-single {
        grid-template-columns: 1fr;
    }

    .bb-public-screen-row {
        grid-template-areas: none;
    }

    .bb-public-screen-name,
    .bb-public-screen-enabled,
    .bb-public-screen-order,
    .bb-direct-link,
    .bb-public-screen-open {
        grid-area: auto;
    }

    .bb-public-screen-enabled,
    .bb-public-screen-open,
    .bb-public-save-actions,
    .bb-screen-savebar {
        justify-content: stretch;
    }

    .bb-public-screen-open,
    .bb-public-save-actions .btn,
    .bb-screen-savebar .btn {
        width: 100%;
    }

    .bb-tournament-row-main {
        grid-column: auto;
    }

    .bb-dashboard-toolbar span {
        justify-self: start;
    }

    .bb-tournament-actions,
    .bb-tournament-actions .btn,
    .bb-tournament-actions form,
    .bb-tournament-actions form .btn {
        width: 100%;
    }

    .bb-action-group,
    .bb-action-group .btn {
        width: 100%;
    }

    .bb-tournament-actions {
        align-items: stretch;
    }

    .bb-knockout-table-wrap {
        display: none;
    }

    .bb-ko-mobile-cards {
        display: grid;
    }

    .bb-bracket-hint {
        display: block;
    }

    .bb-bracket-round {
        flex-basis: 280px;
        width: 280px;
    }

    .bb-admin-match-table-wrap {
        display: none;
    }

    .bb-admin-match-cards {
        display: grid;
    }

    .bb-admin-match-card-action,
    .bb-admin-match-card-action .btn,
    .bb-admin-match-card-action form {
        width: 100%;
    }

    .bb-public-stat-grid,
    .bb-public-match-teams {
        grid-template-columns: 1fr;
    }

    .bb-public-main {
        padding: 0.65rem;
    }

    .bb-public-shell {
        gap: 0.7rem;
    }

    .bb-public-header,
    .bb-public-hero-copy,
    .bb-public-hero-side,
    .bb-public-empty,
    .bb-public-match-card,
    .bb-public-standings-card,
    .bb-public-feed-item,
    .bb-public-result-item,
    .bb-public-bracket-card {
        border-radius: 12px;
    }

    .bb-public-header {
        gap: 0.7rem;
        padding: 0.8rem;
    }

    .bb-public-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.1em;
    }

    .public-title {
        font-size: clamp(1.35rem, 8vw, 2rem);
        line-height: 1.02;
    }

    .bb-public-meta-line {
        gap: 0.35rem 0.55rem;
        margin-top: 0.5rem;
        font-size: 0.78rem;
    }

    .bb-public-nav {
        gap: 0.35rem;
    }

    .bb-public-nav-link {
        flex: 1 1 auto;
        padding: 0.45rem 0.55rem;
        font-size: 0.76rem;
        text-align: center;
    }

    .bb-public-hero-copy,
    .bb-public-hero-side,
    .bb-public-match-card,
    .bb-public-feed-item,
    .bb-public-result-item {
        padding: 0.75rem;
    }

    .bb-public-hero-copy {
        gap: 0.8rem;
    }

    .bb-public-hero-copy h2 {
        font-size: clamp(1.9rem, 12vw, 3rem);
        line-height: 1;
    }

    .bb-public-hero-side {
        align-content: start;
    }

    .bb-public-logo-panel {
        min-height: 130px;
        padding: 0.75rem;
    }

    .bb-public-logo-panel img {
        max-height: 150px;
    }

    .bb-public-stat-grid {
        gap: 0.5rem;
    }

    .bb-public-stat {
        padding: 0.55rem;
    }

    .bb-public-stat strong {
        font-size: 0.95rem;
    }

    .bb-public-description {
        padding: 0.75rem;
    }

    .bb-public-description p,
    .public-subtitle {
        font-size: 0.95rem;
    }

    .bb-public-section-heading strong {
        font-size: 1.35rem;
    }

    .bb-public-empty {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .bb-public-live-card {
        min-height: 0;
    }

    .bb-public-match-card {
        gap: 0.65rem;
    }

    .bb-public-match-top,
    .bb-public-match-meta {
        gap: 0.45rem;
    }

    .bb-public-team {
        font-size: 1.05rem;
    }

    .bb-public-score {
        padding: 0.2rem 0.55rem;
        font-size: 1.45rem;
    }

    .bb-public-live-card .bb-public-score {
        display: none;
    }

    .bb-public-match-teams {
        gap: 0.4rem;
        font-size: 0.95rem;
    }

    .bb-public-match-top,
    .bb-public-match-meta {
        align-items: flex-start;
    }

    .bb-public-match-teams span {
        width: fit-content;
        max-width: 100%;
        justify-self: start;
    }

    .bb-public-result-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage"
            "badges"
            "team-a"
            "team-b"
            "score";
        gap: 0.45rem;
    }

    .bb-public-result-badges {
        justify-items: start;
    }

    .bb-public-result-score {
        justify-self: stretch;
        width: auto;
    }

    .bb-public-schedule-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "time"
            "meta"
            "team-a"
            "team-b"
            "score";
        gap: 0.45rem;
    }

    .bb-public-feed-time {
        font-size: 1.05rem;
    }

    .bb-public-schedule-team {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 2.4rem;
        gap: 0.45rem;
        width: 100%;
        padding: 0.45rem 0;
        border-top: 1px solid rgba(218, 226, 253, 0.08);
        font-size: 0.98rem;
    }

    .bb-public-schedule-team strong {
        align-self: center;
        grid-column: 1;
        grid-row: 1;
        padding-right: 2.1rem;
    }

    .bb-public-mobile-team-score {
        display: inline-grid;
        grid-column: 2;
        grid-row: 1;
        min-width: 2.4rem;
        place-items: center;
        color: var(--bb-primary-soft);
        font-size: 1.15rem;
        font-weight: 950;
        justify-self: end;
    }

    .bb-public-schedule-team .bb-public-winner {
        align-self: center;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        margin-right: 0.15rem;
    }

    .bb-public-schedule-team-b {
        text-align: left;
    }

    .bb-public-schedule-meta {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .bb-public-schedule-group {
        text-align: left;
    }

    .bb-public-schedule-score {
        justify-self: stretch;
        width: auto;
        padding: 0.45rem 0 0;
        background: transparent;
    }

    .bb-public-schedule-score strong {
        display: none;
    }

    .bb-public-schedule-score .public-result-sub {
        font-size: 0.78rem;
    }

    .bb-public-mobile-empty-score {
        display: none;
    }

    .bb-public-bracket-wrap {
        margin-right: -0.65rem;
        margin-left: -0.65rem;
        padding: 0 0.65rem 0.4rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .bb-public-bracket-grid {
        gap: 0.75rem;
    }

    .bb-public-bracket-round {
        width: min(82vw, 310px);
        flex-basis: min(82vw, 310px);
        scroll-snap-align: start;
    }

    .bb-public-bracket-card {
        padding: 0.75rem;
    }

    .bb-public-bracket-team {
        font-size: 0.95rem;
    }

    .bb-public-bracket-result {
        font-size: 1.1rem;
    }

    .bb-public-map iframe {
        min-height: 260px;
    }

    .bb-public-section-heading {
        align-items: flex-start;
    }

    .bb-public-meta-line span + span::before {
        display: none;
    }
}

@media (max-width: 700px) {
    .bb-public-standings-grid {
        grid-template-columns: 1fr;
    }

    .bb-public-card-title {
        padding: 0.85rem 0.75rem 0.5rem;
    }

    .public-table {
        font-size: clamp(0.78rem, 2.6vw, 0.95rem);
    }

    .public-table th,
    .public-table td {
        padding: 0.42rem 0.28rem;
    }

    .public-standings th.col-rank,
    .public-standings td.col-rank {
        width: 2.35rem;
    }

    .public-standings th.col-num,
    .public-standings td.col-num {
        width: 2.55rem;
    }

    .public-standings .col-rank span {
        width: 1.65rem;
        height: 1.65rem;
    }
}

@media (max-width: 430px) {
    .bb-public-body .badge {
        padding: 0.3rem 0.45rem;
        font-size: 0.7rem;
    }

    .public-table {
        font-size: 0.72rem;
    }

    .public-table th,
    .public-table td {
        padding-right: 0.18rem;
        padding-left: 0.18rem;
    }

    .public-standings th.col-rank,
    .public-standings td.col-rank {
        width: 2rem;
    }

    .public-standings th.col-num,
    .public-standings td.col-num {
        width: 2.2rem;
    }
}
