        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            background: #0d1117;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: #e6edf3;
            overflow: hidden;
        }
        #header {
            position: fixed;
            top: 0; left: 0; right: 0;
            height: 56px;
            background: rgba(13,17,23,0.97);
            border-bottom: 1px solid #30363d;
            display: flex;
            align-items: center;
            padding: 0 24px;
            z-index: 100;
            gap: 16px;
        }
        #header-title {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 1px;
            min-width: 0;
        }
        #header h1 {
            font-size: 15px;
            font-weight: 600;
            color: #f0f6fc;
            letter-spacing: 0.2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        #header p {
            font-size: 11px;
            color: #6e7681;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        #legend {
            position: fixed;
            top: 68px;
            right: 20px;
            background: rgba(22,27,34,0.97);
            border: 1px solid #30363d;
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 12px;
            z-index: 100;
            min-width: 160px;
        }
        #legend h3 {
            font-size: 11px;
            color: #8b949e;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 8px;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            color: #c9d1d9;
        }
        .legend-dot {
            width: 10px; height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        #controls {
            position: fixed;
            bottom: 24px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 100;
        }
        .btn {
            background: #21262d;
            border: 1px solid #30363d;
            color: #c9d1d9;
            padding: 7px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.15s, border-color 0.15s;
        }
        .btn:hover { background: #30363d; border-color: #8b949e; }
        .btn:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
        #hint {
            position: fixed;
            bottom: 24px;
            left: 316px;
            font-size: 11px;
            color: #6e7681;
            z-index: 100;
        }
        svg { display: block; }

        #search-box {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
        }
        #search-input {
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 6px;
            color: #e6edf3;
            padding: 5px 10px;
            font-size: 12px;
            width: 210px;
            outline: none;
            transition: border-color 0.15s;
        }
        #search-input:focus { border-color: #58a6ff; }
        #search-input::placeholder { color: #6e7681; }
        #search-count {
            font-size: 11px;
            color: #8b949e;
            min-width: 58px;
            text-align: center;
        }
        .search-nav { padding: 5px 9px; font-size: 14px; line-height: 1; }
    /* ── DETAIL PANEL ─────────────────────────────────────────────────── */
    #detail-panel {
        position: fixed;
        top: 56px; right: 0;
        width: 340px;
        height: calc(100vh - 56px);
        background: rgba(13,17,23,0.98);
        border-left: 1px solid #30363d;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto; overflow-x: hidden;
    }
    #detail-panel.open { transform: translateX(0); }
    #detail-panel-inner {
        padding: 20px 20px 48px;
        display: flex; flex-direction: column;
    }
    #detail-close {
        position: absolute; top: 10px; right: 12px;
        background: none; border: 1px solid transparent; color: #6e7681;
        font-size: 20px; cursor: pointer; padding: 4px 8px;
        border-radius: 6px; line-height: 1;
        transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    #detail-close:hover { background: #21262d; color: #e6edf3; border-color: #30363d; }
    #detail-close:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
    #detail-logo-wrap { display: flex; justify-content: center; padding: 16px 0 12px; }
    #detail-logo { width: 72px; height: 72px; object-fit: contain; }
    #detail-name { font-size: 15px; font-weight: 600; color: #f0f6fc; line-height: 1.45; margin-bottom: 10px; }
    #detail-budget-wrap { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
    #detail-budget { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; }
    #detail-budget-label { font-size: 10px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.8px; align-self: flex-end; padding-bottom: 3px; }
    #detail-divider { height: 1px; background: #21262d; margin-bottom: 14px; }
    #detail-kind-badge {
        display: inline-block; padding: 3px 10px; border-radius: 12px;
        font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
        margin-bottom: 14px; border-width: 1px; border-style: solid;
    }
    #detail-desc { font-size: 13px; color: #c9d1d9; line-height: 1.7; }

    #year-toggle {
        display: inline-flex; background: #161b22; border: 1px solid #30363d;
        border-radius: 6px; overflow: hidden; margin-right: 16px; vertical-align: middle;
        flex-shrink: 0;
    }
    .year-btn {
        padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
        background: transparent; border: none; color: #8b949e; transition: all 0.15s;
        border-right: 1px solid #21262d; position: relative;
    }
    .year-btn:last-child { border-right: none; }
    .year-btn.active {
        background: #1f6feb;
        color: #fff;
        border-right-color: #1f6feb;
        box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
    }
    .year-btn:hover:not(.active) { color: #c9d1d9; background: #21262d; }
    .year-btn:focus-visible { outline: 2px solid #58a6ff; outline-offset: -2px; z-index: 1; }
    .year-req-tag {
        font-size: 9px; font-weight: 700; color: #e3b341;
        vertical-align: super; margin-left: 2px; letter-spacing: 0.3px;
        text-transform: uppercase;
    }
    .toggle-btn {
        padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
        background: transparent; border: 1px solid #30363d; border-radius: 6px;
        color: #8b949e; margin-left: 8px; vertical-align: middle; transition: all 0.15s;
    }
    .toggle-btn.active { background: #1a2d1a; color: #3fb950; border-color: #238636; }
    .toggle-btn:hover:not(.active) { color: #c9d1d9; background: #21262d; }
    .toggle-btn:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
    #log-toggle { display: none; }
    #log-toggle.visible { display: inline-block; }

    #org-filter-toggle {
        display: inline-flex; background: #161b22; border: 1px solid #30363d;
        border-radius: 6px; overflow: hidden; margin-right: 16px; vertical-align: middle;
    }
    .org-btn {
        padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
        background: transparent; border: none; color: #8b949e; transition: all 0.15s;
        border-right: 1px solid #21262d;
    }
    .org-btn:last-child { border-right: none; }
    .org-btn.active { background: #238636; color: #fff; }
    .org-btn:hover:not(.active) { color: #c9d1d9; background: #21262d; }
    .org-btn:focus-visible { outline: 2px solid #58a6ff; outline-offset: -2px; z-index: 1; }

    /* ── TAXPAYER PANEL ───────────────────────────────────────────────── */
    #tax-panel {
        position: fixed;
        bottom: 40px;
        left: 24px;
        background: rgba(22,27,34,0.97);
        border: 1px solid #30363d;
        border-radius: 8px;
        padding: 12px 16px 10px;
        z-index: 100;
        width: 280px;
        font-size: 12px;
    }
    #tax-panel-title {
        font-size: 11px;
        font-weight: 700;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    #tax-panel-title svg { flex-shrink: 0; }
    #tax-income-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    #tax-income-row label {
        color: #8b949e;
        font-size: 11px;
        white-space: nowrap;
    }
    #tax-income-input {
        flex: 1;
        background: #0d1117;
        border: 1px solid #30363d;
        border-radius: 5px;
        color: #e6edf3;
        padding: 4px 8px;
        font-size: 13px;
        font-weight: 600;
        text-align: right;
        outline: none;
        width: 100%;
        min-width: 0;
        transition: border-color 0.15s;
    }
    #tax-income-input:focus { border-color: #e3b341; }
    #tax-slider {
        width: 100%;
        margin-bottom: 4px;
        accent-color: #e3b341;
        cursor: pointer;
    }
    #tax-presets {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    .tax-preset-btn {
        background: #161b22;
        border: 1px solid #30363d;
        color: #8b949e;
        border-radius: 4px;
        padding: 3px 7px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.12s;
    }
    .tax-preset-btn:hover, .tax-preset-btn.active {
        background: #e3b341;
        border-color: #e3b341;
        color: #0d1117;
        font-weight: 700;
    }
    .tax-preset-btn:focus-visible { outline: 2px solid #e3b341; outline-offset: 2px; }
    #tax-results {
        border-top: 1px solid #21262d;
        padding-top: 8px;
        display: none;
    }
    .tax-result-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 4px;
    }
    .tax-result-row .tax-result-label {
        color: #8b949e;
        font-size: 11px;
    }
    .tax-result-row .tax-result-val {
        font-weight: 700;
        font-size: 13px;
        color: #e6edf3;
    }
    .tax-result-row .tax-result-val.gold { color: #e3b341; }
    .tax-result-row.tax-result-highlight {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #21262d;
    }
    .tax-result-row.tax-result-highlight .tax-result-label { color: #c9d1d9; }
    .tax-result-row.tax-result-highlight .tax-result-val { font-size: 15px; }
    #tax-note-text {
        font-size: 10px;
        color: #6e7681;
        margin-top: 8px;
        line-height: 1.5;
    }
    /* detail panel taxpayer row */
    #detail-taxpayer-wrap {
        display: none;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 10px;
        margin-top: 0;
        padding: 5px 8px 4px;
        background: #1a150a;
        border-radius: 4px;
        border: 1px solid #e3b34133;
    }
    #detail-taxpayer-amount {
        font-size: 20px;
        font-weight: 700;
        color: #e3b341;
        letter-spacing: -0.3px;
    }
    #detail-taxpayer-label {
        font-size: 10px;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    /* ── BREADCRUMB ─────────────────────────────────────────────────── */
    #bc-trail {
        font-size: 11px;
        color: #6e7681;
        line-height: 1.6;
        margin-bottom: 8px;
        padding: 6px 0 4px;
        word-break: break-word;
    }
    .bc-link {
        color: #58a6ff;
        cursor: pointer;
        text-decoration: none;
    }
    .bc-link:hover { text-decoration: underline; }
    .bc-sep { color: #6e7681; margin: 0 2px; }
    .bc-current { color: #e6edf3; font-weight: 600; }
    /* ── SIBLING CHART ──────────────────────────────────────────────── */
    #sibling-chart {
        margin-top: 16px;
        border-top: 1px solid #21262d;
        padding-top: 12px;
    }
    #sibling-chart-title {
        font-size: 10px;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 6px;
        font-weight: 600;
    }
    .sib-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
        cursor: pointer;
        border-radius: 4px;
        padding: 3px 4px;
        transition: background 0.12s;
    }
    .sib-row:hover { background: #161b22; }
    .sib-row.sib-current { background: #1a2433; border-left: 2px solid #58a6ff; padding-left: 2px; }
    .sib-name {
        font-size: 10px;
        color: #c9d1d9;
        width: 84px;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sib-bar-wrap {
        flex: 1;
        background: #161b22;
        border-radius: 3px;
        height: 10px;
        overflow: hidden;
    }
    .sib-bar {
        height: 100%;
        border-radius: 3px;
        min-width: 2px;
        transition: width 0.3s;
    }
    .sib-budget {
        font-size: 10px;
        color: #8b949e;
        width: 46px;
        text-align: right;
        flex-shrink: 0;
        font-weight: 600;
    }
    /* ── PCT INFO ───────────────────────────────────────────────────── */
    #detail-pct-wrap {
        font-size: 11px;
        color: #8b949e;
        margin-bottom: 10px;
        margin-top: -4px;
        line-height: 1.6;
        padding: 4px 8px;
        background: #161b22;
        border-radius: 4px;
        border: 1px solid #21262d;
    }
    #detail-pct-wrap .pct-val { color: #e6edf3; font-weight: 700; }

    /* Authoritative-source citations rendered under the description */
    .desc-cites {
        margin-top: 8px;
        padding-top: 6px;
        border-top: 1px dashed #21262d;
        font-size: 11px;
        color: #6e7681;
        line-height: 1.5;
    }
    .desc-cite {
        color: #58a6ff;
        text-decoration: none;
        white-space: nowrap;
    }
    .desc-cite:hover {
        color: #79c0ff;
        text-decoration: underline;
    }
