@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Roboto:wght@400;700&display=swap');

        :root {
            --primary: #0277bd;
            --primary-dim: #004c8c;
            --bg-glass: rgba(15, 15, 15, 0.95);
            --text-main: #ffffff;
            --text-dim: #aaaaaa;
            --border: 1px solid rgba(2, 119, 189, 0.3);
            --green: #00e676;
            --orange: #ff9800;
            --accent: #ffc107;
        }

        body {
            margin: 0; padding: 0;
            font-family: 'Roboto', sans-serif;
            background-color: transparent;
            color: var(--text-main);
            overflow: hidden;
            height: 100vh; width: 100vw;
            user-select: none;
        }

        #tracker-app {
            position: absolute;
            top: 50px; left: 50px;
            width: 320px;
            background: var(--bg-glass);
            border: var(--border);
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.8);
            display: flex; flex-direction: column;
            resize: both; overflow: hidden;
            min-height: 200px;
        }

        header {
            background: linear-gradient(90deg, var(--primary-dim), var(--primary));
            padding: 8px 12px;
            cursor: move;
            display: flex; justify-content: space-between; align-items: center;
            font-family: 'Rajdhani', sans-serif; font-weight: 700;
            text-transform: uppercase; letter-spacing: 1px; font-size: 1.1em;
        }

        #content { padding: 12px; flex: 1; overflow-y: auto; scrollbar-width: thin; }

        /* DESTINATION */
        .destination-display {
            background: rgba(255, 193, 7, 0.1);
            border: 1px dashed var(--accent);
            border-radius: 6px; padding: 10px; margin-bottom: 15px;
            text-align: center;
            transition: all 0.3s ease;
        }
        .dest-label {
            font-size: 0.7em; color: var(--accent);
            text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
        }
        .dest-value {
            font-family: 'Rajdhani', sans-serif; font-size: 1.3em; font-weight: 700;
            color: #fff; text-shadow: 0 0 10px rgba(0,0,0,0.5); line-height: 1.1;
        }

        /* WARNING SYSTEM */
        .multi-warning {
            display: none; /* Hidden by default */
            font-size: 0.75em;
            margin-top: 8px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            animation: warnPulse 1s infinite alternate;
        }

        @keyframes warnPulse {
            from { color: white; text-shadow: 0 0 2px black; }
            to { color: #ff3333; text-shadow: 0 0 10px red; }
        }

        /* STATS */
        .section { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .section:last-child { border-bottom: none; }

        .label { font-size: 0.7em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 2px; }
        .value { font-size: 1.1em; font-weight: bold; color: var(--text-main); }
        .value.highlight { color: var(--primary); }
        .value.bxp { color: var(--green); }

        .progress-container {
            position: relative; height: 16px;
            background: rgba(0,0,0,0.5); border-radius: 4px; margin: 5px 0 5px 0;
            overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
        }
        .progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; }
        .progress-text {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            font-size: 0.7em; text-shadow: 1px 1px 2px black; font-weight: bold; z-index: 2;
        }

        .xp-remaining-text { text-align: center; font-size: 0.8em; color: var(--text-dim); margin-bottom: 10px; }
        .xp-remaining-text b { color: var(--primary); }

        /* RUN TRACKER BOX */
        .run-box {
            background: rgba(2, 119, 189, 0.1);
            border: 1px solid rgba(2, 119, 189, 0.3);
            border-radius: 4px; padding: 8px; margin-bottom: 10px;
        }
        .run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.9em; }
        .run-val { font-weight: bold; color: #fff; }
        .run-label { font-size: 0.8em; color: #aaa; }

        .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
        .stat-box { background: rgba(255,255,255,0.05); padding: 6px; border-radius: 4px; text-align: center; }

        /* TRUNK */
        .trunk-header { display: flex; justify-content: space-between; align-items: center; }
        .sync-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; background: #444; margin-left: 5px; }
        .sync-dot.live { background: var(--green); box-shadow: 0 0 5px var(--green); }
        .sync-dot.cached { background: var(--orange); }

        .trunk-item {
            display: flex; justify-content: space-between;
            font-size: 0.85em; padding: 4px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        /* CALCULATOR */
        input[type="number"] {
            width: 90%; background: rgba(0,0,0,0.3);
            border: 1px solid #444; color: white; padding: 5px;
            border-radius: 4px; margin-top: 5px; font-family: inherit;
        }
        input:focus { outline: 1px solid var(--primary); }
        .calc-output { margin-top: 5px; font-size: 0.8em; line-height: 1.3; color: var(--text-dim); word-wrap: break-word; }
        
        /* QUICK BUTTONS */
        .quick-btn-row {
            display: flex; gap: 5px; margin-top: 5px; justify-content: center;
        }
        .quick-btn {
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
            color: #ccc; font-size: 0.7em; padding: 2px 6px; border-radius: 3px; cursor: pointer;
            font-family: 'Rajdhani', sans-serif; font-weight: bold; flex: 1;
        }
        .quick-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

        #settings-panel, #job-list, #summary-table { display: none !important; }