/* Theme tokens */
:root {
    --color-bg: #0d1524;
    --color-bg-alt: #121d31;
    --color-panel: #192336;
    --color-border: #5f708c;
    --color-text: #f4f8ff;
    --color-primary: #82afff;
    --color-primary-hover: #9cc0ff;
    --color-primary-active: #5a93ef;
    --color-text-muted: #bed0ec;
    --surface-glass: linear-gradient(180deg, rgba(29, 40, 60, 0.82), rgba(18, 28, 46, 0.72));
    --surface-glass-strong: linear-gradient(180deg, rgba(21, 31, 48, 0.9), rgba(14, 22, 38, 0.82));
    --surface-solid: rgba(11, 18, 31, 0.86);
    --surface-solid-strong: rgba(8, 14, 24, 0.94);
    --surface-header: linear-gradient(180deg, rgba(88, 122, 176, 0.26), rgba(37, 53, 83, 0.46));
    --surface-overlay: rgba(8, 12, 21, 0.72);
    --surface-border: rgba(168, 194, 235, 0.28);
    --surface-border-strong: rgba(190, 214, 255, 0.46);
    --surface-highlight: rgba(142, 185, 255, 0.18);
    --surface-hover: rgba(136, 177, 244, 0.2);
    --surface-shadow: 0 24px 60px rgba(3, 8, 20, 0.42);
    --surface-shadow-soft: 0 14px 30px rgba(4, 10, 22, 0.26);
    --surface-blur: 18px;
    --surface-saturation: 155%;
    --surface-radius-lg: 16px;
    --surface-radius-xl: 24px;
    --popup-task-surface: linear-gradient(180deg, rgba(47, 68, 104, 0.9), rgba(21, 34, 55, 0.94));
    --popup-task-tip: rgba(28, 43, 68, 0.98);
    --popup-airport-surface: linear-gradient(180deg, rgba(56, 68, 87, 0.9), rgba(26, 35, 48, 0.94));
    --popup-airport-tip: rgba(33, 43, 58, 0.98);
    --popup-waypoint-surface: linear-gradient(180deg, rgba(43, 87, 80, 0.92), rgba(16, 48, 47, 0.96));
    --popup-waypoint-tip: rgba(22, 59, 57, 0.98);
}

/* Base layout */
body {
    margin: 0;
    display: flex;
    height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    flex-direction: column;
}

.download-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #121212;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

/* Integrated map controls */
.integrated-body #map {
    height: 98vh;
}

.integrated-body .map-button {
    position: absolute;
    top: 10px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.integrated-body #zoomButton {
    left: 70px;
}

.integrated-body #fullWorldButton {
    left: 220px;
}

.integrated-body .map-button:hover {
    background-color: #0056b3;
}

.leaflet-popup-content-wrapper {
    background-color: #fff;
    color: #333;
}

.leaflet-interactive:hover {
    cursor: pointer;
}

.leaflet-container .leaflet-interactive:focus {
    outline: none;
}

/* Tab navigation */
.tab-icon {
    width: 25px;
    height: 25px;
}

.tab-icon-small {
    width: 23px;
    height: 23px;
}

.search-and-filters {
    display: none;
    margin-right: 5px;
}

/* Tab layout */
#mapTab {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#tabButtons {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.tabButton {
    display: flex;
    flex-grow: 1;
    padding: 4.5px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-bottom: none;
    color: var(--color-text);
    align-items: center;
    justify-content: center;
}

    .tabButton:first-child {
        border-top-left-radius: 5px;
    }

    .tabButton:last-child {
        border-top-right-radius: 5px;
    }

    .tabButton.active {
        background-color: var(--color-primary);
    }

    .tabButton:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .tabButton:active {
        background-color: var(--color-primary-active);
    }

#tabsContainer {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tabContent {
    display: none;
    flex-grow: 1;
    padding: 5px;
    padding-top: 0px;
    overflow-y: auto;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-top: none;
}

    .tabContent.active {
        display: block;
    }

#mapTab.tabContent.active {
    padding: 0 !important;
    overflow: hidden;
}

#mapContainer {
    display: flex;
    flex-grow: 1; /* Allow it to take up remaining space */
    height: 100%;
    min-width: 0;
    min-height: 0;
    position: relative;
}

#mapShell {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

#map {
    width: 100%;
    height: 100%;
}

.igc-overlay {
    display: none;
}

#taskDetailContainer {
    width: 33%;
    height: 100%;
    padding: 10px;
    overflow-y: auto;
    box-sizing: border-box;
    border-left: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    display: none;
}

#resizer {
    width: 5px;
    cursor: col-resize;
    background-color: #99aab5;
}

/* Buttons */
.button-style {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 0px;
    margin-bottom: 10px;
    height: 40px; /* Set a fixed height */
    line-height: 20px; /* Adjust line-height to center the text vertically */
}

    .button-style:hover {
        background-color: var(--color-primary-hover);
    }

    .button-style:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .button-style:active {
        background-color: var(--color-primary-active);
    }

.button-mini-style {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    height: 24px;
    line-height: 1;
    vertical-align: middle;
}

    .button-mini-style:hover {
        background-color: var(--color-primary-hover);
    }

    .button-mini-style:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .button-mini-style:active {
        background-color: var(--color-primary-active);
    }

/* Task details */
.task-details {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1em;
}

    .task-details h2 {
        font-size: 18px;
        margin-top: 1em;
    }

    .task-details p {
        margin: 1em 0;
    }

    .task-details img {
        vertical-align: middle;
    }

    .task-details ul, .task-details ol {
        margin: 0;
        padding-left: 20px;
        line-height: 1.3;
    }

        .task-details ul li, .task-details ol li {
            margin-bottom: 5px;
        }

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-number {
    font-size: 16px;
    font-weight: bold;
}

.task-flags {
    display: flex;
}

.task-details a {
    color: #1da1f2;
    text-decoration: none;
}

    .task-details a:hover {
        text-decoration: underline;
    }

    .task-details a:visited {
        color: #1da1f2; /* Keep the same color after clicking */
    }

.header-container {
    display: flex;
    align-items: center;
}

.header-image {
    width: 150px;
    height: auto;
    margin-right: 10px;
}

/* Tool entries */
.tool-entry {
    border: 1px solid #ccc;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    background-color: var(--color-panel); /* A bit lighter background */
    transition: all 0.3s ease;
}

    .tool-entry.collapsible .title {
        cursor: pointer;
    }

    .tool-entry.collapsed .content {
        display: none;
    }

    .tool-entry .title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px;
        font-size: 16px;
        font-weight: bold;
        background-color: var(--color-panel);
        color: #fff;
        border-bottom: 1px solid #ccc;
    }

    .tool-entry .content {
        position: relative;
        z-index: 0;
        padding: 10px;
        font-size: 14px;
        background-color: var(--color-panel);
    }

        .tool-entry .content::before {
            content: "";
            position: absolute;
            inset: 0;
            background: var(--cover-url, none) no-repeat center/cover;
            opacity: var(--cover-opacity, 0.25);
            z-index: -1;
        }

    .tool-entry .title:hover,
    .tool-entry .title.highlightGreen:hover,
    .tool-entry .title.highlightYellow:hover {
        background-color: var(--color-primary);
    }

    .tool-entry .title.highlightGreen {
        background-color: #257a25; /* Green highlight background color */
        color: #fff; /* Green highlight text color */
    }

    .tool-entry .title.highlightYellow {
        background-color: #ffeb3b; /* Yellow highlight background color */
        color: #000; /* Yellow highlight text color */
    }

    .tool-entry .title.active-filter-title {
        background-color: #308b1c;
        color: #fff;
    }

        .tool-entry .title.active-filter-title:hover {
            background-color: #3aa822;
        }

    .tool-entry ul, .tool-entry ol {
        margin: 0;
        padding-left: 15px; /* Adjust this value to decrease the indentation */
        line-height: 1.3;
    }

        .tool-entry ul li, .tool-entry ol li {
            margin-bottom: 3px;
            padding-left: 5; /* Adjust this value if necessary */
        }

.collapsible-reset-button {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 1px solid var(--color-primary-hover);
    border-radius: 3px;
    padding: 8px 8px; /* Smaller padding to match the button size in the image */
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
}

    .collapsible-reset-button:hover {
        background-color: var(--color-primary-hover);
    }

.collapsible-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

    .collapsible-title-actions .collapsible-reset-button {
        margin-left: 0;
    }

    .collapsible-title-actions .tools-copy-link-icon {
        width: 22px;
        height: 22px;
        display: block;
    }

.link-preview {
    display: flex;
    background-color: #4d5054; /* Ensure content matches the entry background */
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    align-items: center;
}

    .link-preview img {
        max-width: 120px;
        margin-right: 10px;
    }

.preview-details {
    font-size: 0.875em; /* Smaller font size */
    line-height: 1.2em; /* Adjust line height */
}

    .preview-details h3 {
        font-size: 1em; /* Smaller title size */
        margin: 0 0 0.5em 0; /* Adjust margin */
    }

    .preview-details p {
        font-size: 0.875em; /* Smaller description size */
        margin: 0; /* Adjust margin */
    }

.youtube-container {
    display: flex;
    align-items: center;
}

    .youtube-container iframe {
        margin-right: 10px;
    }

/* Add link styles for tools tab to match task details */
.tool-entry a {
    color: #1da1f2;
    text-decoration: none;
}

    .tool-entry a:hover {
        text-decoration: underline;
    }

    .tool-entry a:visited {
        color: #1da1f2; /* Keep the same color after clicking */
    }

/* Add link styles for linkss */
.all-links a {
    color: #1da1f2;
    text-decoration: none;
}

    .all-links a:hover {
        text-decoration: underline;
    }

    .all-links a:visited {
        color: #1da1f2; /* Keep the same color after clicking */
    }

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Ensure it is above all other elements */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain; /* Ensure the image maintains aspect ratio */
    z-index: 10001; /* Higher than the modal background */
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    z-index: 10001; /* Ensure it is above the background */
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0);
    }

    to {
        -webkit-transform: scale(1);
    }
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    z-index: 10002; /* Ensure the close button is on top */
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* Responsive image */
.weather-image {
    width: 100%;
    max-width: 700px;
    cursor: pointer;
    transition: 0.3s;
}

    .weather-image:hover {
        opacity: 0.7;
    }

/* Compass overlay */
.compass-container {
    position: absolute;
    width: 400px;
    height: 400px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed
}

.compass-rose {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 65%;
}

.wind-arrow {
    width: 60px;
    height: 300px;
    left: 43%;
    top: 13%;
    position: relative;
    opacity: 65%;
}

.wind-direction {
    position: absolute;
    color: #000;
    font-size: 11px;
    font-weight: normal;
    text-align: center;
    top: 50.7%;
    left: 50.5%;
    transform: translate(-50%, -50%);
    cursor: move;
}

/* Map toolbar controls */
#globeHomeButton,
#fullWorldButton {
    position: absolute;
    top: 15px;
    left: 50px;
    width: 35px;
    height: 35px;
    z-index: 1200;
    color: white;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    background: rgb(114 137 218 / 47%);
    border: 1px solid #ccc; /* Add a light gray border */
}

    #globeHomeButton:hover,
    #fullWorldButton:hover {
        background: rgb(114 137 218 / 76%); /* Change background color on hover */
        border-color: #888; /* Change border color on hover */
        transform: scale(1.1); /* Scale up the icon on hover */
    }

#searchAndFilters {
    flex: 0 0 300px;
    width: 300px; /* Fixed width */
    height: 100%;
    min-height: 0;
    padding-left: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

#searchFiltersButton {
    position: absolute;
    top: 15px;
    left: 90px;
    width: 35px;
    height: 35px;
    z-index: 1200;
    color: white;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    background: rgb(114 137 218 / 47%);
    border: 1px solid #ccc; /* Add a light gray border */
}

    #searchFiltersButton:hover {
        background: rgb(114 137 218 / 76%); /* Change background color on hover */
        border-color: #888; /* Change border color on hover */
        transform: scale(1.1); /* Scale up the icon on hover */
    }

#tableToggleButton {
    width: 300px; /* Fixed width */
}

#tableToggleButton {
    position: absolute;
    top: 15px;
    left: 130px;
    width: 35px;
    height: 35px;
    z-index: 1200;
    color: white;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    background: rgb(114 137 218 / 47%);
    border: 1px solid #ccc; /* Add a light gray border */
}

    #tableToggleButton:hover {
        background: rgb(114 137 218 / 76%); /* Change background color on hover */
        border-color: #888; /* Change border color on hover */
        transform: scale(1.1); /* Scale up the icon on hover */
    }

#taskControlPanel {
    position: absolute;
    top: 10px;
    right: 65px; /* Adjust this value if needed to fit left of the layer button/menu */
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    padding: 5px;
    display: none; /* Initially hidden */
    z-index: 1000; /* Ensure it appears above map layers */
}

    #taskControlPanel button {
        background: rgb(114 137 218 / 47%);
        border: 1px solid #ccc; /* Add a light gray border */
        border-radius: 3px; /* Slightly round the corners */
        font-size: 16px;
        cursor: pointer;
        margin: 0 2px; /* Add horizontal margin to space buttons */
        padding: 5px; /* Add some padding for better clickability */
    }

        #taskControlPanel button:hover {
            background: rgb(114 137 218 / 76%); /* Change background color on hover */
            border-color: #888; /* Change border color on hover */
            transform: scale(1.1); /* Scale up the icon on hover */
        }

        #taskControlPanel button img {
            width: 20px;
            height: 20px;
        }

.file-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    background: white;
    padding: 2px;
    border-radius: 3px; /* Optional: add rounded corners */
    transition: transform 0.2s ease-in-out; /* Add transition for hover effect */
}

    .file-icon:hover {
        background: rgb(39 161 231); /* Change background color on hover */
        transform: scale(1.1); /* Scale up the icon on hover */
    }

.waypoint-item.selected {
    background-color: #888888;
    border-left: 3px solid #007bff;
}

.wind-layer-item {
    margin: 0;
    padding: 5px;
    cursor: pointer;
}

    .wind-layer-item.selected {
        background-color: #888888;
        border-left: 3px solid #007bff;
    }

.cloud-layer-item {
    margin: 0;
    padding: 5px;
    cursor: pointer;
}

    .cloud-layer-item.selected {
        background-color: #888888;
        border-left: 3px solid #007bff;
    }

.community-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.community-section {
    text-align: center;
    margin-top: 20px;
    background-color: #3a3d424d; /* Background color for each community item */
    border-radius: 10px;
    padding-top: 2px;
    padding-bottom: 10px;
    position: relative;
    width: 100%;
}

    .community-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #ffffff;
    }

.community-logos-container {
    overflow-x: auto;
    display: flex;
    align-items: center;
    scrollbar-width: none;
    scrollbar-color: #7289da #2c2f33;
    padding: 0 30px; /* Add padding to make sure the items do not get cut off */
    white-space: nowrap; /* Prevent wrapping of items */
}

.community-logos {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 auto; /* Center the items */
}

.community-item {
    display: inline-block; /* Display as inline-block for nowrap */
    flex-direction: column;
    align-items: center;
    height: 220px;
    width: 220px;
    text-align: center;
    padding: 10px;
    background-color: #3a3d42; /* Background color for each community item */
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.community-logo {
    height: 100px; /* Fixed height */
    width: auto;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 10px; /* Add margin to separate the logo from the text */
    object-fit: contain; /* Ensure the image fits within the specified height */
}

    .community-logo:hover {
        transform: scale(1.1);
        border-color: #7289da;
    }

.community-name {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
    word-wrap: break-word; /* Ensure long words break */
    text-overflow: ellipsis; /* Add ellipsis if text is too long */
    white-space: nowrap; /* Ensure text wraps correctly */
    overflow: hidden; /* Hide overflowing text */
    max-width: 100%; /* Ensure the text doesn't exceed the container's width */
}

.community-clubs {
    font-size: 14px;
    color: #aaaaaa;
}

.community-navigation {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Ensure the buttons are above other elements */
}

    .community-navigation.left {
        left: 10px; /* Adjust to ensure the button is within the container */
    }

    .community-navigation.right {
        right: 10px; /* Adjust to ensure the button is within the container */
    }

.scroll-button {
    background-color: #7289da;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 5px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

    .scroll-button:hover {
        opacity: 1;
    }

    .scroll-button.left {
        transform: rotate(0deg);
    }

    .scroll-button.right {
        transform: rotate(0deg);
    }

.task-count-control {
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensures the spinner is on top of other elements */

    display: none;
    flex-direction: column; /* Stack text over image */
    align-items: center; /* Center them horizontally */
    justify-content: center; /* (Optional) center them vertically within the container */
    text-align: center; /* Just in case, to center text */
}

.loading-spinner img {
    width: 50px; /* Adjust size as needed */
    height: 50px;
}

.loading-message {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #000; /* Adjust the color to ensure readability against your background */
}

/* Task grid overlay */
#taskGridOverlay {
    position: absolute;
    top: 75px;
    right: 0;
    width: 100%;
    max-height: 40%;
    background-color: rgba(100, 100, 100, 0.9);
    color: #dcdcdc;
    padding: 10px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    height: 100%; /* Take full height of the intended overlay space */
    overflow: hidden; /* Prevent any overflow outside this element */
    cursor: default; /* Change to default cursor */
    z-index: 9000;
}

#taskGridContainer {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure container uses full height */
}

/* DataTable wrapper to take full height of taskGridContainer */
#taskGridTable_wrapper {
    display: block;
    flex-direction: column;
    height: 100%; /* Full height within container */
    overflow: hidden;
}

#taskGridOverlay .dataTables_scrollHeadInner {
    display: flex !important;
    width: 100% !important;
    height: 45px;
    background-color: #000000c7;
    border-bottom: 1px solid #dddddd;
}

#taskGridTable {
    width: 100% !important;
}

/* Scrollable body section for DataTable rows */
#taskGridTable_wrapper .dataTables_scroll {
    height: 88%; /* Full height within container */
    overflow-y: auto; /* Enable scrolling for rows */
}

/* Scrollable body section for DataTable rows */
#taskGridTable_wrapper .dataTables_scrollBody {
    flex-grow: 1; /* Allow this section to grow and fill available space */
    overflow-y: auto; /* Enable scrolling for rows */
    max-height: 87% !important;
}

#taskGridTable_wrapper .dataTables_info {
    color: #dcdcdc;
}

#taskGridTable_wrapper .dataTables_filter {
    color: #dcdcdc;
}

    #taskGridTable_wrapper .dataTables_filter input {
        color: #dcdcdc;
    }

table.dataTable thead .sorting {
    color: #d2d2d2;
    text-align: left;
    padding-left: 8px;
}

/* Styling DataTable Rows */
#taskGridTable tbody tr {
    background-color: #2b2b2ba8;
    color: #dcdcdc;
}

    #taskGridTable tbody tr:nth-child(even) {
        background-color: #252525cf;
    }

    #taskGridTable tbody tr:hover {
        background-color: #7289da;
    }

/* Style for table text */
#taskGridTable tbody td {
    color: #dcdcdc;
    padding-left: 8px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-right: 2px;
}

    /* Reset background color and text color for sorted column cells to match default row styling */
    #taskGridTable tbody td.sorting_1,
    #taskGridTable tbody td.sorting_2,
    #taskGridTable tbody td.sorting_3 {
        background-color: inherit !important;
        color: inherit !important;
    }

/* Style for the selected row in the DataTable */
#taskGridTable tbody tr.selected {
    background-color: #0000ff !important; /* Darker background for the selected row */
    color: #ffffff; /* White text color for visibility */
}

/* Countdown widgets */
.countdown-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.countdown-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrapper {
    position: relative;
}

.countdown-section {
    position: absolute;
    top: 5px;
    right: 5px;
    text-align: right;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #3a3d42;
    font-size: 18px;
}

#taskGridHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px; /* Add padding to match the search box */
    background-color: #1e1e1e; /* Match table header */
    border-bottom: 1px solid #444; /* A subtle separator */
}

.grid-controls {
    display: flex;
    align-items: center;
}

#taskGridInfo {
    font-size: 12px;
    color: #dcdcdc;
    margin-right: 5px; /* Ensures proper spacing from the button */
}

#refreshGridButton {
    background-color: #7289da;
    color: white;
    border: none;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

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

#searchResultsOnlyContainer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-size: 12px;
    color: #dcdcdc;
    user-select: none;
}

    #searchResultsOnlyContainer.disabled {
        opacity: 0.5;
    }

    #searchResultsOnlyContainer input[type="checkbox"] {
        margin: 0;
        width: 14px;
        height: 14px;
        cursor: pointer;
        accent-color: #7289da;
    }

    #searchResultsOnlyContainer.disabled input[type="checkbox"] {
        cursor: not-allowed;
    }

.task-details.markdown-content {
    position: relative;
    background: #23272a;
    color: white;
    z-index: 1;
}

    .task-details.markdown-content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--task-cover-url) no-repeat center/cover;
        background-size: cover;
        background-position: center;
        opacity: var(--task-cover-opacity, 0.25);
        z-index: -2;
    }

.aat-distance-box {
    margin: 6px 0 8px;
    padding: 6px 8px;
    border: 1px solid #3a3d42;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    display: block;
    max-width: fit-content;
    line-height: 1.4;
}

    .aat-distance-box .aat-option {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #f1f1f1;
        font-size: 14px;
        margin-bottom: 4px;
    }

        .aat-distance-box .aat-option:last-child {
            margin-bottom: 0;
        }

    .aat-distance-box input[type="checkbox"] {
        margin-right: 4px;
    }

.aat-label-min {
    color: #f7d560;
    font-weight: 500;
}

.aat-label-max {
    color: #f44336;
    font-weight: 500;
}

.user-info-form {
    max-width: 420px;
}

.user-info-field {
    margin-bottom: 1rem;
}

.user-info-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .user-info-input-row input[type="text"] {
        flex: 1 1 auto;
        min-width: 0;
    }

.user-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.missing-indicator {
    color: #ff6b6b;
    font-weight: 700;
}

.missing-indicator--title {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.85em;
}

.missing-indicator--field {
    font-size: 0.9em;
    white-space: nowrap;
}


/* Upload container with flex layout */
.upload-container {
    position: absolute;
    top: 5px;
    left: 170px;
    /* Instead of fixed width/height, let content define size */
    width: 160px;
    height: 40px;
    border: 2px dashed #7289da;
    border-radius: 10px;
    padding: 5px;
    text-align: left;
    background: rgba(255, 255, 255, 0.4);
    color: rgba(0,0,0);
    z-index: 999;
    /* When re-enabled, switch display to flex to restore layout */
    /* display: flex;  Enable flex layout */
    align-items: center; /* Vertically center items */
    gap: 8px; /* Space between button and text */
}

    /* Change background/border on dragover */
    .upload-container.dragover {
        background-color: #3c70c7;
        border-color: #99aab5;
    }

    /* Hide the file input */
    .upload-container input[type="file"] {
        display: none;
    }

/* Style the selectFileButton to be positioned within the container, not absolute */
#selectFileButton {
    /* Remove position absolute so it stays in the flex container */
    position: static;
    width: 35px;
    height: 35px;
    color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: rgb(114 137 218 / 47%);
    cursor: pointer;
    padding: 5px;
}

    #selectFileButton:hover {
        background: rgb(114 137 218 / 76%);
        border-color: #888;
        transform: scale(1.1);
    }

/* Style for the output container */
#output {
    position: absolute;
    top: 200px; /* Adjust spacing below the upload container as needed */
    left: 20px;
    color: #ffffff;
    background-color: #23272a;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
}

#igcOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* or 0 for fully transparent */
    z-index: 9000; /* just below or above other UI as needed */
    display: none; /* hidden by default */
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.igc-submit-hint {
    color: #ffffff;
    font-weight: 700;
    animation: blink 1s steps(2, start) infinite;
}

.igc-submit-hint--attention {
    color: #ffd166;
}

.igc-results-retry-hint {
    margin: 6px 0 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 196, 0, 0.45);
    background: rgba(255, 196, 0, 0.12);
    color: #ffe8a3;
    font-weight: 600;
}
/* =========================
IGC Records Table Styling
(mirroring #taskGridTable)
========================= */

.igc-task-selector-grid-wrapper {
    margin-top: 10px;
    overflow-x: auto;
}

.igc-task-selector-grid {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #141414;
    color: #e0e0e0;
}

    .igc-task-selector-grid th,
    .igc-task-selector-grid td {
        padding: 8px 10px;
        border-bottom: 1px solid #2c2c2c;
        text-align: left;
    }

    .igc-task-selector-grid th {
        background: #1f1f1f;
        font-weight: 600;
    }

    .igc-task-selector-grid tbody tr:hover {
        background: #1d2d42;
    }

    .igc-task-selector-grid tbody tr.selected {
        background: #274468;
    }

.igc-task-grid-entry a {
    color: #7cb8ff;
    text-decoration: none;
    font-weight: 600;
}

    .igc-task-grid-entry a:hover {
        text-decoration: underline;
    }

.igc-task-grid-select {
    text-align: center;
    width: 70px;
}

.igcRecordsTable_wrapper .dataTables_info {
    color: #dcdcdc;
}

.igcRecordsTable_wrapper .dataTables_filter {
    color: #dcdcdc;
}

    .igcRecordsTable_wrapper .dataTables_filter input {
        color: #dcdcdc;
    }

.igcRecordsTable_wrapper .igc-leaderboard-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    flex-wrap: wrap;
}

    .igcRecordsTable_wrapper .igc-leaderboard-filter-controls label {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        color: #dcdcdc;
        font-weight: 400;
    }

    .igcRecordsTable_wrapper .igc-leaderboard-filter-controls select {
        background-color: #1f1f1f;
        border: 1px solid #3c3c3c;
        color: #dcdcdc;
        border-radius: 4px;
        padding: 2px 6px;
    }

/* Thead styling for sorting icons/text */
.igcRecordsTable thead .sorting {
    color: #d2d2d2;
    text-align: left;
    padding-left: 8px; /* same spacing as #taskGridTable */
}

/* Table rows background & text color */
.igcRecordsTable tbody tr {
    background-color: #2b2b2ba8; /* same as #taskGridTable */
    color: #dcdcdc;
}

    .igcRecordsTable tbody tr:nth-child(odd) {
        background-color: #2b2b2ba8 !important;
        color: #dcdcdc !important;
    }

    .igcRecordsTable tbody tr:nth-child(even) {
        background-color: #252525cf !important;
    }

    .igcRecordsTable tbody tr:hover {
        background-color: #1da1f245 !important;
    }

/* Table cell spacing & color */
.igcRecordsTable tbody td {
    color: #dcdcdc;
    padding-left: 8px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-right: 2px;
}

    /* Ensure sorted columns keep same color as other columns */
    .igcRecordsTable tbody td.sorting_1,
    .igcRecordsTable tbody td.sorting_2,
    .igcRecordsTable tbody td.sorting_3 {
        background-color: inherit !important;
        color: inherit !important;
    }

/* IGC tables */
/* Header alignment for DataTables */
.igcRecordsTable.dataTable thead th,
.igcRecordsTable.dataTable thead td {
    text-align: left !important;
}

.igcRecordsTable tbody tr.selected {
    background-color: #0000ff !important; /* or your preferred highlight color */
    color: #ffffff;
}

.igcRecordsTable a {
    color: #1da1f2;
    text-decoration: none;
}

.igc-local-time-mismatch {
    color: #fbbf24;
}

.igc-legend {
    display: none;
    padding: 8px;
    background: #29292a;
    color: #dcdcdc;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #ffffff;
}

.igcRecordsTable {
    width: 100% !important;
}

/* IGC conversion controls */
.conversion-progress {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    background: rgba(34, 34, 34, 0.9);
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 100;
}

.igc-convert-wrapper {
    position: relative;
    margin-right: auto;
}

.igc-actions-button {
    width: 80px;
    text-align: center;
}

.igc-convert-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2b2c;
    border: 1px solid #555;
    border-radius: 4px;
    width: 80px;
    display: none;
    z-index: 20;
}

.igc-convert-item {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
    background: #2a2b2c;
}

    .igc-convert-item.disabled {
        color: #7c7c7c;
        cursor: not-allowed;
        background: #1f2937;
    }

    .igc-convert-item:last-child {
        border-bottom: none;
    }

    .igc-convert-item:hover {
        background-color: #1da1f245;
    }

.igc-filter-toggle {
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #dcdcdc;
}

    .igc-filter-toggle input {
        margin-right: 4px;
    }

.igc-override-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9500;
    padding: 12px;
}

.igc-override-dialog {
    background: #0b1020;
    color: #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: min(850px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 14px;
    border: 1px solid #334155;
}

.igc-override-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.igc-override-title {
    font-size: 1.1em;
    font-weight: 700;
}

.igc-override-subtitle {
    font-size: 0.9em;
    color: #94a3b8;
}

.igc-override-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #e2e8f0;
}

.igc-override-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.igc-leaderboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 8px;
}

.igc-leaderboard-task-ref {
    min-width: 0;
    font-size: 1.02em;
}

.igc-leaderboard-funfacts-button {
    white-space: nowrap;
}

.igc-leaderboard-heading-actions,
.fun-facts-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.igc-png-button {
    min-width: 60px;
    text-align: center;
}

.fun-facts-dialog {
    width: min(960px, 100%);
    max-height: min(90vh, 920px);
}

.fun-facts-header-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fun-facts-header-actions .igc-override-close {
    margin-left: 0;
}

.fun-facts-eyebrow {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.fun-facts-task-ref {
    font-size: 1.15em;
    font-weight: 700;
    color: #e2e8f0;
}

.fun-facts-body {
    gap: 0;
}

.fun-facts-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

@media (min-width: 1280px) {
    .fun-facts-dialog {
        width: min(1180px, 100%);
    }

    .fun-facts-badge-grid.badge-count-10 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .fun-facts-badge-grid.badge-count-9 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fun-facts-badge-grid.badge-count-8 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fun-facts-badge-grid.badge-count-12 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fun-facts-badge-grid.badge-count-11 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge {
        grid-column: span 3;
    }

    .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge:nth-child(9) {
        grid-column: 2 / span 3;
    }

    .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge:nth-child(10) {
        grid-column: 5 / span 3;
    }

    .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge:nth-child(11) {
        grid-column: 8 / span 3;
    }
}

.fun-facts-badge {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #334155;
    background: linear-gradient(180deg, rgba(24, 36, 57, 0.96), rgba(11, 16, 32, 0.94));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.fun-facts-badge > * {
    position: relative;
    z-index: 1;
}

.fun-facts-badge.is-unavailable {
    opacity: 0.85;
}

.fun-facts-badge-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center 56%;
    background-size: 100% auto;
    opacity: 0.12;
    filter: drop-shadow(0 8px 18px rgba(8, 15, 30, 0.26));
    pointer-events: none;
    z-index: 0;
}

.fun-facts-badge-title {
    font-size: 1.02em;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
}

.fun-facts-badge-subtitle {
    font-size: 0.85em;
    color: #94a3b8;
    line-height: 1.35;
    text-align: center;
}

.fun-facts-badge-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin-top: 2px;
}

.fun-facts-badge-art-image {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(8, 15, 30, 0.34));
}

.fun-facts-badge-winners {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    text-align: center;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.35;
    color: #e2e8f0;
}

.fun-facts-badge-winner {
    display: block;
    width: 100%;
}

.fun-facts-badge-winners-scroll {
    width: 100%;
    max-height: 112px;
    overflow-y: auto;
    padding: 2px 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #475569 transparent;
}

.fun-facts-badge-winners-scroll::-webkit-scrollbar {
    width: 6px;
}

.fun-facts-badge-winners-scroll::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.75);
    border-radius: 999px;
}

.fun-facts-badge-winners-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.fun-facts-badge-winner-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 6px;
}

.fun-facts-badge-winners-scroll .fun-facts-badge-winner {
    width: auto;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(125, 211, 252, 0.18);
    font-size: 0.84em;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fun-facts-badge-winners-scroll.count-6-plus {
    max-height: 96px;
}

.fun-facts-badge-winners-scroll.count-6-plus .fun-facts-badge-winner {
    padding: 3px 8px;
    font-size: 0.78em;
}

.fun-facts-badge-value {
    margin-top: 0.3rem;
    text-align: center;
    font-size: 1.05em;
    font-weight: 700;
    color: #7dd3fc;
}

.fun-facts-badge-empty {
    color: #94a3b8;
    font-size: 0.95em;
    font-weight: 600;
}

@media (max-width: 640px) {
    .fun-facts-dialog {
        padding: 12px;
    }

    .fun-facts-badge-bg {
        background-size: 100% auto;
        background-position: center 58%;
    }

    .fun-facts-badge-art {
        min-height: 76px;
    }

    .fun-facts-badge-art-image {
        width: 72px;
        height: 72px;
    }

    .fun-facts-badge-winners-scroll {
        max-height: 100px;
    }

    .fun-facts-badge-winners-scroll.count-6-plus {
        max-height: 88px;
    }

    .fun-facts-badge-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


.igc-override-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.igc-override-datetime-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.igc-override-datetime-group {
    flex: 1 1 320px;
}

.igc-override-launch-local-note {
    font-size: 0.85em;
    color: #94a3b8;
    margin-top: 4px;
}

.igc-override-datetime-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.igc-override-fullrow {
    grid-column: 1 / -1;
}

.igc-override-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
}

.igc-override-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.igc-override-group-label {
    font-weight: 700;
}

.igc-override-inline-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.igc-override-inline-label {
    gap: 6px;
}

.igc-override-inline-caption {
    font-size: 0.85em;
    color: #cbd5e1;
}

.igc-override-grid input,
.igc-override-grid textarea {
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 4px;
    font: inherit;
    color: #e2e8f0;
    background: #0f172a;
}

.igc-override-duration {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.igc-override-datetime-fields input {
    width: 170px;
}

.igc-override-duration-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.igc-override-date-input {
    width: 150px;
    min-width: 140px;
}

.igc-override-time-input {
    width: 100px;
    min-width: 90px;
}

.igc-override-time-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.igc-override-time-hour,
.igc-override-time-minute {
    width: 78px;
}

.igc-override-time-period {
    width: 82px;
}

.igc-override-time-separator {
    font-weight: 700;
}

.igc-override-duration-input {
    width: 68px;
    text-align: center;
}

.igc-override-duration-fields {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .igc-override-duration-fields label {
        flex: 0 1 70px;
    }

.igc-override-checkbox {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

    .igc-override-checkbox input {
        margin-right: 6px;
    }

.igc-override-checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-start;
}

.igc-override-number-label {
    gap: 6px;
    align-self: flex-start;
}

    .igc-override-number-label input {
        width: 160px;
    }

.igc-override-distance-speed {
    column-gap: 14px;
    row-gap: 8px;
    flex: 1 1 260px;
    justify-content: flex-start;
}

.igc-override-duration {
    flex: 1 1 260px;
}

.igc-override-select {
    min-width: 220px;
    width: fit-content;
}

.igc-override-pilot {
    margin-top: 2px;
}

.igc-override-reason textarea {
    resize: vertical;
    max-width: 100%;
}

.igc-override-original {
    border: 1px solid #334155;
    background: #0f172a;
    padding: 12px;
    border-radius: 6px;
}

.igc-override-original-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.igc-override-original-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 10px;
}

    .igc-override-original-grid span {
        display: block;
        font-size: 0.85em;
        color: #cbd5e1;
    }

    .igc-override-original-grid strong {
        display: block;
        color: #e2e8f0;
    }

        .igc-override-original-grid strong.igc-override-original-diff {
            color: #ff0000;
        }

.igc-override-original-meta {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 0.9em;
}

.igc-override-flag {
    cursor: pointer;
    margin-left: 0px;
    display: inline-block;
}

.igc-flags-cell {
    display: inline-block;
    border-radius: 4px;
    padding: 1px 4px;
}

.igc-primary-flag {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    outline-offset: 2px;
}

.igc-flag-details-popup {
    position: absolute;
    z-index: 3000;
    max-width: min(320px, calc(100vw - 16px));
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
    padding: 8px 10px;
    font-size: 0.9em;
    line-height: 1.35;
}

.igc-flag-details-line + .igc-flag-details-line {
    margin-top: 3px;
}

.igc-flag-details-popup.is-pinned {
    width: min(560px, calc(100vw - 24px));
    min-width: min(420px, calc(100vw - 24px));
    max-width: min(560px, calc(100vw - 24px));
    padding: 14px 16px;
    border-radius: 12px;
}

.igc-flag-details-popup.is-pinned .igc-flag-details-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.igc-flag-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.igc-flag-details-header-copy {
    min-width: 0;
}

.igc-flag-details-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.igc-flag-details-png-button {
    min-width: 42px;
    height: 24px;
    padding: 2px 8px;
    line-height: 18px;
}

.igc-flag-details-eyebrow {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.68;
}

.igc-flag-details-task-ref {
    margin-top: 4px;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0.9;
    overflow-wrap: anywhere;
}

.igc-flag-details-title {
    margin-top: 2px;
    font-size: 1.08em;
    font-weight: 700;
}

.igc-flag-details-subtitle,
.igc-flag-details-summary-note {
    margin-top: 4px;
    font-size: 0.84em;
    line-height: 1.35;
    opacity: 0.82;
    overflow-wrap: anywhere;
}

.igc-flag-details-subtitle-separator {
    opacity: 0.72;
}

.igc-flag-details-time-toggle {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.igc-flag-details-time-toggle:hover,
.igc-flag-details-time-toggle:focus-visible {
    opacity: 1;
}

.igc-flag-details-time-toggle:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.igc-flag-details-header-pill {
    flex: 0 0 auto;
}

.igc-flag-details-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 6px 6px 0;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.74em;
    font-weight: 700;
    line-height: 1.4;
}

.igc-flag-details-pill.tone-success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.igc-flag-details-pill.tone-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.igc-flag-details-pill.tone-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.igc-flag-details-pill.tone-info,
.igc-flag-details-pill.tone-neutral {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.igc-flag-details-section {
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding-top: 10px;
}

.igc-flag-details-section-collapsible {
    padding-top: 8px;
}

.igc-flag-details-section-title {
    margin-bottom: 8px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.68;
}

.igc-flag-details-section-collapsible > .igc-flag-details-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
}

.igc-flag-details-section-collapsible > .igc-flag-details-section-title::-webkit-details-marker {
    display: none;
}

.igc-flag-details-section-collapsible > .igc-flag-details-section-title::after {
    content: '+';
    font-size: 1.2em;
    line-height: 1;
}

.igc-flag-details-section-collapsible[open] > .igc-flag-details-section-title {
    margin-bottom: 8px;
}

.igc-flag-details-section-collapsible[open] > .igc-flag-details-section-title::after {
    content: '−';
}

.igc-flag-details-section-body {
    display: grid;
    gap: 6px;
}

.igc-flag-details-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.6fr);
    gap: 10px;
    align-items: start;
}

.igc-flag-details-label {
    font-size: 0.84em;
    font-weight: 600;
    opacity: 0.72;
}

.igc-flag-details-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.igc-flag-details-row.is-muted .igc-flag-details-value {
    opacity: 0.84;
}

.igc-flag-details-row.tone-warning .igc-flag-details-value,
.igc-flag-details-row.tone-danger .igc-flag-details-value {
    font-weight: 600;
}

.igc-flag-details-empty-section,
.igc-flag-details-empty {
    opacity: 0.62;
    font-style: italic;
}

.igc-flag-details-flight-heatmap > .igc-flag-details-section-body {
    display: block;
}

.igc-flag-heatmap-scroll {
    overflow-x: auto;
    padding-bottom: 2px;
}

.igc-flag-heatmap-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.74em;
    line-height: 1.2;
}

.igc-flag-heatmap-table th,
.igc-flag-heatmap-table td {
    padding: 4px 5px;
    border: 1px solid rgba(100, 116, 139, 0.36);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.igc-flag-heatmap-table thead th {
    background: rgba(30, 41, 59, 0.92);
    font-weight: 700;
}

.igc-flag-heatmap-scale-head {
    position: relative;
    text-align: center !important;
    color: #dbeafe;
    background:
        linear-gradient(
            90deg,
            rgba(248, 113, 113, 0.28) 0%,
            rgba(96, 165, 250, 0.24) 45%,
            rgba(74, 222, 128, 0.28) 100%
        ) !important;
}

.igc-flag-heatmap-scale-label {
    display: inline-block;
    padding: 0 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.igc-flag-heatmap-scale-label[title] {
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.igc-flag-heatmap-corner,
.igc-flag-heatmap-row-label,
.igc-flag-heatmap-footer-label {
    text-align: left !important;
}

.igc-flag-heatmap-corner,
.igc-flag-heatmap-row-label,
.igc-flag-heatmap-footer-label,
.igc-flag-heatmap-total-head,
.igc-flag-heatmap-total-cell {
    white-space: normal;
}

.igc-flag-heatmap-corner,
.igc-flag-heatmap-row-label,
.igc-flag-heatmap-footer-label {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
}

.igc-flag-heatmap-row-label,
.igc-flag-heatmap-footer-label {
    background: rgba(15, 23, 42, 0.95);
    font-weight: 600;
}

.igc-flag-heatmap-row-label span[title] {
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.igc-flag-heatmap-cell {
    background-color: rgba(96, 165, 250, var(--igc-heat-alpha, 0));
    min-width: 34px;
    width: 34px;
}

.igc-flag-heatmap-total-head,
.igc-flag-heatmap-total-cell {
    min-width: 46px;
    width: 46px;
}

.igc-flag-heatmap-total-head,
.igc-flag-heatmap-total-cell,
.igc-flag-heatmap-table tfoot th,
.igc-flag-heatmap-table tfoot td {
    background: rgba(30, 41, 59, 0.82);
    font-weight: 700;
}

.igc-flag-heatmap-total-cell.is-tinted {
    background-image:
        linear-gradient(rgba(96, 165, 250, var(--igc-total-heat-alpha, 0)), rgba(96, 165, 250, var(--igc-total-heat-alpha, 0))),
        linear-gradient(rgba(30, 41, 59, 0.82), rgba(30, 41, 59, 0.82));
}

.igc-flag-heatmap-empty {
    display: inline-block;
    min-width: 1.8ch;
    min-height: 1em;
}

.png-export-shell .igc-flag-heatmap-row-label span[title],
.png-export-shell .igc-flag-heatmap-scale-label[title] {
    text-decoration: none;
}

.igc-flags-cell-designer {
    background: #ff00db8c;
}

.igc-override-view-only .igc-override-grid,
.igc-override-view-only .igc-override-actions {
    display: none;
}

.igc-override-view-only .igc-override-original {
    margin-top: 0;
}

.igc-override-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.igc-override-actions-right,
.igc-override-actions-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.igc-override-busy-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d7deeb;
    font-weight: 600;
}

.igc-override-busy-indicator[hidden] {
    display: none;
}

.igc-override-busy-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(215, 222, 235, 0.2);
    border-top-color: #7db4ff;
    animation: igc-override-spinner-rotate 0.8s linear infinite;
}

.igc-override-dialog .igc-button-style {
    margin: 0;
}

@keyframes igc-override-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

body.modal-open {
    overflow: hidden;
}

.related-tasks-dialog {
    width: min(860px, calc(100vw - 24px));
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.related-tasks-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
    min-height: 0;
    overflow: hidden;
}

    .related-tasks-body #relatedTasksModalForm {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 0;
        overflow: hidden;
    }

.pm-decoy {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.related-tasks-content {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 4px 8px 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tasks-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.related-tasks-tab {
    margin: 0;
}

.related-tasks-tab-active {
    box-shadow: inset 0 0 0 1px currentColor;
}

.related-tasks-helper {
    margin: 0;
    font-size: 0.9em;
    color: #94a3b8;
}

.related-tasks-current {
    font-size: 0.9em;
    font-weight: 600;
}

.related-tasks-content input,
.related-tasks-content select,
.related-tasks-content textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.related-tasks-content select {
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 4px;
    font: inherit;
    color: #e2e8f0;
    background: #0f172a;
}

.related-tasks-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.related-tasks-bottom-actions {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.related-tasks-stay-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    white-space: nowrap;
}

    .related-tasks-stay-open input {
        width: auto;
        margin: 0;
        display: inline-block;
        flex: 0 0 auto;
    }

    .related-tasks-stay-open span {
        white-space: nowrap;
    }

.related-tasks-buttons {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
}

    .related-tasks-buttons .related-tasks-danger {
        margin-right: 0;
    }

.related-tasks-danger {
    margin-right: auto;
}

.related-tasks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.related-tasks-field,
.related-tasks-full {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-tasks-full {
    grid-column: 1 / -1;
}

.related-tasks-label {
    font-size: 0.9em;
    font-weight: 600;
}

.related-tasks-group-mode {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.related-tasks-inline-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

    .related-tasks-inline-choice input {
        width: auto;
        margin: 0;
    }

.related-tasks-content a,
.related-tasks-content a:visited {
    color: #93c5fd;
}

.related-tasks-help-inline {
    font-size: 0.82em;
    color: #94a3b8;
}

.related-tasks-summary,
.related-tasks-preview,
.related-tasks-section-title {
    font-weight: 600;
    margin: 10px 0 6px;
}

.related-tasks-list {
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px;
    background: #0f172a;
}

.related-tasks-preview,
.related-tasks-list {
    max-height: 220px;
    overflow: auto;
}

.related-tasks-list-item {
    padding: 6px 0;
    border-bottom: 1px solid #334155;
}

    .related-tasks-list-item:last-child {
        border-bottom: none;
    }

.related-tasks-current-item {
    font-weight: 700;
    background: rgba(250, 204, 21, 0.2);
    border-radius: 4px;
    padding-left: 6px;
    padding-right: 6px;
}

.related-tasks-group-top-actions {
    justify-content: flex-start;
}

.related-tasks-relation-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1.2;
}


.related-task-picker-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-task-quick-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-task-quick-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .related-task-quick-input-wrap .related-task-number-quick {
        flex: 1;
    }

.related-task-quick-select,
.related-task-change-btn {
    white-space: nowrap;
}

.related-task-selected {
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px;
    background: #111827;
    font-size: 0.9em;
}

.related-task-selected-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-task-picker-error {
    min-height: 1.1em;
}

.related-task-picker {
    position: relative;
}

.related-task-picker-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 2;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0b1020;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.related-task-picker-option {
    width: 100%;
    text-align: left;
    padding: 8px;
    border: 0;
    color: #e2e8f0;
    background: transparent;
    cursor: pointer;
}

    .related-task-picker-option:hover,
    .related-task-picker-option:focus {
        background: #1e293b;
    }

.related-tasks-error {
    color: #fca5a5;
    font-size: 0.82em;
}

@media (max-width: 720px) {
    .related-tasks-grid {
        grid-template-columns: 1fr;
    }
}

.related-tasks-actions .igc-button-style {
    margin: 0;
}

.related-tasks-content input:focus,
.related-tasks-content select:focus,
.related-tasks-tab:focus,
.related-tasks-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.igc-reanalyze-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9500;
    padding: 12px;
}

.igc-reanalyze-dialog {
    background: #0b1020;
    color: #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 14px;
    border: 1px solid #334155;
}

.igc-reanalyze-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.igc-reanalyze-intro {
    margin: 0;
    color: #cbd5e1;
}

.igc-reanalyze-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.igc-reanalyze-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(140px, 1fr) minmax(140px, 1fr);
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.08);
}

.igc-reanalyze-header {
    font-weight: 700;
    background: rgba(148, 163, 184, 0.16);
}

.igc-reanalyze-cell {
    font-size: 0.95em;
}

.igc-reanalyze-label {
    color: #cbd5e1;
}

.igc-reanalyze-diff {
    color: #facc15;
    font-weight: 700;
}

.igc-reanalyze-note {
    font-size: 0.9em;
    color: #94a3b8;
}

.igc-override-checkbox-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

    .igc-override-checkbox-column .igc-override-checkbox {
        display: flex; /* overrides the grid label style */
        flex-direction: row; /* checkbox and text on one line */
        align-items: center;
        justify-content: flex-start;
        font-weight: 400; /* if you don’t want them bold */
    }

        .igc-override-checkbox-column .igc-override-checkbox input {
            margin-right: 0.35rem;
        }

.igc-legend-btn {
    margin-right: 8px;
}

#latestTopIGCTable .leaderboard-col-pilot {
    min-width: 120px;
    white-space: nowrap;
}

#latestTopIGCTable .leaderboard-col-glider {
    min-width: 150px;
    white-space: nowrap;
}

#latestTopIGCTable .leaderboard-col-speed {
    min-width: 90px;
    white-space: nowrap;
}

#latestTopIGCTable .leaderboard-col-task {
    min-width: 240px;
}

#latestTopIGCTable .leaderboard-col-date {
    min-width: 160px;
    white-space: nowrap;
}

#latestTopIGCTable .leaderboard-col-sim {
    min-width: 110px;
    white-space: nowrap;
}

.igcRecordsTable a:hover {
    text-decoration: underline;
}

.igcRecordsTable a:visited {
    color: #1da1f2;
}

.igc-button-style {
    background-color: #7289da;
    color: white;
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 0;
    height: 25px; /* Set a fixed height */
    line-height: 20px; /* Adjust line-height to center the text vertically */
}

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

    .igc-button-style:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #7289da;
    }

.png-export-shell {
    position: fixed;
    top: 0;
    left: -20000px;
    z-index: -1;
    pointer-events: none;
}

.png-export-shell .tool-entry,
.png-export-shell .content-wrapper,
.png-export-shell .content,
.png-export-shell .igc-override-dialog,
.png-export-shell .fun-facts-dialog,
.png-export-shell .fun-facts-badge-winners-scroll,
.png-export-shell .dataTables_wrapper,
.png-export-shell .dataTables_scroll,
.png-export-shell .dataTables_scrollHead,
.png-export-shell .dataTables_scrollBody {
    max-height: none !important;
    overflow: visible !important;
}

.png-export-shell .dataTables_scrollHeadInner,
.png-export-shell .dataTables_scrollHeadInner > table,
.png-export-shell .dataTables_scrollBody > table,
.png-export-shell #igcRecordsTable {
    max-width: none !important;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog {
    width: 1180px !important;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-11 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge {
    grid-column: span 3;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge:nth-child(9) {
    grid-column: 2 / span 3;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge:nth-child(10) {
    grid-column: 5 / span 3;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-11 > .fun-facts-badge:nth-child(11) {
    grid-column: 8 / span 3;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-10 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-10 > .fun-facts-badge {
    grid-column: span 3;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-10 > .fun-facts-badge:nth-child(9) {
    grid-column: 4 / span 3;
}

.png-export-shell .png-export-fun-facts.fun-facts-dialog .fun-facts-badge-grid.badge-count-10 > .fun-facts-badge:nth-child(10) {
    grid-column: 7 / span 3;
}

.png-export-shell .igc-flag-details-popup.png-export-opaque-igc-details,
.png-export-shell .igc-flag-details-popup.png-export-opaque-igc-details .igc-flag-details-card {
    background: #0f172a !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: default;
    color: #ffffff !important;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none
}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: #ffffff !important;
}

    .dataTables_wrapper .dataTables_length select {
        background-color: #3a3d42 !important;
        color: #ffffff !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        color: white !important;
    }

.latest-igc-header {
    text-align: center;
    margin-bottom: 0px;
}

    .latest-igc-header h2 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 1px;
    }

    .latest-igc-header p {
        font-size: 14px;
        color: #cccccc;
    }

.latest-igc-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin: 10px 0;
}

.latest-igc-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

    .latest-igc-control-group label {
        font-size: 12px;
        color: #cccccc;
    }

.leaderboard-filter {
    background-color: #2b2d31;
    color: #f0f0f0;
    border: 1px solid #3a3d42;
    border-radius: 4px;
    padding: 4px 8px;
}

    .leaderboard-filter:focus {
        outline: 1px solid #ffb400;
    }

.latest-igc-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #2b2d31;
    border-radius: 999px;
    padding: 6px 14px;
}

    .latest-igc-mode-toggle .mode-option {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        color: #f0f0f0;
        cursor: pointer;
    }

    .latest-igc-mode-toggle input[type="radio"] {
        accent-color: #ffb400;
    }

.competition-class-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #3a3d42;
    color: #ffffff;
    font-size: 11px;
}

.leaderboard-result-count {
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
    color: #cccccc;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    background-color: #2b2d31;
    padding: 5px;
    border-radius: 8px;
    border-bottom: 1px solid #444;
}

.hero-left {
    display: flex;
    align-items: center;
    flex: 1 1 300px;
    gap: 16px;
}

.hero-logo-img-large {
    width: 200px;
    height: auto;
}

.hero-branding h1 {
    font-size: 30px;
    margin: 0;
    color: white;
}

.hero-subtagline {
    font-size: 16px;
    color: #ccc;
    margin: 4px 0;
    font-style: italic;
}

.hero-values {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .hero-values li {
        font-size: 16px;
        color: #aaa;
    }

.hero-right {
    flex: 1 1 300px;
    text-align: center;
    min-width: 200px;
}

.hero-prompt {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ddd;
    font-style: italic;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.nav-tile {
    background-color: #7289da;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .nav-tile:hover {
        background-color: #5b6eae;
        transform: translateY(-2px);
    }

.hero-discord-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 16px;
    color: #ccc;
    text-align: center;
    flex-wrap: wrap;
}

    .hero-discord-cta a {
        background-color: #7289da;
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.2s ease-in-out;
    }

        .hero-discord-cta a:hover {
            background-color: #4752c4;
        }

.home-platform-stats-section {
    margin: 0 0 14px;
}

.home-platform-stats-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.home-platform-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 10px;
}

.home-platform-stat-card {
    background-color: #23272a;
    border: 1px solid #3a3d42;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}

.home-platform-stat-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .home-platform-stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 700px) {
    .home-platform-stats-grid {
        grid-template-columns: 1fr;
    }

    .home-platform-stat-text {
        white-space: normal;
    }
}

/* Banner container */
#scrollingBanner {
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    /* top/bottom 6px, left 0, right 36px for close button */
    padding: 6px 0;
    padding-right: 36px;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    text-align: center;
    z-index: 1000;
}

    /* Default content: ellipsis if too long */
    #scrollingBanner .banner-content {
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }

        /* When it fits: wrap & truly center */
        #scrollingBanner .banner-content.centered {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
        }

/* Marquee keyframes */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Scrolling state: remove ellipsis clamp then slide */
#scrollingBanner .banner-content.scrolling {
    /* undo the default clamp rules */
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    /* marquee animation */
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

#scrollingBanner .banner-content a,
#scrollingBanner .banner-content a:visited {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

    #scrollingBanner .banner-content a:hover,
    #scrollingBanner .banner-content a:focus-visible {
        text-decoration-thickness: 2px;
    }

/* Close button always on top */
#scrollingBanner .close-banner {
    position: absolute;
    top: 4px;
    right: 8px;
    z-index: 10;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    user-select: none;
    color: inherit; /* matches banner text color */
}

/* Popular Tasks table */
#popularTasksTable thead th:not(.dt-head-center) {
    text-align: left !important;
}

#popularTasksTable thead th.dt-head-center {
    text-align: center !important;
}

/* New/Updated Tasks table */
#newTasksTable thead th:not(.dt-head-center) {
    text-align: left !important;
}

#newTasksTable thead th.dt-head-center {
    text-align: center !important;
}

/* Only left-align headers in Upcoming Events that are NOT dt-head-center */
#upcomingEventsTable thead th:not(.dt-head-center) {
    text-align: left !important;
}

/* Center any header you�ve tagged with dt-head-center */
#upcomingEventsTable thead th.dt-head-center {
    text-align: center !important;
}
/* Top 5 Contributors (7d) */
#topContrib7Table thead th:not(.dt-head-center),
#topContrib7Table thead td:not(.dt-head-center) {
    text-align: left !important;
}

#topContrib7Table thead th.dt-head-center,
#topContrib7Table thead td.dt-head-center {
    text-align: center !important;
}

#topContrib7Table tbody td.dt-body-center {
    text-align: center !important;
}

/* Top 5 Gliders (7d) */
#topGliders7Table thead th:not(.dt-head-center),
#topGliders7Table thead td:not(.dt-head-center) {
    text-align: left !important;
}

#topGliders7Table thead th.dt-head-center,
#topGliders7Table thead td.dt-head-center {
    text-align: center !important;
}

#topGliders7Table tbody td.dt-body-center {
    text-align: center !important;
}

/* MSFS Versions (7d) */
#msfsVer7Table thead th:not(.dt-head-center),
#msfsVer7Table thead td:not(.dt-head-center) {
    text-align: left !important;
}

#msfsVer7Table thead th.dt-head-center,
#msfsVer7Table thead td.dt-head-center {
    text-align: center !important;
}

#msfsVer7Table tbody td.dt-body-center {
    text-align: center !important;
}

/* Alert overlay */
/* Custom alert overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* The alert box */
.alert-box {
    position: relative;
    background: #707070;
    color: #ffffff;
    padding: 1.5em;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 20%;
    text-align: center;
    font-family: inherit;
}

.alert-box-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

    /* OK button as a column flex container */
    .alert-box button {
        margin-top: 1em;
        padding: 0.5em 1em;
        border: none;
        background: #7289da;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        /* Hover state */
        .alert-box button:hover {
            background: #5b6eae;
        }

    /* Countdown text inside the button, below “OK” */
    .alert-box .alert-countdown {
        margin-top: 0.25em;
        font-size: 1em;
        color: #ccc;
        /* no absolute positioning needed */
    }

#popularRangeSelect {
    font-size: 1rem; /* match your H3 size (adjust as needed) */
    background-color: #23272a;
    color: white; /* ← make the text white */
    padding: 0.15em 0.15em; /* breathing room */
    line-height: 1; /* vertically center the text */
    border-radius: 4px; /* soften the corners */
    border: 1px solid #6d6c6c; /* or tweak to a lighter/darker shade */
}

#upcomingEventsTable tbody tr.highlightYellow > td {
    background-color: rgb(255 229 0 / 41%) !important;
}

/* highlightGreen wins over odd/even striping */
#upcomingEventsTable tbody tr.highlightGreen > td {
    background-color: rgb(77 231 77 / 33%) !important;
}

/* Pagination buttons dark theme (similar to your IGCS vibe) */
.dataTables_wrapper .dataTables_paginate.wsg-dark-pager .paginate_button {
    padding: 4px 10px;
    margin: 2px;
    border-radius: 4px;
    background-color: #333;
    color: #eee !important;
    border: 1px solid #444;
}

    .dataTables_wrapper .dataTables_paginate.wsg-dark-pager .paginate_button.current {
        background-color: #555 !important;
        color: #555 !important;
        font-weight: 600;
        border-color: #666;
    }

    .dataTables_wrapper .dataTables_paginate.wsg-dark-pager .paginate_button.disabled {
        opacity: 0.5;
        cursor: default !important;
    }

    .dataTables_wrapper .dataTables_paginate.wsg-dark-pager .paginate_button:hover {
        background-color: #666 !important;
        color: #7289da !important;
        border-color: #777;
    }

.ut-stars .ut-star {
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

    .ut-stars .ut-star.filled {
        text-shadow: 0 0 1px rgba(0,0,0,.3);
    }

.list-toggle {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .list-toggle .box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: #fff;
        border-radius: 4px;
    }
/* === HERO TOP STRIP – mini featured communities under hero buttons === */

.hero-featured-strip {
    margin: 0.25rem auto 0; /* center this block under the buttons */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}

.hero-featured-strip-title {
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

/* Container just holds the scrolling track + arrows */
.hero-featured-strip-container {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden; /* keep everything inside the hero band */
    box-sizing: border-box;
}

/* Scrollable row of mini cards */
.hero-featured-strip-track {
    display: flex;
    justify-content: center; /* center logos when they all fit */
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 1.25rem; /* inset keeps arrows from covering edges */
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none; /* Firefox: hide scrollbar */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    .hero-featured-strip-track::-webkit-scrollbar {
        display: none; /* WebKit: hide scrollbar */
    }

/* Arrow buttons (same scroll-button class you already use) */
.hero-featured-strip-container .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

    .hero-featured-strip-container .scroll-button.left {
        left: 0.35rem;
    }

    .hero-featured-strip-container .scroll-button.right {
        right: 0.35rem;
    }

/* Mini “card” around each logo */
.hero-featured-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
}

    /* Hover: small grow + Discord-blue outline */
    .hero-featured-item:hover {
        transform: scale(1.05);
        border-color: #7289da;
        box-shadow: 0 0 10px rgba(114, 137, 218, 0.4);
    }

    /* Logos inside the mini-cards */
    .hero-featured-item img {
        display: block;
        height: 60px; /* fixed height */
        width: auto; /* width adapts to aspect ratio */
        object-fit: contain;
        margin: 0 auto 0.2rem auto;
    }

.task-events-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #dcdcdc;
}

.task-events-search-anchor {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.eventFilterPanel {
    display: block;
    background: #1e1f20;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: #dcdcdc;
}

.eventFilterPanel[hidden] {
    display: none;
}

.eventFilterPanelTitle {
    margin-bottom: 8px;
    line-height: 1.4;
}

.eventFilterPanelControls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
}

.eventFilterPanelInputs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.event-filter-number {
    width: 60px;
    background: #1e1f20;
    color: #dcdcdc;
    border: 1px solid #444;
    padding: 2px 4px;
}

.eventFilterPanelButtons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.event-filter-button {
    padding: 2px 8px;
}

.taskEventsTable {
    width: 100% !important;
}

.task-event-flight-room-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.task-event-flight-room-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 28px;
    padding: 0;
}

.task-event-flight-room-share-icon {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

.difficulty-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.difficulty-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.difficulty-filter-label {
    margin: 0;
}

.difficulty-filter-search {
    flex: 1 1 auto;
    padding: 4px 6px;
    background: #1e1f20;
    color: #dcdcdc;
    border: 1px solid #444;
    border-radius: 4px;
}

.difficulty-checkbox-container {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-inline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.task-inline-button {
    padding: 4px 8px;
    border-radius: 3px;
}

.port-input {
    width: 90px;
}

.settings-fieldset {
    margin-bottom: 12px;
}

    .settings-fieldset:last-child {
        margin-bottom: 0;
    }

.port-error {
    display: none;
    color: red;
    margin-top: 4px;
}

.weekly-schedule-day {
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.weekly-schedule-day--today {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.weekly-schedule-date-badge,
.weekly-schedule-today-badge {
    font-size: 0.78em;
    font-weight: 600;
    margin-left: 6px;
}

.weekly-schedule-date-badge {
    color: #c7d2e3;
}

.weekly-schedule-today-badge {
    color: #ffe28a;
}

.about-patreon-section {
    display: grid;
    gap: 16px;
}

.about-patreon-intro {
    margin: 0;
    color: #d7deeb;
}

.about-page {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.about-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.about-section-card {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-lg);
    background: var(--surface-glass);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
}

.about-section-card--lead,
.about-section-card--support,
.about-section-card--wide {
    grid-column: 1 / -1;
}

.about-section-card h3,
.about-section-card p,
.about-section-card ul {
    margin: 0;
}

.about-section-card ul {
    padding-left: 1.25rem;
}

#aboutTab .about-section-card--support .button-style {
    font-weight: 700;
}

.about-patreon-subsection-mount .tool-entry {
    margin-bottom: 0;
}

.about-patreon-subsection-mount,
.about-patreon-section,
.about-patreon-notes-scroller,
.about-patreon-notes-track,
.about-patreon-quote-card {
    min-width: 0;
    box-sizing: border-box;
}

#aboutTab .tool-entry,
#aboutTab .tool-entry .content,
#aboutTab .tool-entry .content-wrapper {
    min-width: 0;
    box-sizing: border-box;
}

.about-patreon-empty {
    margin: 0;
    color: #cbd5e1;
    font-style: italic;
}

.about-patreon-supporters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    align-items: stretch;
}

.about-patreon-supporter-cell {
    flex: 0 1 auto;
    width: fit-content;
    min-width: 140px;
    max-width: 100%;
    padding: 7px 14px;
    border: 1px solid #566274;
    background: rgba(15, 23, 42, 0.42);
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.25;
    color: #eef3fb;
    word-break: break-word;
    text-align: center;
    white-space: nowrap;
}

.about-patreon-notes-scroller {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.about-patreon-notes-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, auto));
    grid-auto-columns: clamp(220px, 30vw, 280px);
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding: 4px 1.85rem;
    scroll-padding-inline: 1.85rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    box-sizing: border-box;
}

    .about-patreon-notes-track::-webkit-scrollbar {
        display: none;
    }

.about-patreon-notes-track-single-row {
    grid-template-rows: auto;
}

.about-patreon-notes-scroller .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

    .about-patreon-notes-scroller .scroll-button.left {
        left: 0.35rem;
    }

    .about-patreon-notes-scroller .scroll-button.right {
        right: 0.35rem;
    }

.about-patreon-quote-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 18px 14px;
    border: 1px solid #526176;
    border-radius: 10px;
    background: rgba(24, 33, 46, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    min-height: 110px;
    box-sizing: border-box;
    scroll-snap-align: start;
}

    .about-patreon-quote-card::before,
    .about-patreon-quote-card::after {
        position: absolute;
        color: rgba(255, 255, 255, 0.16);
        font-family: Georgia, "Times New Roman", serif;
        line-height: 1;
    }

    .about-patreon-quote-card::before {
        content: "\201C";
        top: 8px;
        left: 10px;
        font-size: 2.1rem;
    }

    .about-patreon-quote-card::after {
        content: "\201D";
        right: 10px;
        bottom: 4px;
        font-size: 1.7rem;
    }

.about-patreon-quote-text {
    margin: 0;
    white-space: pre-line;
    color: #f4f7fb;
    text-align: center;
}

.about-patreon-quote-compact {
    padding-top: 14px;
    padding-bottom: 12px;
}

    .about-patreon-quote-compact .about-patreon-quote-text {
        font-size: 0.92rem;
        line-height: 1.45;
        font-style: italic;
    }

.about-patreon-notes-track .about-patreon-quote-card:nth-child(odd) {
    background: rgba(24, 33, 46, 0.9);
    border-color: #526176;
}

.about-patreon-notes-track .about-patreon-quote-card:nth-child(even) {
    background: rgba(31, 42, 58, 0.92);
    border-color: #63758d;
}

@media (max-width: 640px) {
    .about-section-grid {
        grid-template-columns: 1fr;
    }

    .about-section-card {
        padding: 14px 14px 16px;
    }

    .about-patreon-supporter-cell {
        min-width: 0;
        max-width: calc(100% - 2px);
        white-space: normal;
    }

    .about-patreon-notes-track {
        grid-auto-columns: calc(100% - 3.7rem);
        gap: 10px;
        padding-left: 1.65rem;
        padding-right: 1.65rem;
        scroll-padding-inline: 1.65rem;
    }
}

@media (max-width: 480px) {
    #aboutTab .header-container {
        gap: 12px;
        align-items: center;
    }

    #aboutTab .header-image {
        width: 160px;
        height: auto;
    }

    #aboutTab .header-container h2 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .about-page {
        gap: 14px;
    }

    .about-section-grid {
        gap: 14px;
    }

    .about-section-card {
        gap: 10px;
        padding: 12px 12px 14px;
    }

    .about-section-card ul {
        padding-left: 1.1rem;
    }

    .about-patreon-notes-track {
        grid-auto-columns: calc(100% - 2.8rem);
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        scroll-padding-inline: 1.2rem;
    }
}

/* Glassmorphism refresh overrides */
body {
    background: radial-gradient(circle at top left, rgba(87, 124, 195, 0.3), transparent 34%), radial-gradient(circle at top right, rgba(70, 132, 197, 0.22), transparent 28%), linear-gradient(180deg, #0b1320 0%, #111b2c 48%, #0d1626 100%);
    color: var(--color-text);
}

#container {
    background: transparent;
}

#tabsContainer {
    padding: 0 12px 12px;
    box-sizing: border-box;
    gap: 0;
}

#tabButtons {
    gap: 8px;
    padding: 12px 12px 6px;
    border-bottom: none;
    background: transparent;
}

.tabButton {
    min-height: 48px;
    border: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-lg);
    background: var(--surface-glass);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .tabButton:hover {
        transform: translateY(-1px);
        border-color: var(--surface-border-strong);
        background: linear-gradient(180deg, rgba(92, 129, 197, 0.32), rgba(22, 31, 48, 0.78));
    }

    .tabButton.active {
        background: linear-gradient(135deg, rgba(131, 177, 255, 0.32), rgba(89, 126, 214, 0.22)), var(--surface-glass-strong);
        border-color: var(--surface-border-strong);
        box-shadow: 0 18px 34px rgba(16, 29, 51, 0.34);
    }

.tabContent {
    margin: 0;
    padding: 14px;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-xl);
    background: linear-gradient(180deg, rgba(17, 27, 43, 0.8), rgba(13, 22, 36, 0.7));
    box-shadow: var(--surface-shadow);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(calc(var(--surface-saturation) - 15%));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(calc(var(--surface-saturation) - 15%));
}

#mapTab.tabContent.active {
    margin: 0;
    border-radius: var(--surface-radius-xl);
    border: 1px solid var(--surface-border);
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.82), rgba(12, 20, 32, 0.7));
    box-shadow: var(--surface-shadow);
}

#mapContainer {
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
}

#mapShell {
    flex: 1 1 auto;
}

#map {
    position: relative;
    overflow: hidden;
    border-radius: var(--surface-radius-xl);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow-soft);
}

.map-edge-toggle {
    position: absolute;
    top: 50%;
    --edge-shift: 0;
    transform: translate(var(--edge-shift), -50%);
    width: 26px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(162, 190, 235, 0.55);
    background: linear-gradient(180deg, rgba(54, 80, 127, 0.95), rgba(25, 39, 63, 0.94));
    color: #eef6ff;
    box-shadow: 0 12px 28px rgba(7, 12, 22, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    cursor: pointer;
    z-index: 1250;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

    .map-edge-toggle::before {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 46%, rgba(9, 16, 29, 0.12));
        pointer-events: none;
    }

    .map-edge-toggle:hover {
        transform: translate(var(--edge-shift), -50%) scale(1.04);
        border-color: rgba(192, 215, 255, 0.78);
        background: linear-gradient(180deg, rgba(67, 98, 153, 0.98), rgba(31, 48, 80, 0.96));
        box-shadow: 0 16px 32px rgba(7, 12, 22, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .map-edge-toggle:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 5px rgba(76, 144, 255, 0.45);
    }

    .map-edge-toggle[hidden] {
        display: none !important;
    }

.map-edge-toggle-left {
    left: 0;
    --edge-shift: -62%;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.map-edge-toggle-right {
    right: 0;
    --edge-shift: 62%;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.map-edge-toggle-icon {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
    text-shadow: 0 1px 0 rgba(6, 10, 18, 0.35);
}

#searchAndFilters,
#taskDetailContainer {
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-xl);
    background: var(--surface-glass);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
}

#searchAndFilters {
    padding: 12px 8px 12px 12px;
}

#taskDetailContainer {
    padding: 12px;
    border-left: 1px solid var(--surface-border);
    background: var(--surface-glass-strong);
}

#resizer {
    width: 10px;
    background: transparent;
    position: relative;
}

    #resizer::after {
        content: "";
        position: absolute;
        top: 18px;
        bottom: 18px;
        left: 50%;
        width: 4px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(160, 188, 232, 0.1), rgba(160, 188, 232, 0.55), rgba(160, 188, 232, 0.1));
    }

#globeHomeButton,
#fullWorldButton,
#searchFiltersButton,
#tableToggleButton,
#taskControlPanel,
#taskControlPanel button,
#selectFileButton,
#refreshGridButton,
.button-style,
.button-mini-style,
.igc-button-style,
.event-filter-button,
.hero-discord-cta a {
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    background: linear-gradient(180deg, rgba(123, 161, 226, 0.26), rgba(30, 42, 66, 0.74));
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
}

#globeHomeButton,
#fullWorldButton,
#searchFiltersButton,
#tableToggleButton,
#selectFileButton {
    top: 16px;
}

#globeHomeButton {
    left: 52px;
}

#fullWorldButton {
    left: 52px;
}

#searchFiltersButton {
    left: 94px;
}

#tableToggleButton {
    left: 136px;
}

#taskControlPanel {
    top: 12px;
    right: 70px;
    padding: 6px;
    gap: 4px;
    background: linear-gradient(180deg, rgba(20, 29, 45, 0.82), rgba(15, 23, 38, 0.74));
}

    #taskControlPanel button {
        margin: 0;
    }

        #globeHomeButton:hover,
        #fullWorldButton:hover,
        #searchFiltersButton:hover,
        #tableToggleButton:hover,
        #taskControlPanel button:hover,
        #selectFileButton:hover,
        #refreshGridButton:hover,
        .button-style:hover,
        .button-mini-style:hover,
        .igc-button-style:hover,
        .event-filter-button:hover,
        .hero-discord-cta a:hover {
            transform: translateY(-1px);
            border-color: var(--surface-border-strong);
            background: linear-gradient(180deg, rgba(145, 186, 255, 0.38), rgba(40, 58, 89, 0.86));
        }

.upload-container {
    top: 10px;
    left: 184px;
    min-height: 46px;
    width: 176px;
    padding: 6px 10px;
    border: 1px dashed var(--surface-border-strong);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 35, 53, 0.78), rgba(13, 23, 36, 0.68));
    color: var(--color-text);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
}

    .upload-container.dragover {
        background: linear-gradient(180deg, rgba(63, 104, 174, 0.78), rgba(32, 58, 102, 0.82));
        border-color: rgba(214, 228, 255, 0.72);
    }

#taskGridOverlay {
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: none;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-xl);
    background: linear-gradient(180deg, rgba(17, 27, 43, 0.8), rgba(10, 18, 29, 0.7));
    box-shadow: var(--surface-shadow);
    backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
}

#taskGridContainer,
#taskGridTable_wrapper,
#taskGridTable_wrapper .dataTables_scroll {
    min-height: 0;
    overflow: hidden;
    height: auto !important;
}

#taskGridContainer,
#taskGridTable_wrapper {
    flex: 0 0 auto;
}

#taskGridHeader {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(38, 52, 77, 0.72), rgba(19, 29, 46, 0.8));
}

#taskGridOverlay .dataTables_scrollHeadInner,
#taskGridTable_wrapper .dataTables_scrollBody,
.igcRecordsTable_wrapper .dataTables_scrollBody,
#clubEventsTable_wrapper .dataTables_scrollBody {
    background: var(--surface-solid);
}

#taskGridOverlay .dataTables_scrollHeadInner {
    height: 46px;
    border: 1px solid var(--surface-border);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    width: 100% !important;
    overflow: hidden;
}

#taskGridTable_wrapper .dataTables_scrollHead,
#taskGridTable_wrapper .dataTables_scrollHeadInner,
#taskGridTable_wrapper .dataTables_scrollHeadInner table,
#taskGridTable_wrapper .dataTables_scrollBody table {
    width: 100% !important;
}

    #taskGridTable_wrapper .dataTables_scrollHeadInner table,
    #taskGridTable_wrapper .dataTables_scrollBody table,
    #taskGridTable {
        table-layout: fixed;
    }

#taskGridTable_wrapper .dataTables_scrollBody,
.igcRecordsTable_wrapper .dataTables_scrollBody,
#clubEventsTable_wrapper .dataTables_scrollBody {
    border: 1px solid var(--surface-border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

#taskGridTable_wrapper .dataTables_scrollBody {
    overflow-x: hidden !important;
}

.igcRecordsTable_wrapper .dataTables_scrollBody,
#clubEventsTable_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
}

#taskGridTable thead th,
#taskGridTable tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#taskGridTable tbody tr,
.igcRecordsTable tbody tr,
.clubEventsTable tbody tr {
    background-color: rgba(18, 27, 43, 0.92);
}

    #taskGridTable tbody tr:nth-child(even),
    .igcRecordsTable tbody tr:nth-child(even),
    .clubEventsTable tbody tr:nth-child(even) {
        background-color: rgba(12, 21, 35, 0.98) !important;
    }

    #taskGridTable tbody tr:hover,
    .igcRecordsTable tbody tr:hover,
    .clubEventsTable tbody tr:hover {
        background-color: rgba(67, 117, 199, 0.42) !important;
    }

    #taskGridTable tbody tr.selected,
    .igcRecordsTable tbody tr.selected,
    .clubEventsTable tbody tr.selected {
        background-color: rgba(73, 123, 215, 0.7) !important;
    }

.tool-entry,
.community-section,
.community-item,
.home-platform-stat-card,
.weekly-schedule-day {
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-lg);
    background: var(--surface-glass);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
}

.tool-entry {
    overflow: hidden;
    margin-bottom: 14px;
}

    .tool-entry .title {
        padding: 12px 14px;
        border-bottom: 1px solid var(--surface-border);
        background: var(--surface-header);
    }

    .tool-entry .content {
        padding: 14px;
        background: linear-gradient(180deg, rgba(12, 20, 33, 0.88), rgba(10, 16, 27, 0.92));
    }

    .tool-entry .title:hover,
    .tool-entry .title.highlightGreen:hover,
    .tool-entry .title.highlightYellow:hover {
        background: linear-gradient(180deg, rgba(95, 133, 202, 0.42), rgba(38, 54, 85, 0.7));
    }

.countdown-section,
.eventFilterPanel {
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--surface-shadow-soft);
}

.igc-flag-details-popup {
    z-index: 4800;
    max-width: min(340px, calc(100vw - 20px));
    border: 1px solid rgba(188, 208, 245, 0.4);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(92, 122, 178, 0.34), rgba(28, 43, 72, 0.95));
    color: #f7fbff;
    box-shadow: 0 0 0 1px rgba(188, 208, 245, 0.1), 0 28px 52px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(calc(var(--surface-blur) - 2px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 2px)) saturate(var(--surface-saturation));
}

.igc-primary-flag:hover {
    transform: translateY(-1px);
}

.igc-primary-flag:focus-visible,
.igc-primary-flag[aria-expanded="true"] {
    outline: none;
    box-shadow: 0 0 0 2px rgba(182, 207, 255, 0.3);
}

.igc-flag-details-popup.is-preview {
    pointer-events: none;
}

.igc-flag-details-popup.is-pinned {
    pointer-events: auto;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100vw - 32px));
    max-width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.igc-flag-details-line + .igc-flag-details-line {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(166, 189, 227, 0.18);
}

.home-platform-stat-card {
    padding: 12px 14px;
}

.community-section {
    padding-top: 8px;
}

.community-item {
    background: linear-gradient(180deg, rgba(25, 38, 58, 0.88), rgba(13, 22, 35, 0.84));
}

.modal,
.igc-override-overlay {
    background: var(--surface-overlay);
    backdrop-filter: blur(calc(var(--surface-blur) + 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) + 4px)) saturate(var(--surface-saturation));
}

.modal-content,
#caption,
.igc-override-dialog {
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-xl);
    background: var(--surface-glass-strong);
    box-shadow: var(--surface-shadow);
    backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
}

.modal-content {
    max-width: min(88%, 1480px);
}

#caption {
    margin-top: 16px;
    padding: 12px 16px;
    color: var(--color-text);
    height: auto;
}

.close {
    top: 20px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: var(--surface-glass);
}

    .close:hover,
    .close:focus {
        color: var(--color-text);
        border-color: var(--surface-border-strong);
        background: var(--surface-hover);
    }

.igc-override-dialog {
    padding: 16px;
}

.igc-override-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--surface-border);
}

.igc-override-body,
.related-tasks-content {
    border-radius: 18px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(16, 25, 40, 0.9);
    color: var(--color-text);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow-soft);
}

.leaflet-popup-content-wrapper {
    border-radius: 18px;
    backdrop-filter: blur(calc(var(--surface-blur) - 3px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 3px)) saturate(var(--surface-saturation));
}

#searchAndFilters input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
#searchAndFilters select,
#searchAndFilters textarea,
.tool-entry input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.tool-entry select,
.tool-entry textarea,
.igc-override-dialog input:not([type="checkbox"]):not([type="radio"]),
.igc-override-dialog select,
.igc-override-dialog textarea,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(12, 20, 33, 0.82);
    color: var(--color-text);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.related-tasks-helper,
.igc-override-subtitle {
    color: var(--color-text-muted);
}

.is-hidden {
    display: none !important;
}

.wsg-full-width-table {
    width: 100% !important;
}

.wsg-table-spaced-top {
    margin-top: 8px;
}

.wsg-table-spaced-lg {
    margin-top: 10px;
}

.wsg-dphx-icon--compact {
    height: 19px;
    vertical-align: middle;
}

.wsg-dphx-icon--events {
    height: 25px;
    vertical-align: middle;
}

#eventsTab .events-action-icon {
    height: 20px;
    vertical-align: middle;
}

.events-club-logo-mini {
    height: 32px;
    vertical-align: middle;
}

#eventsTab .events-club-image {
    height: 80px;
    vertical-align: middle;
    margin-bottom: 1px;
}

#eventsTab .events-published-date {
    font-size: 0.8em;
}

#eventsTab .events-detail-icon {
    max-width: 15px;
    max-height: 15px;
    object-fit: contain;
}

#eventsTab .events-detail-icon-cell {
    width: 20px;
    text-align: center;
    vertical-align: top;
}

#eventsTab .events-detail-text-cell {
    vertical-align: top;
}

#eventsTab .events-detail-layout--with-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

#eventsTab .events-detail-main {
    flex: 1 1 320px;
    min-width: 0;
}

#eventsTab .events-detail-sidebar {
    display: flex;
    flex: 0 0 170px;
    width: 170px;
    max-width: 100%;
    align-self: start;
}

#eventsTab .events-detail-sidebar .countdown-section {
    position: static;
    top: auto;
    right: auto;
    align-self: start;
}

#eventsTab .events-filter-row {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#eventsTab .events-filter-label {
    margin: 0;
    font-weight: 600;
}

#eventsTab .events-filter-status {
    font-size: 0.9em;
    color: var(--color-text-muted);
}

#eventsTab .events-history-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

#eventsTab .events-history-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 12px;
}

#eventsTab .events-history-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-size: 0.95em;
}

#eventsTab .events-history-filter-option input {
    margin: 0;
}

#eventsTab .events-history-type-cell {
    white-space: nowrap;
}

#eventsTab .events-history-live-link {
    color: #a9d1ff;
    font-weight: 400;
}

#eventsTab .events-live-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #dff3ff;
    border: 1px solid rgba(121, 181, 255, 0.42);
    background: linear-gradient(180deg, rgba(56, 95, 141, 0.92), rgba(24, 42, 66, 0.94));
    box-shadow: inset 0 1px 0 rgba(214, 235, 255, 0.16);
}

#eventsTab .events-live-weather-badge--compact {
    padding: 2px 8px;
    font-size: 0.72rem;
}

#eventsTab .events-live-weather-badge--large {
    margin: 4px 0 10px;
    font-size: 0.82rem;
}

#eventsTab .events-live-weather-badge--manager {
    margin-bottom: 4px;
}

#eventsTab .events-live-weather-badge-row {
    margin: 4px 0 10px;
}

#eventsTab .events-live-weather-entry {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-end;
}

#eventsTab .events-live-weather-manager-mount {
    margin-bottom: 16px;
}

#eventsTab .events-live-weather-manager {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#eventsTab .events-live-weather-manager-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

#eventsTab .events-live-weather-manager-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#eventsTab .events-live-weather-manager-kicker {
    margin-bottom: 4px;
}

#eventsTab .events-live-weather-manager-intro,
#eventsTab .events-live-weather-manager-form-head p {
    color: var(--color-text-muted);
    margin: 0;
}

#eventsTab .events-live-weather-status {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(49, 70, 102, 0.7);
    border: 1px solid rgba(126, 160, 216, 0.24);
    color: #d6e7ff;
}

#eventsTab .events-live-weather-status--error {
    background: rgba(101, 42, 42, 0.82);
    border-color: rgba(209, 112, 112, 0.4);
    color: #ffd7d7;
}

#eventsTab .events-live-weather-manager-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.88fr) minmax(0, 1.38fr);
    gap: 18px;
}

#eventsTab .events-live-weather-manager-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

#eventsTab .events-live-weather-manager-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(17, 26, 40, 0.8);
    border: 1px solid rgba(126, 160, 216, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#eventsTab .events-live-weather-manager-card h4 {
    margin-top: 0;
}

#eventsTab .events-live-weather-manager-card--preview {
    padding: 14px 16px 16px;
}

#eventsTab .events-live-weather-manager-list-wrap {
    overflow: auto;
}

#eventsTab .events-live-weather-manager-list-intro {
    margin: -4px 0 12px;
    color: #9fb8db;
}

#eventsTab .events-live-weather-manager-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#eventsTab .events-live-weather-manager-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(25, 37, 55, 0.88);
    border: 1px solid rgba(126, 160, 216, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#eventsTab .events-live-weather-manager-item-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

#eventsTab .events-live-weather-manager-item-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#eventsTab .events-live-weather-manager-item-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(126, 160, 216, 0.14);
    color: #d6e7ff;
    font-size: 0.85rem;
    font-weight: 600;
}

#eventsTab .events-live-weather-manager-item-title {
    margin: 0;
    font-size: 1.04rem;
}

#eventsTab .events-live-weather-manager-item-club {
    margin: 0;
    color: #b4cae8;
}

#eventsTab .events-live-weather-manager-item-meta {
    display: grid;
    gap: 8px;
}

#eventsTab .events-live-weather-manager-item-meta-row {
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
    gap: 10px;
}

#eventsTab .events-live-weather-manager-item-meta-label {
    color: #b4cae8;
    font-weight: 700;
}

#eventsTab .events-live-weather-manager-item-meta-value {
    color: #edf4ff;
}

#eventsTab .events-live-weather-manager-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

#eventsTab .events-live-weather-manager-empty {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(25, 37, 55, 0.68);
    border: 1px dashed rgba(126, 160, 216, 0.24);
    color: #9fb8db;
}

#eventsTab .events-live-weather-manager-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

#eventsTab .events-live-weather-manager-table th,
#eventsTab .events-live-weather-manager-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(126, 160, 216, 0.14);
    vertical-align: top;
}

#eventsTab .events-live-weather-manager-table th {
    text-align: left;
    color: #d6e7ff;
    font-weight: 700;
}

#eventsTab .events-live-weather-actions {
    white-space: nowrap;
}

#eventsTab .events-live-weather-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#eventsTab .events-live-weather-form-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#eventsTab .events-live-weather-form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(25, 37, 55, 0.6);
    border: 1px solid rgba(126, 160, 216, 0.16);
}

#eventsTab .events-live-weather-form-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#eventsTab .events-live-weather-form-section-head h5 {
    margin: 0;
    font-size: 1.08rem;
    color: #edf4ff;
}

#eventsTab .events-live-weather-form-section-head p {
    margin: 0;
    color: #9fb8db;
    font-size: 0.97rem;
}

#eventsTab .events-live-weather-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

#eventsTab .events-live-weather-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#eventsTab .events-live-weather-form-grid label > span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: #d6e7ff;
}

#eventsTab .events-live-weather-form-grid input,
#eventsTab .events-live-weather-form-grid select,
#eventsTab .events-live-weather-form-grid textarea {
    width: 100%;
    font-size: 1rem;
}

#eventsTab .events-live-weather-inline-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

#eventsTab .events-live-weather-combobox {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

#eventsTab .events-live-weather-combobox > input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#eventsTab .events-live-weather-combobox-toggle {
    flex: 0 0 2.4rem;
    min-width: 2.4rem;
    padding: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#eventsTab .events-live-weather-combobox-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 15rem;
    overflow-y: auto;
    padding: 4px 0;
    border: 1px solid rgba(214, 231, 255, 0.18);
    border-radius: 10px;
    background: #1f1f25;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

#eventsTab .events-live-weather-combobox-list.is-hidden {
    display: none;
}

#eventsTab .events-live-weather-combobox-option,
#eventsTab .events-live-weather-combobox-empty {
    width: 100%;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font: inherit;
}

#eventsTab .events-live-weather-combobox-option {
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

#eventsTab .events-live-weather-combobox-option:hover,
#eventsTab .events-live-weather-combobox-option:focus {
    background: rgba(214, 231, 255, 0.08);
    outline: none;
}

#eventsTab .events-live-weather-combobox-empty {
    color: var(--color-text-muted);
    font-style: italic;
}

#eventsTab .events-live-weather-combobox-option.is-hidden,
#eventsTab .events-live-weather-combobox-empty.is-hidden {
    display: none;
}

#eventsTab .events-live-weather-grid-span-two {
    grid-column: 1 / -1;
}

#eventsTab .events-live-weather-date-mode-row,
#eventsTab .events-live-weather-date-row,
#eventsTab .events-live-weather-launch-window-row,
#eventsTab .events-live-weather-duration-row {
    display: grid;
    grid-template-columns: 9.75rem minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
}

#eventsTab .events-live-weather-date-mode-row {
    align-items: center;
}

#eventsTab .events-live-weather-date-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#eventsTab .events-live-weather-date-row-label {
    font-weight: 700;
    color: #d6e7ff;
    font-size: 1rem;
}

#eventsTab .events-live-weather-date-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#eventsTab .events-live-weather-date-nav-button {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0 0.45rem;
    line-height: 1;
}

#eventsTab .events-live-weather-inline-fields {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

#eventsTab .events-live-weather-date-mainline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

#eventsTab .events-live-weather-date-inline-summary {
    flex: 1 1 15rem;
    min-width: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.35;
}

#eventsTab .events-live-weather-inline-fields--wrap {
    flex-wrap: wrap;
    row-gap: 6px;
}

#eventsTab .events-live-weather-inline-fields > span {
    white-space: nowrap;
}

#eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input,
#eventsTab .events-live-weather-launch-window-row .events-live-weather-inline-fields > input,
#eventsTab .events-live-weather-duration-row .events-live-weather-inline-fields > input {
    flex: 1 1 0;
    min-width: 0;
}

#eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input[type="date"],
#eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input[type="time"] {
    min-width: 0;
}

#eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input[type="date"] {
    flex: 0 1 9.25rem;
    max-width: 9.25rem;
}

#eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input[type="time"] {
    flex: 0 0 6.5rem;
    max-width: 6.5rem;
}

#eventsTab .events-live-weather-date-row > .events-live-weather-field-hint,
#eventsTab .events-live-weather-launch-window-row > .events-live-weather-field-hint,
#eventsTab .events-live-weather-duration-row > .events-live-weather-field-hint {
    grid-column: 1 / -1;
}

#eventsTab .events-live-weather-launch-window-row .events-live-weather-inline-fields,
#eventsTab .events-live-weather-duration-row .events-live-weather-inline-fields {
    flex-wrap: wrap;
}

#eventsTab .events-live-weather-compact-number {
    width: 4.75rem !important;
    max-width: 4.75rem;
    flex: 0 0 4.75rem;
    text-align: center;
}

#eventsTab .events-live-weather-inline-input--glider {
    align-items: stretch;
}

#eventsTab .events-live-weather-inline-input--glider > input {
    flex: 1 1 auto;
    min-width: 0;
}

#eventsTab .events-live-weather-inline-input--glider > select {
    flex: 0 0 15rem;
    max-width: 15rem;
}

#eventsTab .events-live-weather-date-mode-row > span,
#eventsTab .events-live-weather-date-row-label {
    align-self: center;
}

#eventsTab .events-live-weather-date-mode-row > span {
    font-size: 1rem;
    font-weight: 700;
    color: #d6e7ff;
}

#eventsTab .events-live-weather-field-hint {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

#eventsTab .events-live-weather-invalid-input {
    border-color: #ff7e78 !important;
    box-shadow: 0 0 0 1px rgba(255, 126, 120, 0.32);
    background-color: rgba(255, 126, 120, 0.12);
}

#eventsTab .events-live-weather-invalid-input:focus {
    outline-color: #ff7e78;
}

#eventsTab .events-live-weather-invalid-button {
    border-color: #ff7e78 !important;
    box-shadow: 0 0 0 1px rgba(255, 126, 120, 0.28);
}

#eventsTab .events-live-weather-invalid-hint {
    color: #ff9d99;
    font-weight: 600;
}

#eventsTab .events-live-weather-field-hint.is-disabled,
#eventsTab .events-live-weather-date-inline-summary.is-disabled {
    opacity: 0.7;
}

#eventsTab .events-live-weather-inline-checkbox {
    display: inline-flex;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
}

#eventsTab .events-live-weather-inline-checkbox--tight {
    gap: 6px !important;
}

#eventsTab .events-live-weather-inline-checkbox > input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

#eventsTab .events-live-weather-textarea {
    grid-column: 1 / -1;
}

#eventsTab .events-live-weather-textarea textarea {
    resize: none;
    min-height: 5.6rem;
    max-height: 5.6rem;
    overflow-y: auto;
}

#eventsTab .events-live-weather-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#eventsTab .events-live-weather-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#eventsTab .events-live-weather-preview-card {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(21, 33, 50, 0.88);
    border: 1px solid rgba(126, 160, 216, 0.18);
}

#eventsTab .events-live-weather-preview-card--wide {
    grid-column: 1 / -1;
}

#eventsTab .events-live-weather-preview-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 10px;
}

#eventsTab .events-live-weather-preview-dl dt {
    font-weight: 700;
    color: #d6e7ff;
}

#eventsTab .events-live-weather-preview-dl dd {
    margin: 0;
}

#eventsTab .events-live-weather-preview-list {
    margin: 0;
    padding-left: 20px;
}

#eventsTab .events-live-weather-preview-map {
    max-height: 380px;
    overflow: auto;
}

#eventsTab .events-live-weather-preview-map img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

#eventsTab .events-live-weather-preview-subtext {
    color: var(--color-text-muted);
    font-size: 0.9em;
}

#eventsTab .events-live-weather-empty-state {
    color: var(--color-text-muted);
    font-style: italic;
}

#eventsTab .events-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

#eventsTab .events-table-toolbar-bottom {
    margin-top: 6px;
}

#accountTab .account-match-results {
    margin-top: 1em;
}

#accountTab .account-claim-selected-button {
    margin: 8px 0;
}

#accountTab .account-banner--warning {
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid #d6a94f;
    background: rgba(90, 66, 19, 0.92);
    color: #ffe6a6;
    border-radius: 12px;
}

#accountTab .account-table-input {
    width: 100%;
    box-sizing: border-box;
}

#accountTab .account-task-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

#accountTab .account-task-link-title {
    opacity: 0.85;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#accountTab .account-table-icon {
    height: 20px;
    vertical-align: middle;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .tabButton,
    .tabContent,
    #searchAndFilters,
    #taskDetailContainer,
    #taskGridOverlay,
    #taskControlPanel,
    .tool-entry,
    .community-section,
    .community-item,
    .home-platform-stat-card,
    .weekly-schedule-day,
    .modal-content,
    #caption,
    .igc-override-dialog,
    .leaflet-popup-content-wrapper {
        background: rgba(15, 24, 39, 0.96);
    }
}

#mapShell.wsg-globe-home-button-visible #globeHomeButton {
    display: inline-flex;
}

#mapShell.wsg-globe-home-button-visible #fullWorldButton {
    left: 94px;
}

#mapShell.wsg-globe-home-button-visible #searchFiltersButton {
    left: 136px;
}

#mapShell.wsg-globe-home-button-visible #tableToggleButton {
    left: 178px;
}

#mapShell.wsg-globe-home-button-visible .upload-container {
    left: 226px;
}

/* First-pass review tuning */
#globeHomeButton {
    left: 52px;
}

#fullWorldButton {
    left: 52px;
}

#searchFiltersButton {
    left: 94px;
}

#tableToggleButton {
    left: 136px;
}

.upload-container {
    left: 184px;
}

#globeHomeButton,
#fullWorldButton,
#searchFiltersButton,
#tableToggleButton {
    width: 38px;
    height: 38px;
}

#globeHomeButton,
#fullWorldButton,
#searchFiltersButton,
#tableToggleButton,
#taskControlPanel button,
#selectFileButton {
    background: linear-gradient(180deg, rgba(174, 203, 255, 0.46), rgba(47, 66, 101, 0.9));
    border-color: rgba(215, 229, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--surface-shadow-soft);
}

#taskControlPanel {
    background: linear-gradient(180deg, rgba(40, 56, 86, 0.88), rgba(18, 29, 46, 0.86));
    border-color: rgba(200, 219, 255, 0.42);
}

    #globeHomeButton img,
    #fullWorldButton img,
    #searchFiltersButton img,
    #tableToggleButton img,
    #taskControlPanel button img,
    #selectFileButton img {
        filter: brightness(0) invert(1);
        opacity: 0.96;
    }

.collapsible-reset-button {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text);
    border: 1px solid rgba(198, 217, 255, 0.5);
    background: linear-gradient(180deg, rgba(154, 189, 255, 0.46), rgba(68, 97, 152, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

    .collapsible-reset-button:hover {
        background: linear-gradient(180deg, rgba(177, 205, 255, 0.56), rgba(88, 120, 181, 0.94));
        border-color: rgba(225, 236, 255, 0.64);
    }

.about-patreon-supporters-grid {
    gap: 10px;
    padding: 2px 0 0;
}

.about-patreon-notes-scroller {
    padding: 2px 2px 6px;
}

#settingsForm .settings-fieldset {
    margin-bottom: 14px;
    padding: 14px 16px 12px;
    border: 1px solid rgba(166, 188, 225, 0.15);
    border-radius: 14px;
    background: rgba(18, 28, 44, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

    #settingsForm .settings-fieldset legend {
        padding: 0 8px;
        color: var(--color-text-muted);
        font-weight: 700;
    }

    #settingsForm .settings-fieldset:last-child {
        margin-bottom: 0;
    }

#settingsTab #settings-sections-container .tool-entry {
    margin-bottom: 16px;
}

    #settingsTab #settings-sections-container .tool-entry .title {
        padding: 10px 14px;
    }

    #settingsTab #settings-sections-container .tool-entry .content {
        padding: 12px 14px 14px;
    }

#accountTab .account-profile-layout {
    display: grid;
    grid-template-columns: auto minmax(300px, 420px);
    gap: 16px 24px;
    align-items: start;
    max-width: 780px;
}

#accountTab .account-profile-avatar-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

#accountTab .account-profile-avatar {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(176, 197, 234, 0.24);
    box-shadow: var(--surface-shadow-soft);
}

#accountTab .account-profile-avatar-note {
    margin: 0;
    max-width: 240px;
    color: var(--color-text-muted);
}

#accountTab .account-profile-form {
    max-width: none;
}

#accountTab .account-profile-form label {
    white-space: normal;
}

#accountTab .account-update-status {
    min-height: 1.2em;
    font-style: italic;
    color: #72da8f;
}

#accountTab #updateUserInfo {
    height: auto;
    min-height: 40px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
}

#accountTab .account-igc-pref-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

#accountTab .account-igc-pref-row label {
    margin: 0;
    font-weight: 600;
}

#accountTab .account-status-banner {
    margin: 8px 0 12px;
    padding: 8px 12px;
    border: 1px solid rgba(100, 146, 214, 0.28);
    border-radius: 12px;
    background: rgba(30, 58, 95, 0.26);
    font-size: 0.9rem;
}

#accountTab .account-table-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    width: 100%;
    margin-bottom: 10px;
}

#accountTab .account-table-toolbar-button {
    margin: 0 !important;
}

#accountTab .account-table-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

#accountTab #userIGCRecordsTable {
    min-width: 1580px;
}

#accountTab #userTaskMetaTable {
    min-width: 1180px;
}

#accountTab #matchRecordsTable {
    min-width: 980px;
}

@media (max-width: 760px) {
    #accountTab .account-profile-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    #accountTab .account-profile-form {
        max-width: 220px;
    }

    #accountTab .account-profile-form .user-info-input-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    #accountTab .account-profile-form .user-info-input-row input[type="text"] {
        flex: 0 1 220px;
        width: min(220px, 100%);
        max-width: 220px;
    }

    #accountTab .account-profile-avatar-note {
        max-width: none;
    }

    #accountTab .account-table-search {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    #accountTab #updateUserInfo {
        width: min(220px, 100%);
    }
}

/* Home tab incremental glass refresh: slice 1 hero shell only */
#homeTab .home-hero-shell {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#homeTab .home-hero-panel {
    border-radius: var(--surface-radius-lg);
    background: var(--surface-glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--surface-border), var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
}

    #homeTab .home-hero-panel .hero-branding h1,
    #homeTab .home-hero-panel .hero-prompt {
        color: var(--color-text);
    }

    #homeTab .home-hero-panel .hero-branding {
        min-width: 0;
    }

        #homeTab .home-hero-panel .hero-branding h1 {
            line-height: 1.08;
        }

    #homeTab .home-hero-panel .hero-subtagline,
    #homeTab .home-hero-panel .hero-values li,
    #homeTab .home-hero-cta {
        color: var(--color-text-muted);
    }

    #homeTab .home-hero-panel .nav-tile {
        background: linear-gradient(180deg, rgba(74, 105, 161, 0.46), rgba(26, 40, 65, 0.84));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(190, 214, 255, 0.24), var(--surface-shadow-soft);
    }

        #homeTab .home-hero-panel .nav-tile:hover {
            background: linear-gradient(180deg, rgba(103, 139, 202, 0.56), rgba(37, 55, 87, 0.92));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(214, 228, 255, 0.42), 0 14px 26px rgba(4, 10, 22, 0.3);
        }

#homeTab .home-hero-cta {
    width: 100%;
    max-width: none;
    gap: 12px;
    padding: 12px 16px;
    margin: 8px 0 16px;
    box-sizing: border-box;
    border-radius: var(--surface-radius-lg);
    background:
        linear-gradient(180deg, rgba(34, 48, 74, 0.48), rgba(15, 25, 39, 0.24));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(168, 194, 235, 0.12);
    backdrop-filter: blur(calc(var(--surface-blur) - 8px)) saturate(calc(var(--surface-saturation) - 10%));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 8px)) saturate(calc(var(--surface-saturation) - 10%));
}

#homeTab .home-hero-cta span {
    font-weight: 600;
    letter-spacing: 0.01em;
}

#homeTab .home-hero-cta a {
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        var(--surface-shadow-soft);
}

#homeTab .home-hero-cta a:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 22px rgba(4, 10, 22, 0.28);
}

@media (max-width: 700px) {
    #homeTab .home-hero-shell .hero-left {
        gap: 12px;
    }

    #homeTab .home-hero-shell .hero-logo-img-large {
        width: 150px;
    }

    #homeTab .home-hero-panel .hero-branding h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    #homeTab .home-hero-shell .hero-left {
        gap: 10px;
    }

    #homeTab .home-hero-shell .hero-logo-img-large {
        width: 112px;
    }

    #homeTab .home-hero-panel .hero-branding h1 {
        font-size: 21px;
    }

    #homeTab .home-hero-panel .hero-subtagline,
    #homeTab .home-hero-panel .hero-values li {
        font-size: 14px;
    }

    #homeTab .home-hero-cta {
        padding: 10px 12px;
        gap: 10px;
    }
}

/* Home tab incremental glass refresh: at-a-glance cards only */
#homeTab .home-platform-stats-title {
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

#homeTab .home-platform-stat-card {
    background: var(--surface-glass-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px var(--surface-border),
        var(--surface-shadow-soft);
}

#homeTab .home-platform-stat-text {
    color: var(--color-text);
}

/* Home tab incremental glass refresh: dashboard overview card shells only */
#homeTab .dashboard-overview-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

#homeTab .dashboard-overview-row > .home-stat {
    box-sizing: border-box;
    min-width: 0;
    padding: 12px 14px 14px;
    border-radius: var(--surface-radius-lg);
    background: var(--surface-glass);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px var(--surface-border),
        var(--surface-shadow-soft);
}

#homeTab .dashboard-overview-row > .home-stat .latest-igc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    min-height: 45px;
    margin: -12px -14px 12px;
    padding: 12px 16px;
    border-radius: var(--surface-radius-lg) var(--surface-radius-lg) 0 0;
    background: var(--surface-header);
    box-shadow:
        inset 0 1px 0 rgba(204, 223, 255, 0.14),
        inset 0 -1px 0 rgba(116, 151, 214, 0.18);
    text-align: center;
}

#homeTab .dashboard-overview-row > .home-stat .latest-igc-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 800;
}

#homeTab .dashboard-overview-row > .home-stat #popularRangeSelect {
    height: 34px;
    box-sizing: border-box;
    padding: 0 0.6rem;
    border-radius: var(--surface-radius-md);
    border: 1px solid var(--surface-border);
    background: var(--surface-glass-strong);
    color: var(--color-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

#homeTab .dashboard-overview-row > .home-stat #popularRangeSelect option {
    background: #162235;
    color: #f8fbff;
}

/* Distinct non-map DPHX action buttons */
.wsg-dphx-action {
    border-color: rgba(104, 174, 255, 0.9);
    background: linear-gradient(180deg, rgba(72, 122, 201, 0.78), rgba(21, 55, 108, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(208, 228, 255, 0.18),
        0 0 0 1px rgba(116, 173, 255, 0.28),
        0 10px 24px rgba(21, 77, 157, 0.34);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.wsg-dphx-action img {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(110, 188, 255, 0.3));
}

#directDPHXDownload img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
}

.button-mini-style.wsg-dphx-action {
    min-width: 32px;
    padding: 2px 6px;
    border-radius: 999px;
}

.button-style.wsg-dphx-action {
    padding: 10px 16px;
}

.wsg-dphx-action:hover {
    border-color: rgba(154, 210, 255, 0.98);
    background: linear-gradient(180deg, rgba(92, 148, 233, 0.9), rgba(28, 71, 136, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(222, 236, 255, 0.28),
        0 0 0 1px rgba(136, 193, 255, 0.34),
        0 0 20px rgba(74, 162, 255, 0.34),
        0 14px 30px rgba(18, 77, 166, 0.42);
    transform: translateY(-1px);
}

.wsg-dphx-action:focus-visible {
    outline: 2px solid rgba(154, 210, 255, 0.98);
    outline-offset: 2px;
}

.wsg-dphx-action:active {
    background: linear-gradient(180deg, rgba(54, 104, 179, 0.94), rgba(16, 46, 98, 1));
    box-shadow:
        inset 0 2px 5px rgba(6, 17, 39, 0.38),
        0 0 0 1px rgba(92, 156, 239, 0.32),
        0 8px 18px rgba(18, 77, 166, 0.24);
    transform: translateY(1px);
}

/* Home tab incremental glass refresh: leaderboard shell only */
#homeTab .home-shell-section {
    margin-top: 8px;
    padding: 14px 16px 16px;
    border-radius: var(--surface-radius-xl);
    background: var(--surface-glass);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px var(--surface-border),
        var(--surface-shadow-soft);
}

#homeTab .home-shell-section > .latest-igc-header {
    margin: -14px -16px 12px;
    padding: 1px 12px 2px;
    border-radius: var(--surface-radius-xl) var(--surface-radius-xl) 0 0;
    background: var(--surface-header);
    box-shadow:
        inset 0 1px 0 rgba(204, 223, 255, 0.14),
        inset 0 -1px 0 rgba(116, 151, 214, 0.16);
}

#homeTab .home-shell-section > .latest-igc-header h2 {
    color: var(--color-text);
}

#homeTab .home-shell-section > .latest-igc-header p {
    color: #c7d2e3;
}

#homeTab #latestTopIGCTable_wrapper,
#homeTab #fastestGliderTable_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#homeTab #latestTopIGCTable,
#homeTab #fastestGliderTable {
    min-width: 780px;
}

#homeTab .home-subsection-heading {
    margin: 10px 0 12px;
}

#homeTab .home-subsection-heading h2 {
    color: var(--color-text);
    margin-bottom: 0;
}

/* Events tab incremental refresh: global info + weekly schedule */
#eventsTab .events-global-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

#eventsTab .events-global-panel {
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-lg);
    background: var(--surface-glass);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 6px)) saturate(var(--surface-saturation));
    overflow: hidden;
}

#eventsTab .events-global-panel-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--surface-border);
    background: var(--surface-header);
}

#eventsTab .events-global-panel-header h2 {
    margin: 0 0 4px;
    color: var(--color-text);
    font-size: 1.2rem;
}

#eventsTab .events-global-panel-header p {
    margin: 0;
    color: #c7d2e3;
}

#eventsTab .events-global-info-copy,
#eventsTab #generalWeeklySchedule {
    padding: 14px;
}

#eventsTab .events-global-info-copy h3 {
    margin: 12px 0 6px;
    color: var(--color-text);
    font-size: 1rem;
}

#eventsTab .events-global-info-copy p:first-child {
    margin-top: 0;
}

#eventsTab .events-global-info-copy p:last-child {
    margin-bottom: 0;
}

#eventsTab #tutorials,
#eventsTab #invites {
    padding: 0 14px 14px;
}

#eventsTab #tutorials .tool-entry,
#eventsTab #invites .tool-entry {
    margin-bottom: 0;
}

#eventsTab #invites {
    padding-top: 12px;
}

#eventsTab #generalWeeklySchedule > p:first-child {
    margin-top: 0;
}

#eventsTab #generalWeeklySchedule > p:last-of-type {
    margin-bottom: 12px;
}

#eventsTab .weekly-schedule-day--today {
    background:
        linear-gradient(180deg, rgba(124, 101, 20, 0.46), rgba(92, 72, 12, 0.3)),
        var(--surface-glass);
    border-color: rgba(233, 195, 92, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 232, 169, 0.18),
        0 0 0 1px rgba(233, 195, 92, 0.22),
        0 12px 28px rgba(120, 84, 15, 0.22);
}

#eventsTab .weekly-schedule-day--today h3 {
    color: #ffe28a;
}

#eventsTab .weekly-schedule-day--today .weekly-schedule-subsection h4 {
    color: #f6d978;
}

#eventsTab .weekly-schedule-date-badge,
#eventsTab .weekly-schedule-today-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
}

#eventsTab .weekly-schedule-date-badge {
    background: rgba(125, 154, 204, 0.12);
    border: 1px solid rgba(125, 154, 204, 0.22);
}

#eventsTab .weekly-schedule-today-badge {
    background: rgba(241, 196, 68, 0.16);
    border: 1px solid rgba(241, 196, 68, 0.26);
}

@media (max-width: 980px) {
    #eventsTab .events-global-layout {
        grid-template-columns: 1fr;
    }

    #eventsTab .events-live-weather-manager-grid,
    #eventsTab .events-live-weather-preview-grid,
    #eventsTab .events-live-weather-form-grid {
        grid-template-columns: 1fr;
    }

    #eventsTab .events-live-weather-date-mode-row,
    #eventsTab .events-live-weather-date-row,
    #eventsTab .events-live-weather-launch-window-row,
    #eventsTab .events-live-weather-duration-row {
        grid-template-columns: 1fr;
    }

    #eventsTab .events-live-weather-date-row .events-live-weather-inline-fields {
        flex-wrap: wrap;
    }

    #eventsTab .events-live-weather-date-mainline {
        align-items: flex-start;
    }

    #eventsTab .events-live-weather-manager-item-meta-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    #eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input[type="date"],
    #eventsTab .events-live-weather-date-row .events-live-weather-inline-fields > input[type="time"],
    #eventsTab .events-live-weather-compact-number,
    #eventsTab .events-live-weather-inline-input--glider > select {
        max-width: none;
        width: 100% !important;
        flex: 1 1 100%;
    }
}

#eventsTab #clubEventsTable {
    min-width: 760px;
}

#eventsTab .events-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: rgba(125, 154, 204, 0.34);
    background: linear-gradient(180deg, rgba(48, 65, 96, 0.88), rgba(22, 35, 57, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(208, 224, 255, 0.12),
        0 0 0 1px rgba(94, 127, 182, 0.2),
        0 12px 24px rgba(10, 18, 32, 0.28);
}

#eventsTab .events-primary-button:hover {
    border-color: rgba(151, 186, 248, 0.44);
    background: linear-gradient(180deg, rgba(63, 86, 126, 0.92), rgba(28, 46, 74, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(222, 236, 255, 0.2),
        0 0 0 1px rgba(118, 157, 223, 0.24),
        0 16px 30px rgba(10, 18, 32, 0.34);
}

#eventsTab .events-primary-button:active {
    background: linear-gradient(180deg, rgba(35, 51, 78, 0.96), rgba(18, 30, 48, 1));
    box-shadow:
        inset 0 2px 6px rgba(5, 12, 24, 0.34),
        0 8px 16px rgba(10, 18, 32, 0.2);
}

#eventsTab .events-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 4px;
}

#eventsTab .events-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    margin-bottom: 0;
    padding: 10px 14px;
}

#eventsTab .events-icon-action:not(.wsg-dphx-action) {
    border-color: rgba(125, 154, 204, 0.34);
    background: linear-gradient(180deg, rgba(42, 60, 89, 0.86), rgba(19, 31, 50, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(208, 224, 255, 0.12),
        0 0 0 1px rgba(94, 127, 182, 0.18),
        0 10px 20px rgba(10, 18, 32, 0.24);
}

#eventsTab .events-icon-action:not(.wsg-dphx-action):hover {
    border-color: rgba(151, 186, 248, 0.44);
    background: linear-gradient(180deg, rgba(58, 81, 119, 0.92), rgba(25, 42, 68, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(222, 236, 255, 0.18),
        0 0 0 1px rgba(118, 157, 223, 0.22),
        0 14px 26px rgba(10, 18, 32, 0.3);
}

#eventsTab .events-icon-action:not(.wsg-dphx-action):active {
    background: linear-gradient(180deg, rgba(31, 46, 70, 0.96), rgba(15, 26, 42, 1));
    box-shadow:
        inset 0 2px 6px rgba(5, 12, 24, 0.34),
        0 8px 14px rgba(10, 18, 32, 0.18);
}

#eventsTab .events-icon-action:not(.wsg-dphx-action):not(.events-icon-action--inverted) img {
    filter: drop-shadow(0 0 7px rgba(132, 172, 244, 0.18));
}

#eventsTab .events-icon-action--inverted img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(148, 205, 255, 0.34));
}

@media (max-width: 1300px) {
    #homeTab .dashboard-overview-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #homeTab .dashboard-overview-row > .home-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 655px) {
    #homeTab .dashboard-overview-row {
        grid-template-columns: 1fr;
    }

    #homeTab .dashboard-overview-row > .home-stat:last-child:nth-child(odd) {
        grid-column: auto;
    }
}
