        body {
            margin: 0;
            display: flex;
            height: 100vh;
            background-color: #f0f0f0;
            font-family: Arial, sans-serif;
            overflow: hidden;
            --fullscreen-map-max-size: 9999px;
            --center-scale: 1;
            --font-scale: 1;
        }

        .center-panel {
            --center-scale: 1.1;
            --font-scale: 1.05;
            background: transparent;
            color: #333;
            padding: calc(0.34vh * var(--center-scale)) calc(1.36vh * var(--center-scale)) calc(1.02vh * var(--center-scale)) calc(1.36vh * var(--center-scale));
            display: flex;
            flex-direction: column;
            z-index: 10;
            overflow-y: auto;
            min-height: 0;
        }




        .center-panel h1 {
            font-size: calc(2.04vh * var(--center-scale) * var(--font-scale));
            margin-top: 0;
            border-bottom: calc(0.17vh * var(--center-scale)) solid #34495e;
            padding-bottom: calc(0.34vh * var(--center-scale));
            margin-bottom: calc(0.34vh * var(--center-scale));
            text-align: center;
            cursor: default;
            user-select: none;
            flex-shrink: 0;
        }

        .main-layout {
            flex: 1;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
            gap: 1.3333vh;
            padding: 1.3333vh;
            box-sizing: border-box;
            background-color: #ddd;
        }

        .side-column {
            display: grid;
            grid-template-rows: 1fr 1fr;
            gap: 1.3333vh;
            min-height: 0;
        }

        .grid-cell {
            background: white;
            border-radius: 1.3333vh;
            box-shadow: 0 0.2667vh 0.5333vh rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            padding: 0;
            overflow: hidden;
        }

        .grid-cell.map-left {
            aspect-ratio: 1 / 1;
            height: 100%;
            width: auto;
            justify-self: center;
        }

        .grid-cell.map-right {
            aspect-ratio: 1 / 1;
            height: 100%;
            width: auto;
            justify-self: center;
        }

        body.is-fullscreen .grid-cell.map-left,
        body.is-fullscreen .grid-cell.map-right {
            max-width: var(--fullscreen-map-max-size);
            max-height: var(--fullscreen-map-max-size);
            align-self: center;
        }

        body.is-fullscreen .grid-cell.table-col {
            height: 100%;
            max-height: var(--fullscreen-map-max-size);
            align-self: center;
        }

        .table-col h4 {
            margin: 0 0 1.2vh 0;
            color: #333;
            font-size: 2.4vh;
            text-align: center;
            cursor: default;
            user-select: none;
            flex-shrink: 0;
        }

        button {
            padding: calc(0.85vh * var(--center-scale)) calc(1.36vh * var(--center-scale));
            font-size: calc(1.36vh * var(--center-scale) * var(--font-scale));
            font-weight: bold;
            color: white;
            background-color: #007bff;
            border: none;
            border-radius: calc(0.51vh * var(--center-scale));
            cursor: pointer;
            transition: background 0.3s;
            width: 100%;
            margin-bottom: calc(0.68vh * var(--center-scale));
        }

        button:hover {
            background-color: #0056b3;
        }

        #btn-fullscreen {
            background-color: transparent;
            color: #888;
            width: auto;
            align-self: center;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: calc(0.34vh * var(--center-scale));
            margin-bottom: calc(0.34vh * var(--center-scale));
            border-radius: calc(0.34vh * var(--center-scale));
            transition: all 0.2s;
        }

        #btn-fullscreen:hover {
            background-color: #007bff;
            color: white;
        }

        #btn-fullscreen svg {
            position: static;
            width: calc(2.04vh * var(--center-scale));
            height: calc(2.04vh * var(--center-scale));
            background-color: transparent;
        }

        .toggle-container {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: calc(0.68vh * var(--center-scale));
            margin-top: calc(0.51vh * var(--center-scale));
            background: transparent;
            padding: 0;
            border-radius: calc(0.51vh * var(--center-scale));
            color: #333;
            width: 100%;
            flex-shrink: 0;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: calc(3.06vh * var(--center-scale));
            height: calc(1.7vh * var(--center-scale));
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: calc(1.19vh * var(--center-scale));
            width: calc(1.19vh * var(--center-scale));
            left: calc(0.255vh * var(--center-scale));
            bottom: calc(0.255vh * var(--center-scale));
            background-color: white;
            transition: .4s;
        }

        input:checked+.slider {
            background-color: #3498db;
        }

        #label-free,
        #label-comp {
            font-size: calc(1.02vh * var(--center-scale) * var(--font-scale));
            font-weight: bold;
            transition: color 0.3s;
            user-select: none;
        }

        #label-free.active,
        #label-comp.active {
            color: #007bff;
        }

        #label-free.inactive,
        #label-comp.inactive {
            color: #999;
        }

        input:focus+.slider {
            box-shadow: 0 0 calc(0.17vh * var(--center-scale)) #3498db;
        }

        input:checked+.slider:before {
            transform: translateX(calc(1.36vh * var(--center-scale)));
        }

        .slider.round {
            border-radius: calc(1.7vh * var(--center-scale));
        }

        .slider.round:before {
            border-radius: 50%;
        }

        .global-buttons {
            display: flex;
            flex-direction: column;
            margin-top: calc(0.34vh * var(--center-scale));
            gap: calc(0.68vh * var(--center-scale));
            flex-shrink: 0;
        }

        .global-buttons>div {
            flex-shrink: 0;
        }

        button:disabled {
            background-color: #7f8c8d;
            cursor: default !important;
            opacity: 0.6;
        }

        .comp-box {
            padding: calc(0.68vh * var(--center-scale)) calc(0.85vh * var(--center-scale));
            margin: 0;
            border-radius: calc(0.68vh * var(--center-scale));
            width: 100%;
            box-sizing: border-box;
            box-shadow: 0 calc(0.17vh * var(--center-scale)) calc(0.34vh * var(--center-scale)) rgba(0, 0, 0, 0.1);
            color: #333;
            transition: background-color 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
        }

        .comp-box .box-title {
            font-size: calc(1.36vh * var(--center-scale) * var(--font-scale));
            font-weight: bold;
            margin-top: calc(0.34vh * var(--center-scale));
            margin-bottom: calc(0.68vh * var(--center-scale));
            cursor: default;
            user-select: none;
            text-align: center;
        }

        .comp-box button {
            width: 90%;
        }

        #box-random1,
        #box-select-team {
            transition: margin-top 0.3s ease;
        }

        body.is-fullscreen #box-random1,
        body.is-fullscreen #box-select-team {
            margin-top: calc(0.8vh * var(--center-scale));
        }

        .state-inactive {
            background-color: #aeb6bf;
            color: #566573;
        }

        .state-inactive .box-title {
            color: #566573;
        }

        .state-active {
            background-color: #ffffff;
            color: #333;
        }

        .state-generating {
            background-color: #fff3cd;
            color: #856404;
        }

        .state-generating .box-title {
            color: #856404;
        }

        .state-completed {
            background-color: #d4edda;
            color: #155724;
        }

        .state-completed .box-title {
            color: #155724;
        }

        .state-selected {
            background-color: #dbeafe;
            color: #1e40af;
        }

        .state-selected .box-title {
            color: #1e40af;
        }

        .btn-team.team-active {
            background-color: #d6a100 !important;
            color: white !important;
            opacity: 1 !important;
            cursor: pointer !important;
        }

        .btn-team.team-completed {
            background-color: #d4edda !important;
            color: #155724 !important;
            opacity: 1 !important;
            cursor: default !important;
        }

        .btn-team.team-disabled {
            background-color: #7f8c8d !important;
            color: white !important;
            opacity: 0.6 !important;
            cursor: default !important;
        }

        #popup-skip-btn:disabled {
            background-color: white !important;
            color: #6c757d !important;
            cursor: default !important;
        }

        #popup-action-btn:disabled {
            opacity: 1 !important;
        }

        .btn-team.team-enabled {
            background-color: #007bff !important;
            color: white !important;
            opacity: 1 !important;
            cursor: pointer !important;
        }

        .btn-team.team-enabled:hover {
            background-color: #0056b3 !important;
        }

        .cell-body {
            display: flex;
            flex: 1;
            gap: 1.3333vh;
            min-height: 0;
            justify-content: center;
        }

        .table-col {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 1.3333vh;
            box-sizing: border-box;
        }

        .map-col {
            flex: 1;
            position: relative;
        }

        svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: white;
            border-radius: 0.8vh;
            cursor: default;
            user-select: none;
        }

        .info-table {
            width: 100%;
            max-width: 35.5556vh;
            margin: 0 auto;
            border-collapse: collapse;
            text-align: center;
            font-size: 2.4vh;
            font-weight: bold;
            table-layout: fixed;
            cursor: default;
            user-select: none;
            flex-shrink: 0;
        }

        .info-table th,
        .info-table td {
            border: 0.2667vh solid #ccc;
            padding: 0.6vh 0;
        }

        .info-table td:first-child {
            width: 35%;
        }

        .info-table td:last-child {
            width: 65%;
        }

        .info-table th {
            background-color: #e9ecef;
            color: #333;
        }

        .info-table td {
            font-weight: bold;
        }

        #small-realtime-clock {
            font-family: 'Courier New', monospace;
            font-size: calc(2.55vh * var(--center-scale) * var(--font-scale));
            font-weight: bold;
            text-align: center;
            cursor: pointer;
            color: #000;
            padding: calc(0.34vh * var(--center-scale)) 0;
            margin-bottom: calc(0.34vh * var(--center-scale));
            background: transparent;
            width: 100%;
            box-sizing: border-box;
            transition: color 0.2s ease;
            flex-shrink: 0;
            margin-top: auto;
        }

        #small-realtime-clock:hover {
            color: #007bff;
        }