/* Shared UI foundation. Domain-specific scoring colors remain separate. */
html[data-score-theme] body{background:var(--score-ui-bg)!important;color:var(--score-ui-text)!important;font-family:Roboto,Arial,sans-serif}
html[data-score-theme] :is(.card,.modal-content,.dropdown-menu){background:var(--score-ui-surface)!important;color:var(--score-ui-text)!important;border-color:var(--score-ui-border)!important}
html[data-score-theme] .card{border-radius:16px;box-shadow:0 8px 24px #00000012!important}
html[data-score-theme] .card :is(h1,h2,h3,h4,h5,p){color:inherit}
html[data-score-theme] :is(.text-muted,.form-label){color:var(--score-ui-text-muted)!important}
html[data-score-theme] :is(.form-control,.form-select){background-color:var(--score-ui-surface)!important;color:var(--score-ui-text)!important;border:1px solid var(--score-ui-input-border)!important;border-radius:10px;min-height:44px}
html[data-score-theme] .form-control::placeholder{color:var(--score-ui-text-muted)!important;opacity:1}
html[data-score-theme] :is(.form-control,.form-select):focus{outline:3px solid var(--score-ui-focus)!important;outline-offset:2px;box-shadow:none!important}
html[data-score-theme] input[type=checkbox]{accent-color:var(--score-ui-primary)}
html[data-score-theme] .btn{border-radius:10px;min-height:44px;font-weight:600;box-shadow:none!important;letter-spacing:normal;display:inline-flex;align-items:center;justify-content:center;gap:6px}
html[data-score-theme] .btn-primary{background:var(--score-ui-primary)!important;color:var(--score-ui-primary-text)!important;border:1px solid var(--score-ui-primary)!important}
html[data-score-theme] .btn-primary:hover{background:var(--score-ui-primary-hover)!important;border-color:var(--score-ui-primary-hover)!important}
html[data-score-theme] :is(.btn-secondary,.btn-light,.btn-outline-secondary){background:var(--score-ui-surface-raised)!important;color:var(--score-ui-text)!important;border:1px solid var(--score-ui-input-border)!important}
html[data-score-theme] :is(.btn-secondary,.btn-light,.btn-outline-secondary):hover{background:var(--score-ui-selected-bg)!important}
html[data-score-theme] .btn-danger{background:var(--score-ui-danger)!important;color:var(--score-ui-primary-text)!important;border-color:var(--score-ui-danger)!important}
html[data-score-theme] .btn-danger:hover{background:var(--score-ui-danger-hover)!important}
html[data-score-theme] .btn-warning{background:var(--score-ui-caution-bg)!important;color:var(--score-ui-caution-text)!important;border:1px solid var(--score-ui-caution-border)!important}
html[data-score-theme] .btn-warning:hover{background:var(--score-ui-caution-hover)!important}
html[data-score-theme] .btn-success{background:var(--score-ui-success-bg)!important;color:var(--score-ui-success)!important;border:1px solid var(--score-ui-success)!important}
html[data-score-theme] .btn-outline-success{background:var(--score-ui-success-bg)!important;color:var(--score-ui-success)!important;border:1px solid var(--score-ui-success)!important}
html[data-score-theme] .btn-outline-success:hover{background:var(--score-ui-success)!important;color:var(--score-ui-primary-text)!important}
html[data-score-theme] .btn-outline-danger{background:var(--score-ui-danger-bg)!important;color:var(--score-ui-danger)!important;border:1px solid var(--score-ui-danger)!important}
html[data-score-theme] .btn-outline-danger:hover{background:var(--score-ui-danger)!important;color:var(--score-ui-primary-text)!important}
html[data-score-theme] select.btn{background:var(--score-ui-surface)!important;color:var(--score-ui-text)!important;border-color:var(--score-ui-input-border)!important}
html[data-score-theme] .btn-link{background:transparent!important;color:var(--score-ui-link)!important}
html[data-score-theme] :is(.btn,button,a):focus-visible{outline:3px solid var(--score-ui-focus)!important;outline-offset:3px}
html[data-score-theme] .btn:disabled,html[data-score-theme] .btn.disabled{background:var(--score-ui-surface-raised)!important;color:var(--score-ui-text-muted)!important;border-color:var(--score-ui-border)!important;opacity:.65;cursor:not-allowed}
html[data-score-theme] :is(.card,.home-wrap) a:not(.btn){color:var(--score-ui-link)}
html[data-score-theme] .dropdown-item{color:var(--score-ui-text)!important}
html[data-score-theme] .dropdown-item:hover{background:var(--score-ui-selected-bg)!important}
html[data-score-theme] :is(.alert-success,.alert-danger,.alert-warning,.alert-info){border-radius:10px}
html[data-score-theme] .alert-success{background:var(--score-ui-success-bg)!important;color:var(--score-ui-success)!important;border-color:var(--score-ui-success)!important}
html[data-score-theme] .alert-danger{background:var(--score-ui-danger-bg)!important;color:var(--score-ui-danger)!important;border-color:var(--score-ui-danger)!important}
html[data-score-theme] .alert-warning{background:var(--score-ui-warning-bg)!important;color:var(--score-ui-warning)!important;border-color:var(--score-ui-warning)!important}
html[data-score-theme] .alert-info{background:var(--score-ui-info-bg)!important;color:var(--score-ui-info)!important;border-color:var(--score-ui-info)!important}
/* Remaining Bootstrap families: semantic states, tables, navigation and dialogs. */
html[data-score-theme] :is(.btn-info,.btn-outline-info,.btn-outline-primary,.btn-outline-light){background:var(--score-ui-selected-bg)!important;color:var(--score-ui-link)!important;border:1px solid var(--score-ui-primary)!important}
html[data-score-theme] :is(.btn-info,.btn-outline-info,.btn-outline-primary,.btn-outline-light):hover{background:var(--score-ui-primary)!important;color:var(--score-ui-primary-text)!important}
html[data-score-theme] .btn[aria-pressed=true]{background:var(--score-ui-primary)!important;color:var(--score-ui-primary-text)!important;border-color:var(--score-ui-primary)!important}
html[data-score-theme] .btn-outline-warning{background:var(--score-ui-warning-bg)!important;color:var(--score-ui-warning)!important;border-color:var(--score-ui-warning)!important}
html[data-score-theme] :is(.text-info,.link-info,.text-primary,.link-primary){color:var(--score-ui-link)!important}
html[data-score-theme] .text-success{color:var(--score-ui-success)!important}
html[data-score-theme] .text-danger{color:var(--score-ui-danger)!important}
html[data-score-theme] .text-warning{color:var(--score-ui-warning)!important}
html[data-score-theme] :is(.text-secondary,.form-text){color:var(--score-ui-text-muted)!important}
html[data-score-theme] .table{--bs-table-bg:var(--score-ui-surface);--bs-table-color:var(--score-ui-text);--bs-table-border-color:var(--score-ui-border);--bs-table-striped-bg:var(--score-ui-surface-raised);--bs-table-striped-color:var(--score-ui-text);--bs-table-hover-bg:var(--score-ui-selected-bg);--bs-table-hover-color:var(--score-ui-text);--bs-table-active-bg:var(--score-ui-selected-bg);--bs-table-active-color:var(--score-ui-text);background:var(--score-ui-surface);color:var(--score-ui-text);border-color:var(--score-ui-border)}
html[data-score-theme] .table thead th{background:var(--score-ui-surface-raised);color:var(--score-ui-text);border-color:var(--score-ui-border)}
html[data-score-theme] .table :is(th,td){border-color:var(--score-ui-border)}
html[data-score-theme] .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg:var(--score-ui-surface-raised)}
html[data-score-theme] .table-hover>tbody>tr:hover>*{--bs-table-accent-bg:var(--score-ui-selected-bg)}
html[data-score-theme] :is(.list-group-item,.accordion-item,.accordion-button,.modal-header,.modal-footer){background:var(--score-ui-surface);color:var(--score-ui-text);border-color:var(--score-ui-border)}
html[data-score-theme] :is(.accordion-button:not(.collapsed),.nav-pills .nav-link.active,.page-item.active .page-link){background:var(--score-ui-selected-bg)!important;color:var(--score-ui-selected-text)!important;border-color:var(--score-ui-primary)!important}
html[data-score-theme] :is(.page-link,.nav-tabs .nav-link,.nav-pills .nav-link){background:var(--score-ui-surface)!important;color:var(--score-ui-link)!important;border-color:var(--score-ui-border)!important;min-height:44px}
html[data-score-theme] :is(.page-item.disabled .page-link,.nav-link.disabled){background:var(--score-ui-surface-raised)!important;color:var(--score-ui-text-muted)!important}
html[data-score-theme] .nav-tabs .nav-link.active{background:var(--score-ui-selected-bg)!important;color:var(--score-ui-selected-text)!important}
html[data-score-theme] :is(.dataTables_info,.dataTables_paginate,.dataTables_length,.dataTables_filter){color:var(--score-ui-text-muted)!important}
html[data-score-theme] :is(.dataTables_length select,.dataTables_filter input){background:var(--score-ui-surface);color:var(--score-ui-text);border-color:var(--score-ui-input-border);min-height:44px}
html[data-score-theme] .btn-close{filter:none}
html[data-score-theme=dark] .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
html[data-score-theme] .btn[hidden]{display:none!important}
html[data-score-theme] :is(input[type=date],input[type=time],input[type=datetime-local]){color-scheme:inherit}
@media(max-width:767.98px){
 html[data-score-theme] .modal-dialog{margin:12px}
 html[data-score-theme] .modal-content{max-width:100%;overflow-wrap:anywhere}
 html[data-score-theme] .modal-footer{gap:8px;flex-wrap:wrap}
 html[data-score-theme] .dataTables_wrapper .row{margin-inline:0}
 html[data-score-theme] .table-responsive{max-width:100%;overscroll-behavior-x:contain}
}
/* A fixed, reserved top-right position on both internal and public pages. */
html[data-score-theme] body:not(:has([data-score-header])):has(.score-theme-toggle){padding-top:76px}
html[data-score-theme] [data-score-header]{background:var(--score-ui-surface)!important;background-image:none!important;color:var(--score-ui-text)!important;border-bottom:1px solid var(--score-ui-border)!important}
html[data-score-theme] [data-score-header][data-environment=local]{border-top:3px solid #218563}
html[data-score-theme] [data-score-header][data-environment=test]{border-top:3px solid #9d67ba}
html[data-score-theme] .navbar.header-spacing{height:112px;min-height:112px;padding:0}
html[data-score-theme] .navbar.header-spacing .header{height:112px;padding:0;pointer-events:none}
html[data-score-theme] .navbar.header-spacing .score-brand-link{pointer-events:auto;width:clamp(220px,30vw,380px)}
html[data-score-theme] .navbar.header-spacing .navbar-collapse{padding-right:76px}
html[data-score-theme] .navbar.header-spacing>.container-fluid{display:grid;grid-template-columns:100px minmax(0,1fr) minmax(0,280px) 60px;align-items:center}
html[data-score-theme] .navbar.header-spacing .header{position:static!important;grid-column:2;grid-row:1;width:auto!important}
html[data-score-theme] .navbar.header-spacing .navbar-collapse{grid-column:3;grid-row:1;padding-right:0}
html[data-score-theme] .navbar.header-spacing #userMenu{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-score-theme] .navbar.header-spacing .nav-item.dropdown{margin-top:0}
html[data-score-theme] .user-menu-btn{background:var(--score-ui-surface-raised)!important;color:var(--score-ui-text)!important;border-color:var(--score-ui-input-border)!important;box-shadow:none}
html[data-score-theme] .navbar.header-spacing .header-club-logo{top:50%!important;left:16px!important;transform:translateY(-50%)}
html[data-score-theme] .navbar.header-spacing .logo{max-height:88px;max-width:min(180px,18vw);object-fit:contain}
html[data-score-theme] .navbar-toggler{border-color:var(--score-ui-input-border);background:var(--score-ui-surface-raised)}
html[data-score-theme=light] .navbar .navbar-toggler-icon{filter:brightness(.2)}
html[data-score-theme] .mobile-user-menu-name{color:var(--score-ui-text-muted);border-color:var(--score-ui-border)}
html[data-score-theme] .mobile-user-menu-links a{color:var(--score-ui-text)}
html[data-score-theme] .mobile-user-menu-links a:hover{background:var(--score-ui-selected-bg)}
html[data-score-theme] .mobile-user-menu-legal a{color:var(--score-ui-link)!important}
html[data-score-theme] .public-header .public-account{right:80px;top:0}
html[data-score-theme] .public-header .public-action-link{background:var(--score-ui-surface-raised);color:var(--score-ui-text);border-color:var(--score-ui-input-border);min-height:44px!important;height:44px!important}
html[data-score-theme] .public-header .brand{width:360px}
@media(min-width:992px){
 html[data-score-theme] .navbar.header-spacing .header{position:absolute!important;left:50%;transform:translateX(-50%);width:clamp(220px,30vw,380px)!important;min-width:0;padding:0}
 html[data-score-theme] .navbar.header-spacing .header .navbar-brand{margin:0;padding:0;width:100%}
 html[data-score-theme] .navbar.header-spacing .header .score-brand-link{width:100%}
 html[data-score-theme] .public-header .brand{margin-inline:auto;align-self:center;text-align:center!important}
}
/* Pilot public home: migrate accents and surfaces, preserving event layout. */
html[data-score-theme] .home-wrap :is(.home-muted,.home-footnote,.home-meta,.home-kind,.home-detail,.home-tools label,.home-intro>p:last-child){color:var(--score-ui-text-muted)!important}
html[data-score-theme] .home-wrap :is(.home-eyebrow,.home-open,.home-classic-link,.home-footnote a){color:var(--score-ui-link)!important}
html[data-score-theme] .home-wrap .home-team strong{color:var(--score-ui-text)!important}
html[data-score-theme] .home-wrap .home-event{background:var(--score-ui-surface)!important;color:var(--score-ui-text)!important;border-color:var(--score-ui-border)!important;box-shadow:none!important}
html[data-score-theme] .home-wrap .home-event:hover{background:var(--score-ui-surface-raised)!important;border-color:var(--score-ui-primary)!important}
html[data-score-theme] .home-wrap :is(.home-empty,.home-count){background:var(--score-ui-surface-raised)!important;color:var(--score-ui-text-muted)!important;border-color:var(--score-ui-border)!important}
html[data-score-theme] .home-wrap .home-tools input{background:var(--score-ui-surface)!important;color:var(--score-ui-text)!important;border-color:var(--score-ui-input-border)!important}
html[data-score-theme] .home-wrap .home-tools input::placeholder{color:var(--score-ui-text-muted)!important}
html[data-score-theme] .home-wrap .home-tools input:focus{outline:3px solid var(--score-ui-focus);outline-offset:2px}
html[data-score-theme] .home-wrap :is(.home-filters button,.home-more){background:var(--score-ui-surface)!important;color:var(--score-ui-text)!important;border-color:var(--score-ui-input-border)!important;min-height:44px;border-radius:10px}
html[data-score-theme] .home-wrap .home-filters button[aria-pressed=true]{background:var(--score-ui-selected-bg)!important;color:var(--score-ui-selected-text)!important;border-color:var(--score-ui-primary)!important}
@media(max-width:1199.98px){
 html[data-score-theme] .public-header{padding:16px!important}
 html[data-score-theme] .public-header .container-fluid{display:flex;flex-direction:column;align-items:flex-start!important;gap:16px;padding:0}
 html[data-score-theme] .public-header .brand{order:-1;width:min(300px,calc(100% - 64px));text-align:left!important}
 html[data-score-theme] .public-header .public-account{position:static;order:0;width:100%;max-width:none;justify-content:flex-start;flex-wrap:wrap;gap:6px}
}
@media(max-width:991.98px){
 html[data-score-theme] .navbar.header-spacing{height:76px;min-height:76px}
 html[data-score-theme] .navbar.header-spacing>.container-fluid{grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;padding:0 12px;min-height:76px}
 html[data-score-theme] .navbar.header-spacing .header{height:auto;grid-column:1}
 html[data-score-theme] .navbar.header-spacing .score-brand-link{width:100%}
 html[data-score-theme] .navbar.header-spacing .navbar-toggler{grid-column:2;width:44px;height:44px}
 html[data-score-theme] .navbar.header-spacing .header-club-logo{display:none}
 html[data-score-theme] .navbar.header-spacing .logo{width:44px;max-height:44px}
 html[data-score-theme] .navbar.header-spacing .navbar-collapse{padding:0;background:var(--score-ui-surface);border-color:var(--score-ui-border);top:76px}
}
