:root {
        --bg-deep: #050811;
        --bg-surface: #0a0f1d;
        --bg-card: rgba(13, 20, 38, 0.84);
        --bg-card-hover: rgba(18, 28, 54, 0.94);
        --bg-glass: rgba(10, 16, 31, 0.82);
        --border-subtle: rgba(56, 189, 248, 0.14);
        --border-mid: rgba(56, 189, 248, 0.28);
        --border-focus: #00f2fe;

        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;

        /* Biological Tier Colors */
        --color-compound: #00f2fe;
        --color-receptor: #ff4b72;
        --color-enzyme: #f59e0b;
        --color-transporter: #fb923c;
        --color-ion-channel: #ef4444;
        --color-pathway: #a855f7;
        --color-physiology: #38bdf8;
        --color-biomarker: #10b981;
        --color-phenotype: #f43f5e;
        --color-crosstalk: #c084fc;

        --danger: #ff4b72;
        --warning: #f59e0b;
        --success: #10b981;
        --info: #38bdf8;

        --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
      }

      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      html, body {
        width: 100%;
        min-height: 100vh;
        background-color: var(--bg-deep);
        color: var(--text-primary);
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

      a {
        color: #38bdf8;
        text-decoration: none;
        transition: color 0.15s ease;
      }
      a:hover {
        color: #00f2fe;
      }

      .container {
        max-width: 1480px;
        margin: 0 auto;
        padding: 24px 28px 80px;
      }

      /* ==========================================================================
         LUCIDE ICONS & VECTOR GLYPHS
         ========================================================================== */
      .lucide,
      svg.lucide,
      .lucide-icon {
        display: inline-block;
        vertical-align: -0.125em;
        stroke-width: 2px;
        stroke: currentColor;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
      }

      button .lucide,
      button svg.lucide,
      .btn .lucide,
      .btn svg.lucide,
      .filter-btn .lucide,
      .filter-btn svg.lucide,
      .nav-link .lucide,
      .nav-link svg.lucide {
        vertical-align: middle;
        align-self: center;
      }

      .icon-xs { width: 12px !important; height: 12px !important; stroke-width: 2px; }
      .icon-sm { width: 15px !important; height: 15px !important; stroke-width: 2px; }
      .icon-md { width: 19px !important; height: 19px !important; stroke-width: 1.85px; }
      .icon-lg { width: 24px !important; height: 24px !important; stroke-width: 1.75px; }
      .icon-xl { width: 32px !important; height: 32px !important; stroke-width: 1.65px; }

      .icon-cyan { stroke: #00f2fe !important; }
      .icon-teal { stroke: #2dd4bf !important; }
      .icon-blue { stroke: #38bdf8 !important; }
      .icon-emerald { stroke: #10b981 !important; }
      .icon-amber { stroke: #f59e0b !important; }
      .icon-rose { stroke: #ef4444 !important; }
      .icon-muted { stroke: #64748b !important; }

      /* TOPBAR */
      .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        background: var(--bg-glass);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        box-shadow: var(--shadow-card);
        margin-bottom: 16px;
        position: relative;
        z-index: 100;
      }

      .brand-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
        flex-shrink: 0;
      }

      .brand-title {
        font-size: clamp(0.98rem, 2.4vw, 1.12rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .brand-tag {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.65rem;
        padding: 2px 7px;
        border-radius: 6px;
        background: rgba(0, 242, 254, 0.08);
        border: 1px solid rgba(0, 242, 254, 0.25);
        color: #38bdf8;
        font-weight: 700;
        text-transform: uppercase;
      }

      .mobile-menu-toggle {
        display: none;
        background: rgba(13, 20, 38, 0.85);
        border: 1px solid var(--border-subtle);
        color: var(--text-primary);
        font-size: 1.2rem;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
      }

      .mobile-menu-toggle:hover {
        border-color: #00f2fe;
        color: #00f2fe;
      }

      .nav-links {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .nav-link {
        color: var(--text-secondary);
        font-size: 0.8rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid transparent;
        transition: all 0.15s ease;
        white-space: nowrap;
      }

      .nav-link:hover {
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.1);
        border-color: var(--border-subtle);
      }

      .nav-link.btn-primary {
        background: linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(59, 130, 246, 0.22));
        border-color: rgba(0, 242, 254, 0.4);
        color: #e0f7ff;
      }
      .nav-link.btn-primary:hover {
        background: linear-gradient(135deg, #00f2fe, #3b82f6);
        color: #040d1a;
        box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
      }

      /* MAIN SPLIT LAYOUT */
      .layout {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 16px;
        align-items: start;
      }

      .panel {
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 16px;
        padding: 20px;
        box-shadow: var(--shadow-card);
      }

      /* HERO TITLE & RISK BADGE */
      .hero {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 18px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-subtle);
      }

      .hero-title {
        font-size: clamp(1.8rem, 2.5vw, 2.3rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #ffffff;
      }

      .subtitle {
        color: var(--text-secondary);
        font-size: 0.92rem;
        margin-top: 4px;
      }

      .meta-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
      }

      .pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid var(--border-subtle);
        background: rgba(56, 189, 248, 0.08);
        color: #38bdf8;
        font-size: 0.75rem;
        font-weight: 600;
      }

      .risk-badge-box {
        min-width: 140px;
        padding: 10px 14px;
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        background: rgba(8, 13, 25, 0.85);
        text-align: right;
      }

      .risk-badge-box label {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
        display: block;
      }

      .risk-badge-box strong {
        display: block;
        font-size: 1.15rem;
        font-weight: 800;
        margin-top: 3px;
      }

      /* STRUCTURED GRIDS */
      .section-heading {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #38bdf8;
        margin: 16px 0 10px;
        display: flex;
        align-items: center;
        gap: 6px;
      }

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

      .info-box {
        background: rgba(8, 13, 25, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 10px 12px;
        transition: border-color 0.2s ease;
      }
      .info-box:hover {
        border-color: var(--border-mid);
      }

      .info-box label {
        display: block;
        font-size: 0.65rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 4px;
      }

      .info-box .value {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.4;
        word-break: break-word;
      }

      .list-box {
        margin-top: 14px;
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        background: rgba(8, 13, 25, 0.75);
        overflow: hidden;
      }

      .list-box .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border-subtle);
        background: rgba(12, 19, 36, 0.85);
        font-size: 0.8rem;
        font-weight: 700;
      }

      .list-box .body {
        padding: 12px 14px;
        font-size: 0.82rem;
        line-height: 1.5;
      }

      .list-box .body.compact {
        max-height: 180px;
        overflow-y: auto;
      }

      .bullet-list {
        list-style: none;
        display: grid;
        gap: 6px;
      }

      .bullet-list li {
        padding: 7px 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        background: rgba(13, 20, 38, 0.75);
        font-size: 0.78rem;
        line-height: 1.45;
      }

      .target-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-height: 480px;
        overflow-y: auto;
        padding-right: 4px;
      }
      .target-links::-webkit-scrollbar {
        width: 4px;
      }
      .target-links::-webkit-scrollbar-track {
        background: transparent;
      }
      .target-links::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
      }

      .target-link {
        appearance: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        background: rgba(13, 20, 38, 0.75);
        color: var(--text-primary);
        border: 1px solid rgba(255, 75, 114, 0.25);
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 0.78rem;
        font-weight: 500;
        text-align: left;
        transition: all 0.15s ease;
        width: 100%;
        box-sizing: border-box;
      }
      .target-link:hover {
        background: rgba(255, 75, 114, 0.12);
        border-color: rgba(255, 75, 114, 0.55);
        color: #ffffff;
        transform: translateX(2px);
      }

      .target-info-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-width: 0;
      }

      .target-rank-chip {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.05);
        padding: 1px 5px;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.1);
      }

      .target-icon {
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
      }

      .target-label {
        font-weight: 600;
        color: #f1f5f9;
      }

      .target-gene-badge {
        display: inline-flex;
        align-items: center;
        padding: 1px 6px;
        font-size: 0.68rem;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        background: rgba(56, 189, 248, 0.12);
        color: #38bdf8;
        border: 1px solid rgba(56, 189, 248, 0.3);
        border-radius: 4px;
      }

      .target-action-badge {
        display: inline-flex;
        align-items: center;
        padding: 1px 6px;
        font-size: 0.68rem;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-secondary);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        text-transform: capitalize;
      }

      .target-affinity-right {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
      }

      .target-affinity-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        font-size: 0.74rem;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        border-radius: 5px;
        white-space: nowrap;
      }

      .target-affinity-badge.affinity-high {
        background: rgba(0, 242, 254, 0.15);
        color: #00f2fe;
        border: 1px solid rgba(0, 242, 254, 0.4);
        box-shadow: 0 0 8px rgba(0, 242, 254, 0.12);
      }

      .target-affinity-badge.affinity-mid {
        background: rgba(59, 130, 246, 0.15);
        color: #60a5fa;
        border: 1px solid rgba(59, 130, 246, 0.35);
      }

      .target-affinity-badge.affinity-low {
        background: rgba(245, 158, 11, 0.12);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.3);
      }

      .target-affinity-badge.affinity-none {
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-muted);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-weight: 500;
        font-size: 0.7rem;
      }

      .targets-dose-badge {
        font-size: 0.68rem;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 600;
        color: #e2e8f0;
        background: rgba(15, 23, 42, 0.85);
        border: 1px solid rgba(56, 189, 248, 0.25);
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
      }
      .targets-dose-badge strong {
        color: #38bdf8;
      }

      .target-saturation-wrap {
        display: inline-flex;
        flex-direction: column;
        gap: 3px;
        align-items: flex-end;
      }

      .target-saturation-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        font-size: 0.74rem;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        border-radius: 5px;
        white-space: nowrap;
      }

      .target-saturation-badge.saturation-complete {
        background: rgba(0, 242, 254, 0.18);
        color: #00f2fe;
        border: 1px solid rgba(0, 242, 254, 0.5);
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
      }

      .target-saturation-badge.saturation-high {
        background: rgba(16, 185, 129, 0.16);
        color: #34d399;
        border: 1px solid rgba(16, 185, 129, 0.45);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
      }

      .target-saturation-badge.saturation-mod {
        background: rgba(56, 189, 248, 0.14);
        color: #38bdf8;
        border: 1px solid rgba(56, 189, 248, 0.35);
      }

      .target-saturation-badge.saturation-low {
        background: rgba(245, 158, 11, 0.12);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.35);
      }

      .target-saturation-badge.saturation-trace {
        background: rgba(148, 163, 184, 0.10);
        color: #94a3b8;
        border: 1px solid rgba(148, 163, 184, 0.25);
      }

      .target-saturation-badge.saturation-none {
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-muted);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-weight: 500;
        font-size: 0.7rem;
      }

      .target-saturation-track {
        width: 100%;
        min-width: 58px;
        height: 3px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 2px;
        overflow: hidden;
      }

      .target-saturation-fill {
        height: 100%;
        border-radius: 2px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .saturation-metric-card {
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(56, 189, 248, 0.2);
        display: flex;
        flex-direction: column;
        gap: 2px;
      }
      .saturation-metric-card .sat-title {
        font-size: 0.68rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
      }
      .saturation-metric-card .sat-val {
        font-size: 1.1rem;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 800;
      }
      .saturation-metric-card .sat-sub {
        font-size: 0.7rem;
        color: var(--text-secondary);
      }

      /* ==========================================================================
         GRAPH PANEL & CANVAS
         ========================================================================== */
      .graph-panel {
        display: flex;
        flex-direction: column;
        min-height: 680px;
        position: sticky;
        top: 16px;
      }

      .graph-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        flex-wrap: wrap;
      }

      .graph-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .graph-title {
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: -0.01em;
      }

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

      .select-custom {
        padding: 5px 9px;
        border-radius: 8px;
        border: 1px solid var(--border-subtle);
        background: rgba(8, 13, 25, 0.9);
        color: var(--text-primary);
        font-size: 0.75rem;
        font-family: inherit;
        cursor: pointer;
        outline: none;
      }
      .select-custom:focus {
        border-color: var(--border-focus);
      }

      .btn-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 28px;
        padding: 0 8px;
        border-radius: 7px;
        border: 1px solid var(--border-subtle);
        background: rgba(13, 20, 38, 0.85);
        color: var(--text-secondary);
        font-size: 0.74rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        user-select: none;
      }
      .btn-icon:hover {
        background: rgba(22, 34, 64, 0.95);
        color: var(--text-primary);
        border-color: var(--border-mid);
      }
      .btn-icon.active {
        background: rgba(0, 242, 254, 0.15);
        border-color: rgba(0, 242, 254, 0.45);
        color: #00f2fe;
      }

      .btn-flow {
        background: linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(59, 130, 246, 0.25));
        border-color: rgba(0, 242, 254, 0.4);
        color: #e0f7ff;
        font-weight: 700;
      }
      .btn-flow:hover {
        background: linear-gradient(135deg, #00f2fe, #3b82f6);
        color: #040d1a;
      }

      /* FILTER PILL MATRIX */
      .graph-filter-matrix {
        display: flex;
        gap: 5px;
        margin-bottom: 10px;
        flex-wrap: wrap;
      }

      .filter-btn {
        padding: 4px 9px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(8, 13, 25, 0.7);
        color: var(--text-secondary);
        font-size: 0.72rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
      }
      .filter-btn:hover {
        color: var(--text-primary);
        border-color: rgba(255, 255, 255, 0.15);
      }
      .filter-btn.active {
        background: rgba(0, 242, 254, 0.14);
        border-color: rgba(0, 242, 254, 0.45);
        color: #38bdf8;
      }

      /* GRAPH CANVAS & WORKSPACE */
      .graph-wrap {
        position: relative;
        flex: 1;
        min-height: 520px;
        background: radial-gradient(circle at 50% 50%, rgba(14, 26, 48, 0.5) 0%, rgba(5, 8, 17, 0.96) 80%),
                    radial-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px);
        background-size: 100% 100%, 26px 26px;
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
      }

      .graph-canvas {
        width: 100%;
        height: 100%;
        min-height: 520px;
        cursor: grab;
      }
      .graph-canvas:active { cursor: grabbing; }

      .graph-meta-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        font-size: 0.75rem;
        color: var(--text-muted);
        font-family: 'JetBrains Mono', monospace;
      }

      /* FLOATING QUICK INSPECTOR CARD */
      .quick-card {
        position: absolute;
        bottom: 12px;
        left: 12px;
        right: 12px;
        background: rgba(8, 13, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(56, 189, 248, 0.3);
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        z-index: 30;
        transition: transform 0.2s ease, opacity 0.2s ease;
      }
      .quick-card.hidden {
        transform: translateY(calc(100% + 20px));
        opacity: 0;
        pointer-events: none;
      }

      .quick-card-info {
        flex: 1;
      }
      .quick-card-title {
        font-size: 0.88rem;
        font-weight: 800;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .quick-card-sub {
        font-size: 0.74rem;
        color: var(--text-secondary);
        margin-top: 3px;
      }

      /* MODAL */
      .target-modal {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(2, 6, 14, 0.8);
        backdrop-filter: blur(14px);
        z-index: 80;
      }
      .target-modal.hidden { display: none; }

      .target-modal-card {
        width: min(560px, calc(100vw - 32px));
        border: 1px solid var(--border-mid);
        border-radius: 16px;
        background: rgba(10, 16, 31, 0.98);
        padding: 20px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
      }

      .target-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
      }

      .target-modal-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: #ffffff;
      }

      .target-modal-grid {
        display: grid;
        gap: 8px;
        max-height: 400px;
        overflow-y: auto;
      }

      .target-modal-row {
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        background: rgba(13, 20, 38, 0.85);
      }
      .target-modal-row strong {
        display: block;
        font-size: 0.65rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 2px;
      }

      @media (max-width: 1024px) {
        .layout {
          grid-template-columns: 1fr;
          gap: 16px;
        }
        .graph-panel {
          position: static;
          min-height: 480px;
        }
      }

      @media (max-width: 768px) {
        html, body {
          -webkit-tap-highlight-color: transparent;
          max-width: 100vw;
          overflow-x: hidden;
        }

        .container {
          padding: 10px 12px 40px;
          max-width: 100%;
          overflow-x: hidden;
          box-sizing: border-box;
        }

        .layout, .layout > * {
          min-width: 0;
          max-width: 100%;
          box-sizing: border-box;
        }

        .topbar {
          padding: 8px 12px;
          gap: 8px;
          border-radius: 12px;
          margin-bottom: 12px;
        }

        .brand-wrap {
          gap: 8px;
          min-width: 0;
        }

        .brand-logo {
          width: 30px;
          height: 30px;
          font-size: 1rem;
        }

        .brand-title {
          font-size: 0.95rem;
          line-height: 1.2;
        }

        .brand-tag {
          font-size: 0.6rem;
          padding: 2px 6px;
        }

        .mobile-menu-toggle {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 36px;
          height: 36px;
          font-size: 1.15rem;
        }

        .nav-links {
          display: none;
          position: absolute;
          top: calc(100% + 6px);
          left: 0;
          right: 0;
          background: rgba(8, 16, 30, 0.98);
          backdrop-filter: blur(24px);
          -webkit-backdrop-filter: blur(24px);
          border: 1px solid var(--border-mid);
          border-radius: 12px;
          box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
          padding: 10px;
          flex-direction: column;
          gap: 6px;
          z-index: 200;
        }

        .nav-links.open {
          display: flex;
          animation: slideDownCompoundNav 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes slideDownCompoundNav {
          from { opacity: 0; transform: translateY(-8px); }
          to { opacity: 1; transform: translateY(0); }
        }

        .nav-link {
          width: 100%;
          padding: 10px 14px;
          font-size: 0.88rem;
          border-radius: 8px;
        }

        .panel {
          padding: 14px 16px;
          border-radius: 14px;
        }

        .hero {
          flex-direction: column;
          align-items: stretch;
          gap: 12px;
        }

        .hero-title {
          font-size: 1.4rem;
        }

        .risk-badge-box {
          width: 100%;
          text-align: left;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 10px 14px;
          border-radius: 10px;
        }

        .risk-badge-box strong {
          margin-top: 0;
        }

        .detail-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 8px;
        }

        .graph-panel {
          min-height: 380px;
          padding: 14px;
        }

        .graph-header {
          flex-direction: column;
          align-items: stretch;
          gap: 8px;
        }

        .graph-toolbar {
          width: 100%;
          justify-content: flex-start;
          flex-wrap: wrap;
          gap: 6px;
        }

        .target-modal-card {
          width: min(540px, calc(100vw - 20px));
          margin: 10px;
          max-height: 90vh;
        }

        .timeline-track {
          padding-left: 20px;
        }
      }

      @media (max-width: 480px) {
        .container {
          padding: 8px 8px 30px;
        }

        .brand-logo {
          width: 26px;
          height: 26px;
          font-size: 0.9rem;
        }

        .brand-tag {
          display: none;
        }

        .hero-title {
          font-size: 1.25rem;
        }

        .detail-grid {
          grid-template-columns: 1fr;
          gap: 6px;
        }

        .meta-row {
          gap: 4px;
        }

        .pill {
          padding: 3px 8px;
          font-size: 0.7rem;
        }

        .graph-panel {
          min-height: 320px;
        }
      }

      /* EVIDENCE, LITERATURE & CITATION GRAPH STYLES */
      .evidence-card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
      }
      .study-card {
        background: rgba(13, 21, 38, 0.7);
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        padding: 12px 14px;
        transition: all 0.2s ease;
      }
      .study-card:hover {
        border-color: rgba(56, 189, 248, 0.4);
        background: rgba(13, 21, 38, 0.95);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
      }
      .study-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 6px;
      }
      .study-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.35;
      }
      .study-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
        background: rgba(0, 242, 254, 0.12);
        color: #38bdf8;
        border: 1px solid rgba(0, 242, 254, 0.3);
        white-space: nowrap;
      }
      .study-badge.rct {
        background: rgba(16, 185, 129, 0.15);
        color: #34d399;
        border-color: rgba(16, 185, 129, 0.35);
      }
      .study-badge.meta {
        background: rgba(168, 85, 247, 0.15);
        color: #c084fc;
        border-color: rgba(168, 85, 247, 0.35);
      }
      .study-meta {
        font-size: 0.72rem;
        color: var(--text-muted);
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 6px;
        font-family: 'JetBrains Mono', monospace;
      }
      .study-finding {
        font-size: 0.78rem;
        color: var(--text-secondary);
        line-height: 1.4;
      }
      .study-links {
        display: flex;
        gap: 8px;
        margin-top: 8px;
      }
      .study-link {
        font-size: 0.7rem;
        font-weight: 600;
        color: #38bdf8;
        text-decoration: none;
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(56, 189, 248, 0.08);
        border: 1px solid rgba(56, 189, 248, 0.2);
        transition: all 0.15s ease;
      }
      .study-link:hover {
        background: rgba(56, 189, 248, 0.2);
        color: #ffffff;
      }

      /* TIMELINE */
      .timeline-track {
        position: relative;
        padding-left: 20px;
        margin-top: 12px;
      }
      .timeline-track::before {
        content: '';
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: 6px;
        width: 2px;
        background: linear-gradient(180deg, #00f2fe 0%, #3b82f6 50%, rgba(59, 130, 246, 0.2) 100%);
      }
      .timeline-item {
        position: relative;
        margin-bottom: 12px;
      }
      .timeline-node-dot {
        position: absolute;
        left: -19px;
        top: 4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #00f2fe;
        border: 2px solid #050811;
        box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
      }
      .timeline-year {
        font-size: 0.72rem;
        font-weight: 800;
        color: #38bdf8;
        font-family: 'JetBrains Mono', monospace;
      }
      .timeline-text {
        font-size: 0.78rem;
        color: var(--text-secondary);
        margin-top: 2px;
      }

      /* CONTROVERSIES RADAR */
      .controversy-card {
        background: rgba(245, 158, 11, 0.05);
        border: 1px solid rgba(245, 158, 11, 0.25);
        border-radius: 10px;
        padding: 12px 14px;
        margin-top: 8px;
      }
      .controversy-title {
        font-size: 0.84rem;
        font-weight: 800;
        color: #fbbf24;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
      }
      .consensus-bar-wrap {
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        overflow: hidden;
        margin: 6px 0;
      }
      .consensus-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, #f59e0b, #10b981);
        border-radius: 3px;
      }

      /* ==========================================
         COMPOUND DATA LOADING INDICATORS & SKELETON
         ========================================== */
      .compound-spinner,
      .compound-inline-spinner {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(0, 242, 254, 0.2);
        border-top-color: #00f2fe;
        border-radius: 50%;
        animation: compoundSpin 0.75s infinite linear;
        vertical-align: middle;
        flex-shrink: 0;
      }
      .compound-spinner-sm {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 1.75px solid rgba(0, 242, 254, 0.2);
        border-top-color: #00f2fe;
        border-radius: 50%;
        animation: compoundSpin 0.75s infinite linear;
        vertical-align: middle;
        flex-shrink: 0;
      }
      .compound-spinner-lg {
        display: inline-block;
        width: 28px;
        height: 28px;
        border: 3px solid rgba(0, 242, 254, 0.15);
        border-top-color: #00f2fe;
        border-radius: 50%;
        animation: compoundSpin 0.75s infinite linear;
      }
      @keyframes compoundSpin {
        to { transform: rotate(360deg); }
      }

      .compound-loading-container {
        padding: 24px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        margin-bottom: 20px;
        box-shadow: var(--shadow-card);
      }
      .compound-loading-hero {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-subtle);
      }
      .compound-loading-orbit {
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .compound-loading-ring {
        position: absolute;
        inset: 0;
        border: 2px dashed rgba(0, 242, 254, 0.4);
        border-top-color: #00f2fe;
        border-radius: 50%;
        animation: compoundSpin 2s linear infinite;
      }
      .compound-loading-ring-inner {
        position: absolute;
        inset: 6px;
        border: 2px solid transparent;
        border-right-color: #38bdf8;
        border-left-color: #818cf8;
        border-radius: 50%;
        animation: compoundSpinRev 1.2s linear infinite;
      }
      @keyframes compoundSpinRev {
        to { transform: rotate(-360deg); }
      }
      .compound-loading-core-icon {
        width: 18px;
        height: 18px;
        color: #00f2fe;
        animation: pulseGlow 1.5s ease-in-out infinite;
      }
      @keyframes pulseGlow {
        0%, 100% { opacity: 0.7; transform: scale(0.92); }
        50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6)); }
      }
      .compound-loading-text-wrap {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }
      .compound-loading-title {
        font-size: 1.05rem;
        font-weight: 800;
        color: #f8fafc;
        letter-spacing: -0.2px;
      }
      .compound-loading-subtitle {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        color: var(--text-secondary);
      }
      .compound-loading-dot {
        width: 7px;
        height: 7px;
        background: #00f2fe;
        border-radius: 50%;
        box-shadow: 0 0 8px #00f2fe;
        animation: pulseDot 1s infinite alternate;
        flex-shrink: 0;
      }
      @keyframes pulseDot {
        0% { opacity: 0.4; transform: scale(0.8); }
        100% { opacity: 1; transform: scale(1.2); }
      }
      .compound-skeleton-card {
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .skeleton-shimmer {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(0, 242, 254, 0.07) 50%, rgba(255, 255, 255, 0.03) 75%);
        background-size: 200% 100%;
        animation: skeletonShimmer 1.6s infinite ease-in-out;
        border-radius: 8px;
      }
      @keyframes skeletonShimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
      }
      .skeleton-hero {
        height: 38px;
        width: 65%;
      }
      .skeleton-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
      }
      .skeleton-box {
        height: 60px;
      }
      .skeleton-wide {
        height: 80px;
        width: 100%;
      }
      .skeleton-wide-sm {
        height: 50px;
        width: 85%;
      }

      /* GRAPH CANVAS LOADING OVERLAY */
      .graph-loading-overlay {
        position: absolute;
        inset: 0;
        background: rgba(5, 8, 17, 0.84);
        backdrop-filter: blur(4px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        z-index: 10;
        transition: opacity 0.25s ease;
      }
      .graph-loading-overlay.hidden {
        display: none !important;
      }
      .graph-loading-text {
        font-size: 0.82rem;
        color: var(--text-secondary);
        font-family: 'JetBrains Mono', monospace;
      }

      /* ==========================================================================
         COMPOUND DB SEARCH & REGISTRY EXPLORER STYLES
         ========================================================================== */
      .compound-search-section {
        position: relative;
        margin-bottom: 20px;
        z-index: 95;
      }

      .compound-search-container {
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        padding: 16px 20px;
        box-shadow: var(--shadow-card);
      }

      .compound-search-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 12px;
      }

      .compound-search-heading {
        display: flex;
        flex-direction: column;
        gap: 2px;
      }

      .compound-search-modality-bar {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
      }

      .search-mod-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(56, 189, 248, 0.14);
        border-radius: 9999px;
        padding: 4px 11px;
        font-size: 0.72rem;
        font-weight: 700;
        color: #94a9c4;
        cursor: pointer;
        white-space: nowrap;
        line-height: 1;
        transition: all 0.15s ease;
        font-family: inherit;
        outline: none;
      }

      .search-mod-btn:hover {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-1px);
      }

      .search-mod-btn:active {
        transform: translateY(1px) scale(0.97);
      }

      .search-mod-btn.active {
        background: rgba(0, 242, 254, 0.15);
        color: #00f2fe;
        border-color: rgba(0, 242, 254, 0.5);
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
      }

      .search-mod-btn.active[data-modality="peptide"] {
        background: rgba(45, 212, 191, 0.15);
        color: #2dd4bf;
        border-color: rgba(45, 212, 191, 0.5);
        box-shadow: 0 0 10px rgba(45, 212, 191, 0.2);
      }

      .search-mod-btn.active[data-modality="biologic_antibody"] {
        background: rgba(192, 132, 252, 0.15);
        color: #c084fc;
        border-color: rgba(192, 132, 252, 0.5);
        box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
      }

      .search-mod-btn.active[data-modality="botanical_natural"] {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        border-color: rgba(16, 185, 129, 0.5);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
      }

      .search-mod-btn.active[data-modality="small_molecule"] {
        background: rgba(59, 130, 246, 0.15);
        color: #60a5fa;
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
      }

      .compound-search-bar-wrap {
        position: relative;
        width: 100%;
      }

      .compound-search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
      }

      .compound-search-input-wrapper .search-icon {
        position: absolute;
        left: 14px;
        color: #00f2fe;
        opacity: 0.85;
        pointer-events: none;
        display: flex;
        align-items: center;
      }

      .compound-search-input {
        width: 100%;
        height: 48px;
        background: rgba(6, 12, 24, 0.9);
        border: 1px solid rgba(56, 189, 248, 0.22);
        border-radius: 10px;
        padding: 0 100px 0 44px;
        color: #f8fafc;
        font-size: 0.92rem;
        font-family: inherit;
        outline: none;
        transition: all 0.2s ease;
      }

      .compound-search-input:focus {
        border-color: #00f2fe;
        box-shadow: 0 0 18px rgba(0, 242, 254, 0.28);
        background: rgba(7, 16, 32, 0.98);
      }

      .compound-search-input::placeholder {
        color: #64748b;
        font-size: 0.86rem;
      }

      .compound-search-spinner {
        position: absolute;
        right: 66px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .compound-search-clear-btn {
        position: absolute;
        right: 64px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--text-muted);
        cursor: pointer;
        padding: 4px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
      }

      .compound-search-clear-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
      }

      .compound-search-shortcut {
        position: absolute;
        right: 12px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        pointer-events: none;
      }

      .compound-search-shortcut kbd {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.64rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 4px;
        padding: 2px 5px;
        color: #94a3b8;
      }

      .compound-search-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: rgba(10, 19, 36, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(0, 242, 254, 0.35);
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 242, 254, 0.15);
        max-height: 380px;
        overflow-y: auto;
        z-index: 1000;
      }

      .compound-search-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 11px 16px;
        border-bottom: 1px solid rgba(56, 189, 248, 0.08);
        cursor: pointer;
        transition: all 0.15s ease;
      }

      .compound-search-item:last-child {
        border-bottom: none;
      }

      .compound-search-item:hover,
      .compound-search-item.highlighted {
        background: rgba(0, 242, 254, 0.12);
        border-left: 3px solid #00f2fe;
        padding-left: 13px;
      }

      .compound-search-item-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
      }

      .compound-search-item-name {
        font-size: 0.88rem;
        font-weight: 700;
        color: #f8fafc;
        display: flex;
        align-items: center;
        gap: 7px;
        flex-wrap: wrap;
      }

      .compound-search-item-sub {
        font-size: 0.72rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'JetBrains Mono', monospace;
      }

      .compound-search-item-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
      }

      .compound-search-badge {
        font-size: 0.66rem;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
      }

      .compound-search-badge.badge-peptide {
        background: rgba(45, 212, 191, 0.15);
        color: #2dd4bf;
        border: 1px solid rgba(45, 212, 191, 0.35);
      }

      .compound-search-badge.badge-biologic {
        background: rgba(192, 132, 252, 0.15);
        color: #c084fc;
        border: 1px solid rgba(192, 132, 252, 0.35);
      }

      .compound-search-badge.badge-botanical {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.35);
      }

      .compound-search-badge.badge-small-molecule {
        background: rgba(59, 130, 246, 0.15);
        color: #60a5fa;
        border: 1px solid rgba(59, 130, 246, 0.35);
      }

      .compound-search-view-btn {
        font-size: 0.74rem;
        font-weight: 700;
        color: #00f2fe;
        background: rgba(0, 242, 254, 0.1);
        border: 1px solid rgba(0, 242, 254, 0.3);
        border-radius: 6px;
        padding: 4px 10px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: all 0.15s ease;
      }

      .compound-search-item:hover .compound-search-view-btn,
      .compound-search-item.highlighted .compound-search-view-btn {
        background: #00f2fe;
        color: #050811;
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
      }

      .compound-quick-picks {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(56, 189, 248, 0.08);
        flex-wrap: wrap;
      }

      .quick-picks-label {
        font-size: 0.72rem;
        font-weight: 800;
        color: var(--text-muted);
        display: inline-flex;
        align-items: center;
        gap: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .quick-picks-chips {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
      }

      .quick-chip {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(56, 189, 248, 0.16);
        color: #94a9c4;
        padding: 4px 11px;
        border-radius: 6px;
        font-size: 0.74rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        font-family: inherit;
        outline: none;
      }

      .quick-chip:hover {
        background: rgba(0, 242, 254, 0.1);
        border-color: rgba(0, 242, 254, 0.4);
        color: #f8fafc;
        transform: translateY(-1px);
      }

      .quick-chip.active {
        background: rgba(0, 242, 254, 0.2);
        border-color: #00f2fe;
        color: #00f2fe;
        font-weight: 800;
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
      }

      @media (max-width: 768px) {
        .compound-search-container {
          padding: 12px 14px;
        }
        .compound-search-header-row {
          flex-direction: column;
          align-items: stretch;
          gap: 8px;
        }
        .compound-search-modality-bar {
          overflow-x: auto;
          flex-wrap: nowrap;
          padding-bottom: 4px;
        }
        .compound-search-input {
          font-size: 0.85rem;
          padding-right: 76px;
        }
        .compound-search-shortcut {
          display: none;
        }
        .compound-search-clear-btn {
          right: 12px;
        }
        .compound-search-spinner {
          right: 14px;
        }
        .quick-picks-chips {
          overflow-x: auto;
          flex-wrap: nowrap;
          padding-bottom: 4px;
        }
      }

      /* Mode Toggle & Experience Modes */
      .mode-toggle-group {
        display: flex;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid var(--border-subtle);
        border-radius: 9999px;
        padding: 2px;
        align-items: center;
      }

      .mode-btn {
        background: none;
        border: none;
        padding: 5px 12px;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .mode-btn:hover {
        color: var(--text-primary);
      }

      .mode-btn.active {
        background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(59, 130, 246, 0.25));
        color: #00f2fe;
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
      }

      body.mode-standard .power-user-only {
        display: none !important;
      }

      body.mode-power .standard-user-only {
        display: none !important;
      }

      /* Mode Standard: Clinical Overview first, advanced biophysics collapsible */
      body.mode-standard #compoundContent {
        display: flex;
        flex-direction: column;
      }
      body.mode-standard #compoundHero { order: 1; }
      body.mode-standard #secIndications { order: 2; }
      body.mode-standard #secMechanism { order: 3; }
      body.mode-standard #secOrganBurdens { order: 4; }
      body.mode-standard #secWarnings { order: 5; }
      body.mode-standard #secSideEffects { order: 6; }
      body.mode-standard #secInteractions { order: 7; }
      body.mode-standard #secAdvancedToggle { order: 8; }
      body.mode-standard .advanced-dossier-item {
        order: 9;
        display: none;
      }
      body.mode-standard.dossier-expanded .advanced-dossier-item {
        display: block;
      }

      /* Mode Power: Advanced biophysics and PK simulation at top */
      body.mode-power #compoundContent {
        display: flex;
        flex-direction: column;
      }
      body.mode-power #compoundHero { order: 1; }
      body.mode-power #secSimulation { order: 2; display: block; }
      body.mode-power #secAdmet { order: 3; display: block; }
      body.mode-power #secCyp { order: 4; display: block; }
      body.mode-power #secOrganBurdens { order: 5; display: block; }
      body.mode-power #secPhysicochemical { order: 6; display: block; }
      body.mode-power #secMechanism { order: 7; display: block; }
      body.mode-power #secTargets { order: 8; display: block; }
      body.mode-power #secIndications { order: 9; display: block; }
      body.mode-power #secWarnings { order: 10; display: block; }
      body.mode-power #secSideEffects { order: 11; display: block; }
      body.mode-power #secInteractions { order: 12; display: block; }
      body.mode-power #secEvidence { order: 13; display: block; }