/* Centralisation : pas de curseur texte (caret) sur les champs/scores verrouillés (update_score + pronos) */
/* ============================================================
   Team Search widget in navbar
   ============================================================ */

/* ── Rankings page: team row 3D lift highlight ── */
/* Animation on TR (not TD) so the whole row lifts as one block — no column-separator artifacts */
@keyframes wc-row-pop {
    0%   { transform: translateY(0);    }
    38%  { transform: translateY(-7px); }
    100% { transform: translateY(-3px); }
}
@keyframes wc-row-land {
    0%   { transform: translateY(-3px); }
    100% { transform: translateY(0);    }
}

/* TR lifts as a single unified block */
tr.wc-team-hl {
    animation: wc-row-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    filter: drop-shadow(0 5px 16px rgba(59, 130, 246, 0.45)) !important;
    position: relative !important;
    z-index: 20 !important;
}

/* Raised/convex 3D look: gradient simulates light hitting the top edge of the lifted row.
   Top edge: white highlight (visible in dark mode) + bottom edge: dark shadow (visible in light mode).
   Together they simulate a convex/raised surface in both themes.
   ID selector (specificity 1,x,x) beats .group-card table.dataTable tbody tr/td (0,2,x) */
#groups-panel .group-card table.dataTable tbody tr.wc-team-hl > td {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.65)  0px,
        rgba(255, 255, 255, 0)     30%,
        rgba(0, 0, 0, 0)           62%,
        rgba(0, 0, 0, 0.13)        100%
    ) !important;
    transition: background 1.2s ease, border-radius 0.3s ease !important;
}
#groups-panel .group-card table.dataTable tbody tr.wc-team-hl > td:first-child {
    border-radius: 8px 0 0 8px !important;
}
#groups-panel .group-card table.dataTable tbody tr.wc-team-hl > td:last-child {
    border-radius: 0 8px 8px 0 !important;
}

/* Land back down */
tr.wc-team-hl-fade {
    animation: wc-row-land 1.2s ease-out forwards !important;
    filter: none !important;
    transition: filter 1.2s ease !important;
    position: relative !important;
    z-index: 5 !important;
}
#groups-panel .group-card table.dataTable tbody tr.wc-team-hl-fade > td {
    background: transparent !important;
    border-radius: 0 !important;
    transition: background 1.2s ease, border-radius 1.2s ease !important;
}

/* Dark mode: boost the white top-highlight, keep bottom shadow */
html[data-theme='dark'] #groups-panel .group-card table.dataTable tbody tr.wc-team-hl > td {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.42)  0px,
        rgba(255, 255, 255, 0)     30%,
        rgba(0, 0, 0, 0)           62%,
        rgba(0, 0, 0, 0.22)        100%
    ) !important;
}

/* Group card amber glow when its team is highlighted */
.group-card.wc-group-hl {
    border-color: rgba(245, 158, 11, 0.7)  !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 16px 32px rgba(17, 24, 39, 0.18) !important;
    transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.group-card.wc-group-hl-fade {
    border-color: #e5e7eb !important;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08) !important;
    transition: border-color 1.8s ease, box-shadow 1.8s ease;
}

html[data-theme='dark'] .group-card.wc-group-hl {
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16), 0 16px 32px rgba(0, 0, 0, 0.38) !important;
}
html[data-theme='dark'] .group-card.wc-group-hl-fade {
    border-color: rgba(167, 199, 241, 0.2) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3) !important;
}
.wc-team-search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 260px;
    align-self: center;
}

.wc-team-search-field {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 8px 0 12px;
    background: var(--wc-toggle-bg);
    border: 1px solid var(--wc-toggle-border);
    border-radius: 20px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wc-team-search-field:focus-within {
    border-color: var(--wc-link);
    box-shadow: 0 0 0 2px rgba(31, 102, 173, 0.18);
}

.wc-team-search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--wc-muted-text);
}

.wc-team-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 12.5px;
    color: var(--wc-page-text);
    line-height: 1.4;
    padding: 0 !important;
    max-width: none !important;
    height: auto !important;
}

.wc-team-search-input::placeholder {
    color: var(--wc-muted-text);
    font-size: 12px;
}

.wc-team-search-clear {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--wc-muted-text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.wc-team-search-clear.wc-ts-clear--visible {
    display: inline-flex;
}

.wc-team-search-clear:hover,
.wc-team-search-clear:focus {
    background: var(--wc-nav-link-bg-hover);
    color: var(--wc-page-text);
    outline: none;
}

/* Autocomplete dropdown */
.wc-team-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: var(--wc-dropdown-bg);
    border: 1px solid var(--wc-dropdown-border);
    border-radius: 12px;
    box-shadow: var(--wc-dropdown-shadow);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 2100;
    max-height: 300px;
    overflow-y: auto;
}

.wc-team-search-dropdown[hidden] {
    display: none;
}

.wc-ts-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--wc-dropdown-text);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.12s ease;
    user-select: none;
}

.wc-ts-item:hover,
.wc-ts-item--hl {
    background: var(--wc-dropdown-hover-bg);
    color: var(--wc-nav-link-hover);
}

.wc-ts-item__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc-ts-item__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-ts-no-results {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--wc-muted-text);
    text-align: center;
}

/* Mobile: search takes available space between hamburger and logo */
@media (max-width: 1199px) {
    .wc-team-search-wrap {
        max-width: none;
        margin: 0 2px;
    }
}

@media (max-width: 400px) {
    .wc-team-search-wrap {
        flex: 0 1 clamp(104px, 32vw, 148px);
        max-width: clamp(104px, 32vw, 148px);
    }
}

/* Desktop: search is moved by JS into .wc-menu-panel just before .wc-user-nav.
   Hide it while it still lives in .wc-nav-top (before JS runs or before reposition). */
@media (min-width: 1200px) {
    .wc-nav-top .wc-team-search-wrap {
        display: none;
    }
    .wc-menu-panel .wc-team-search-wrap {
        flex: 0 0 220px;
        width: 220px;
        max-width: 220px;
        margin: 0 8px 0 auto;
    }
}

.score-update-locked select[disabled],
.score-update-locked input[disabled],
.score-update-locked textarea[disabled],
.score-update-locked .image_picker_selector,
.GameDisabled select[disabled],
.GameDisabled input[disabled],
.GameDisabled input[readonly],
.GameDisabled textarea[disabled],
.GameDisabled textarea[readonly],
.GameDisabled .image_picker_selector,
.consultDrawDisabled,
.consultDrawDisabled *,
.consultWinnerDisabled,
.consultWinnerDisabled *,
.notSelectedDisabled,
.notSelectedDisabled * {
    cursor: default !important;
    caret-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
}

/* Verrouiller visuellement les cartes equipes sans impacter les liens de navigation. */
.score-update-locked .image_picker_selector .thumbnail,
.score-update-locked .image_picker_selector .thumbnail *,
.GameDisabled .image_picker_selector .thumbnail,
.GameDisabled .image_picker_selector .thumbnail * {
    cursor: default !important;
    caret-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
}
/* Le clic sur le chiffre/label ne doit pas placer de caret : on laisse passer
   l'événement au .thumbnail parent (donc pas de pointer-events:none global). */
.image_picker_selector li p,
.image_picker_selector li label,
.image_picker_selector li .image_picker_image_label,
.image_picker_selector li span {
    pointer-events: none !important;
}

.image_picker_selector li p.nbaPreStatTx,
.image_picker_selector li p.nbaPreStatTx *,
.image_picker_selector li .js-date-link,
.image_picker_selector li .js-group-link,
.image_picker_selector li .js-matchup-link {
    pointer-events: auto !important;
}

.js-date-link,
.js-group-link,
.js-matchup-link {
    cursor: pointer !important;
}
/*
Theme Name: City Square Theme
Author URI: http://webthemez.com/
Description: This theme is a pretty versatile, that places the emphasis of the home page. It would be great for a corporate websites, business websites, personal blog.
License: Free to use for personal and commercial, but you need to place back link in the bottom of the template.
*/
@import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700);
@import url(//fonts.googleapis.com/css?family=Pacifico);

* {
    margin: 0;
    padding: 0;
    /*font-family: 'Source Sans Pro', sans-serif;*/
    /*font-family: 'Arial Unicode MS';*/
    font-family: "pf beau sans pro",Helvetica,Arial,sans-serif ;
}

/*body {
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #E4E4E4;
}*/

/*::selection {
    color: #fff;
    background: #CC4646;
}

::-moz-selection {
    color: #fff;
    background: #CC4646;
}*/

/*p {
    color: #858585;
	line-height:22px;
}
.white{
	background:#fff;
	}
.pDark p {
    color: #6D6D6D;
}

.pDark h3 {
    color: #BEBEBE;
}

.btn, .form-control, .team-socials i {
    border-radius: 5px !important;
}

.button-outline {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    vertical-align: middle;
    zoom: 1;
    color: #fff;
    padding: 10px 25px;
    border: 2px solid #fff;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 400;
    background: rgba(255,255,255,0.15);
}

    .button-outline:hover {
        color: #fff;
        background: rgba(255,255,255,0.35);
    }

a {
    color: #CC4646;
    text-decoration: none;
    text-shadow: none;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

a:hover {
    color: #DF3927;
    text-decoration: none;
}

.btn {
    border: 0px;
    border-radius: 0px;
}
.btn:hover {
background: #E24040;
}

.btn-primary {
    background: #CC4646;
}

.form-control {
    border-radius: 0px;
}

.mrgn30 {
    margin: 30px 0;
}

.copyright {
    color: #6D6D6D;
    background: #E9E9E9;
    padding: 20px 0;
}

#top {
    position: relative;
}

.topHome {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5;
	background: #CC4646;
}
.topHome .fa-2x {
font-size: 20px;
color:#fff;
margin: 4px;
}*/
/* Header 
----------------------------------------------*/
/*.header {
    position: fixed;
    width: 100%;
    background: #CC4646;
    z-index: 50;
    border-radius: 0;
    top: 0px;
    border-bottom: 1px solid #F57676;
}*/

.actionPanel {
    padding: 25px 0;
    background: #CC4646;
}

    .actionPanel h3 {
        margin: 0px;
    }

.circle {
    background: #CC4646;
    height: 60px;
    width: 60px;
    border-radius: 35px;
    color: #fff;
    line-height: 60px !important;
}
/*----Nav ----*/
.header .navbar-brand {
    float: left;
    padding: 16px 15px;
    line-height: 18px;
    height: 50px;
    /*color:#CC4646;*/;
}

.navbar-brand b {
    color: #fff;
	font-family: 'Pacifico', cursive;
	font-weight:400;
}

.logo {
    font-size: 2.2em;
    text-shadow: none;
    margin: 8px 0 0 0;
}

    .logo:hover {
        color: #5A5A5A;
    }



.isotopeWrapper article{
    margin-bottom: 30px;
}

#portfolio {
    background:rgb(24, 24, 24);
}

    #portfolio img {
        width: 90%; /*  original 100%*/
    }

    #portfolio article p {
        margin-bottom: 1.15em;
        /*set next row on the baseline*/;
    }

nav#filter {
    margin-bottom: 1.5em;
}

    nav#filter li {
        display: inline-block;
        margin: 0 0 0 5px;
    }

    nav#filter a {
        padding: 4px 12px;
        line-height: 20px;
        border: 0px solid #CC4646;
        text-decoration: none;
    }

.current {
    /*background: #CC4646;*/
    /*color: rgba(187, 56, 56, 0.5) !important;  /*#fff;*/
    border: 1px solid rgba(187, 56, 56, 0.5) !important;
    border-radius: 5px !important;
}

/* PORTFOLIO    */
.portfolio-items article img {
    width: 90%; /*  original 100%*/
}

.portfolio-item {
    display: block;
    position: relative;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.portfolio-item img {
    -webkit-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    -o-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    transition: all 300ms linear;
}

.portfolio-item .portfolio-desc {
    display: block;
    opacity: 0;
    position: absolute;
    width: 90%; /*  original 100%*/
    left: 0;
    top: 0;
    color: rgba(220, 220, 220);
}

.fancybox-overlay {
    background: rgba(0, 0, 0, 0.64);
}

.portfolio-item:hover .portfolio-desc {
    padding-top: 15%;    /* original 40% - 20%*/
    height: 100%;
    transition: all 200ms ease-in-out 0s;
    opacity: 1;
    background: rgba(61, 61, 61, 0.67);
}

.portfolio-item .portfolio-desc a {
    color: #fff;
    text-align: center;
    display: block;
}

.portfolio-item .portfolio-desc a:hover {
    /*text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);*/
    text-decoration: none;
}

.portfolio-item .portfolio-desc .folio-info {
    top: -20px;
    padding: 5px;
    height: 0;
    opacity: 0;
    position: relative;
}

.portfolio-item:hover .folio-info {
    height: 100%;
    opacity: 1;
    transition: all 500ms ease-in-out 0s;
    top: 5px;
}

.portfolio-item .portfolio-desc .folio-info h5 {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    font-size: 1.4em;
}

.portfolio-item .portfolio-desc .folio-info p {
    color: #ffffff;
    font-size: 8px;
}

.page-section.intro {
    min-height: 600px;
}

.btn {
    font-weight: 200;
}

.btn-dark {
    background: #444;
    color: #fff;
}

.btn-dark:hover {
    background: #000;
    color: #fff;
}

.back-to-top {
    display: inline-block;
    clear: both;
    background: #fff;
    color: #333;
    padding: 0 10px 5px;
    margin: 20px 0 0;
    text-shadow: none;
}

    .back-to-top:hover {
        background: #333;
        color: #fff;
        text-decoration: none;
    }

hr {
    border-color: #ddd;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

#navigation {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100px;
    background: #ffffff;
    box-shadow: 0 10px 10px -10px #000000;
}

    #navigation > li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        #navigation > li > a {
            margin: 1px;
            color: #000000;
            background: #cccccc;
            display: block;
            padding: 5px;
            text-decoration: none;
            transition: all 400ms;
        }

            #navigation > li > a.current,
            #navigation > li:hover > a {
                background: #999999;
            }

.pageSection {
    min-height: 600px;
    padding: 20px;
    background: #dddddd;
}

    .pageSection:nth-child(odd) {
        background: #eeeeee;
    }

.socialIcons li {
    list-style: none;
    display: inline;
    margin-right: 6px;
}

footer {
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    background: #fff;
    margin-top: 55px;
}

.social a:hover {
    color: #c0392b;
}

.social a {
    font-size: 32px;
    margin: 0 10px;
    color: #c7c7c7;
}

.contact ul li {
    margin-bottom: 10px;
}

.contact ul li i {
    margin-right: 15px;
}

:root {
    --wc-page-bg: #f4f7fb;
    --wc-page-bg-effect:
        radial-gradient(circle at 12% 8%, rgba(111, 173, 236, 0.22), transparent 36%),
        radial-gradient(circle at 86% 14%, rgba(255, 197, 121, 0.18), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fc 52%, #f3f7fc 100%);
    --wc-page-text: #1d2e42;
    --wc-surface-1: #ffffff;
    --wc-surface-2: #f5f9ff;
    --wc-border-1: rgba(23, 57, 96, 0.16);
    --wc-muted-text: #6a8099;
    --wc-link: #1f66ad;
    --wc-link-hover: #0f4f90;
    --wc-nav-border: rgba(19, 46, 77, 0.14);
    --wc-nav-bg: linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(242, 248, 255, 0.96) 100%);
    --wc-nav-shadow: 0 10px 24px rgba(18, 41, 71, 0.12);
    --wc-brand-text: #11304d;
    --wc-brand-text-hover: #0d2540;
    --wc-toggle-bg: #ffffff;
    --wc-toggle-border: rgba(17, 48, 77, 0.28);
    --wc-toggle-bar: #1f4f7a;
    --wc-panel-border: rgba(17, 48, 77, 0.1);
    --wc-nav-link: #1b446c;
    --wc-nav-link-bg-hover: rgba(39, 118, 184, 0.12);
    --wc-nav-link-hover: #0f355a;
    --wc-nav-group-bg: rgba(255, 255, 255, 0.72);
    --wc-nav-group-border: rgba(31, 102, 173, 0.22);
    --wc-nav-group-label: #6a8099;
    --wc-nav-group-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(18, 41, 71, 0.1);
    --wc-nav-group-item-bg: rgba(31, 102, 173, 0.06);
    --wc-user-link-bg: rgba(255, 255, 255, 0.72);
    --wc-user-link-border: rgba(28, 79, 121, 0.12);
    --wc-user-link-bg-hover: rgba(39, 118, 184, 0.14);
    --wc-dropdown-bg: #ffffff;
    --wc-dropdown-text: #1b446c;
    --wc-dropdown-hover-bg: rgba(39, 118, 184, 0.12);
    --wc-dropdown-border: rgba(28, 79, 121, 0.16);
    --wc-dropdown-shadow: 0 12px 28px rgba(16, 39, 68, 0.15);
    --wc-user-nav-sep: rgba(31, 89, 141, 0.18);
    --wc-admin-trigger-bg: #ffffff;
    --wc-admin-trigger-border: rgba(31, 91, 150, 0.36);
    --wc-admin-trigger-text: #123c63;
    --wc-admin-trigger-shadow: 0 4px 12px rgba(18, 60, 99, 0.14);
    --wc-admin-trigger-hover-bg: #1f66ad;
    --wc-admin-trigger-hover-border: #1f66ad;
    --wc-admin-trigger-hover-text: #ffffff;
}

html[data-theme='dark'] {
    --wc-page-bg: #0f1722;
    --wc-page-bg-effect:
        radial-gradient(circle at 10% 10%, rgba(58, 118, 190, 0.28), transparent 34%),
        radial-gradient(circle at 86% 16%, rgba(23, 164, 170, 0.2), transparent 30%),
        linear-gradient(180deg, #0f1722 0%, #0d1520 55%, #101926 100%);
    --wc-page-text: #d7e4f7;
    --wc-surface-1: #162335;
    --wc-surface-2: #1a2b42;
    --wc-border-1: rgba(167, 199, 241, 0.2);
    --wc-muted-text: #9eb4cf;
    --wc-link: #79b6ff;
    --wc-link-hover: #a9d1ff;
    --wc-nav-border: rgba(161, 198, 241, 0.16);
    --wc-nav-bg: linear-gradient(180deg, rgba(18, 27, 41, 0.97) 0%, rgba(12, 21, 34, 0.96) 100%);
    --wc-nav-shadow: 0 14px 30px rgba(3, 8, 14, 0.42);
    --wc-brand-text: #e1edff;
    --wc-brand-text-hover: #ffffff;
    --wc-toggle-bg: rgba(255, 255, 255, 0.08);
    --wc-toggle-border: rgba(184, 217, 255, 0.34);
    --wc-toggle-bar: #d7e8ff;
    --wc-panel-border: rgba(184, 217, 255, 0.18);
    --wc-nav-link: #d7e8ff;
    --wc-nav-link-bg-hover: rgba(93, 161, 255, 0.2);
    --wc-nav-link-hover: #ffffff;
    --wc-nav-group-bg: rgba(255, 255, 255, 0.07);
    --wc-nav-group-border: rgba(173, 210, 255, 0.22);
    --wc-nav-group-label: #9eb4cf;
    --wc-nav-group-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 22px rgba(0, 0, 0, 0.24);
    --wc-nav-group-item-bg: rgba(255, 255, 255, 0.07);
    --wc-user-link-bg: rgba(255, 255, 255, 0.08);
    --wc-user-link-border: rgba(173, 210, 255, 0.2);
    --wc-user-link-bg-hover: rgba(93, 161, 255, 0.22);
    --wc-dropdown-bg: #192737;
    --wc-dropdown-text: #d7e8ff;
    --wc-dropdown-hover-bg: rgba(93, 161, 255, 0.22);
    --wc-dropdown-border: rgba(173, 210, 255, 0.2);
    --wc-dropdown-shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
    --wc-user-nav-sep: rgba(173, 210, 255, 0.22);
    --wc-admin-trigger-bg: rgba(255, 255, 255, 0.1);
    --wc-admin-trigger-border: rgba(173, 210, 255, 0.34);
    --wc-admin-trigger-text: #e7f2ff;
    --wc-admin-trigger-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
    --wc-admin-trigger-hover-bg: rgba(93, 161, 255, 0.28);
    --wc-admin-trigger-hover-border: rgba(173, 210, 255, 0.5);
    --wc-admin-trigger-hover-text: #ffffff;
}

html,
body {
    min-height: 100%;
}

html {
    background-color: var(--wc-page-bg);
    background-image: var(--wc-page-bg-effect);
    background-attachment: fixed;
}

body {
    min-height: 100vh;
    background-color: var(--wc-page-bg);
    background-image: var(--wc-page-bg-effect);
    background-attachment: fixed;
    color: var(--wc-page-text);
}

html[data-theme='dark'] a {
    color: var(--wc-link);
}

html[data-theme='dark'] a:hover,
html[data-theme='dark'] a:focus {
    color: var(--wc-link-hover);
}

html[data-theme='dark'] .text-muted,
html[data-theme='dark'] small,
html[data-theme='dark'] .help-block {
    color: var(--wc-muted-text);
}

html[data-theme='dark'] .jumbotron,
html[data-theme='dark'] .well,
html[data-theme='dark'] .panel,
html[data-theme='dark'] .panel-default,
html[data-theme='dark'] .thumbnail,
html[data-theme='dark'] .list-group-item,
html[data-theme='dark'] .modal-content,
html[data-theme='dark'] .dropdown-menu,
html[data-theme='dark'] .table-responsive {
    background-color: var(--wc-surface-1);
    border-color: var(--wc-border-1);
    color: var(--wc-page-text);
}

html[data-theme='dark'] .panel-heading,
html[data-theme='dark'] .panel-footer,
html[data-theme='dark'] .modal-header,
html[data-theme='dark'] .modal-footer,
html[data-theme='dark'] .list-group-item.active,
html[data-theme='dark'] .list-group-item.active:hover,
html[data-theme='dark'] .list-group-item.active:focus {
    background-color: var(--wc-surface-2);
    border-color: var(--wc-border-1);
    color: var(--wc-page-text);
}

html[data-theme='dark'] .modal-header .close,
html[data-theme='dark'] .modal-footer .close {
    color: #d5e6ff;
    opacity: 0.85;
}

html[data-theme='dark'] .table,
html[data-theme='dark'] .table > thead > tr > th,
html[data-theme='dark'] .table > tbody > tr > td,
html[data-theme='dark'] .table > tbody > tr > th,
html[data-theme='dark'] .table > tfoot > tr > td,
html[data-theme='dark'] .table > tfoot > tr > th {
    color: var(--wc-page-text);
    border-color: var(--wc-border-1);
}

html[data-theme='dark'] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

html[data-theme='dark'] .table-hover > tbody > tr:hover > td,
html[data-theme='dark'] .table-hover > tbody > tr:hover > th {
    background-color: rgba(121, 182, 255, 0.08);
}

html[data-theme='dark'] .form-control,
html[data-theme='dark'] input[type="text"],
html[data-theme='dark'] input[type="password"],
html[data-theme='dark'] input[type="email"],
html[data-theme='dark'] input[type="search"],
html[data-theme='dark'] input[type="number"],
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
    background: #132338;
    border-color: var(--wc-border-1);
    color: #e2eeff;
}

html[data-theme='dark'] .form-control:focus,
html[data-theme='dark'] input:focus,
html[data-theme='dark'] select:focus,
html[data-theme='dark'] textarea:focus {
    border-color: #76b5ff;
    box-shadow: 0 0 0 2px rgba(118, 181, 255, 0.22);
}

html[data-theme='dark'] .input-group-addon,
html[data-theme='dark'] .btn-default {
    background: #1b2c43;
    border-color: var(--wc-border-1);
    color: #dbeaff;
}

html[data-theme='dark'] .btn-default:hover,
html[data-theme='dark'] .btn-default:focus {
    background: #233a57;
    color: #ffffff;
}

html[data-theme='dark'] .alert {
    border-color: var(--wc-border-1);
}

html[data-theme='dark'] .alert-info {
    color: #ffffff; /* Augmenter le contraste avec un blanc pur */
    background-color: rgba(59, 125, 190, 0.4); /* Couleur de fond plus visible */
}

html[data-theme='dark'] .alert-success {
    color: #e6ffe6; /* Vert clair pour un meilleur contraste */
    background-color: rgba(42, 129, 81, 0.5); /* Couleur de fond plus visible */
}

html[data-theme='dark'] .alert-warning {
    color: #ffeb99; /* Jaune plus clair pour un meilleur contraste */
    background-color: rgba(166, 122, 35, 0.7); /* Couleur de fond plus visible */
}

html[data-theme='dark'] .alert-danger {
    color: darkred; /* #ffcccc; /* Rouge plus clair pour un meilleur contraste */
    background-color: rgba(168, 61, 61, 0.4); /* Couleur de fond plus visible */
}

html[data-theme='dark'] .pagination > li > a,
html[data-theme='dark'] .pagination > li > span {
    color: #d7e8ff;
    background-color: #16283d;
    border-color: var(--wc-border-1);
}

html[data-theme='dark'] .pagination > .active > a,
html[data-theme='dark'] .pagination > .active > a:hover,
html[data-theme='dark'] .pagination > .active > a:focus,
html[data-theme='dark'] .pagination > .active > span,
html[data-theme='dark'] .pagination > .active > span:hover,
html[data-theme='dark'] .pagination > .active > span:focus {
    background-color: #2f6fd6;
    border-color: #2f6fd6;
    color: #ffffff;
}

html[data-theme='dark'] .nav-tabs {
    border-bottom-color: var(--wc-border-1);
}

html[data-theme='dark'] .nav-tabs > li > a {
    color: #c6dcfb;
}

html[data-theme='dark'] .nav-tabs > li.active > a,
html[data-theme='dark'] .nav-tabs > li.active > a:hover,
html[data-theme='dark'] .nav-tabs > li.active > a:focus {
    background-color: var(--wc-surface-1);
    color: #f2f7ff;
    border-color: var(--wc-border-1);
    border-bottom-color: transparent;
}

html[data-theme='dark'] .pageTitle .Title,
html[data-theme='dark'] .pageTitle .ShortTitle,
html[data-theme='dark'] .pageTitle .titleH2,
html[data-theme='dark'] .pageTitle .title-link {
    color: #dce8ff !important;
}

/* Alternative modern custom navigation (compact, light glass style) */
.wc-modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-bottom: 1px solid var(--wc-nav-border);
    background: var(--wc-nav-bg);
    backdrop-filter: blur(8px);
    box-shadow: var(--wc-nav-shadow);
}

body.wc-system-panel-busy .wc-modern-nav {
    z-index: 10020;
}

.wc-modern-nav .wc-modern-shell {
    display: flex;
    flex-direction: column;
}

.wc-modern-nav .wc-nav-top {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wc-nav-user-slot {
    display: none;
}

.wc-modern-nav .wc-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--wc-brand-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 6px 0;
}

.wc-modern-nav .wc-brand:hover {
    color: var(--wc-brand-text-hover);
    text-decoration: none;
}

.wc-modern-nav .wc-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.wc-modern-nav .wc-menu-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--wc-toggle-border);
    border-radius: 10px;
    background: var(--wc-toggle-bg);
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wc-modern-nav .wc-menu-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--wc-toggle-bar);
}

.wc-modern-nav .wc-theme-quick-toggle {
    width: 46px;
    height: 30px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wc-user-link-border);
    border-radius: 999px;
    background: var(--wc-user-link-bg);
    color: var(--wc-nav-link);
    padding: 0;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wc-modern-nav .wc-theme-quick-toggle:hover,
.wc-modern-nav .wc-theme-quick-toggle:focus {
    background: var(--wc-user-link-bg-hover);
    border-color: var(--wc-toggle-border);
    color: var(--wc-nav-link-hover);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(47, 122, 196, 0.16);
}

.wc-modern-nav .wc-theme-quick-track {
    position: relative;
    width: 38px;
    height: 22px;
    display: block;
}

.wc-modern-nav .wc-theme-quick-icon {
    position: absolute;
    top: 50%;
    z-index: 1;
    font-size: 12px;
    line-height: 1;
    transform: translateY(-50%);
    transition: color .18s ease, opacity .18s ease;
}

.wc-modern-nav .wc-theme-quick-icon-sun {
    left: 5px;
    color: #c97800;
}

.wc-modern-nav .wc-theme-quick-icon-moon {
    right: 5px;
    color: rgba(33, 62, 92, 0.48);
}

.wc-modern-nav .wc-theme-quick-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(24, 55, 88, 0.2);
    transition: transform .2s ease, background-color .18s ease;
}

html[data-theme='dark'] .wc-modern-nav .wc-theme-quick-icon-sun {
    color: rgba(255, 210, 142, 0.42);
}

html[data-theme='dark'] .wc-modern-nav .wc-theme-quick-icon-moon {
    color: #dbeaff;
}

html[data-theme='dark'] .wc-modern-nav .wc-theme-quick-thumb {
    background: #263a56;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
    transform: translateX(16px);
}

.wc-modern-nav .wc-menu-panel {
    margin: 0;
    border-top: 1px solid var(--wc-panel-border);
}

.wc-modern-nav .wc-main-nav,
.wc-modern-nav .wc-user-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-modern-nav .wc-main-nav > li,
.wc-modern-nav .wc-user-nav > li {
    position: relative;
}

.wc-modern-nav .wc-nav-group {
    --wc-nav-group-accent: #2f7ed8;
    --wc-nav-group-accent-2: #20b486;
    --wc-nav-group-accent-rgb: 47, 126, 216;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--wc-nav-group-border);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(var(--wc-nav-group-accent-rgb), 0.14) 0%, transparent 44%),
        var(--wc-nav-group-bg);
    box-shadow: var(--wc-nav-group-shadow);
    overflow: hidden;
}

.wc-modern-nav .wc-nav-group-game {
    --wc-nav-group-accent: #22c7a5;
    --wc-nav-group-accent-2: #5ca8ff;
    --wc-nav-group-accent-rgb: 34, 199, 165;
}

.wc-modern-nav .wc-nav-group-world {
    --wc-nav-group-accent: #f0b93a;
    --wc-nav-group-accent-2: #35b7d8;
    --wc-nav-group-accent-rgb: 240, 185, 58;
}

.wc-modern-nav .wc-nav-group::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 0 0, rgba(var(--wc-nav-group-accent-rgb), 0.34) 0%, transparent 44%),
        linear-gradient(90deg, rgba(var(--wc-nav-group-accent-rgb), 0.24), transparent 34%);
    opacity: 0.38;
    pointer-events: none;
}

.wc-modern-nav .wc-nav-group > * {
    position: relative;
    z-index: 1;
}

.wc-modern-nav .wc-nav-group-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 7px 0 4px;
    color: var(--wc-nav-group-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.wc-modern-nav .wc-nav-group-icon {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--wc-nav-group-accent), var(--wc-nav-group-accent-2));
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(var(--wc-nav-group-accent-rgb), 0.34);
}

.wc-modern-nav .wc-nav-group-icon .ionicons {
    line-height: 1;
}

.wc-modern-nav .wc-nav-group-items {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-modern-nav .wc-nav-group-items > li {
    position: relative;
    min-width: 0;
}

.wc-modern-nav .wc-nav-group-items > li > a {
    display: block;
    color: var(--wc-nav-link);
    text-decoration: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.wc-modern-nav .wc-main-nav > li > a,
.wc-modern-nav .wc-user-nav > li > a {
    display: block;
    color: var(--wc-nav-link);
    text-decoration: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    transition: background-color .18s ease, color .18s ease;
}

.wc-modern-nav .wc-main-nav > li > a:hover,
.wc-modern-nav .wc-main-nav > li.open > a,
.wc-modern-nav .wc-nav-group-items > li > a:hover,
.wc-modern-nav .wc-nav-group-items > li > a:focus,
.wc-modern-nav .wc-user-nav > li > a:hover,
.wc-modern-nav .wc-user-nav > li.open > a {
    background: var(--wc-nav-link-bg-hover);
    color: var(--wc-nav-link-hover);
}

.wc-modern-nav .wc-nav-group-items > li > a:hover,
.wc-modern-nav .wc-nav-group-items > li > a:focus {
    box-shadow: inset 0 -2px 0 rgba(var(--wc-nav-group-accent-rgb), 0.7);
}

.wc-modern-nav .wc-user-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    background: var(--wc-user-link-bg);
    border: 1px solid var(--wc-user-link-border);
}

.wc-modern-nav .wc-user-nav > li > a:hover,
.wc-modern-nav .wc-user-nav > li.open > a {
    background: var(--wc-user-link-bg-hover);
}

.wc-modern-nav .dropdown-menu {
    background: var(--wc-dropdown-bg);
    border: 1px solid var(--wc-dropdown-border);
    border-radius: 12px;
    box-shadow: var(--wc-dropdown-shadow);
    margin-top: 6px;
    overflow: hidden;
    z-index: 2000;
}

.wc-modern-nav .dropdown-menu > li > a,
.wc-modern-nav .dropdown-menu > li > button {
    color: var(--wc-dropdown-text);
}

.wc-modern-nav .dropdown-menu > li > a:hover,
.wc-modern-nav .dropdown-menu > li > a:focus,
.wc-modern-nav .dropdown-menu > li > button:hover,
.wc-modern-nav .dropdown-menu > li > button:focus {
    color: var(--wc-nav-link-hover);
    background: var(--wc-dropdown-hover-bg);
}

.wc-modern-nav .wc-config-dropdown-menu {
    width: min(380px, calc(100vw - 20px));
    max-height: min(78vh, 700px);
    overflow-y: auto;
}

.wc-modern-nav .wc-config-dropdown-menu .btn-link {
    white-space: normal;
}

/* Section headers inside admin / user dropdowns */
.wc-modern-nav .dropdown-menu .wc-admin-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    padding: 6px 16px 4px;
    margin: 0;
}

/* Harmonize all right-side trigger sizes (Admin cog + User) */
.wc-modern-nav .wc-user-nav > li > a {
    font-size: 13px;
    line-height: 20px;
    min-height: 38px;
    padding: 6px 12px;
}

.wc-modern-nav .wc-user-nav .label {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    vertical-align: middle;
}

.wc-admin-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid var(--wc-nav-border);
    background: rgba(10, 24, 39, 0.72);
}

.wc-admin-bar-shell {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.wc-admin-bar-label,
.wc-admin-bar-link,
.wc-admin-bar-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.wc-admin-bar-label {
    color: #8fa6bf;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 3px;
}

.wc-admin-bar-link {
    color: #d9e8fb;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid rgba(143, 166, 191, 0.24);
    background: rgba(255, 255, 255, 0.045);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.wc-admin-migration-bar-form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.wc-admin-migration-bar-form .wc-admin-bar-link {
    border-color: rgba(240, 173, 78, 0.58);
    background: rgba(240, 173, 78, 0.18);
    color: #ffe2a6;
}

.wc-admin-migration-bar-form .wc-admin-bar-link:hover,
.wc-admin-migration-bar-form .wc-admin-bar-link:focus {
    border-color: rgba(240, 173, 78, 0.82);
    background: rgba(240, 173, 78, 0.28);
    color: #ffffff;
}

.wc-admin-migration-bar-form button.wc-admin-bar-link {
    font-family: inherit;
    cursor: pointer;
}

.wc-admin-bar-link:hover,
.wc-admin-bar-link:focus,
.wc-admin-bar-link.active {
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(73, 154, 255, 0.55);
    background: rgba(49, 118, 206, 0.42);
}

.wc-admin-bar-system {
    border-color: rgba(240, 173, 78, 0.38);
}

.wc-admin-mobile-config > .wc-admin-bar-link,
.wc-admin-bar-tools {
    color: var(--wc-admin-trigger-text);
    border-color: var(--wc-admin-trigger-border);
    background: var(--wc-admin-trigger-bg);
    box-shadow: var(--wc-admin-trigger-shadow);
}

.wc-admin-mobile-config.open > .wc-admin-bar-link,
.wc-admin-mobile-config > .wc-admin-bar-link:hover,
.wc-admin-mobile-config > .wc-admin-bar-link:focus,
.wc-admin-bar-dropdown.open > .wc-admin-bar-tools,
.wc-admin-bar-tools:hover,
.wc-admin-bar-tools:focus {
    color: var(--wc-admin-trigger-hover-text);
    border-color: var(--wc-admin-trigger-hover-border);
    background: var(--wc-admin-trigger-hover-bg);
    box-shadow: 0 0 0 2px rgba(31, 102, 173, 0.16), var(--wc-admin-trigger-shadow);
}

.wc-admin-bar-separator {
    width: 1px;
    height: 22px;
    background: rgba(143, 166, 191, 0.28);
    margin: 0 2px;
    flex: 0 0 auto;
}

.wc-admin-bar-status {
    color: #aebdd0;
    padding: 5px 9px;
    border: 1px solid rgba(143, 166, 191, 0.18);
    background: rgba(0, 0, 0, 0.12);
}

.wc-admin-bar-status.is-warning {
    color: #ffe2a6;
    border-color: rgba(240, 173, 78, 0.45);
    background: rgba(240, 173, 78, 0.14);
}

.wc-admin-bar-status.is-danger {
    color: #ffd0cf;
    border-color: rgba(217, 83, 79, 0.55);
    background: rgba(217, 83, 79, 0.18);
}

.wc-admin-bar-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.wc-admin-mobile-config {
    display: none;
}

.wc-admin-mobile-action-form {
    margin: 0;
}

.wc-admin-mobile-action {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--wc-dropdown-text);
    text-align: left;
    padding: 6px 20px;
    font-weight: 700;
}

.wc-admin-mobile-action:hover,
.wc-admin-mobile-action:focus {
    color: var(--wc-nav-link-hover);
    background: var(--wc-dropdown-hover-bg);
    outline: 0;
}

.wc-admin-mobile-action.is-warning {
    color: #b76b16;
}

.wc-admin-tablet-actions {
    display: none;
}

.wc-admin-bar .wc-admin-tools-menu {
    width: min(430px, calc(100vw - 24px));
    max-height: min(72vh, 650px);
    overflow-y: auto;
    padding: 0;
}

body.wc-system-panel-busy .wc-admin-bar .wc-admin-tools-menu {
    z-index: 10030;
}

body.wc-system-panel-locked .modal-backdrop,
body.wc-system-panel-busy .modal-backdrop {
    z-index: 10040;
}

body.wc-system-panel-locked .modal,
body.wc-system-panel-busy .modal {
    z-index: 10050;
}

.wc-system-panel {
    padding: 12px;
}

.wc-system-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 10px;
}

.wc-system-panel-head strong {
    display: block;
    color: #f2f7ff;
    font-size: 13px;
}

.wc-system-panel-head span {
    display: block;
    color: #8fa6bf;
    font-size: 11px;
    margin-top: 2px;
}

.wc-system-card {
    border: 1px solid rgba(143, 166, 191, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    padding: 10px;
}

.wc-system-card + .wc-system-card {
    margin-top: 9px;
}

.wc-system-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.wc-system-card-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbeaff;
    font-size: 12px;
    font-weight: 700;
}

.wc-system-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.wc-system-inline-label {
    color: #9fb0c4;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.wc-system-mini-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 94px;
    min-height: 24px;
    border: 1px solid rgba(217, 83, 79, 0.55);
    border-radius: 999px;
    background: rgba(217, 83, 79, 0.16);
    color: #ffb3b0;
    padding: 2px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wc-system-mini-toggle::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    border-radius: 999px;
    background: rgba(217, 83, 79, 0.36);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    transform: translateX(0);
    transition: transform 0.2s ease, background 0.18s ease;
}

.wc-system-mini-toggle.is-on {
    border-color: rgba(92, 184, 92, 0.52);
    background: rgba(92, 184, 92, 0.15);
    color: #baf5ba;
}

.wc-system-mini-toggle.is-on::before {
    background: rgba(92, 184, 92, 0.34);
    transform: translateX(calc(100% + 2px));
}

.wc-system-mini-toggle.is-loading {
    opacity: 0.72;
}

.wc-system-mini-toggle-option {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 4px;
    color: rgba(255, 179, 176, 0.66);
    transition: color 0.18s ease;
}

.wc-system-mini-toggle .is-excluded {
    color: #ffb3b0;
}

.wc-system-mini-toggle .is-included {
    color: rgba(186, 245, 186, 0.56);
}

.wc-system-mini-toggle.is-on .is-excluded {
    color: rgba(255, 179, 176, 0.56);
}

.wc-system-mini-toggle.is-on .is-included {
    color: #baf5ba;
}

.wc-system-scoring-toggle {
    width: 116px;
    border-color: rgba(91, 192, 222, 0.58);
    background: rgba(91, 192, 222, 0.16);
    color: #bfeeff;
}

.wc-system-scoring-toggle::before {
    background: rgba(91, 192, 222, 0.34);
}

.wc-system-scoring-toggle.is-on {
    border-color: rgba(240, 173, 78, 0.62);
    background: rgba(240, 173, 78, 0.17);
    color: #ffe1ad;
}

.wc-system-scoring-toggle.is-on::before {
    background: rgba(240, 173, 78, 0.34);
}

.wc-system-scoring-toggle .is-excluded {
    color: #bfeeff;
}

.wc-system-scoring-toggle .is-included {
    color: rgba(255, 225, 173, 0.58);
}

.wc-system-scoring-toggle.is-on .is-excluded {
    color: rgba(191, 238, 255, 0.58);
}

.wc-system-scoring-toggle.is-on .is-included {
    color: #ffe1ad;
}

.wc-system-scoring-options {
    display: inline-flex;
    align-items: stretch;
    gap: 3px;
    padding: 2px;
    border: 1px solid rgba(91, 192, 222, 0.38);
    border-radius: 999px;
    background: rgba(91, 192, 222, 0.12);
}

.wc-system-scoring-options form {
    margin: 0;
}

.wc-system-scoring-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(191, 238, 255, 0.72);
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.05;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.wc-system-scoring-option.is-active {
    background: rgba(240, 173, 78, 0.28);
    color: #ffe1ad;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.wc-system-scoring-option-label {
    white-space: nowrap;
}

.wc-system-scoring-option-name {
    color: inherit;
    font-size: 8px;
    opacity: 0.68;
    text-transform: uppercase;
}

.wc-system-scoring-option:hover,
.wc-system-scoring-option:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
}

.wc-system-scoring-option.is-active:hover,
.wc-system-scoring-option.is-active:focus {
    background: rgba(240, 173, 78, 0.34);
    color: #ffe1ad;
}

#colleagueScoringModal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(126, 164, 205, 0.32);
    border-radius: 10px;
    background: #14263a;
    color: #e8f2ff;
    box-shadow: 0 18px 44px rgba(7, 18, 32, 0.38);
}

#colleagueScoringModal .modal-header,
#colleagueScoringModal .modal-footer {
    border-color: rgba(126, 164, 205, 0.24);
    background: #18304a;
}

#colleagueScoringModal .modal-title {
    color: #e8f2ff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

#colleagueScoringModal .close {
    color: #e8f2ff;
    opacity: .82;
    text-shadow: none;
}

#colleagueScoringModal .modal-body {
    max-height: min(70vh, 620px);
    overflow-y: auto;
    padding: 14px 16px 16px;
}

.colleague-scoring-modal-intro {
    margin: 0 0 12px;
    color: #9eb3ca;
    font-size: 13px;
    line-height: 1.45;
}

.colleague-scoring-sections {
    display: grid;
    gap: 12px;
}

.colleague-scoring-section {
    overflow: hidden;
    border: 1px solid rgba(126, 164, 205, 0.24);
    border-radius: 8px;
    background: rgba(9, 22, 36, 0.42);
}

.colleague-scoring-section-title {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(126, 164, 205, 0.22);
    background: rgba(48, 86, 124, 0.42);
    color: #d7eaff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.colleague-scoring-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.colleague-scoring-section.is-high-score .colleague-scoring-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.colleague-scoring-field {
    position: relative;
    display: block;
    margin: 0;
    min-width: 0;
    min-height: 68px;
    padding: 12px 66px 12px 10px;
    border: 1px solid rgba(126, 164, 205, 0.22);
    border-radius: 8px;
    background: rgba(12, 28, 46, 0.82);
}

.colleague-scoring-field span {
    display: block;
    min-width: 0;
    color: #d7eaff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
}

.colleague-scoring-field input {
    -moz-appearance: textfield;
    appearance: textfield;
    position: absolute;
    top: 50%;
    right: 12px;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-color: rgba(126, 164, 205, 0.34);
    border-radius: 6px;
    background: #0d1b2c;
    color: #eef6ff;
    padding: 11px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 22px;
    transform: translateY(-50%);
}

.colleague-scoring-field input::-webkit-outer-spin-button,
.colleague-scoring-field input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.colleague-scoring-field input:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.16);
}

.colleague-scoring-field small {
    display: block;
    margin-top: 10px;
    color: #8fb0d0;
    font-size: 10px;
    line-height: 1.2;
}

.wc-system-mini-toggle:hover,
.wc-system-mini-toggle:focus {
    filter: brightness(1.12);
    outline: none;
}

.wc-system-env-reset {
    min-height: 24px;
    border-color: rgba(143, 166, 191, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: #7f8fa3;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wc-system-env-reset:not(:disabled) {
    border-color: rgba(91, 192, 222, 0.58);
    background: rgba(91, 192, 222, 0.18);
    color: #bfeeff;
}

.wc-system-env-reset:not(:disabled):hover,
.wc-system-env-reset:not(:disabled):focus {
    border-color: rgba(91, 192, 222, 0.78);
    background: rgba(91, 192, 222, 0.26);
    color: #e5faff;
}

.wc-system-env-reset:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.wc-system-pill {
    flex: 0 0 auto;
    border: 1px solid rgba(143, 166, 191, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #aebdd0;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
    white-space: normal;
}

.wc-system-pill.is-warning {
    border-color: rgba(240, 173, 78, 0.55);
    background: rgba(240, 173, 78, 0.16);
    color: #ffd98e;
}

.wc-system-pill.is-danger {
    border-color: rgba(217, 83, 79, 0.55);
    background: rgba(217, 83, 79, 0.16);
    color: #ffb3b0;
}

.wc-system-config-status {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: -2px 0 9px;
}

.wc-system-config-status span {
    border: 1px solid rgba(143, 166, 191, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #b8c8dc;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wc-system-config-status .is-ok {
    border-color: rgba(92, 184, 92, 0.52);
    background: rgba(92, 184, 92, 0.15);
    color: #baf5ba;
}

.wc-system-config-status .is-missing {
    border-color: rgba(217, 83, 79, 0.55);
    background: rgba(217, 83, 79, 0.16);
    color: #ffb3b0;
}

.wc-open-prono-privacy-state {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
    margin: -2px 0 10px;
}

.wc-open-prono-privacy-state-head,
.wc-open-prono-privacy-state-label {
    color: #9fb0c4;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wc-open-prono-privacy-state-head {
    align-self: end;
}

.wc-open-prono-privacy-state-label {
    display: flex;
    align-items: center;
}

.wc-open-prono-privacy-state-value {
    min-width: 0;
    border: 1px solid rgba(92, 184, 92, 0.42);
    border-radius: 6px;
    background: rgba(92, 184, 92, 0.13);
    color: #c8f6c8;
    padding: 5px 7px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.wc-open-prono-privacy-state-value.is-diff {
    border-color: rgba(217, 83, 79, 0.5);
    background: rgba(217, 83, 79, 0.14);
    color: #ffb9b6;
}

.wc-open-prono-privacy-form {
    display: grid;
    gap: 7px;
}

.wc-open-prono-privacy-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 104px;
    gap: 7px;
    align-items: center;
}

.wc-open-prono-privacy-row label {
    margin: 0;
    color: #9fb0c4;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.wc-open-prono-privacy-row .form-control {
    width: 100%;
    max-width: none;
    font-size: 12px;
}

.wc-open-prono-privacy-row .btn {
    width: 100%;
    min-height: 31px;
    padding-left: 8px;
    padding-right: 8px;
    white-space: normal;
}

.wc-open-prono-privacy-actions {
    display: flex;
    justify-content: flex-end;
}

.wc-open-prono-privacy-actions .btn {
    min-width: 122px;
    min-height: 31px;
}

.wc-system-env-list {
    display: grid;
    gap: 5px;
}

.wc-system-env-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(143, 166, 191, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
    color: #b8c8dc;
    padding: 5px 7px;
    font-size: 10px;
    line-height: 1.25;
}

.wc-system-env-list strong {
    color: #f2f7ff;
    font-size: 10px;
    white-space: nowrap;
}

.wc-system-env-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wc-system-env-box {
    border: 1px solid rgba(143, 166, 191, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
    color: #c5d4e7;
    padding: 8px;
    min-width: 0;
}

.wc-system-env-box.is-prod {
    border-color: rgba(71, 168, 255, 0.42);
    background: rgba(49, 130, 206, 0.12);
}

.wc-system-env-box strong,
.wc-system-env-box span,
.wc-system-env-box small {
    display: block;
}

.wc-system-env-box strong {
    color: #f2f7ff;
    font-size: 11px;
    line-height: 1.2;
}

.wc-system-env-box span {
    margin-top: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.wc-system-env-box small {
    margin-top: 5px;
    color: #9eb1c8;
    font-size: 10px;
    line-height: 1.3;
}

.wc-system-env-rules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.wc-system-env-rules span {
    border: 1px solid rgba(143, 166, 191, 0.18);
    border-radius: 6px;
    background: rgba(15, 31, 48, 0.45);
    color: #b8c8dc;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
}

.wc-system-env-rules strong {
    color: #ffffff;
}

.wc-system-full-link {
    width: 100%;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wc-system-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.wc-system-actions-single {
    grid-template-columns: 1fr;
    margin-top: 7px;
}

.wc-system-actions form,
.wc-system-card form,
.wc-system-head-actions form {
    margin: 0;
}

.wc-system-actions .btn {
    width: 100%;
    min-height: 31px;
    overflow-wrap: anywhere;
}

.wc-system-field {
    margin-bottom: 8px;
}

.wc-system-field .form-control {
    width: 100%;
    max-width: none;
    font-size: 12px;
}

.wc-system-inline-submit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 7px;
}

.wc-system-inline-submit.has-reset {
    grid-template-columns: minmax(130px, 1fr) 122px 96px;
}

.wc-system-inline-submit .form-control {
    width: 100%;
    max-width: none;
    font-size: 12px;
}

.wc-system-inline-submit .btn {
    width: 100%;
    min-height: 31px;
}

.wc-system-icon-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 7px;
}

.wc-system-icon-actions form {
    margin: 0;
}

.wc-system-icon-button {
    width: 34px;
    min-height: 31px;
    padding-left: 0;
    padding-right: 0;
}

.wc-system-test-games-row {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) 150px 34px;
    gap: 7px;
}

.wc-system-test-games-row .form-control,
.wc-system-test-games-row .btn {
    width: 100%;
    max-width: none;
    min-height: 31px;
    font-size: 12px;
}

.wc-system-card small {
    display: block;
    margin-top: 8px;
    color: #9daabc;
    font-size: 10px;
}

.admin-system-page {
    max-width: 1180px;
    margin: 18px auto 0;
    border: 1px solid rgba(15, 27, 46, 0.18);
    border-radius: 8px;
    background: #142237;
    box-shadow: 0 18px 46px rgba(15, 27, 46, 0.18);
    overflow: hidden;
}

.admin-system-page,
.admin-system-page *,
.admin-system-page *::before,
.admin-system-page *::after {
    box-sizing: border-box;
}

.admin-system-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(143, 166, 191, 0.2);
    background: #1c2d47;
}

.admin-system-kicker {
    color: #8fb4dd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-system-title {
    margin: 4px 0 0;
    color: #f2f7ff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.admin-system-lead {
    margin: 8px 0 0;
    max-width: 720px;
    color: #b8c8dc;
    font-size: 14px;
    line-height: 1.45;
}

.admin-system-head-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 220px;
}

.admin-system-migration-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(240, 173, 78, 0.42);
    border-left: 4px solid #f0ad4e;
    border-radius: 8px;
    background: rgba(240, 173, 78, 0.12);
}

.admin-system-migration-step h2 {
    margin: 3px 0 0;
    color: #fff3d8;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.admin-system-migration-step p {
    margin: 7px 0 0;
    max-width: 720px;
    color: #d9caaa;
    font-size: 13px;
    line-height: 1.4;
}

.admin-system-migration-step form {
    flex: 0 0 auto;
    margin: 0;
}

.admin-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.admin-system-grid .wc-system-card {
    margin: 0;
    min-height: 100%;
}

.fixture-sync-page {
    --fixture-bg: linear-gradient(155deg, #f5faff 0%, #edf5ff 48%, #f8fbff 100%);
    --fixture-head-bg: rgba(255, 255, 255, 0.72);
    --fixture-panel-bg: #f9fcff;
    --fixture-surface: rgba(255, 255, 255, 0.95);
    --fixture-surface-soft: #edf4fb;
    --fixture-surface-muted: #f8fbff;
    --fixture-border: #dbe7f4;
    --fixture-border-strong: #d8e5f2;
    --fixture-text: #223446;
    --fixture-title: #163d66;
    --fixture-muted: #6f8cab;
    --fixture-soft-text: #355f86;
    --fixture-kicker: #3f76a8;
    --fixture-blue: #2f7ebd;
    --fixture-subtle-bg: #edf4fb;
    --fixture-accent-soft: #e6f1ff;
    --fixture-accent-text: #2f5c86;
    --fixture-new-text: #1f5f95;
    --fixture-warning-bg: #eef6ff;
    --fixture-warning-border: #8fb6de;
    --fixture-major-bg: #e6f1ff;
    --fixture-major-hover: #dbeaff;
    --fixture-id-bg: #f3f8ff;
    --fixture-id-hover: #e8f2ff;
    --fixture-row-hover: #e6f1ff;
    --fixture-danger-bg: #fff0f2;
    --fixture-danger-border: rgba(196, 53, 70, 0.32);
    --fixture-danger-text: #8b1f2d;
    --fixture-danger-muted: #a94552;
    --fixture-shadow: 0 16px 36px rgba(17, 42, 69, 0.14);
    max-width: 1420px;
    border-color: var(--fixture-border);
    border-radius: 18px;
    background: var(--fixture-bg);
    box-shadow: var(--fixture-shadow);
    color: var(--fixture-text);
}

html[data-theme='dark'] .fixture-sync-page {
    --fixture-bg: linear-gradient(155deg, #15263b 0%, #122134 45%, #1c2236 100%);
    --fixture-head-bg: rgba(19, 35, 56, 0.78);
    --fixture-panel-bg: #14243a;
    --fixture-surface: rgba(18, 33, 52, 0.8);
    --fixture-surface-soft: #20344f;
    --fixture-surface-muted: #1d314b;
    --fixture-border: rgba(167, 199, 241, 0.22);
    --fixture-border-strong: rgba(167, 199, 241, 0.2);
    --fixture-text: #dce9f9;
    --fixture-title: #e7f0ff;
    --fixture-muted: #9cb5ce;
    --fixture-soft-text: #9eb4cf;
    --fixture-kicker: #8fb4dd;
    --fixture-blue: #347fbd;
    --fixture-subtle-bg: #1d314b;
    --fixture-accent-soft: #223854;
    --fixture-accent-text: #d7e8ff;
    --fixture-new-text: #cde4ff;
    --fixture-warning-bg: #223854;
    --fixture-warning-border: #5f9fe6;
    --fixture-major-bg: #223854;
    --fixture-major-hover: #27405e;
    --fixture-id-bg: #17273d;
    --fixture-id-hover: #1d314b;
    --fixture-row-hover: #27405e;
    --fixture-danger-bg: rgba(214, 71, 89, 0.13);
    --fixture-danger-border: rgba(237, 108, 123, 0.38);
    --fixture-danger-text: #ffd8de;
    --fixture-danger-muted: #f4adba;
    --fixture-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.fixture-sync-page .admin-system-head {
    border-bottom-color: var(--fixture-border);
    background: var(--fixture-head-bg);
}

.fixture-sync-page .admin-system-kicker {
    color: var(--fixture-kicker);
}

.fixture-sync-page .admin-system-title {
    color: var(--fixture-title);
}

.fixture-sync-page .admin-system-lead {
    color: var(--fixture-soft-text);
}

.fixture-sync-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--fixture-border);
    background: var(--fixture-panel-bg);
}

.fixture-sync-toolbar form {
    margin: 0;
}

.fixture-sync-mode-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--fixture-border);
    border-radius: 6px;
    background: var(--fixture-subtle-bg);
}

.fixture-sync-mode-option {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--fixture-soft-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.fixture-sync-mode-option:hover,
.fixture-sync-mode-option:focus {
    color: var(--fixture-title);
    text-decoration: none;
}

.fixture-sync-mode-option.is-active {
    background: var(--fixture-blue);
    color: #fff;
}

.fixture-sync-alert {
    margin: 14px;
    padding: 12px 14px;
    border: 1px solid var(--fixture-danger-border);
    border-radius: 6px;
    background: var(--fixture-danger-bg);
    color: var(--fixture-danger-text);
}

.fixture-sync-alert strong,
.fixture-sync-alert span {
    display: block;
}

.fixture-sync-alert span {
    margin-top: 4px;
    color: var(--fixture-danger-muted);
    font-size: 12px;
}

.fixture-sync-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: var(--fixture-panel-bg);
}

.fixture-sync-metric {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--fixture-border);
    border-radius: 6px;
    background: var(--fixture-surface-muted);
}

.fixture-sync-metric span {
    display: block;
    color: var(--fixture-muted);
    font-size: 11px;
    font-weight: 700;
}

.fixture-sync-metric strong {
    display: block;
    margin-top: 4px;
    color: var(--fixture-title);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.fixture-sync-metric.is-warning {
    border-color: var(--fixture-warning-border);
    background: var(--fixture-warning-bg);
}

.fixture-sync-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 14px 14px;
    padding: 10px 12px;
    border: 1px solid var(--fixture-border);
    border-radius: 6px;
    color: var(--fixture-soft-text);
    background: var(--fixture-surface);
}

.fixture-sync-range-muted {
    margin-left: auto;
    color: var(--fixture-muted);
    font-size: 11px;
    font-weight: 700;
}

.fixture-sync-table-wrap {
    margin: 14px;
    overflow-x: auto;
    border: 1px solid var(--fixture-border);
    border-radius: 6px;
    background: var(--fixture-surface);
}

.fixture-sync-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    color: var(--fixture-text);
}

.fixture-sync-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fixture-border-strong);
    color: var(--fixture-muted);
    background: var(--fixture-surface-soft);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.fixture-sync-table td {
    vertical-align: top;
    padding: 12px;
    border-bottom: 1px solid var(--fixture-border);
}

.fixture-sync-table tr:last-child td {
    border-bottom: 0;
}

.fixture-sync-table tr.is-major td {
    background: var(--fixture-major-bg);
}

.fixture-sync-table tr.is-id-only td {
    background: var(--fixture-id-bg);
}

.fixture-sync-table tbody tr:hover td {
    background: var(--fixture-row-hover);
}

.fixture-sync-table tbody tr.is-major:hover td {
    background: var(--fixture-major-hover);
}

.fixture-sync-table tbody tr.is-id-only:hover td {
    background: var(--fixture-id-hover);
}

.fixture-sync-match,
.fixture-sync-change,
.fixture-sync-api-id {
    display: grid;
    gap: 4px;
}

.fixture-sync-match strong {
    color: var(--fixture-title);
    font-size: 13px;
}

.fixture-sync-change strong {
    color: var(--fixture-new-text);
    font-size: 13px;
}

.fixture-sync-api-id strong {
    color: var(--fixture-accent-text);
    font-size: 13px;
}

.fixture-sync-match small,
.fixture-sync-change span,
.fixture-sync-api-id span,
.fixture-sync-empty {
    color: var(--fixture-muted);
    font-size: 12px;
}

.fixture-sync-match-id,
.fixture-sync-source,
.fixture-sync-fixture-id {
    display: inline-flex;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--fixture-accent-soft);
    color: var(--fixture-accent-text);
    font-size: 11px;
    font-weight: 800;
}

.fixture-sync-history {
    padding-top: 8px;
    border-top: 1px solid var(--fixture-border);
    background: var(--fixture-panel-bg);
}

.fixture-sync-history-groups {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.fixture-sync-history-group {
    overflow: hidden;
    border: 1px solid var(--fixture-border);
    border-radius: 12px;
    background: var(--fixture-surface);
}

.fixture-sync-history-group[open] {
    border-color: var(--fixture-border-strong);
}

.fixture-sync-history-group-summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 42px 13px 14px;
    color: var(--fixture-text);
    background: var(--fixture-surface-muted);
    cursor: pointer;
    list-style: none;
}

.fixture-sync-history-group-summary::-webkit-details-marker {
    display: none;
}

.fixture-sync-history-group-summary::after {
    content: '';
    position: absolute;
    right: 17px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--fixture-accent-text);
    border-bottom: 2px solid var(--fixture-accent-text);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.fixture-sync-history-group[open] .fixture-sync-history-group-summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.fixture-sync-history-group-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.fixture-sync-history-group-title strong {
    color: var(--fixture-title);
    font-size: 14px;
    font-weight: 800;
}

.fixture-sync-history-group-title small {
    color: var(--fixture-muted);
    font-size: 12px;
    font-weight: 700;
}

.fixture-sync-history-group-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.fixture-sync-history-group-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--fixture-border);
    border-radius: 999px;
    background: var(--fixture-accent-soft);
    color: var(--fixture-accent-text);
    font-size: 11px;
    font-weight: 800;
}

.fixture-sync-history-group-badges strong {
    font-size: 13px;
}

.fixture-sync-history-runs {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--fixture-panel-bg);
}

.fixture-sync-history-run {
    overflow: hidden;
    border: 1px solid var(--fixture-border);
    border-radius: 10px;
    background: var(--fixture-surface);
}

.fixture-sync-history-run[open] {
    border-color: var(--fixture-border-strong);
}

.fixture-sync-history-run-summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 40px 11px 12px;
    color: var(--fixture-text);
    background: var(--fixture-surface-soft);
    cursor: pointer;
    list-style: none;
}

.fixture-sync-history-run-summary::-webkit-details-marker {
    display: none;
}

.fixture-sync-history-run-summary::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--fixture-accent-text);
    border-bottom: 2px solid var(--fixture-accent-text);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.fixture-sync-history-run[open] .fixture-sync-history-run-summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.fixture-sync-history-group .fixture-sync-table-wrap {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--fixture-border);
    border-radius: 0;
}

.fixture-sync-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 0;
}

.fixture-sync-section-head h2 {
    margin: 0;
    color: var(--fixture-title);
    font-size: 18px;
    font-weight: 800;
}

.fixture-sync-section-head span {
    display: block;
    margin-top: 3px;
    color: var(--fixture-muted);
    font-size: 12px;
}

.fixture-sync-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    margin: 14px;
    padding: 34px 18px;
    border: 1px dashed var(--fixture-border-strong);
    border-radius: 6px;
    color: var(--fixture-soft-text);
    background: var(--fixture-surface);
}

.fixture-sync-empty-state strong {
    color: var(--fixture-title);
}

.fixture-sync-skip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 14px 14px;
}

.fixture-sync-skip-grid div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--fixture-surface-soft);
    color: var(--fixture-soft-text);
}

.fixture-sync-skip-grid span {
    font-size: 11px;
}

.fixture-sync-skip-grid strong {
    color: var(--fixture-title);
}

@media (max-width: 767px) {
    .admin-system-page {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        overflow-x: hidden;
    }

    .admin-system-head {
        display: block;
        padding: 18px;
    }

    .admin-system-head-pills {
        justify-content: flex-start;
        min-width: 0;
        margin-top: 12px;
    }

    .admin-system-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        max-width: 100%;
    }

    .admin-system-grid .wc-system-card,
    .admin-system-head,
    .admin-system-migration-step {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .admin-system-grid .wc-system-card > *,
    .admin-system-head > * {
        min-width: 0;
    }

    .admin-system-page .wc-system-actions > *,
    .admin-system-page .wc-system-inline-submit > *,
    .admin-system-page .wc-system-test-games-row > *,
    .admin-system-page .wc-system-scoring-options > *,
    .admin-system-page .wc-system-scoring-options form > * {
        min-width: 0;
    }

    .admin-system-page .wc-system-card-head {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .admin-system-page .wc-system-card-title {
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-system-page .wc-system-pill {
        align-self: flex-start;
        max-width: 100%;
        text-align: left;
    }

    .admin-system-page .wc-system-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-system-page .wc-system-scoring-options {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        border-radius: 8px;
    }

    .admin-system-page .wc-system-scoring-options form,
    .admin-system-page .wc-system-scoring-option {
        min-width: 0;
        width: 100%;
    }

    .admin-system-page .wc-system-scoring-option {
        border-radius: 6px;
    }

    #colleagueScoringModal .modal-dialog {
        width: calc(100% - 16px);
        margin: 8px;
    }

    .colleague-scoring-fields,
    .colleague-scoring-section.is-high-score .colleague-scoring-fields {
        grid-template-columns: 1fr;
    }

    .admin-system-page .wc-system-env-flow {
        grid-template-columns: 1fr;
    }

    .admin-system-page .wc-system-actions {
        grid-template-columns: 1fr;
    }

    .admin-system-page .wc-system-inline-submit,
    .admin-system-page .wc-system-inline-submit.has-reset {
        grid-template-columns: 1fr;
    }

    .admin-system-page .wc-system-inline-submit .btn,
    .admin-system-page .wc-system-inline-submit .form-control,
    .admin-system-page .wc-system-test-games-row .btn,
    .admin-system-page .wc-system-test-games-row .form-control {
        max-width: 100%;
    }

    .admin-system-page .wc-system-inline-submit .btn {
        white-space: normal;
    }

    .admin-system-page .wc-system-test-games-row {
        grid-template-columns: minmax(0, 1fr) 76px 34px;
    }

    .fixture-sync-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fixture-sync-range-muted {
        width: 100%;
        margin-left: 0;
    }

    .fixture-sync-history-group-summary,
    .fixture-sync-history-run-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .fixture-sync-history-group-badges {
        justify-content: flex-start;
    }
}

.wc-admin-bar .wc-admin-tool-button {
    display: block;
    width: 100%;
    padding: 6px 16px;
    color: var(--wc-dropdown-text);
    text-align: left;
    text-decoration: none;
    white-space: normal;
}

.wc-admin-bar .wc-admin-tool-button:hover,
.wc-admin-bar .wc-admin-tool-button:focus {
    color: var(--wc-nav-link-hover);
    background: var(--wc-dropdown-hover-bg);
    text-decoration: none;
}

.wc-admin-bar .wc-admin-tool-button.is-primary {
    color: #74b9ff;
    font-weight: 700;
}

.wc-admin-bar .wc-admin-tool-button.is-danger {
    color: #ff8d8a;
    font-weight: 700;
}

.wc-admin-tool-panel {
    padding: 8px 16px 10px;
}

.wc-admin-tool-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.wc-admin-tool-row label {
    margin: 0;
    color: #8fa6bf;
    font-size: 11px;
    white-space: nowrap;
}

.wc-admin-tool-row .form-control,
.wc-admin-tool-panel .form-control {
    flex: 1;
    min-width: 0;
    max-width: none;
    font-size: 12px;
}

.wc-admin-tool-actions {
    display: flex;
    gap: 6px;
}

.wc-admin-tool-actions .btn {
    flex: 1;
    min-width: 0;
}

.wc-admin-tool-panel small {
    display: block;
    margin-top: 8px;
    color: #9daabc;
    font-size: 10px;
}

.wc-admin-bar .wc-admin-section .label {
    margin-left: 6px;
}

.flatpickr-calendar.wc-flatpickr-compact {
    z-index: 5000;
    width: 296px;
    min-width: 296px;
    border: 1px solid #d5e0ec;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(7, 20, 38, 0.25);
    font-size: 12px;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-days,
.flatpickr-calendar.wc-flatpickr-compact .dayContainer {
    width: 100%;
    min-width: 100%;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-months {
    padding-top: 2px;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-current-month {
    font-size: 12px;
    padding-top: 2px;
}

.flatpickr-calendar.wc-flatpickr-compact .wc-flatpickr-year-select {
    margin-left: 8px;
    min-width: 72px;
    height: 24px;
    padding: 0 22px 0 8px;
    border: 1px solid #c6d3e0;
    border-radius: 6px;
    background: #fff;
    color: #22364d;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    appearance: auto;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-weekday,
.flatpickr-calendar.wc-flatpickr-compact .flatpickr-day {
    height: 34px;
    line-height: 34px;
    max-width: none;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-time {
    max-height: 38px;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-time .numInputWrapper {
    display: none;
}

.flatpickr-calendar.wc-flatpickr-compact .wc-flatpickr-time-selectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 8px;
}

.flatpickr-calendar.wc-flatpickr-compact .wc-flatpickr-hour-select,
.flatpickr-calendar.wc-flatpickr-compact .wc-flatpickr-minute-select {
    width: 72px;
    height: 28px;
    border: 1px solid #c6d3e0;
    border-radius: 6px;
    background: #fff;
    color: #22364d;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    appearance: auto;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-time input,
.flatpickr-calendar.wc-flatpickr-compact .flatpickr-time .flatpickr-time-separator,
.flatpickr-calendar.wc-flatpickr-compact .flatpickr-time .flatpickr-am-pm {
    height: 38px;
    line-height: 38px;
    font-size: 13px;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-confirm {
    display: block;
    width: calc(100% - 12px);
    margin: 6px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: #f0ad4e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-confirm svg {
    display: none;
}

.flatpickr-calendar.wc-flatpickr-compact .flatpickr-confirm:hover,
.flatpickr-calendar.wc-flatpickr-compact .flatpickr-confirm:focus {
    background: #ec971f;
}

.wc-confirm-modal .modal-content {
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(7, 20, 38, 0.26);
}

.wc-confirm-modal .modal-header {
    border-bottom: 1px solid #e5edf6;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
    border-radius: 12px 12px 0 0;
}

.wc-confirm-modal .modal-title {
    color: #173554;
    font-weight: 700;
}

.wc-confirm-modal .modal-body {
    color: #2a3f56;
    font-size: 14px;
    line-height: 1.45;
}

.wc-confirm-modal .modal-footer {
    border-top: 1px solid #e5edf6;
}

.wc-confirm-modal .btn-primary {
    border-color: #1f7ac7;
    background: #1f7ac7;
}

.wc-confirm-modal .btn-primary:hover,
.wc-confirm-modal .btn-primary:focus {
    border-color: #1669ab;
    background: #1669ab;
}

body.modal-open.wc-modal-stable-open {
    padding-right: 0 !important;
    overflow-y: scroll !important;
}

@media (min-width: 768px) {
    body.modal-open.wc-modal-stable-open.wc-scoring-announcement-open {
        overflow-y: hidden !important;
    }

    .modal-open.wc-scoring-announcement-open #scoringAnnouncementModal {
        overflow-y: hidden !important;
    }
}

body.wc-modal-stable-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

body.wc-modal-stable-open,
body.wc-modal-stable-open .navbar-fixed-top,
body.wc-modal-stable-open .navbar-fixed-bottom {
    margin-right: 0 !important;
}

.modal.wc-confirm-modal {
    padding-right: 0 !important;
}

@media (min-width: 1200px) {
    .wc-modern-nav .wc-modern-shell {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: 58px;
    }

    .wc-modern-nav .wc-nav-top {
        flex: 0 0 auto;
        min-height: 58px;
        justify-content: flex-start;
    }

    .wc-modern-nav .wc-menu-toggle {
        display: none;
    }

    .wc-modern-nav .wc-menu-panel.collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex: 1 1 auto;
        height: auto !important;
        border-top: 0;
        margin: 0;
        padding-bottom: 0;
    }

    .wc-modern-nav .wc-main-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 7px;
        min-width: 0;
        overflow: visible;
        flex: 1 1 auto;
    }

    .wc-modern-nav .wc-user-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 5px;
        margin-left: 8px;
        padding-left: 8px;
        border-left: 1px solid var(--wc-user-nav-sep);
        flex: 0 0 auto;
    }

    .wc-modern-nav .wc-main-nav > li > a,
    .wc-modern-nav .wc-nav-group-items > li > a,
    .wc-modern-nav .wc-user-nav > li > a {
        padding: 8px 11px;
        white-space: nowrap;
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items > li > a {
        padding-left: 9px;
        padding-right: 9px;
    }
}

@media (max-width: 1199px) {
    .wc-modern-nav .wc-modern-shell,
    .wc-modern-nav .wc-admin-bar-shell {
        width: 100%;
        max-width: none;
    }

    .wc-modern-nav .wc-nav-top {
        flex-wrap: nowrap;
    }

    .wc-modern-nav .wc-brand {
        max-width: calc(100% - 62px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wc-modern-nav.wc-has-team-search .wc-brand {
        margin-left: auto;
    }

    .wc-modern-nav .wc-menu-panel {
        margin: 0 -15px;
        padding: 8px 15px 12px;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }

    .wc-modern-nav .wc-main-nav > li > a,
    .wc-modern-nav .wc-nav-group-items > li > a,
    .wc-modern-nav .wc-user-nav > li > a {
        padding: 10px 11px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .wc-modern-nav .wc-main-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .wc-modern-nav .wc-nav-group {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: stretch;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
    }

    .wc-modern-nav .wc-nav-group-label {
        display: block;
        padding: 0 2px 7px;
        font-size: 10px;
    }

    .wc-modern-nav .wc-nav-group-icon {
        display: inline-flex;
        width: 38px;
        height: auto;
        min-height: 40px;
        margin-bottom: 0;
        padding: 0;
        border-radius: 12px;
        font-size: 18px;
        align-self: stretch;
    }

    .wc-modern-nav .wc-nav-group-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        align-self: center;
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items > li:nth-child(1) {
        order: 1;
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items > li:nth-child(3) {
        order: 2;
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items > li:nth-child(4) {
        order: 3;
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items > li.wc-top-scorers-nav-item {
        order: 4;
    }

    .wc-modern-nav .wc-nav-group-items > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        text-align: center;
        background: var(--wc-nav-group-item-bg, rgba(255, 255, 255, 0.18));
        border: 1px solid var(--wc-nav-group-border);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .wc-modern-nav .wc-user-nav {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed var(--wc-user-nav-sep);
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: flex-start; /* never stretch siblings when one li grows with its open menu */
    }

    .wc-modern-nav .wc-user-nav > li {
        flex: 1 1 0;
        min-width: 0;
        /* keep li as a normal block so the trigger keeps its own height
           regardless of whether the dropdown-menu is open below */
    }

    .wc-modern-nav .wc-user-nav > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        text-align: center;
        box-sizing: border-box;
    }

    /* When a dropdown is open, the trigger keeps its 50% slot,
       but the menu spans the full width of the user-nav (both columns + gap)
       so it covers the whole hamburger panel like before. */
    .wc-modern-nav .wc-user-nav > li.open > .dropdown-menu {
        display: block;
        width: calc(200% + 6px);
        max-width: none;
        left: 0;
        right: auto;
        position: static;
    }

    /* Second column (User trigger) needs to shift the menu left
       so it still starts at the left edge of the user-nav. */
    .wc-modern-nav .wc-user-nav > li.open:nth-child(2) > .dropdown-menu {
        margin-left: calc(-100% - 6px);
    }

    /* Single-button case (e.g. guest with only the language/login button):
       no shift, menu takes the full single column width. */
    .wc-modern-nav .wc-user-nav > li.open:only-child > .dropdown-menu {
        width: 100%;
        margin-left: 0;
    }

    .wc-modern-nav .wc-nav-user-slot {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        flex: 0 0 auto;
        min-width: 0;
        margin-left: auto;
    }

    .wc-modern-nav.wc-has-team-search .wc-nav-user-slot {
        margin-left: 0;
    }

    .wc-modern-nav .wc-nav-user-slot:empty {
        display: none;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 5px;
        margin: 0;
        padding: 0;
        border-top: 0;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav > li {
        flex: 0 0 auto;
        min-width: 0;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav > li > a {
        width: auto;
        max-width: min(30vw, 180px);
        min-height: 38px;
        justify-content: center;
        padding: 8px 10px;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav > li.open > .dropdown-menu,
    .wc-modern-nav .wc-nav-user-slot .wc-user-nav > li.open:nth-child(2) > .dropdown-menu,
    .wc-modern-nav .wc-nav-user-slot .wc-user-nav > li.open:only-child > .dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        width: min(280px, calc(100vw - 16px));
        max-width: none;
        margin-top: 0;
        margin-left: 0;
        box-shadow: var(--wc-dropdown-shadow);
    }

    .wc-modern-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
    }

    .wc-modern-nav .wc-config-dropdown-menu {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .wc-modern-nav .wc-admin-mobile-config.open > .wc-admin-mobile-menu {
        position: absolute;
        left: 0;
        right: auto;
        top: calc(100% + 6px);
        width: min(300px, calc(100vw - 16px));
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        float: none;
        margin-top: 0;
        margin-left: 0;
        box-shadow: var(--wc-dropdown-shadow);
    }

    body.has-fake-time-banner .wc-modern-nav .wc-admin-mobile-config.open > .wc-admin-mobile-menu {
        top: calc(100% + 6px);
        max-height: calc(100vh - 72px);
    }

    .wc-admin-bar {
        margin: 0 -15px;
    }

    .wc-admin-bar-shell {
        min-height: 42px;
        padding: 6px 25px;
        gap: 6px;
        overflow: visible;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .wc-admin-bar-shell::-webkit-scrollbar {
        display: none;
    }

    .wc-admin-bar-label {
        display: none;
    }

    .wc-admin-mobile-config {
        display: block;
        position: relative;
        flex: 0 0 auto;
    }

    .wc-admin-desktop-link {
        display: none;
    }

    .wc-admin-mobile-menu {
        position: absolute;
        left: 0;
        top: calc(100% + 6px);
        width: min(300px, calc(100vw - 16px));
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        float: none;
        margin-top: 0;
        box-shadow: var(--wc-dropdown-shadow);
    }

    body.has-fake-time-banner .wc-admin-mobile-menu {
        top: calc(100% + 6px);
        max-height: calc(100vh - 72px);
    }

    .wc-admin-bar-link,
    .wc-admin-bar-status {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 11px;
        gap: 6px;
        flex: 0 0 auto;
    }

    .wc-admin-bar-status {
        margin-left: auto;
    }

    .wc-admin-bar-separator {
        flex: 0 0 auto;
        height: 20px;
    }

    .wc-admin-bar-dropdown {
        position: static;
    }

    .wc-admin-bar .wc-admin-tools-menu {
        position: fixed;
        left: 8px;
        right: 8px;
        top: 106px;
        width: auto;
        max-height: calc(100vh - 124px);
        float: none;
        margin-top: 0;
        box-shadow: var(--wc-dropdown-shadow);
    }

    body.has-fake-time-banner .wc-admin-bar .wc-admin-tools-menu {
        top: 150px;
        max-height: calc(100vh - 168px);
    }

    .wc-modern-nav .wc-admin-tablet-actions .wc-admin-tools-menu {
        position: fixed;
        left: 8px;
        right: 8px;
        top: 64px;
        width: auto;
        max-height: calc(100vh - 82px);
        float: none;
        margin-top: 0;
        box-shadow: var(--wc-dropdown-shadow);
    }

    body.has-fake-time-banner .wc-modern-nav .wc-admin-tablet-actions .wc-admin-tools-menu {
        top: 108px;
        max-height: calc(100vh - 126px);
    }

    .wc-system-panel {
        padding: 9px;
    }

    .wc-system-card {
        padding: 9px;
    }

    .admin-system-migration-step {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-system-migration-step .btn {
        width: 100%;
    }

    .wc-system-card-title {
        font-size: 11px;
    }

    .wc-system-pill {
        max-width: 50%;
        font-size: 9px;
    }

    .wc-system-actions {
        grid-template-columns: 1fr 1fr;
    }

    .wc-system-test-games-row {
        grid-template-columns: minmax(112px, 1fr) 76px 34px;
    }

    .wc-system-inline-submit {
        grid-template-columns: minmax(94px, 1fr) 96px;
    }

    .wc-system-inline-submit.has-reset {
        grid-template-columns: minmax(82px, 1fr) 106px 88px;
    }

    .wc-modern-nav .dropdown-menu > li > a,
    .wc-modern-nav .dropdown-menu > li > button {
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .wc-modern-nav .wc-nav-top {
        justify-content: flex-start;
        gap: 8px;
    }

    .wc-modern-nav .wc-brand {
        margin-left: auto;
    }

    .wc-admin-tablet-actions {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
        min-width: 0;
    }

    .wc-admin-tablet-actions:empty {
        display: none;
    }

    .wc-admin-tablet-actions .wc-admin-mobile-config {
        display: block;
        position: relative;
        flex: 0 0 auto;
    }

    .wc-admin-tablet-actions .wc-admin-bar-status {
        margin-left: 0;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wc-admin-tablet-actions .wc-admin-bar-dropdown {
        position: static;
    }

    .wc-modern-nav .wc-admin-bar {
        display: none;
    }

    .wc-team-search-wrap {
        flex: 1 1 220px;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .wc-modern-nav .wc-nav-user-slot .wc-user-nav > li > a {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        gap: 0;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav-label {
        display: none;
    }

    .wc-modern-nav .wc-nav-user-slot .wc-user-nav .caret {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .wc-modern-nav.wc-has-team-search .wc-nav-top {
        gap: 7px;
    }

    .wc-modern-nav.wc-has-team-search .wc-team-search-wrap {
        flex: 1 1 auto;
        max-width: none;
    }

    .wc-modern-nav .wc-brand {
        max-width: none;
    }

    .wc-modern-nav .wc-brand span {
        display: none;
    }

    .wc-modern-nav .wc-nav-group-world .wc-nav-group-items > li:last-child {
        grid-column: auto;
    }
}

@media (max-width: 1199px) {
    html[data-theme='dark'] .wc-modern-nav .wc-nav-group {
        background:
            linear-gradient(135deg, rgba(var(--wc-nav-group-accent-rgb), 0.18) 0%, rgba(12, 24, 38, 0.88) 46%, rgba(12, 24, 38, 0.72) 100%);
        border-color: rgba(var(--wc-nav-group-accent-rgb), 0.28);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(0, 0, 0, 0.22);
    }

    html[data-theme='dark'] .wc-modern-nav .wc-nav-group-icon {
        background: linear-gradient(145deg, var(--wc-nav-group-accent), var(--wc-nav-group-accent-2));
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(var(--wc-nav-group-accent-rgb), 0.28);
    }

    html[data-theme='dark'] .wc-modern-nav .wc-nav-group-items > li > a {
        background: rgba(255, 255, 255, 0.055);
        border-color: rgba(var(--wc-nav-group-accent-rgb), 0.2);
        color: #e4f0ff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 4px 10px rgba(0, 0, 0, 0.12);
    }

    html[data-theme='dark'] .wc-modern-nav .wc-nav-group-items > li > a:hover,
    html[data-theme='dark'] .wc-modern-nav .wc-nav-group-items > li > a:focus {
        background: rgba(var(--wc-nav-group-accent-rgb), 0.18);
        border-color: rgba(var(--wc-nav-group-accent-rgb), 0.36);
        color: #ffffff;
    }
}

/* @media (min-width: 768px) {
    body .container {
        width: 90%;
        max-width: 1458px;
    }
} */

@media (min-width: 768px) {
    body .container.body-content {
        width: min(94vw, 2400px);
        max-width: 2400px;
    }
}
