* {
    font-family: "Poppins", Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: #f4f4f4;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
p#pleaseselect {
    text-align: center;
}
@media (max-width: 1180px) {

    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {

    .container-md,
    .container-sm,
    .container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {

    .container-sm,
    .container {
        max-width: 540px;
    }
}

@media (max-width: 767.5px) {
    div.side_buttons {
        scale: 0.8 !important;
        gap: 0px;
    }

    div.wrapper {
        margin-top: 10px;
    }

    .site-header.header-sm h1 {
        font-size: clamp(1.35rem, 5.2vw, 1.8rem);
    }
}

@media (max-width: 992px) {
    header img {
        margin-right: 0px !important;
    }

    .site-header .brand {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        text-align: left;
    }

    header img {
        order: 1;
        width: 78px;
        height: 78px;
        margin: 0;
    }

    header .side_buttons {
        order: 2;
        gap: 8px;
        margin-top: 9px;
    }

    header h1 {
        order: 3;
        flex: 1 1 100%;
        margin: 4px 0 0;
        text-align: center;
    }

    table {
        width: 100%;
        border-radius: 12px;
    }

    th,
    td {
        padding: 6px 4px;
        font-size: 12px;
    }

    td:first-child {
        font-size: 16px;
    }

    .keymap {
        width: 100%;
        padding: 0 16px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }

    h1 {
        font-size: clamp(1.65rem, 4.2vw, 2.25rem);
    }

    th {
        font-size: 13px;
    }

    td {
        font-size: 11.5px;
        line-height: 1.9;
    }

    .form label {
        font-size: 14px;
    }

    select {
        font-size: 13px;
    }

    .button,
    button {
        font-size: 14px;
    }

    .keymap {
        font-size: 13px;
    }

    .keymap div:first-child {
        position: relative;
        text-align: center;
        padding-left: 42px;
    }

    .keymap div:first-child>span {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0;
    }
}

h1 {
    color: #000000;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    margin-bottom: 20px;
    font-family: coolvetica1;
    font-weight: 500;
    letter-spacing: 1px;

}

label {
    font-size: 17px;
}

table {
    width: 90%;
    margin: 5px auto 30px auto;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.weather-cell {
    background-color: #f0f8ff;
    font-weight: bold;
    text-align: center;
}

.weather-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
}

.form {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 0 45px;
    align-items: center;
}

.form label {
    grid-column: span 1;
    text-align: center;
    padding-right: 5px;
}

.form select {
    grid-column: span 2;
}

.form button {
    grid-column: 4 / span 3;
    margin-top: 20px;
    justify-self: center;
    align-self: center;
}

.form {
    grid-template-columns: repeat(9, 1fr);
}

.side_buttons {
    display: flex;
    justify-content: center;
    gap: 10px;

}

#cut {
    background-color: #336699;

}

.button {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.09), 0 6px 15px 0 rgba(0, 0, 0, 0.09);
    padding: 10px 17px 10px 17px;
    color: white;
    border-radius: 20px;
    margin-top: 20px;
    justify-self: center;
    align-self: center;
}

.button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.button span:after {
    position: absolute;
    opacity: 0;
    top: 2px;
    transform: scale(1.2);
    right: 10px;
    transition: 0.5s;
}

#cut:hover {
    background-color: #1e3a5f;
}

.button:hover span {
    padding-right: 30px;
}

.button:hover span:after {
    opacity: 1;
    right: 0;
}

#cut span:after {
    content: url(images/search.svg);
    filter: invert(1);
    display: inline-block;
    width: 12px;
    height: 12px;
    top: -7px;
    right: 15px;
    transform: scale(0.05);
}

th {
    background-color: #336699;
    color: white;
    padding: 10px;
    font-family: Poppins, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
}

td {
    line-height: 2.0;
    padding: 4px 10px;
    text-align: center;
    height: 40px;
    vertical-align: middle;
    box-sizing: border-box;
    background-clip: padding-box;
    transition: transform 0.3s ease, z-index 0.01s !important;
    word-break: break-word;
    transform-origin: center;
    position: relative;
    z-index: 1;
}

td:hover {
    transform: scale(1.04);
    z-index: 10;
}

td:first-child {
    background-color: #ffffff !important;
    color: #000000da !important;
    font-weight: 500;
    font-size: 20px;
    padding: 10px 2px;
    width: 10%;
    font-family: coolvetica1;
    position: sticky;
    left: 0;
    z-index: 4;
    background-clip: padding-box;
    transform-origin: left center;
}

table th.diagonal-cell,
table th:not(:first-child) {
    position: sticky;
    top: 0;
    z-index: 5;
}

.dark-mode table td:first-child {
    background-color: #29292a !important;
}
.dayCell {
    background-color: #44B6AE !important;
    color: #fff;
    font-weight: bold;
}

.g1 {
    background-color: #4c9be1 !important;
    color: #fff;
}

.g2 {
    background-color: #9b59b6 !important;
    color: #fff;
}

.g3 {
    background-color: #ff6b6b !important;
    color: #fff;
}

.g4 {
    background-color: #ff7f50 !important;
    color: #fff;
}

.g5 {
    background-color: #fbc531 !important;
    color: #000;
}

.g6 {
    background-color: #48c774 !important;
    color: #fff;
}

.keymap {
    display: grid;
    width: min(100%, 960px);
    margin: 15px auto 0;
    padding: 0 18px;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-items: stretch;
    align-items: stretch;
    font-size: 14px;
}

.keymap div {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 44px;
}

.keymap span {
    width: 24px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    background-color: currentColor;
    margin-right: 8px;
}

select {
    padding: 8px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: white;
}

.tooltip {
    position: relative;
    display: inline-block;
    font-size: 12px;
}

.tooltip .tooltip-text {
    font-size: 10px;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 4;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

button {
    background-color: #336699;
    color: white;
    padding: 9px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.distance-text {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    font-size: 9px;
    position: relative;
    top: -1px;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.1;
    padding: 5px 7px 5px;
    font-size: 9px;
    background-color: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    vertical-align: baseline;
    position: relative;
}

.dark-mode .distance-text {
    background-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 520px) {
    .distance-text {
        margin-top: 2px;
        font-size: 8.5px;
    }

    td,
    th {
        padding: 5px 3px;
    }

    table td:first-child {
        min-width: 82px;
    }

    header {
        justify-content: center;
    }

    header img {
        order: 1;
        margin-right: 6px;
    }

    header .side_buttons {
        order: 2;
        flex-wrap: nowrap;
        margin-top: 9px;
    }

    header h1 {
        order: 3;
        font-size: clamp(1.2rem, 6.2vw, 1.6rem);
        margin-top: 6px;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .form label,
    .form select {
        grid-column: 1 / -1;
    }

    .form label {
        margin-top: 4px;
    }

    .form select {
        width: 100%;
    }

    .keymap {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
        font-size: 12px;
    }

    .keymap div {
        padding: 8px 16px;
        min-height: 38px;
    }

    th,
    td {
        font-size: 11px;
    }

    td:first-child {
        font-size: 14px;
        line-height: 1.3;
    }

    .dayCell {
        white-space: nowrap;
    }

    h1 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    th {
        font-size: 11px;
    }

    td {
        font-size: 10.5px;
        line-height: 1.55;
    }

    td:first-child {
        font-size: 13px;
    }

    .form label {
        font-size: 12.5px;
    }

    select {
        font-size: 12px;
    }

    .button,
    button {
        font-size: 13px;
        padding: 8px 14px;
    }

    .keymap {
        font-size: 11.5px;
    }
    .keymap div:first-child {
        font-size: 12px !important;
    }
    .keymap div {
        font-size: 12px !important;
        line-height: 1.25;
    }
    td:not(:first-child) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    td:not(:first-child):active,
    td:not(:first-child):focus {
        white-space: normal;
        overflow: visible;
    }

    .keymap div:first-child {
        position: relative;
        justify-content: center;
        text-align: center;
        padding-left: 32px;
    }

    .keymap div:first-child>span {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0;
    }

    .button,
    button,
    select {
        width: 100%;
    }

    td:not(:first-child) {
        font-size: 10px;
    }

    .credits-footer {
        font-size: 12px;
    }

    .credits-footer .small-text {
        font-size: 10px;
    }

    .site-header {
        margin-bottom: clamp(16px, 5vw, 24px) !important;
    }

    .form .button {
        min-width: clamp(150px, 65vw, 220px);
        margin-top: 16px;
    }
}
@media (max-width: 446px) {
    .keymap div:first-child {
        justify-content: left !important;
    }
}
.dark-mode {
    background-color: #3a3c3d;
    color: #e0e0e0;
}

.dark-mode h1 {
    color: #ffffff;
}

.dark-mode table {
    background-color: #29292a;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.dark-mode th {
    background-color: #31437b;
    color: #ffffff;
}

.dark-mode td {
    background-color: #29292a;
    color: #ffffff;
}

.dark-mode td:first-child {
    background-color: #29292a !important;
    color: #ffffff !important;
}

.dark-mode .dayCell {
    background-color: #29292a !important;
    color: #ffffff;
}

.dark-mode .keymap div {
    background: #29292a;
    color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4);
}

.dark-mode .keymap span {
    outline: 1px rgba(255, 255, 255, 0.6) dashed;
}

.dark-mode select {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
}

.dark-mode button {
    background-color: #31437b;
    color: white;
}

.dark-mode button:hover {
    background-color: #2b3b6b;
}

body,
table,
th,
td,
button,
select {
    transition: background-color .5s ease, color .5s ease;
}

.dark-mode .keymap {
    transition: background-color 1s ease !important;
}

header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
    filter: drop-shadow(0px 5px 7px rgba(0, 0, 0, 0.2));
}

.no-drag {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto;
}

.wrapper {
    vertical-align: middle;
    transform: scale(0.9);
    transform-origin: center;
    filter: drop-shadow(0px 5px 7px rgba(0, 0, 0, 0.2));
    will-change: filter, transform;
    margin-top: 7px;
}

.switch {
    position: relative;
    width: 130px;
    height: 50px;
    margin: 0px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url(images/light.png);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 25px;
    box-shadow: inset 0px 0px 2px rgba(255, 255, 255, 0.626);
    transition: background-image .5s ease-in-out, box-shadow 0.5s ease-in-out;
    outline: none;
    cursor: pointer;
    overflow: hidden;
}

.switch:checked {
    background-image: url(images/dark.png);
    box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.626);
    background-size: cover;
    transition: background-image 0.7s ease-in-out, box-shadow 0.5s ease-in-out;
}

.switch:after {
    content: '';
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    left: 2px;
    top: 2px;
    transform: translateX(0px);
    animation: off .5s forwards cubic-bezier(.8, .5, .2, 1.4);
    box-shadow: inset 5px -5px 4px rgba(53, 53, 53, 0.3);
}

@keyframes off {
    0% {
        transform: translateX(1px);
        width: 46px;
    }

    50% {
        width: 75px;
        border-radius: 25px;
    }

    100% {
        transform: translateX(79px);
        width: 46px;
    }
}

.switch:checked:after {
    animation: on .5s forwards cubic-bezier(.8, .5, .2, 1.4);
    box-shadow: inset -5px -5px 4px rgba(53, 53, 53, 0.3);
}

@keyframes on {
    0% {
        transform: translateX(79px);
        width: 46px;
    }

    50% {
        width: 75px;
        border-radius: 25px;
    }

    100% {
        transform: translateX(1px);
        width: 46px;
    }
}

.switch:checked:before {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    left: 80px;
    top: 5px;
    transform-origin: 53px 10px;
    background-color: transparent;
    box-shadow: 5px -1px 0px #fff;
    filter: blur(0px);
    animation: sun .5s forwards ease;
}

@keyframes sun {
    0% {
        transform: rotate(0deg);
        background-color: #f5daaa;
        box-shadow: 0px 0px 10px #f5deb4,
            0px 0px 20px #f5deb4,
            0px 0px 30px #f5deb4,
            inset 0px 0px 2px #efd3a3;
        filter: blur(1px);
    }

    50% {
        background-color: transparent;
        box-shadow: 5px -1px 0px #fff;
        filter: blur(0px);
    }

    100% {
        transform: rotate(170deg);
        background-color: transparent;
        box-shadow: 5px -1px 0px #fff;
        filter: blur(0px);
    }
}

.switch:before {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    left: 80px;
    top: 5px;
    filter: blur(1px);
    background-color: transparent;
    box-shadow: 5px -1px 0px #fff;
    transform-origin: 53px 10px;
    animation: moon .5s forwards ease;
}

@keyframes moon {
    0% {
        transform: rotate(170deg);
        background-color: transparent;
        box-shadow: 5px -1px 0px #fff;
        filter: blur(0px);
    }

    20% {
        background-color: transparent;
        box-shadow: 5px -1px 0px #fff;
        filter: blur(0px);
    }

    100% {
        transform: rotate(0deg);
        background-color: #f5daaa;
        box-shadow: 0px 0px 10px #f5deb4,
            0px 0px 20px #f5deb4,
            0px 0px 30px #f5deb4,
            inset 0px 0px 2px #efd3a3;
        filter: blur(1px);
    }
}

.switch:before,
.switch:checked:before {
    left: 15px;
}

#button {
    position: relative;
    transform: translateY(2px);
    display: block;
    min-width: 120px;
    height: 45px;
    background-color: #002768;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    filter: drop-shadow(0px 5px 7px rgba(0, 0, 0, 0.2));
}

#knob {
    width: 35px;
    height: 35px;
    background-color: #fff;
    position: absolute;
    top: 5.5px;
    left: 5px;
    border-radius: 50%;
    transition: 0.4s ease left, 0.4s ease background-color;
    background-image: url(images/english.webp);
    background-size: cover;
    background-position: center;
}

#language-text {
    position: absolute;
    top: 50%;
    left: 55px;
    transform: translateY(-45%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    transition: color 0.4s ease, left 0.4s ease;
}

.active {
    background-color: #002654 !important;
}

.active #knob {
    left: 80px;
    background-image: url(images/french.webp);
}

.active #language-text {
    left: 15px;
}

.custom-tooltip {
    position: absolute;
    display: none;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.credits-footer {
    margin: clamp(40px, 6vw, 64px) auto 25px;
    padding: clamp(18px, 3vw, 30px) clamp(16px, 4vw, 40px) clamp(12px, 2.5vw, 24px);
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    line-height: 1.45;
    width: 100%;
    max-width: 960px;
}

.credits-footer p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 6px;
    justify-content: center;
    align-items: center;
}

.small-text {
    font-size: 12px;
    margin-top: 5px;
    color: #999;
}

.dark-mode .credits-footer {
    color: #aaa;
    border-top-color: #444;
}

.dark-mode .small-text {
    color: #777;
}

p a {
    text-decoration: none;
    color: #494949;
}

.dark-mode p a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.dark-mode .name {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.dark-mode .name:hover {
    color: #ffffff;
}

.dark-mode p a:hover {
    color: #ffffff;
}

.diagonal-cell {
    position: relative;
    background-color: #336699;
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(3px);
}

.diagonal-cell .top-right {
    position: absolute;
    top: 10%;
    right: 10%;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transform: translate(10%, -10%);
}

.diagonal-cell .bottom-left {
    position: absolute;
    bottom: 10%;
    left: 10%;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transform: translate(-10%, 10%);
}

.diagonal-cell .top-left {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transform: translate(-10%, -10%);
}

.diagonal-cell .bottom-right {
    position: absolute;
    bottom: 10%;
    right: 10%;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transform: translate(10%, 10%);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin: 0 auto 25px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    transition: background-color .35s ease, box-shadow .35s ease;
}

.table-wrapper table {
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 35px 10px;
    font-size: 15px;
    color: #444;
}

.dark-mode .loading {
    color: #ddd;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: #336699;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.dark-mode .spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4c7bd1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

:focus-visible {
    outline: 3px solid #336699;
    outline-offset: 2px;
}

.dark-mode :focus-visible {
    outline-color: #6d90ff;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    td:hover {
        transform: none !important;
    }

    .site-header #button,
    .site-header .wrapper .switch {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .form {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px 6px;
        margin: 0 15px;
    }

    .form button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 10px;
    }

    td:first-child {
        font-size: 18px;
    }

    h1 {
        font-size: clamp(1.8rem, 3.6vw, 2.55rem);
    }

    th {
        font-size: 14px;
    }

    td {
        font-size: 12.5px;
    }

    .form label {
        font-size: 15px;
    }

    select {
        font-size: 12px;
    }

    .button,
    button {
        font-size: 15px;
    }

    .keymap {
        font-size: 13.5px;
    }

    td:not(:first-child) {
        font-size: 11.5px;
    }
}

@media (max-width: 680px) {
    header img {
        width: 70px;
        height: 70px;
    }

    #button {
        transform: scale(.95);
    }

    .wrapper {
        transform: scale(.85);
    }

    header h1 {
        letter-spacing: .5px;
    }

    .form {
        grid-template-columns: repeat(2, 1fr);
    }

    .form label {
        grid-column: 1 / 2;
        text-align: left;
        font-size: 14px;
    }

    .form select {
        grid-column: 2 / 3;
        font-size: 13px;
        padding: 6px;
    }

    .form button {
        grid-column: 1 / -1;
    }

    .side_buttons {
        flex-wrap: wrap;
    }

    .button {
        width: 100%;
    }

    h1 {
        font-size: 32px;
    }

    th {
        font-size: 12px;
    }

    td {
        font-size: 11px;
        line-height: 1.75;
    }

    .form label {
        font-size: 13px;
    }

    select {
        font-size: 12.5px;
    }

    .button,
    button {
        font-size: 13.5px;
    }

    .keymap {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
        font-size: 13px;
    }
    .keymap div:first-child {
        padding-left: 45px;
        justify-content: center;
        font-size: 13px;
    }
    .keymap div {
        padding: 12px 13px;
        font-size: 13px;
        min-height: 42px;
        text-align: center;
    }

    td:not(:first-child) {
        font-size: 10.5px;
    }

    .schedule-table td:not(:first-child) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .schedule-table td:not(:first-child),
    .schedule-table th:not(:first-child) {
        white-space: normal;
        min-width: 0;
    }

    .schedule-table td:not(:first-child),
    .schedule-table th:not(:first-child) {
        white-space: normal;
    }

    .wrapper {
        transform: scale(.85) !important;
    }

    .form .button {
        width: fit-content;
        min-width: 230px;
    }

    div.side_buttons div#button {
        margin-top: 4px;
    }
}

@media (max-width: 380px) {

    #button,
    .wrapper {
        transform: scale(.8);
    }

    header img {
        width: 62px;
        height: 62px;
    }

    .credits-footer {
        padding: 14px 10px 12px;
        gap: 10px;
        font-size: 11.5px;
    }

    .credits-footer .small-text {
        font-size: 10px;
        line-height: 1.35;
    }
}

@media (max-width: 400px) {
    .keymap {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(8px, 4.2vw, 14px);
        font-size: clamp(10.4px, 2.8vw, 11.6px);
    }

    .keymap div {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    #language-text {
        font-size: 12px;
    }

    h1 {
        font-size: clamp(1.2rem, 7.5vw, 1.55rem);
    }

    th {
        font-size: 10px;
    }

    td {
        font-size: 10px;
        line-height: 1.45;
    }

    td:first-child {
        font-size: 12.5px;
    }

    .form label {
        font-size: 12px;
    }

    select {
        font-size: 11.5px;
    }

    .button,
    button {
        font-size: 12.5px;
    }

    .keymap div:first-child {
        position: relative;
        justify-content: left;
        text-align: left;
    }

    header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px 10px;
        padding: 0 6px;
    }

    header img {
        order: 1;
        width: 58px;
        height: 58px;
        margin: 0;
    }

    header .side_buttons {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: auto;
        flex: 1 1 auto;
        margin: 0;
    }

    #button,
    .wrapper {
        transform: none !important;
        scale: 1 !important;
        min-width: 110px;
    }

    header h1 {
        order: 3;
        flex: 1 1 100%;
        text-align: center;
        margin: 4px 0 8px;
        line-height: 1.15;
        font-size: clamp(1.15rem, 7vw, 1.5rem);
        letter-spacing: .5px;
    }

    td:not(:first-child) {
        font-size: 9.5px;
    }

    .credits-footer {
        font-size: 11px;
    }

    .credits-footer .small-text {
        font-size: 9px;
    }

    .side_buttons {
        transform: scale(.9);
        transform-origin: center top;
    }

    .side_buttons {
        transform: none !important;
    }

    .wrapper {
        transform: scale(.85) !important;
        margin-top: 4px;
    }

    header.site-header {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center !important;
    }

    header.site-header .brand {
        align-items: center !important;
        display: flex;
    }

    header.site-header .side_buttons {
        align-items: center !important;
        align-self: center !important;
        justify-content: center !important;
    }

    .schedule-table td {
        --sched-body-font: clamp(0.68rem, 3.2vw, 0.82rem);
    }

    .schedule-table td:first-child {
        --sched-first-font: clamp(0.78rem, 3.6vw, 0.98rem);
    }

    header.site-header {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center !important;
    }

    header.site-header .brand {
        align-items: center !important;
        display: flex;
    }

    header.site-header .side_buttons {
        align-items: center !important;
        align-self: center !important;
        justify-content: center !important;
    }

    .schedule-table td {
        --sched-body-font: clamp(0.68rem, 3.2vw, 0.82rem);
    }

    .schedule-table td:first-child {
        --sched-first-font: clamp(0.78rem, 3.6vw, 0.98rem);
    }
}

@media (max-width: 340px) {
    header .side_buttons {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 2px;
    }

    header h1 {
        margin-top: 2px;
    }
}

@media (hover: none) {
    td:hover {
        transform: none;
    }
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}

.dark-mode .table-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
}

.dark-mode .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

.dark-mode .table-wrapper {
    background: transparent;
    box-shadow: none;
    scrollbar-color: rgba(255,255,255,0.22) rgba(255,255,255,0.04);
}

td:not(:first-child) {
    font-size: 10.5px;
    line-height: 1.35;
}

@media (max-width: 900px) {
    td:not(:first-child) {
        font-size: 11px;
    }

    .schedule-table td:not(:first-child),
    .schedule-table th:not(:first-child) {
        white-space: nowrap;
        min-width: 110px;
        font-size: 10px;
    }

    .credits-footer {
        font-size: 13px;
    }

    .credits-footer .small-text {
        font-size: 11px;
    }

    header {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo title toggles";
        align-items: center;
        justify-content: stretch;
        gap: 8px 18px;
        padding: 4px 10px;
        background: transparent;
        box-shadow: none;
    }

    header img {
        grid-area: logo;
        width: 84px;
        height: 84px;
        margin: 0;
    }

    header h1 {
        grid-area: title;
        margin: 0;
        text-align: center;
        line-height: 1.15;
    }

    header .side_buttons {
        grid-area: toggles;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin: 0;
        width: auto;
    }

    header.site-header {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-template: none !important;
        grid-template-areas: none !important;
    }

    header.site-header>* {
        grid-area: auto !important;
    }

    .site-header .brand {
        flex-direction: row !important;
    }

    header.site-header {
        grid-template: none !important;
        grid-template-areas: none !important;
    }
}

@media (max-width: 360px) {
    td:not(:first-child) {
        font-size: 9px;
    }

    .credits-footer {
        font-size: 10px;
    }

    .credits-footer .small-text {
        font-size: 9px;
    }

    .site-header {
        gap: 12px 14px;
    }

    .site-header .side_buttons {
        row-gap: 8px;
    }

    header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "title"
            "toggles";
        text-align: center;
        padding: 12px 12px 16px;
        gap: 6px 0;
    }

    header img {
        justify-self: center;
        width: 60px;
        height: 60px;
    }

    header .side_buttons {
        justify-content: center;
    }

    header h1 {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .side_buttons {
        transform: scale(.88);
    }

    .wrapper {
        transform: scale(.85) !important;
    }
}

@media (max-width: 320px) {
    td:not(:first-child) {
        font-size: 8.6px;
    }

    .credits-footer {
        font-size: 9px;
    }

    .credits-footer .small-text {
        font-size: 8px;
    }

    .wrapper {
        transform: scale(.85) !important;
    }
}

@media (max-width: 290px) {
    td:not(:first-child) {
        font-size: 8.3px;
    }
}

@media (max-width: 280px) {
    td:not(:first-child) {
        font-size: 8px;
    }

    .credits-footer {
        font-size: 8px;
    }

    .credits-footer .small-text {
        font-size: 7px;
    }
}

.schedule-table {
    width: 100% !important;
    min-width: calc(var(--col-count) * 120px);
    table-layout: auto;
}

.schedule-table td:first-child {
    min-width: 90px;
}

.schedule-table td:not(:first-child),
.schedule-table th:not(:first-child) {
    max-width: none;
    min-width: 120px;
    white-space: nowrap;
}

.schedule-table td:not(:first-child) {
    overflow: visible;
    text-overflow: unset;
}

@media (max-width: 1180px) {

    .schedule-table td,
    .schedule-table th {
        padding: 7px 6px;
    }
}

.schedule-table td:first-child,
.schedule-table th:first-child {
    scroll-snap-align: start;
}

.schedule-table td:not(:first-child) {
    line-height: 1.4;
}

@media (max-width: 769px) {
    div.keymap {
        font-size: clamp(11.5px, 1.8vw, 13px);
        gap: clamp(10px, 2.4vw, 18px);
    }
}

@media (max-width: 600px) {
    .credits-footer {
        padding: 16px 12px 14px;
        gap: 12px;
        font-size: 12.5px;
        text-align: center;
    }

    .credits-footer p {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        line-height: 1.4;
    }

    .credits-footer .dot {
        display: none;
    }

    .credits-footer a {
        font-size: 12.5px;
    }

    .credits-footer .small-text {
        font-size: 11px;
        margin-top: 2px;
    }
    .credits-footer .small-text > :nth-child(2) {
        margin-bottom: 10px;
    }
}

@media (max-width: 560px) {
    .site-header {
        justify-content: center;
        gap: 14px 16px;
    }

    .site-header .brand,
    .site-header .side_buttons {
        flex: 1 1 100%;
    }

    .site-header .brand {
        justify-content: center;
        min-width: 0;
        gap: 12px;
    }

    .site-header h1 {
        text-align: center;
    }

    .site-header .side_buttons {
        justify-content: center;
        gap: 12px;
        transform: none !important;
    }

    .site-header {
        justify-content: space-between;
        gap: 12px 14px;
    }

    .site-header .brand,
    .site-header .side_buttons {
        flex: 1 1 100%;
    }

    .site-header .brand {
        justify-content: flex-start !important;
        min-width: 0;
        gap: 12px;
        order: 1;
    }

    .site-header h1 {
        text-align: left !important;
    }

    .site-header .side_buttons {
        justify-content: center;
        gap: 12px;
        transform: none !important;
        order: 2;
    }

    .site-header #button,
    .site-header .wrapper .switch {
        transform: none !important;
    }

    .site-header {
        justify-content: center !important;
    }

    .site-header .brand {
        justify-content: center !important;
    }

    .site-header h1 {
        text-align: center !important;
    }

    .site-header .side_buttons {
        justify-content: center !important;
    }

    header.site-header .side_buttons,
    .site-header .side_buttons,
    .site-header.header-xs .side_buttons,
    .site-header.header-stack .side_buttons {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .schedule-table td {
        --sched-body-font: clamp(0.7rem, 2.6vw, 0.86rem);
        line-height: 1.28;
    }

    .schedule-table td:first-child {
        --sched-first-font: clamp(0.82rem, 3vw, 1.05rem);
    }

    .site-header {
        justify-content: center !important;
    }

    .site-header .brand {
        justify-content: center !important;
    }

    .site-header h1 {
        text-align: center !important;
    }

    .site-header .side_buttons {
        justify-content: center !important;
    }

    header.site-header .side_buttons,
    .site-header .side_buttons,
    .site-header.header-xs .side_buttons,
    .site-header.header-stack .side_buttons {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .schedule-table td {
        --sched-body-font: clamp(0.7rem, 2.6vw, 0.86rem);
        line-height: 1.28;
    }

    .schedule-table td:first-child {
        --sched-first-font: clamp(0.82rem, 3vw, 1.05rem);
    }
}

@media (max-width: 640px) {
    header {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo toggles"
            "title title";
        gap: 10px 14px;
        padding: 10px 14px 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 245, 0.75));
        backdrop-filter: blur(6px);
        border-radius: 18px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .dark-mode header {
        background: linear-gradient(135deg, rgba(50, 50, 55, 0.75), rgba(30, 30, 32, 0.7));
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
    }

    header img {
        width: 74px;
        height: 74px;
    }

    header h1 {
        font-size: clamp(1.35rem, 5.2vw, 2rem);
        margin-top: 2px;
    }

    header .side_buttons {
        justify-content: flex-end;
    }

    .dark-mode header {
        outline: 1px solid rgba(255, 255, 255, 0.08);
    }

    header {
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        padding: 10px 8px 12px !important;
    }

    .dark-mode header {
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

    #button {
        min-width: 120px !important;
        height: 45px !important;
        margin-top: 3px;
    }

    #knob {
        width: 35px !important;
        height: 35px !important;
        top: 5.5px !important;
    }

    .wrapper .switch {
        width: 130px !important;
        height: 50px !important;
    }

    .switch:after {
        width: 45px !important;
        height: 45px !important;
    }

    header h1 {
        margin-top: 2px !important;
        margin-bottom: 6px !important;
    }
}

@media (max-width: 480px) {
    header {
        gap: 8px 10px;
        padding: 10px 12px 14px;
        border-radius: 16px;
    }

    header img {
        width: 66px;
        height: 66px;
    }

    header h1 {
        font-size: clamp(1.18rem, 6.3vw, 1.55rem);
    }

    #button {
        min-width: 108px;
        height: 42px;
    }

    #knob {
        width: 33px;
        height: 33px;
        top: 4.5px;
    }

    .wrapper .switch {
        width: 120px;
        height: 46px;
    }

    .switch:after {
        width: 41px;
        height: 41px;
    }

    .side_buttons {
        transform: scale(.93);
        transform-origin: center;
    }

    .side_buttons>* {
        touch-action: manipulation;
    }

    .side_buttons {
        transform: none !important;
    }
}

@media (max-width: 310px) {

    #button,
    .wrapper {
        scale: .9;
    }

    header h1 {
        font-size: clamp(1rem, 7.5vw, 1.3rem);
    }
}

@media (max-width: 330px) {
    .side_buttons {
        transform: scale(.84);
    }

    .site-header {
        gap: 14px;
    }

    .site-header h1 {
        font-size: clamp(1rem, 7.2vw, 1.35rem);
    }
}

@media (max-width: 300px) {
    .side_buttons {
        transform: scale(.8);
    }

    .wrapper {
        transform: scale(.85) !important;
    }
}

.site-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(14px, 2.6vw, 42px);
    padding: clamp(6px, 1.2vw, 16px) clamp(10px, 2.2vw, 34px);
    margin: 26px 0 20px;
    row-gap: clamp(10px, 1.2vw, 18px);
    max-width: 100%;
}

.site-header * {
    min-width: 0;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.7vw, 30px);
    flex: 1 1 auto;
    min-width: 240px;
}

.site-header .brand img {
    width: clamp(64px, 11vw, 108px);
    height: clamp(64px, 11vw, 108px);
    flex-shrink: 0;
    object-fit: contain;
}

.site-header .title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.site-header h1 {
    margin: 0;
    line-height: 1.08;
    font-size: clamp(1.55rem, 3.5vw, 3.05rem);
    letter-spacing: .55px;
    word-break: break-word;
}

.site-header .tagline {
    display: none !important;
}

.site-header .side_buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    gap: clamp(10px, 1.4vw, 24px);
    max-width: 100%;
    flex-wrap: nowrap;
}

.site-header #button,
.site-header .wrapper .switch {
    transform-origin: right center;
    transition: transform .28s ease;
}

.site-header.header-sm h1 {
    font-size: clamp(1.35rem, 5.2vw, 2rem);
    letter-spacing: .45px;
}

.site-header.header-sm .brand img {
    width: clamp(60px, 14vw, 80px);
    height: clamp(60px, 14vw, 80px);
}

.site-header.header-sm #button,
.site-header.header-sm .wrapper .switch {
    transform: scale(.93);
}

.site-header.header-xs {
    justify-content: center;
}

.site-header.header-xs .brand {
    flex: 1 1 100%;
    justify-content: center;
    gap: 14px;
}

.site-header.header-xs .brand img {
    width: 62px;
    height: 62px;
}

.site-header.header-xs h1 {
    text-align: center;
    font-size: clamp(1.18rem, 5.9vw, 1.85rem);
    letter-spacing: .4px;
    max-width: 520px;
}

.site-header.header-xs .side_buttons {
    flex: 1 1 100%;
    justify-content: center;
    gap: 14px;
}

.site-header.header-xxs .brand img {
    width: 56px;
    height: 56px;
}

.site-header.header-xxs h1 {
    font-size: clamp(1.05rem, 6.7vw, 1.55rem);
    letter-spacing: .32px;
}

.site-header.header-xxs #button,
.site-header.header-xxs .wrapper .switch {
    transform: scale(.82);
}

.site-header.header-stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-header.header-stack .brand {
    width: 100%;
    justify-content: center;
}

.site-header.header-stack .side_buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

.site-header.header-tight-text h1 {
    letter-spacing: .25px;
    line-height: 1.05;
}

.site-header.header-wrapped .side_buttons {
    flex-wrap: wrap;
}

.dark-mode .site-header h1 {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

.dark-mode .site-header.header-xs h1,
.dark-mode .site-header.header-xxs h1 {
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}

.no-js .site-header {
    flex-direction: column;
    text-align: center;
}

.no-js .site-header .brand {
    justify-content: center;
}

.site-header .side_buttons>* {
    touch-action: manipulation;
}

.site-header :focus-visible {
    outline: 3px solid #336699;
    outline-offset: 3px;
}

.dark-mode .site-header :focus-visible {
    outline-color: #6d90ff;
}

header.site-header {
    all: unset;
    display: flex !important;
}

@media (max-width: 430px) {
    .site-header {
        padding: 10px 14px 8px;
        gap: 18px;
    }

    .site-header h1 {
        letter-spacing: .35px;
    }
}

header.site-header,
.site-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
}

.site-header .brand {
    flex-direction: row !important;
    justify-content: flex-start !important;
}

.site-header {
    justify-content: space-evenly !important;
}

.site-header .brand {
    justify-content: center !important;
    flex: 0 1 auto !important;
}

.site-header .side_buttons {
    justify-content: center !important;
    flex: 0 1 auto !important;
}

.site-header h1 {
    text-align: center !important;
}

.site-header .brand {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
}

.site-header .brand img {
    order: 0 !important;
}

.site-header .brand .title-block {
    order: 1 !important;
}

.site-header.header-xs .brand {
    justify-content: flex-start !important;
}

.site-header.header-xs h1 {
    text-align: left !important;
}

header.site-header {
    display: flex !important;
}

.site-header .brand img {
    order: 0 !important;
}

.site-header .brand .title-block {
    order: 1 !important;
}

@media (min-width: 561px) {
    .site-header {
        justify-content: space-evenly !important;
    }

    .site-header .brand {
        justify-content: center !important;
        flex: 0 1 auto !important;
    }

    .site-header .side_buttons {
        justify-content: center !important;
        flex: 0 1 auto !important;
    }

    .site-header h1 {
        text-align: center !important;
    }

    .site-header {
        justify-content: space-evenly !important;
    }

    .site-header .brand {
        justify-content: center !important;
        flex: 0 1 auto !important;
    }

    .site-header .side_buttons {
        justify-content: center !important;
        flex: 0 1 auto !important;
    }

    .site-header h1 {
        text-align: center !important;
    }
}

@media (max-width: 399px) {

    header.site-header,
    .site-header {
        align-items: center !important;
        align-content: center !important;
    }

    .site-header .side_buttons {
        flex: 1 1 100% !important;
        order: 2;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    .site-header .side_buttons>* {
        align-self: center !important;
        margin: 0 !important;
    }

    .site-header #button,
    .site-header .wrapper {
        transform: none !important;
        scale: 1 !important;
        margin-top: 0 !important;
    }

    .site-header .wrapper .switch {
        transform: none !important;
    }

    header.site-header,
    .site-header {
        align-items: center !important;
        align-content: center !important;
    }

    .site-header .side_buttons {
        flex: 1 1 100% !important;
        order: 2;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    .site-header .side_buttons>* {
        align-self: center !important;
        margin: 0 !important;
    }

    .site-header #button,
    .site-header .wrapper {
        transform: none !important;
        scale: 1 !important;
        margin-top: 0 !important;
    }

    .site-header .wrapper .switch {
        transform: none !important;
    }
}

.schedule-table td {
    --sched-body-font: clamp(0.74rem, 1.35vw, 0.9rem);
    --sched-first-font: clamp(0.86rem, 1.7vw, 1.16rem);
    font-size: var(--sched-body-font);
    line-height: 1.35;
}

.schedule-table td:first-child {
    font-size: var(--sched-first-font);
    line-height: 1.4;
}

.schedule-table td .sched-stack,
.schedule-table td .sched-item {
    font-size: clamp(9px, 1.2vw, 10.5px);
}

@media (max-width: 720px) {
    .schedule-table td {
        --sched-body-font: clamp(0.74rem, 2vw, 0.9rem);
        line-height: 1.32;
    }

    .schedule-table td:first-child {
        --sched-first-font: clamp(0.85rem, 2.6vw, 1.1rem);
    }

    .schedule-table td {
        --sched-body-font: clamp(0.74rem, 2vw, 0.9rem);
        line-height: 1.32;
    }

    .schedule-table td:first-child {
        --sched-first-font: 14px;
    }
}

.schedule-table td .sched-item {
    display: block;
    position: relative;
    margin: 7px 0;
    padding: 8px;
    line-height: 1.28;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: saturate(140%) brightness(105%);
    overflow-wrap: anywhere;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.schedule-table td .sched-item:last-child {
    border-bottom: none;
}

.schedule-table td .sched-item+.sched-item {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .schedule-table td .sched-item {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .schedule-table td .sched-item+.sched-item {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.schedule-table td.g2 .sched-item,
.schedule-table td.g3 .sched-item,
.schedule-table td.g4 .sched-item,
.schedule-table td.g5 .sched-item,
.schedule-table td.g6 .sched-item {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: saturate(140%) brightness(102%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.site-header .brand .title-block {
    order: 1 !important;
}

.site-header.header-xs .brand {
    justify-content: flex-start !important;
}

.site-header.header-xs h1 {
    text-align: left !important;
}
header.site-header {
    display: flex !important;
}

.site-header .brand img {
    order: 0 !important;
}

.site-header .brand .title-block {
    order: 1 !important;
}

.schedule-table td {
    --sched-body-font: clamp(0.74rem, 1.35vw, 0.9rem);
    --sched-first-font: 15px;
    font-size: var(--sched-body-font);
    line-height: 1.35;
}

.schedule-table td:first-child {
    font-size: var(--sched-first-font);
    line-height: 1.4;
}

.schedule-table td .sched-stack,
.schedule-table td .sched-item {
    font-size: clamp(10px, 1.4vw, 12px);
}


.site-header {
    margin-top: 15px !important;
    margin-bottom: 30px !important;
}

.form .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: clamp(160px, 30vw, 240px);
    max-width: 100%;
    margin: 18px auto 0;
}

div.side_buttons div#button {
    margin-top: -2px;
}