      /* --------------------------------------------------------------------------
      1. CSS Variables / Design Tokens
      -------------------------------------------------------------------------- */
      :root {
        /* Accent colors */
        --accent-blue: #2196f3;
        --accent-red: #ff4d4d;
        --accent-yellow: #f1c40f;
        /* Backgrounds */
        --bg-dark: #242424;
        --bg-medium: #2d2d2d;
        --bg-light: #404040;
        --bg-lighter: #505050;
        --bg-hover: #383838;
        --bg-odd: #262626;
        --bg-beacon: rgba(45, 45, 45, 0.9);
        --bg-input-focus: #242424;
        /* Text */
        --text-light: #e6e6e6;
        --text-medium: #bfbfbf;
        --text-dim: #737373;
        --text-dark: #1a1a1a;
        /* Borders and shadows */
        --border-color: #444444;
        --shadow-std: 0 2px 4px rgba(0, 0, 0, 0.6);
        --beacon-shadow: #d35400;
        --beacon-inactive: #cccccc;
        /* Icons and forms */
        --icon-color: #cccccc;
        --checkbox-border: #595959;
        --checkbox-accent: #888888;
        /* Dropdown / tooltip */
        --dropdown-bg: rgba(255, 255, 204, 0.9);
        /* Scrollbar */
        --scrollbar-track: #242424;
        --scrollbar-thumb: #555555;
        --scrollbar-thumb-hover: #777777;
        /* Radii and animations */
        --radius-sm: 5px;
        --radius-md: 8px;
        --radius-pill: 25px;
        --transition-base: 0.3s ease;
        --transition-fast: 0.2s ease-in-out;
      }
      /* --------------------------------------------------------------------------
      2. Base and Reset
      -------------------------------------------------------------------------- */
      body {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        margin: 0;
        overflow: hidden;
        background-color: var(--bg-dark);
        color: var(--text-light);
      }
      input[type="checkbox"] {
        accent-color: var(--checkbox-accent);
      }
      /* --------------------------------------------------------------------------
      3. Container, Loader, Animations
      -------------------------------------------------------------------------- */
      #container {
        position: relative;
        width: 100%;
        height: 95vh;
      }
      #loader {
        position: absolute;
        width: 70px;
        height: 70px;
        border: 8px solid var(--bg-light);
        border-top-color: var(--accent-blue);
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(1turn);
        }
      }
      /* --------------------------------------------------------------------------
      4. Top UI Elements - Coordinates, Fullscreen, Search
      -------------------------------------------------------------------------- */
      #coords,
      .fullscreen-icon {
        position: absolute;
        z-index: 10;
        outline: none;
      }
      #coords {
        left: 7px;
        top: 10px;
        padding: 3px 10px;
        background: var(--bg-light);
        border-radius: var(--radius-pill);
        font-size: 16px;
        font-weight: 700;
      }
      .fullscreen-icon {
        top: 10px;
        right: 7px;
        display: flex;
        align-items: center;
        height: 27px;
        color: var(--text-dim);
        transition: color var(--transition-base);
      }
      .fullscreen-icon:hover {
        color: var(--accent-blue);
      }
      .fullscreen-icon svg {
        display: block;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .search-input {
        position: absolute;
        top: 10px;
        right: 40px;
        z-index: 15;
        width: 85px;
        max-width: 90%;
        padding: 3px 10px;
        box-sizing: border-box;
        background: var(--bg-light);
        border: 1px solid var(--bg-light);
        border-radius: var(--radius-pill);
        outline: none;
        box-shadow: none;
        -webkit-appearance: none;
        appearance: none;
        font-size: 16px;
        transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        opacity var(--transition-base),
        transform var(--transition-base);
      }
      .search-input:focus {
        background: var(--bg-input-focus);
        border-color: var(--accent-blue);
        color: var(--text-light);
        outline: none;
        box-shadow: none;
      }
      .search-input.clearing {
        opacity: 0.5;
        transform: scale(0.9);
      }
      /* --------------------------------------------------------------------------
      5. Footer
      -------------------------------------------------------------------------- */
      footer {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 40;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        font-size: 12px;
        text-align: center;
      }
      footer a {
        color: inherit;
        text-decoration: none;
      }
      footer a:hover {
        text-decoration: underline;
      }
      .footer-content {
        position: absolute;
        left: 50%;
        bottom: 0;
        color: var(--text-medium);
        white-space: nowrap;
        transform: translateX(-50%) translateY(-2px);
      }
      /* --------------------------------------------------------------------------
      6. DXCC Link and Dropdown
      -------------------------------------------------------------------------- */
      .dxcc-link {
        position: absolute;
        left: 7px;
        top: 37px;
        z-index: 3;
        padding: 3px 10px;
        background: var(--bg-light);
        border-radius: var(--radius-pill);
        color: inherit;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        outline: none;
        transition: color var(--transition-base);
      }
      .dxcc-link.active,
      .dxcc-link:hover {
        color: var(--accent-blue);
        text-decoration: none;
      }
      body.svg2-active .dxcc-link {
        top: 10px;
      }
      .dxcc-dropdown-content {
        position: absolute;
        left: 65px;
        top: 65px;
        z-index: 50;
        display: block;
        width: 580px;
        max-height: 0;
        overflow: hidden;
        background: var(--bg-medium);
        border: 1px solid var(--bg-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-std);
        color: var(--text-light);
        opacity: 0;
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
      }
      body.svg2-active .dxcc-dropdown-content {
        top: 35px;
      }
      .dxcc-dropdown-content.show {
        max-height: 70vh;
        overflow-y: auto;
        opacity: 1;
      }
      /* --------------------------------------------------------------------------
      7. Tables - DXCC & Satellites
      -------------------------------------------------------------------------- */
      #dxcc-dropdown-content table,
      table.satellite-table {
        width: 100%;
        margin: 0;
        overflow: hidden;
        background: var(--bg-medium);
        border-collapse: collapse;
        border-radius: var(--radius-md);
        color: var(--text-light);
        font-family: Arial, sans-serif;
        font-size: 14px;
        text-align: left;
      }
      #dxcc-dropdown-content td,
      #dxcc-dropdown-content th,
      table.satellite-table td,
      table.satellite-table th {
        padding: 8px;
        border: 1px solid var(--border-color);
        text-align: left;
      }
      #dxcc-dropdown-content th,
      table.satellite-table th {
        position: relative;
        background-color: var(--bg-light);
        color: var(--text-light);
        font-weight: 700;
        user-select: none;
        transition: background var(--transition-fast);
      }
      #dxcc-dropdown-content th:hover,
      table.satellite-table th:hover {
        background-color: var(--bg-lighter);
      }
      #dxcc-dropdown-content tbody tr,
      table.satellite-table tr {
        transition: background-color var(--transition-fast), color var(--transition-fast);
      }
      #dxcc-dropdown-content tbody tr:hover,
      table.satellite-table tr:hover,
      .satellite-row:hover {
        background-color: var(--bg-hover);
        color: var(--accent-blue);
      }
      .even-row,
      .row-even {
        background-color: var(--bg-medium);
      }
      .odd-row,
      .row-odd,
      table.satellite-table tr:nth-child(2n) {
        background-color: var(--bg-odd);
      }
      .sort-arrow {
        margin-left: 2px;
      }
      /* --------------------------------------------------------------------------
      8. Data Container and WWV
      -------------------------------------------------------------------------- */
      #data-container {
        position: fixed;
        right: 52px;
        bottom: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0;
        font-size: 14px;
      }
      #wwv-data-link {
        position: relative;
        color: var(--bg-dark);
        text-decoration: none;
        outline: none;
      }
      #wwv-data-link:hover #wwv-data {
        visibility: visible;
        opacity: 1;
        transform: scaleY(1);
        transition: opacity var(--transition-base), transform var(--transition-base);
      }
      #wwv-data {
        position: absolute;
        right: -180px;
        bottom: 25px;
        z-index: 1;
        width: fit-content;
        max-width: 600px;
        max-height: 400px;
        padding: 10px;
        background: var(--dropdown-bg);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-std);
        color: var(--text-dark);
        font-size: 16px;
        text-align: left;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transform: scaleY(0);
        transform-origin: bottom;
        transition: opacity var(--transition-base), transform var(--transition-base), visibility 0s 0.3s;
      }
      /* --------------------------------------------------------------------------
      9. Location and Help Buttons
      -------------------------------------------------------------------------- */
      #recheck-location {
        position: absolute;
        right: 28px;
        bottom: 3px;
        z-index: 30;
        display: flex;
        align-items: center;
        padding: 0;
        background-color: transparent;
        border: none;
        outline: none;
        opacity: 0.6;
        transition: background-color var(--transition-fast), opacity var(--transition-base);
      }
      #recheck-location:hover {
        opacity: 1;
      }
      #recheck-location:active {
        opacity: 0.7;
      }
      #recheck-location svg {
        display: block;
        width: 15px;
        height: 15px;
        color: var(--icon-color);
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        border: none;
        border-radius: 50%;
      }
      .help {
        position: absolute;
        right: 7px;
        bottom: 3px;
        z-index: 150;
        display: flex;
        align-items: center;
        outline: none;
        opacity: 0.6;
        transition: opacity var(--transition-base);
      }
      .help:hover {
        opacity: 1;
      }
      .help:active {
        opacity: 0.7;
      }
      .help svg {
        width: 15px;
        height: 15px;
        color: var(--icon-color);
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .help:hover + .dropdown {
        visibility: visible;
        opacity: 1;
        transform: scaleY(1);
        transition: opacity var(--transition-base), transform var(--transition-base);
      }
      .dropdown {
        position: absolute;
        right: 10px;
        bottom: 25px;
        z-index: 5;
        background: var(--dropdown-bg);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-std);
        color: var(--text-dark);
        opacity: 0;
        visibility: hidden;
        transform: scaleY(0);
        transform-origin: bottom;
        transition: opacity var(--transition-base), transform var(--transition-base), visibility 0s 0.3s;
      }
      .dropdown-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 10px 15px 1px 10px;
        font-size: 16px;
        text-align: left;
      }
      /* --------------------------------------------------------------------------
      10. Custom Checkboxes
      -------------------------------------------------------------------------- */
      .checkbox-container {
        position: absolute;
        left: 100px;
        bottom: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
      }
      .checkbox-container label {
        display: inline-flex;
        align-items: center;
      }
      .checkbox-container input[type="checkbox"] {
        display: none;
      }
      .checkbox-container .custom-checkbox {
        position: relative;
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-left: 0;
        margin-right: 5px;
        border: 1px solid var(--checkbox-border);
        border-radius: 3px;
        transition: background-color var(--transition-base), border-color var(--transition-base);
      }
      .checkbox-container .custom-checkbox:hover {
        border-color: var(--accent-blue);
      }
      .checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
        background-color: var(--bg-dark);
        border-color: var(--accent-blue);
      }
      .checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
        content: "";
        position: absolute;
        left: 2px;
        top: 2px;
        width: 8px;
        height: 8px;
        background-color: var(--text-medium);
        border-radius: 2px;
      }
      .checkbox-container input[type="checkbox"]:checked + .custom-checkbox + span,
      .checkbox-container input[type="checkbox"]:not(:checked) + .custom-checkbox + span {
        transition: color var(--transition-base);
      }
      .checkbox-container input[type="checkbox"]:checked + .custom-checkbox + span {
        color: var(--text-medium);
      }
      .checkbox-container input[type="checkbox"]:not(:checked) + .custom-checkbox + span {
        color: var(--text-dim);
      }
      /* --------------------------------------------------------------------------
      11. Satellites
      -------------------------------------------------------------------------- */
      .sat-link {
        text-decoration: none;
        outline: none;
        transition: color var(--transition-base);
      }
      .sat-link.active,
      .sat-link:hover {
        color: var(--accent-blue);
        text-decoration: none;
      }
      #satellite-list {
        position: absolute;
        right: -45px;
        bottom: 25px;
        display: none;
        width: 550px;
        max-height: 70vh;
        margin-top: 10px;
        overflow-y: auto;
        background: var(--bg-medium);
        border: 1px solid var(--bg-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-std);
        color: var(--text-light);
        text-align: left;
        opacity: 0;
        visibility: hidden;
        clip-path: inset(100% 0 0 0);
        transition: clip-path 0.45s ease-out, opacity 0.45s ease-out;
      }
      #satellite-list.show {
        display: block;
        visibility: visible;
        opacity: 1;
        clip-path: inset(0 0 0 0);
      }
      #satellite-list.closing {
        display: block;
        visibility: visible;
        opacity: 0;
        clip-path: inset(100% 0 0 0);
        transition: clip-path 0.45s ease-in, opacity 0.45s ease-in;
      }
      .satellite-row {
        display: block;
        padding: 8px;
        transition: background-color var(--transition-fast), color var(--transition-fast);
      }
      .satellite-row input[type="checkbox"] {
        margin-right: 5px;
      }
      table.satellite-table th {
        white-space: nowrap;
      }
      .sat-header-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
      }
      .sat-header-title {
        white-space: nowrap;
      }
      .source-checkboxes {
        font-weight: normal;
        white-space: nowrap;
        font-size: 12px;
      }
      .source-checkboxes label {
        vertical-align: middle;
      }
      .source-checkboxes input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin-right: 3px;
      }
      .sat-modes {
        font-size: 11px;
        opacity: 0.8;
      }
      /* --------------------------------------------------------------------------
      12. IBP / Beacon Menu
      -------------------------------------------------------------------------- */
      #ibp-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .ibp-btn {
        text-decoration: none;
        outline: none;
        transition: color var(--transition-base);
      }
      .ibp-btn.menu-open,
      .ibp-btn:hover {
        color: var(--accent-blue);
        text-decoration: none;
      }
      #ibp-menu {
        position: absolute;
        right: 0;
        bottom: 25px;
        display: flex;
        flex-direction: row;
        gap: 5px;
        width: 750px;
        padding: 10px;
        background-color: transparent;
        border-radius: var(--radius-sm);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0s 0.5s;
      }
      #ibp-menu.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease;
      }
      .ibp-option {
        padding: 5px 10px;
        background-color: var(--bg-medium);
        border: 1px solid var(--bg-light);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-std);
        color: var(--text-light);
        font-size: 14px;
        transition: background-color var(--transition-fast), color var(--transition-fast);
      }
      .ibp-option:hover {
        background-color: var(--bg-hover);
      }
      .ibp-option:not(.selected):not([data-value="OFF"]):not([data-filter="OFF"]):hover {
        color: var(--accent-blue);
      }
      .ibp-option.selected {
        color: var(--accent-yellow);
        font-weight: 700;
      }
      .ibp-option[data-value="OFF"],
      .ibp-option[data-filter="OFF"] {
        color: var(--accent-red);
        font-weight: 700;
      }
      /* --------------------------------------------------------------------------
      13. Beacon List and Tooltip
      -------------------------------------------------------------------------- */
      #beacon-list {
        position: absolute;
        right: 10px;
        top: 43px;
        z-index: 100;
        width: 240px;
        max-height: 80vh;
        padding: 0;
        overflow-y: auto;
        background: var(--bg-beacon);
        border: 1px solid var(--bg-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-std);
        color: var(--text-light);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0s 0.5s;
      }
      #beacon-list.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease;
      }
      #beacon-list h1 {
        margin: 0;
        padding: 7px;
        background: var(--bg-light);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        color: var(--text-light);
        font-size: 15px;
        text-align: center;
      }
      #beacon-ul {
        margin: 0;
        padding: 0;
        list-style: none;
      }
      #beacon-ul li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 7px;
        font-size: 13px;
        box-shadow: 0 1px 0 0 var(--bg-light);
      }
      #beacon-ul li:not(.active) {
        color: var(--beacon-inactive);
      }
      #beacon-ul li.active {
        background-color: var(--accent-yellow);
        color: var(--text-dark);
        font-weight: 700;
        opacity: 1;
        box-shadow: inset 5px 0 0 0 var(--beacon-shadow), 0 1px 0 0 var(--bg-light);
      }
      .ibp-tooltip {
        position: absolute;
        z-index: 200;
        display: none;
        padding: 4px;
        background: var(--dropdown-bg);
        border-radius: 4px;
        box-shadow: var(--shadow-std);
        color: var(--bg-odd);
        font-size: 13px;
        font-weight: 700;
        pointer-events: none;
        transition: opacity var(--transition-fast);
      }
      /* --------------------------------------------------------------------------
      14. DX Tooltip
      -------------------------------------------------------------------------- */
      .dx-tooltip {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
      }
      .dx-tooltip rect {
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
      }
      .dx-tooltip.show {
        opacity: 1;
        visibility: visible;
      }
      .qth-tooltip rect {
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
      }
      /* --------------------------------------------------------------------------
      15. System - Error, Clock, Locator, Email
      -------------------------------------------------------------------------- */
      #errorBox {
        position: absolute;
        left: 50%;
        top: 50%;
        display: none;
        padding: 15px 25px;
        background-color: var(--accent-red);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-std);
        color: var(--text-light);
        font-weight: 700;
        text-align: center;
        transform: translate(-50%, -50%);
      }
      .system-clock {
        position: absolute;
        left: 10px;
        bottom: 0;
        z-index: 10;
        color: var(--text-light);
        font-family: inherit;
        font-size: 14px;
        font-weight: normal;
        user-select: none;
      }
      .user-locator-input {
        position: relative;
        width: 60px;
        height: 18px;
        margin-right: -4px;
        box-sizing: border-box;
        background: var(--bg-dark);
        border: 1px solid transparent;
        border-radius: 4px;
        outline: none;
        color: var(--accent-yellow);
        font-family: inherit;
        font-size: 14px;
        line-height: 16px;
        text-align: center;
        text-transform: uppercase;
        transition: all var(--transition-fast);
      }
      .user-locator-input:focus {
        background: var(--bg-input-focus);
        border-color: var(--accent-blue);
        color: var(--accent-blue);
      }
      .user-locator-input.error {
        border-color: var(--accent-red);
        color: var(--accent-red);
      }
      .email-container {
        margin-left: 15px;
      }
      .email-icon {
        width: 18px;
        height: 18px;
        margin-right: 3px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        vertical-align: middle;
        transform: translateY(-1.5px);
      }
      /* --------------------------------------------------------------------------
      16. Scrollbars - Custom Styling
      -------------------------------------------------------------------------- */
      :is(.dxcc-dropdown-content, #satellite-list, #beacon-list)::-webkit-scrollbar {
        width: 5px;
      }
      :is(.dxcc-dropdown-content, #satellite-list, #beacon-list)::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: 10px;
      }
      :is(.dxcc-dropdown-content, #satellite-list, #beacon-list)::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border: 1px solid var(--scrollbar-track);
        border-radius: 10px;
      }
      :is(.dxcc-dropdown-content, #satellite-list, #beacon-list)::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-thumb-hover);
      }
      /* --------------------------------------------------------------------------
      17. Responsive Breakpoints
      -------------------------------------------------------------------------- */
      @media screen and (max-width: 1275px) {
        .footer-content {
          display: none;
        }
      }
      @media screen and (max-width: 950px) {
        .ibp-btn,
        label[for="toggleTooltip"],
        .user-locator-input {
          display: none;
        }
      }
      @media screen and (max-width: 768px) {
        label[for="showSun"],
        label[for="showTerminator"] {
          display: none;
        }
      }
      /* --------------------------------------------------------------------------
      18. Cursor Styles
      -------------------------------------------------------------------------- */
      html,
      body,
      #container,
      #coords,
      #beacon-list,
      #beacon-ul li,
      .system-clock,
      #data-container {
        cursor: default;
      }
      .dxcc-link {
        cursor: pointer;
      }
      #dxcc-dropdown-content,
      #dxcc-dropdown-content th,
      #dxcc-dropdown-content td,
      #dxcc-dropdown-content tbody tr {
        cursor: pointer;
      }
      .fullscreen-icon {
        cursor: pointer;
      }
      .ibp-btn,
      .ibp-option,
      .sat-link,
      .satellite-row,
      #wwv-data-link,
      #recheck-location,
      .help,
      table.satellite-table th,
      table.satellite-table tr,
      table.satellite-table td,
      .sortable-header {
        cursor: pointer;
      }
      table.satellite-table label,
      table.satellite-table label span {
        cursor: pointer;
      }
      .dx-marker-group,
      .dx-marker-group:hover {
        cursor: pointer;
      }
      body.qth-active .dx-marker-group,
      body.qth-active .dx-marker-group:hover {
        cursor: default !important;
      }
