      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html,
      body {
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: #050a12;
        font-family: "Inter", sans-serif;
        color: #f0f4f8;
      }
      canvas {
        display: block;
        width: 100%;
        height: 100%;
      }
      /* ═══ CONSOLIDATED TOP BAR ═══ */
      #top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 12px;
        background: rgba(5, 10, 25, 0.65);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        gap: 12px;
      }
      #top-bar .tb-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
      }
      #top-bar .tb-center {
        flex: 1;
        text-align: center;
        min-width: 0;
      }
      #top-bar .tb-right {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
      }
      #phase-label {
        display: none;
      }
      #layer-count {
        font-family: "JetBrains Mono", monospace;
        font-size: 0.55rem;
        color: #cbd5e1;
        pointer-events: none;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      #close-btn {
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.25);
        color: #ef4444;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-size: 0.85rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
      }
      #close-btn:hover {
        background: rgba(239, 68, 68, 0.4);
        transform: scale(1.1);
      }
      #info-panel {
        position: fixed;
        right: 12px;
        top: 44px;
        width: 280px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        background: rgba(10, 15, 30, 0.94);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(45, 212, 191, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
          inset 0 0 40px rgba(45, 212, 191, 0.05);
        border-radius: 16px;
        padding: 18px;
        z-index: 55;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.95);
        transition: opacity 0.25s, transform 0.25s;
        scrollbar-width: thin;
        scrollbar-color: rgba(45, 212, 191, 0.2) transparent;
      }
      #info-panel.visible {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
      }
      /* Ring hover tooltip */
      #ring-tooltip {
        position: fixed;
        z-index: 60;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(100, 140, 255, 0.2);
        border-radius: 10px;
        padding: 10px 14px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
        max-width: 260px;
        font-size: 0.65rem;
        line-height: 1.5;
        color: #e2e8f0;
      }
      #ring-tooltip.visible {
        opacity: 1;
      }
      #ring-tooltip .rt-title {
        font-weight: 800;
        font-size: 0.7rem;
        margin-bottom: 4px;
      }
      #ring-tooltip .rt-agents {
        color: #94a3b8;
      }
      body.light-mode #ring-tooltip {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(0, 0, 0, 0.12);
        color: #1e293b;
      }
      body.light-mode #ring-tooltip .rt-agents {
        color: #cbd5e1;
      }
      /* LLM Agnostic explanation popup */
      #llm-agnostic-popup {
        position: fixed;
        z-index: 70;
        background: rgba(10, 15, 30, 0.96);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(251, 191, 36, 0.3);
        border-radius: 14px;
        padding: 18px 22px;
        max-width: 380px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
        transition: opacity 0.25s, transform 0.25s;
        font-size: 0.68rem;
        line-height: 1.65;
        color: #e2e8f0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      }
      #llm-agnostic-popup.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }
      #llm-agnostic-popup .ap-title {
        font-weight: 800;
        font-size: 0.85rem;
        color: #fbbf24;
        margin-bottom: 8px;
      }
      #llm-agnostic-popup .ap-row {
        margin-bottom: 5px;
        color: #94a3b8;
      }
      #llm-agnostic-popup .ap-row b {
        color: #e2e8f0;
      }
      #llm-agnostic-popup .ap-row .ap-icon {
        margin-right: 4px;
      }
      #llm-agnostic-popup .ap-close {
        position: absolute;
        top: 8px;
        right: 12px;
        cursor: pointer;
        color: #cbd5e1;
        font-size: 1rem;
      }
      #llm-agnostic-popup .ap-close:hover {
        color: #fbbf24;
      }
      body.light-mode #llm-agnostic-popup {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(0, 0, 0, 0.12);
        color: #1e293b;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
      }
      body.light-mode #llm-agnostic-popup .ap-title {
        color: #b45309;
      }
      body.light-mode #llm-agnostic-popup .ap-row {
        color: #94a3b8;
      }
      body.light-mode #llm-agnostic-popup .ap-row b {
        color: #1e293b;
      }

      /* LATENCY & PARALLELIZATION POPUP */
      #llm-latency-popup {
        position: fixed;
        top: 60px;
        left: 295px;
        width: 380px;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(239, 68, 68, 0.3);
        border-radius: 12px;
        padding: 16px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.25s, transform 0.25s;
        font-size: 0.65rem;
        line-height: 1.5;
        color: #e2e8f0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
      }
      #llm-latency-popup.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }
      #llm-latency-popup .ap-title {
        font-weight: 800;
        font-size: 0.85rem;
        color: #ef4444;
        margin-bottom: 8px;
      }
      #llm-latency-popup .ap-row {
        margin-bottom: 5px;
        color: #94a3b8;
      }
      #llm-latency-popup table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 8px;
        margin-bottom: 8px;
        font-size: 0.6rem;
      }
      #llm-latency-popup th,
      #llm-latency-popup td {
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px;
        text-align: left;
      }
      #llm-latency-popup th {
        color: #94a3b8;
        font-weight: 700;
        background: rgba(0, 0, 0, 0.2);
      }
      #llm-latency-popup .ap-close {
        position: absolute;
        top: 8px;
        right: 12px;
        cursor: pointer;
        color: #cbd5e1;
        font-size: 1rem;
      }
      #llm-latency-popup .ap-close:hover {
        color: #ef4444;
      }
      body.light-mode #llm-latency-popup {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(239, 68, 68, 0.3);
        color: #1e293b;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
      }
      body.light-mode #llm-latency-popup .ap-title {
        color: #dc2626;
      }
      body.light-mode #llm-latency-popup .ap-row {
        color: #94a3b8;
      }
      body.light-mode #llm-latency-popup th,
      body.light-mode #llm-latency-popup td {
        border-color: rgba(0, 0, 0, 0.05);
      }
      body.light-mode #llm-latency-popup th {
        background: rgba(0, 0, 0, 0.03);
        color: #94a3b8;
      }
      #info-panel h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
      }
      #info-panel .domain {
        font-size: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 700;
        margin-bottom: 8px;
      }
      #info-panel .badge {
        display: inline-block;
        padding: 2px 7px;
        border-radius: 4px;
        font-size: 0.5rem;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 6px;
      }
      #info-panel p {
        font-size: 0.75rem;
        line-height: 1.5;
        color: #94a3b8;
      }
      #info-panel .status-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        font-size: 0.6rem;
        font-weight: 700;
      }
      #info-panel .status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
      }
      #info-panel .claim {
        margin-top: 8px;
        background: rgba(251, 191, 36, 0.06);
        border: 1px solid rgba(251, 191, 36, 0.15);
        border-radius: 5px;
        padding: 5px 8px;
        font-size: 0.6rem;
        color: #fbbf24;
        font-weight: 600;
      }
      #info-panel .file {
        margin-top: 6px;
        font-family: "JetBrains Mono", monospace;
        font-size: 0.55rem;
        color: #94a3b8;
      }
      #prompt-panel {
        position: fixed;
        left: 12px;
        bottom: 12px;
        width: 330px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: rgba(10, 15, 30, 0.85);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(45, 212, 191, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
          inset 0 0 40px rgba(45, 212, 191, 0.05);
        border-radius: 16px;
        padding: 24px;
        z-index: 60;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.35s;
        scrollbar-width: thinner;
      }
      #prompt-panel.visible {
        opacity: 1;
        transform: translateX(0);
      }
      #prompt-panel h3 {
        font-size: 0.8rem;
        color: #2dd4bf;
        margin-bottom: 10px;
      }
      #prompt-panel .stage {
        margin-bottom: 8px;
        padding: 8px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(255, 255, 255, 0.015);
      }
      #prompt-panel .stage-title {
        font-size: 0.55rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
      }
      #prompt-panel .stage-text {
        font-family: "JetBrains Mono", monospace;
        font-size: 0.65rem;
        color: #94a3b8;
        line-height: 1.4;
        word-break: break-all;
      }
      #prompt-panel .flag {
        display: inline-block;
        padding: 1px 5px;
        border-radius: 3px;
        font-size: 0.5rem;
        font-weight: 700;
        margin: 2px;
      }
      #prompt-panel .flag.block {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
      }
      #prompt-panel .flag.pass {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
      }
      #legend {
        position: fixed;
        left: 12px;
        top: 42px;
        z-index: 55;
        display: flex;
        flex-direction: column;
        background: rgba(5, 10, 25, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: all 0.3s ease;
        overflow: hidden;
      }
      #legend-header {
        padding: 8px 12px;
        font-size: 0.6rem;
        font-weight: 800;
        color: #94a3b8;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        user-select: none;
        gap: 8px;
      }
      #legend-header:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #e2e8f0;
      }
      #legend-content {
        display: flex;
        flex-direction: column;
        gap: 1px;
        max-height: calc(100vh - 360px);
        overflow-y: auto;
        padding: 4px 6px;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
      }
      #legend.collapsed #legend-content {
        max-height: 0;
        padding: 0 6px;
        opacity: 0;
      }
      #legend.collapsed #legend-controls {
        display: none !important;
      }
      .legend-phase-btn, .legend-sort-btn {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        color: #cbd5e1;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s;
        font-family: inherit;
        font-size: inherit;
      }
      .legend-phase-btn:hover, .legend-sort-btn:hover {
        background: rgba(45,212,191,0.1);
        color: #94a3b8;
      }
      .legend-phase-btn.active {
        background: rgba(45,212,191,0.15);
        border-color: rgba(45,212,191,0.3);
        color: #2dd4bf;
      }
      .legend-sort-btn.active {
        background: rgba(251,191,36,0.12);
        border-color: rgba(251,191,36,0.25);
        color: #fbbf24;
      }
      #legend .section {
        font-size: 0.45rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 3px 6px;
        margin-top: 3px;
      }
      #legend .item {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.5rem;
        color: #94a3b8;
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 4px;
        transition: all 0.12s;
        white-space: nowrap;
      }
      #legend .item:hover {
        background: rgba(255, 255, 255, 0.04);
        color: #e2e8f0;
      }
      #legend .item .legend-tip {
        display: none;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 8px;
        background: rgba(8, 14, 32, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 10px 14px;
        min-width: 240px;
        max-width: 320px;
        z-index: 9999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        pointer-events: none;
      }
      #legend .item:hover .legend-tip {
        display: block;
      }
      #legend .item {
        position: relative;
      }
      .legend-tip .tip-name {
        font-size: 0.65rem;
        font-weight: 700;
        color: #f0f4f8;
        margin-bottom: 3px;
      }
      .legend-tip .tip-role {
        font-size: 0.5rem;
        font-weight: 600;
        margin-bottom: 4px;
      }
      .legend-tip .tip-desc {
        font-size: 0.5rem;
        color: #94a3b8;
        line-height: 1.4;
        margin-bottom: 4px;
        white-space: normal;
      }
      .legend-tip .tip-claim {
        font-size: 0.45rem;
        color: #cbd5e1;
      }
      .legend-tip .tip-file {
        font-size: 0.42rem;
        color: #94a3b8;
        font-family: monospace;
      }
      #legend .item.active {
        color: #f0f4f8;
        background: rgba(45, 212, 191, 0.08);
      }
      #legend .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      #hint {
        position: fixed;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.25);
        font-size: 0.55rem;
        z-index: 20;
        animation: pulse 2.5s infinite;
      }
      @keyframes pulse {
        0%,
        100% {
          opacity: 0.2;
        }
        50% {
          opacity: 0.7;
        }
      }
      #phase-tabs {
        display: flex;
        gap: 3px;
      }
      #phase-tabs button {
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        padding: 3px 10px;
        border-radius: 5px;
        font-size: 0.5rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      /* ═══ ENERGY MODE TOGGLE (inside top-bar) ═══ */
      #energy-mode-toggle {
        display: flex;
        gap: 3px;
      }
      #energy-mode-toggle button {
        background: rgba(255, 255, 255, 0.05);
        color: #94a3b8;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 3px 10px;
        border-radius: 5px;
        font-size: 0.5rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
      }
      #btn-mode-ni {
        background: rgba(16, 185, 129, 0.2) !important;
        color: #10b981 !important;
        border-color: #10b981 !important;
      }
      #test-controls select,
      #test-controls button {
        background: rgba(15, 23, 42, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #94a3b8;
        padding: 3px 8px;
        border-radius: 5px;
        font-size: 0.5rem;
        font-weight: 600;
        font-family: "Inter", sans-serif;
        cursor: pointer;
        transition: all 0.2s;
      }
      #test-controls select:hover,
      #test-controls button:hover {
        border-color: rgba(45, 212, 191, 0.3);
        color: #e2e8f0;
      }
      #test-controls select:focus {
        outline: none;
        border-color: #2dd4bf;
      }
      #test-controls .label {
        font-size: 0.42rem;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 800;
      }
      #run-btn {
        background: rgba(16, 185, 129, 0.15) !important;
        border-color: rgba(16, 185, 129, 0.3) !important;
        color: #10b981 !important;
        font-weight: 800 !important;
        padding: 4px 14px !important;
      }
      #run-btn:hover {
        background: rgba(16, 185, 129, 0.3) !important;
      }
      #run-btn.running {
        background: rgba(239, 68, 68, 0.15) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #ef4444 !important;
      }
      #phase-tabs button.active {
        color: #fff;
        border-color: rgba(45, 212, 191, 0.3);
      }
      .crt-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        background: linear-gradient(
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%
          ),
          linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.05),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.05)
          );
        background-size: 100% 4px, 3px 100%;
        z-index: 100;
        opacity: 0.5;
      }
      .vignette {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        background: radial-gradient(
          circle,
          rgba(0, 0, 0, 0) 60%,
          rgba(0, 0, 0, 0.7) 100%
        );
        z-index: 101;
      }
      /* ═══ POAW + CO₂ IMPACT PANEL ═══ */
      #poaw-panel {
        position: absolute;
        left: -9999px;
        top: -9999px;
        opacity: 0;
        pointer-events: none;
        display: none;
        flex-direction: column;
        gap: 6px;
        min-width: 195px;
        font-family: "Inter", sans-serif;
      }
      #poaw-panel:hover {
        opacity: 0 !important;
      }
      #poaw-panel.visible {
        display: flex;
      }
      #poaw-methodology.visible {
        display: block !important;
      }
      .poaw-title {
        font-size: 0.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #10b981;
        text-align: center;
        margin-bottom: 2px;
      }
      .poaw-row {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .poaw-icon {
        font-size: 0.85rem;
        flex-shrink: 0;
      }
      .poaw-info {
        display: flex;
        flex-direction: column;
      }
      .poaw-value {
        font-family: "JetBrains Mono", monospace;
        font-size: 0.75rem;
        font-weight: 900;
        color: #e2e8f0;
        display: inline;
      }
      .poaw-unit {
        font-size: 0.5rem;
        color: #cbd5e1;
        margin-left: 4px;
        font-weight: 600;
      }
      .poaw-detail {
        font-size: 0.4rem;
        color: #94a3b8;
        letter-spacing: 0.5px;
      }
      .poaw-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.05);
        margin: 2px 0;
      }
      .poaw-projection {
        text-align: center;
        margin-top: 2px;
      }
      .poaw-proj-title {
        font-size: 0.4rem;
        color: #cbd5e1;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .poaw-planet-stat {
        font-family: "JetBrains Mono", monospace;
        font-size: 0.85rem;
        font-weight: 900;
        color: #10b981;
      }
      .poaw-planet-sub {
        font-size: 0.4rem;
        color: #94a3b8;
      }
      /* ═══ KPI BUCKET BAR ═══ */
      #bucket-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        height: 52px;
        background: rgba(5, 10, 25, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(45, 212, 191, 0.1);
        display: none;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1px;
        align-items: stretch;
      }
      #bucket-bar.visible {
        display: grid;
      }
      .bucket {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        position: relative;
        transition: background 0.2s;
        overflow: hidden;
        padding: 0 12px;
      }
      .bucket:hover {
        filter: brightness(1.3);
      }
      .bucket .fill-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 0;
        transition: height 0.4s ease;
        opacity: 0.15;
      }
      .bucket .icon {
        font-size: 1rem;
        z-index: 1;
      }
      .bucket .count {
        font-family: "JetBrains Mono", monospace;
        font-size: 1rem;
        font-weight: 900;
        z-index: 1;
      }
      .bucket .label {
        font-size: 0.45rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        z-index: 1;
        opacity: 0.7;
      }
      .bucket-tp {
        color: #10b981;
      }
      .bucket-tp .fill-bar {
        background: #10b981;
      }
      .bucket-fp {
        color: #fbbf24;
      }
      .bucket-fp .fill-bar {
        background: #fbbf24;
      }
      .bucket-tn {
        color: #3b82f6;
      }
      .bucket-tn .fill-bar {
        background: #3b82f6;
      }
      .bucket-fn {
        color: #ef4444;
      }
      .bucket-fn .fill-bar {
        background: #ef4444;
      }

      /* ═══ BUCKET INSPECTOR (prompt history) ═══ */
      #bucket-inspector {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 52px;
        z-index: 180;
        background: rgba(2, 6, 18, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: none;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
      }
      #bucket-inspector.visible {
        display: flex;
      }
      #bucket-inspector .inspector-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-shrink: 0;
      }
      #bucket-inspector .inspector-header h3 {
        font-size: 1rem;
        font-weight: 900;
        margin: 0;
      }
      #bucket-inspector .close-inspector {
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #94a3b8;
        padding: 6px 14px;
        cursor: pointer;
        font-size: 0.75rem;
      }
      #bucket-inspector .close-inspector:hover {
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.3);
      }
      .prompt-entry {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 12px 16px;
        margin-bottom: 8px;
        font-family: "JetBrains Mono", monospace;
        font-size: 0.7rem;
        line-height: 1.5;
        display: flex;
        gap: 12px;
        align-items: flex-start;
      }
      .prompt-entry .idx {
        font-weight: 900;
        opacity: 0.4;
        min-width: 24px;
        flex-shrink: 0;
      }
      .prompt-entry .prompt-text {
        color: #e2e8f0;
        flex: 1;
        word-break: break-word;
      }
      .prompt-entry .meta {
        color: #cbd5e1;
        font-size: 0.55rem;
        flex-shrink: 0;
        text-align: right;
      }
      /* ═══ KPI GAUGES PANEL ═══ */
      #kpi-panel {
        position: absolute;
        left: -9999px;
        top: -9999px;
        opacity: 0;
        pointer-events: none;
        display: none;
        flex-direction: column;
        gap: 10px;
        min-width: 200px;
      }
      #kpi-panel:hover {
        opacity: 0 !important;
      }
      #kpi-panel.visible {
        display: flex;
      }
      #kpi-panel .kpi-title {
        font-size: 0.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #2dd4bf;
        text-align: center;
        margin-bottom: 2px;
      }
      #kpi-panel .kpi-row {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      #kpi-panel .kpi-gauge {
        width: 44px;
        height: 44px;
        position: relative;
        flex-shrink: 0;
      }
      #kpi-panel .kpi-gauge svg {
        width: 44px;
        height: 44px;
        transform: rotate(-90deg);
      }
      #kpi-panel .kpi-gauge .bg {
        fill: none;
        stroke: rgba(255, 255, 255, 0.06);
        stroke-width: 4;
      }
      #kpi-panel .kpi-gauge .fill {
        fill: none;
        stroke-width: 4;
        stroke-linecap: round;
        transition: stroke-dashoffset 0.5s ease;
      }
      #kpi-panel .kpi-gauge .value {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: "JetBrains Mono", monospace;
        font-size: 0.6rem;
        font-weight: 800;
      }
      #kpi-panel .kpi-info {
        display: flex;
        flex-direction: column;
      }
      #kpi-panel .kpi-label {
        font-size: 0.55rem;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      #kpi-panel .kpi-detail {
        font-size: 0.5rem;
        color: #94a3b8;
        font-family: "JetBrains Mono", monospace;
      }
      #kpi-panel .kpi-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.05);
      }
      #kpi-panel .kpi-total {
        text-align: center;
        font-family: "JetBrains Mono", monospace;
      }
      #kpi-panel .kpi-total .big {
        font-size: 1.2rem;
        font-weight: 900;
        color: #2dd4bf;
      }
      #kpi-panel .kpi-total .sub {
        font-size: 0.45rem;
        color: #cbd5e1;
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      /* ═══ UNIFIED FLIPPING STATS PANEL ═══ */
      #unified-stats-panel {
        position: fixed;
        top: 56px;
        right: 16px;
        z-index: 50;
        background: rgba(5, 10, 25, 0.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(45, 212, 191, 0.15);
        border-radius: 14px;
        display: none;
        flex-direction: column;
        min-width: 220px;
        max-width: 240px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        font-family: "Inter", sans-serif;
        transition: opacity 0.3s;
        overflow: hidden;
      }
      #unified-stats-panel:hover { opacity: 1 !important; }
      #unified-stats-panel.visible { display: flex; }
      .usp-page { display: none; padding: 14px 18px; flex-direction: column; gap: 6px; }
      .usp-page.active { display: flex; }
      .usp-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
      }
      .usp-nav button {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #cbd5e1;
        padding: 3px 10px;
        border-radius: 4px;
        font-size: 0.5rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s;
        font-family: inherit;
      }
      .usp-nav button:hover {
        background: rgba(45, 212, 191, 0.12);
        color: #2dd4bf;
        border-color: rgba(45, 212, 191, 0.3);
      }
      .usp-dots {
        display: flex;
        gap: 4px;
      }
      .usp-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: background 0.2s;
      }
      .usp-dot.active { background: #2dd4bf; }
      /* Governance page specific */
      .gov-stat-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 2px 0;
      }
      .gov-stat-label {
        font-size: 0.42rem;
        color: #cbd5e1;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .gov-stat-value {
        font-family: "JetBrains Mono", monospace;
        font-size: 0.75rem;
        font-weight: 900;
        color: #e2e8f0;
      }
      .gov-bar {
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.06);
        overflow: hidden;
        margin: 4px 0;
      }
      .gov-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
      .gov-bar-split { display: flex; height: 100%; }
      .gov-feedback-legend {
        display: flex;
        justify-content: space-between;
        font-size: 0.38rem;
        color: #cbd5e1;
      }
      /* ═══ DOWNLOAD BUTTONS ═══ */
      .usp-download-btn {
        display: block;
        width: 100%;
        margin-top: 6px;
        padding: 5px 0;
        background: rgba(45, 212, 191, 0.08);
        border: 1px solid rgba(45, 212, 191, 0.15);
        border-radius: 6px;
        color: #2dd4bf;
        font-size: 0.42rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
      }
      .usp-download-btn:hover {
        background: rgba(45, 212, 191, 0.18);
        border-color: rgba(45, 212, 191, 0.35);
        box-shadow: 0 2px 12px rgba(45, 212, 191, 0.15);
      }
      /* ═══ COMPLIANCE DOWNLOAD ROWS ═══ */
      .compliance-dl-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 6px;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.15s;
        border: 1px solid transparent;
      }
      .compliance-dl-row:hover {
        background: rgba(245, 158, 11, 0.08);
        border-color: rgba(245, 158, 11, 0.15);
      }
      .compliance-dl-icon {
        font-size: 0.75rem;
        flex-shrink: 0;
        width: 20px;
        text-align: center;
      }
      .compliance-dl-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1;
        min-width: 0;
      }
      .compliance-dl-name {
        font-size: 0.42rem;
        color: #e2e8f0;
        font-weight: 600;
      }
      .compliance-dl-tag {
        font-size: 0.32rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 1px 5px;
        border-radius: 3px;
        background: rgba(245, 158, 11, 0.12);
        color: #f59e0b;
        flex-shrink: 0;
        margin-left: 6px;
      }
      /* ═══ COMPARISON TABLE ═══ */
      .compare-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.38rem;
      }
      .compare-table th {
        font-size: 0.35rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 3px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        color: #94a3b8;
      }
      .compare-table td {
        padding: 2px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        color: #cbd5e1;
      }
      .compare-table tr:nth-child(even) td {
        background: rgba(255, 255, 255, 0.02);
      }
      .compare-table td:nth-child(2) {
        color: #f87171;
        font-weight: 600;
      }
      .compare-table td:nth-child(3) {
        color: #34d399;
        font-weight: 700;
      }
      /* Dots: slightly smaller for 6 */
      .usp-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: background 0.2s;
        cursor: pointer;
      }
      .usp-dot:hover { background: rgba(45, 212, 191, 0.4); }
      /* ═══ TEST SUMMARY OVERLAY ═══ */
      #test-summary {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: rgba(2, 6, 18, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        display: none;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.4s ease;
      }
      #test-summary.visible {
        display: flex;
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      .summary-card {
        background: rgba(10, 18, 40, 0.95);
        border: 1px solid rgba(45, 212, 191, 0.2);
        border-radius: 20px;
        padding: 36px 44px;
        max-width: 680px;
        width: 90%;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7),
          0 0 60px rgba(45, 212, 191, 0.08);
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
      }
      .summary-card .close-summary {
        position: absolute;
        top: 16px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        color: #cbd5e1;
      }
      .summary-card .close-summary:hover {
        color: #e2e8f0;
      }
      .summary-header {
        text-align: center;
        margin-bottom: 24px;
      }
      .summary-header .badge {
        display: inline-block;
        font-size: 0.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #2dd4bf;
        background: rgba(45, 212, 191, 0.1);
        padding: 4px 14px;
        border-radius: 20px;
        margin-bottom: 12px;
      }
      .summary-header h2 {
        font-size: 1.4rem;
        font-weight: 900;
        color: #e2e8f0;
        margin: 0 0 4px;
      }
      .summary-header .sub {
        font-size: 0.7rem;
        color: #cbd5e1;
      }
      .summary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
      }
      .summary-stat {
        text-align: center;
        padding: 14px 8px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.04);
      }
      .summary-stat .num {
        font-family: "JetBrains Mono", monospace;
        font-size: 1.3rem;
        font-weight: 900;
      }
      .summary-stat .lbl {
        font-size: 0.5rem;
        color: #cbd5e1;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 4px;
      }
      .summary-latency-box {
        background: rgba(251, 191, 36, 0.05);
        border: 1px solid rgba(251, 191, 36, 0.12);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 20px;
      }
      .summary-latency-box .title {
        font-size: 0.55rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #fbbf24;
        margin-bottom: 8px;
      }
      .summary-latency-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-family: "JetBrains Mono", monospace;
        font-size: 0.75rem;
      }
      .summary-latency-row .label {
        color: #94a3b8;
      }
      .summary-json {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 20px;
        max-height: 220px;
        overflow-y: auto;
      }
      .summary-json .json-title {
        font-size: 0.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #cbd5e1;
        margin-bottom: 8px;
      }
      .summary-json pre {
        margin: 0;
        font-family: "JetBrains Mono", monospace;
        font-size: 0.65rem;
        line-height: 1.5;
        color: #94a3b8;
        white-space: pre-wrap;
      }
      .summary-json .key {
        color: #fbbf24;
      }
      .summary-json .str {
        color: #10b981;
      }
      .summary-json .num {
        color: #818cf8;
      }
      .summary-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
      }
      .summary-actions button {
        padding: 10px 24px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        color: #e2e8f0;
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
      }
      .summary-actions button:hover {
        background: rgba(45, 212, 191, 0.15);
        border-color: rgba(45, 212, 191, 0.3);
      }
      .summary-actions .primary-btn {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.3);
        color: #10b981;
      }
      .summary-actions .primary-btn:hover {
        background: rgba(16, 185, 129, 0.25);
      }
      /* ═══ THEME TOGGLE SWITCH ═══ */
      #theme-toggle-wrap {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: 8px;
        padding-left: 10px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
      }
      #theme-toggle-wrap .theme-label {
        font-size: 0.45rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #cbd5e1;
        transition: color 0.3s;
      }
      .theme-switch {
        position: relative;
        width: 36px;
        height: 18px;
        cursor: pointer;
      }
      .theme-switch input {
        opacity: 0;
        width: 0;
        height: 0;
      }
      .theme-slider {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 18px;
        transition: all 0.35s;
      }
      .theme-slider::before {
        content: "";
        position: absolute;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        left: 2px;
        bottom: 2px;
        background: #cbd5e1;
        transition: all 0.35s;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      }
      .theme-switch input:checked + .theme-slider {
        background: rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.4);
      }
      .theme-switch input:checked + .theme-slider::before {
        transform: translateX(18px);
        background: #fbbf24;
      }
      /* ═══ LIGHT MODE OVERRIDES ═══ */
      body.light-mode {
        background: #f0f2f5;
        color: #1e293b;
      }
      body.light-mode .crt-overlay {
        opacity: 0 !important;
      }
      body.light-mode .vignette {
        opacity: 0 !important;
      }
      body.light-mode #phase-label {
        color: #0f766e;
        text-shadow: none;
      }
      body.light-mode #layer-count {
        color: #cbd5e1;
      }
      body.light-mode #legend {
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      }
      body.light-mode #legend .item {
        color: #94a3b8;
      }
      body.light-mode #legend .item:hover {
        background: rgba(0, 0, 0, 0.04);
        color: #1e293b;
      }
      body.light-mode #legend .section {
        color: #334155;
      }
      body.light-mode #legend-header {
        color: #94a3b8;
        border-color: rgba(0, 0, 0, 0.08);
      }
      body.light-mode #legend-header:hover {
        background: rgba(0, 0, 0, 0.04);
        color: #1e293b;
      }
      body.light-mode .legend-tip {
        background: rgba(255, 255, 255, 0.97) !important;
        border-color: rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
      }
      body.light-mode .legend-tip .tip-name {
        color: #1e293b !important;
      }
      body.light-mode .legend-tip .tip-desc {
        color: #cbd5e1 !important;
      }
      body.light-mode .legend-tip .tip-claim {
        color: #94a3b8 !important;
      }
      body.light-mode .legend-tip .tip-file {
        color: #94a3b8 !important;
      }
      body.light-mode #info-panel {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
      }
      body.light-mode #info-panel h3 {
        color: #1e293b;
      }
      body.light-mode #info-panel p {
        color: #cbd5e1;
      }
      body.light-mode #info-panel .claim {
        background: rgba(251, 191, 36, 0.08);
        border-color: rgba(251, 191, 36, 0.2);
        color: #b45309;
      }
      body.light-mode #info-panel .file {
        color: #cbd5e1;
      }
      body.light-mode #phase-tabs button {
        background: rgba(255, 255, 255, 0.85);
        border-color: rgba(0, 0, 0, 0.12);
        color: #cbd5e1;
      }
      body.light-mode #phase-tabs button.active {
        color: #0f766e;
        border-color: rgba(15, 118, 110, 0.3);
      }
      body.light-mode #test-controls select,
      body.light-mode #test-controls button {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.12);
        color: #94a3b8;
      }
      body.light-mode #run-btn {
        background: rgba(16, 185, 129, 0.12) !important;
        border-color: rgba(16, 185, 129, 0.3) !important;
        color: #059669 !important;
      }
      body.light-mode #close-btn {
        background: rgba(239, 68, 68, 0.08);
        border-color: rgba(239, 68, 68, 0.2);
      }
      body.light-mode #kpi-panel {
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(0, 0, 0, 0.1);
      }
      body.light-mode #kpi-panel .kpi-title {
        color: #0f766e;
      }
      body.light-mode #kpi-panel .kpi-label {
        color: #94a3b8;
      }
      body.light-mode #kpi-panel .kpi-detail {
        color: #94a3b8;
      }
      body.light-mode #poaw-panel {
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(0, 0, 0, 0.1);
      }
      body.light-mode .poaw-title {
        color: #059669 !important;
      }
      body.light-mode .poaw-value {
        color: #1e293b !important;
      }
      body.light-mode .poaw-unit {
        color: #cbd5e1 !important;
      }
      body.light-mode .poaw-detail {
        color: #94a3b8 !important;
      }
      body.light-mode .poaw-planet-stat {
        color: #059669 !important;
      }
      body.light-mode .poaw-planet-sub {
        color: #94a3b8 !important;
      }
      body.light-mode #bucket-bar {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(0, 0, 0, 0.08);
      }
      body.light-mode #energy-mode-toggle {
        background: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(0, 0, 0, 0.12) !important;
      }
      body.light-mode #prompt-panel {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(0, 0, 0, 0.1);
      }
      body.light-mode #prompt-panel h3 {
        color: #0f766e;
      }
      body.light-mode #prompt-panel .stage {
        border-color: rgba(0, 0, 0, 0.06);
        background: rgba(0, 0, 0, 0.02);
      }
      body.light-mode #prompt-panel .stage-text {
        color: #94a3b8;
      }
      body.light-mode #hint {
        color: rgba(0, 0, 0, 0.3);
      }
      body.light-mode #theme-toggle-wrap .theme-label {
        color: #94a3b8;
      }
      /* ═══ LLM DYSTOPIA SOURCES PANEL ═══ */
      #llm-sources-panel {
        position: fixed;
        bottom: 14px;
        right: 14px;
        width: 340px;
        max-height: 380px;
        z-index: 30;
        background: rgba(60, 10, 10, 0.92);
        border: 1px solid rgba(239, 68, 68, 0.35);
        border-radius: 14px;
        padding: 16px;
        backdrop-filter: blur(12px);
        overflow-y: auto;
        display: none;
        font-family: "Inter", sans-serif;
        box-shadow: 0 8px 40px rgba(239, 68, 68, 0.15);
      }
      #llm-sources-panel.visible {
        display: block;
      }
      #llm-sources-panel .src-title {
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #ef4444;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      #llm-sources-panel .src-stat {
        font-size: 0.7rem;
        font-weight: 700;
        color: #fca5a5;
        margin-bottom: 6px;
        padding: 6px 8px;
        background: rgba(239, 68, 68, 0.08);
        border-radius: 6px;
        border-left: 3px solid rgba(239, 68, 68, 0.4);
      }
      #llm-sources-panel .src-stat strong {
        color: #ef4444;
      }
      #llm-sources-panel .src-divider {
        height: 1px;
        background: rgba(239, 68, 68, 0.15);
        margin: 10px 0;
      }
      #llm-sources-panel .src-link {
        display: block;
        font-size: 0.55rem;
        color: #fca5a5;
        text-decoration: none;
        padding: 4px 0;
        transition: color 0.2s;
        line-height: 1.5;
      }
      #llm-sources-panel .src-link:hover {
        color: #fbbf24;
      }
      #llm-sources-panel .src-link .src-icon {
        margin-right: 4px;
      }

      /* ═══ MURMELSPIEL — Marble Pool Buckets ═══ */
      .marble-canvas {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        pointer-events: all;
        z-index: 2;
        border-radius: 0;
        opacity: 0.7;
      }

      #bucket-bar .bucket {
        position: relative;
        overflow: hidden;
      }

      /* ═══ MARBLE DETAIL — Nachvollziehbarkeit Panel ═══ */
      .marble-detail {
        position: fixed;
        right: 16px;
        top: 50%;
        transform: translateY(-50%) translateX(20px);
        width: 340px;
        max-height: 80vh;
        overflow-y: auto;
        background: rgba(8, 12, 28, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(45, 212, 191, 0.2);
        border-radius: 16px;
        padding: 0;
        z-index: 200;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
          inset 0 0 40px rgba(45, 212, 191, 0.03);
        scrollbar-width: thin;
        scrollbar-color: rgba(45, 212, 191, 0.2) transparent;
      }

      .marble-detail.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(-50%) translateX(0);
      }

      .marble-detail .md-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 2px solid;
      }

      .marble-detail .md-badge {
        padding: 3px 10px;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #fff;
      }

      .marble-detail .md-close {
        background: none;
        border: none;
        color: #cbd5e1;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s;
      }

      .marble-detail .md-close:hover {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.1);
      }

      .marble-detail .md-prompt {
        padding: 14px 18px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        line-height: 1.5;
        color: #e2e8f0;
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        word-break: break-all;
      }

      .marble-detail .md-desc {
        padding: 10px 18px;
        font-size: 0.65rem;
        color: #94a3b8;
        line-height: 1.5;
      }

      .marble-detail .md-section {
        padding: 6px 18px;
        font-size: 0.5rem;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #94a3b8;
        background: rgba(0, 0, 0, 0.15);
      }

      .marble-detail .md-phases {
        padding: 8px 18px;
      }

      .marble-detail .phase-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 0.65rem;
      }

      .marble-detail .phase-icon {
        font-size: 0.85rem;
        flex-shrink: 0;
      }

      .marble-detail .phase-name {
        font-weight: 700;
        color: #e2e8f0;
        min-width: 100px;
      }

      .marble-detail .phase-result {
        color: #94a3b8;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
      }

      .marble-detail .phase-result.dim {
        color: #374151;
        font-style: italic;
      }

      .marble-detail .md-decision {
        padding: 12px 18px;
        font-size: 1rem;
        font-weight: 900;
        text-align: center;
        letter-spacing: 1px;
      }

      .marble-detail .md-trace {
        padding: 10px 18px 16px;
        font-size: 0.6rem;
        line-height: 1.8;
        color: #94a3b8;
      }

      .marble-detail .md-trace b {
        font-weight: 800;
      }

      /* Light mode overrides */
      body.light-mode .marble-detail {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(0, 0, 0, 0.12);
        color: #1e293b;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
      }

      body.light-mode .marble-detail .md-prompt {
        background: rgba(0, 0, 0, 0.03);
        color: #1e293b;
      }

      body.light-mode .marble-detail .md-desc {
        color: #94a3b8;
      }

      body.light-mode .marble-detail .phase-name {
        color: #1e293b;
      }

      body.light-mode .marble-detail .md-trace {
        color: #94a3b8;
      }

      /* ═══ UNIFIED FLIPPING STATS PANEL ═══ */
      #unified-stats-panel {
        position: fixed;
        top: 60px;
        right: 16px;
        z-index: 52;
        background: rgba(5, 10, 25, 0.82);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(45, 212, 191, 0.15);
        border-radius: 14px;
        padding: 14px 18px 8px;
        display: none;
        flex-direction: column;
        min-width: 260px;
        max-width: 280px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
          inset 0 0 30px rgba(45, 212, 191, 0.04);
        font-family: 'Inter', sans-serif;
        transition: opacity 0.3s;
        transform: scale(1.1);
        transform-origin: top right;
      }
      #unified-stats-panel.visible {
        display: flex;
      }
      #unified-stats-panel:hover {
        opacity: 1 !important;
      }
      /* Page visibility */
      .usp-page {
        display: none;
      }
      .usp-page.active {
        display: block;
        animation: uspFadeIn 0.3s ease;
      }
      @keyframes uspFadeIn {
        from { opacity: 0; transform: translateX(8px); }
        to { opacity: 1; transform: translateX(0); }
      }
      /* Navigation bar */
      .usp-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 6px;
      }
      .usp-nav button {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #cbd5e1;
        padding: 3px 8px;
        border-radius: 5px;
        font-size: 0.42rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: 'Inter', sans-serif;
      }
      .usp-nav button:hover {
        background: rgba(45, 212, 191, 0.12);
        color: #2dd4bf;
        border-color: rgba(45, 212, 191, 0.25);
      }
      .usp-dots {
        display: flex;
        gap: 5px;
        align-items: center;
      }
      .usp-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        transition: all 0.2s;
        cursor: pointer;
      }
      .usp-dot.active {
        background: #2dd4bf;
        box-shadow: 0 0 6px rgba(45, 212, 191, 0.5);
      }
      /* Governance stats */
      .gov-stat-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2px 0;
      }
      .gov-stat-label {
        font-size: 0.45rem;
        color: #94a3b8;
        font-weight: 600;
      }
      .gov-stat-value {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        font-weight: 900;
      }
      .gov-bar {
        height: 3px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 2px;
        overflow: hidden;
        margin: 2px 0 4px;
      }
      .gov-bar-fill {
        height: 100%;
        border-radius: 2px;
        transition: width 0.5s ease, background 0.3s;
      }
      .gov-bar-split {
        display: flex;
        height: 100%;
        width: 100%;
      }
      .gov-bar-split > div {
        height: 100%;
        transition: width 0.5s ease;
      }
      .gov-feedback-legend {
        display: flex;
        justify-content: space-between;
        font-size: 0.38rem;
        color: #cbd5e1;
        margin-top: 3px;
      }
      .gov-feedback-legend span {
        display: flex;
        align-items: center;
        gap: 2px;
      }
      /* Reuse KPI gauge and POAW row styles inside unified panel */
      #unified-stats-panel .kpi-row {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      #unified-stats-panel .kpi-gauge {
        position: relative;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
      }
      #unified-stats-panel .kpi-gauge svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
      }
      #unified-stats-panel .kpi-gauge .bg {
        fill: none;
        stroke: rgba(255, 255, 255, 0.06);
        stroke-width: 3;
      }
      #unified-stats-panel .kpi-gauge .fill {
        fill: none;
        stroke-width: 3;
        stroke-linecap: round;
        transition: stroke-dashoffset 0.5s ease;
      }
      #unified-stats-panel .kpi-gauge .value {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.55rem;
        font-weight: 900;
      }
      #unified-stats-panel .kpi-info {
        display: flex;
        flex-direction: column;
      }
      #unified-stats-panel .kpi-label {
        font-size: 0.5rem;
        font-weight: 800;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      #unified-stats-panel .kpi-detail {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.5rem;
        color: #94a3b8;
      }
      #unified-stats-panel .kpi-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.05);
        margin: 2px 0;
      }
      #unified-stats-panel .kpi-total {
        text-align: center;
        padding: 2px 0;
      }
      #unified-stats-panel .kpi-total .big {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.2rem;
        font-weight: 900;
        color: #2dd4bf;
      }
      #unified-stats-panel .kpi-total .sub {
        font-size: 0.4rem;
        color: #cbd5e1;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      /* Light mode overrides */
      body.light-mode #unified-stats-panel {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
      }
      body.light-mode #unified-stats-panel .kpi-label,
      body.light-mode #unified-stats-panel .gov-stat-label {
        color: #94a3b8;
      }
      body.light-mode #unified-stats-panel .kpi-detail {
        color: #cbd5e1;
      }
      body.light-mode .usp-nav button {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.08);
        color: #cbd5e1;
      }
      body.light-mode .usp-nav button:hover {
        background: rgba(45, 212, 191, 0.1);
        color: #0d9488;
      }
      body.light-mode .usp-dot {
        background: rgba(0, 0, 0, 0.1);
      }
      body.light-mode .usp-dot.active {
        background: #0d9488;
      }
      /* Light mode overrides for new panels */
      body.light-mode .compliance-dl-name { color: #1e293b; }
      body.light-mode .compliance-dl-row:hover { background: rgba(245, 158, 11, 0.06); }
      body.light-mode .compliance-dl-tag { background: rgba(245, 158, 11, 0.1); color: #d97706; }
      body.light-mode .compare-table th { color: #94a3b8; border-color: rgba(0,0,0,0.08); }
      body.light-mode .compare-table td { color: #94a3b8; border-color: rgba(0,0,0,0.04); }
      body.light-mode .compare-table td:nth-child(2) { color: #dc2626; }
      body.light-mode .compare-table td:nth-child(3) { color: #059669; }
      body.light-mode .usp-download-btn { background: rgba(13,148,136,0.06); border-color: rgba(13,148,136,0.15); color: #0d9488; }
      body.light-mode .usp-download-btn:hover { background: rgba(13,148,136,0.12); }

