    /* COMPENDIUM CONTAINER */
    .compendium-container {
      position: fixed;
      inset: 0;
      z-index: 1000;
      width: 100%;
      max-width: none;
      margin: 0;
      overflow-y: auto;
      background: linear-gradient(180deg, #0e1522 0%, #080c14 100%);
      border: none;
      border-radius: 0;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
      padding: 24px clamp(16px, 6vw, 80px) 90px;
      box-sizing: border-box;
      animation: compendiumPageIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes compendiumPageIn {
      from { opacity: 0; transform: translateY(16px) scale(0.99); }
      to { opacity: 1; transform: none; }
    }

    .compendium-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(56, 189, 248, 0.2);
      padding-bottom: 12px;
      margin-bottom: 14px;
      flex-wrap: wrap;
      gap: 10px;
    }

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

    .comp-beacon-tag {
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: rgba(14, 116, 144, 0.25);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.4);
      padding: 3px 8px;
      border-radius: 4px;
    }

    .compendium-main-title {
      font-size: 1.12rem;
      font-weight: 700;
      color: #f1f5f9;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .compendium-subtitle {
      font-size: 0.8rem;
      color: #94a3b8;
      margin-top: 2px;
    }

    .btn-close-compendium {
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid rgba(239, 68, 68, 0.35);
      color: #fca5a5;
      border-radius: 6px;
      padding: 4px 12px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .btn-close-compendium:hover {
      background: #dc2626;
      color: #fff;
      border-color: #ef4444;
    }

    /* COMPENDIUM NAVIGATION TABS */
    .compendium-tabs-nav {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
      gap: 8px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      padding-bottom: 12px;
      margin-bottom: 16px;
    }

    .comp-tab-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-width: 0;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid #1e293b;
      border-radius: 9px;
      padding: 9px 12px;
      font-size: 0.84rem;
      font-weight: 600;
      color: #94a3b8;
      cursor: pointer;
      transition: all 0.15s;
    }

    .comp-tab-ico { font-size: 1rem; line-height: 1; flex-shrink: 0; }

    .comp-tab-txt {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .comp-tab-btn:hover {
      background: #1e293b;
      color: #f8fafc;
      border-color: #38bdf8;
    }

    .comp-tab-btn.active {
      background: rgba(14, 116, 144, 0.25);
      border-color: #38bdf8;
      color: #38bdf8;
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
    }

    @media (max-width: 820px) {
      .compendium-tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    /* PANES */
    .comp-pane {
      display: none;
      flex-direction: column;
      gap: 16px;
    }

    .comp-pane.active {
      display: flex;
    }

    /* CARDS & GRIDS INSIDE COMPENDIUM */
    .comp-grid-2col {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }

    @media (max-width: 900px) {
      .comp-grid-2col { grid-template-columns: 1fr; }
    }

    .comp-card {
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid #1e293b;
      border-radius: 8px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .comp-card.highlight-cyan {
      border-color: rgba(56, 189, 248, 0.35);
      background: rgba(14, 116, 144, 0.08);
    }

    .comp-card.highlight-emerald {
      border-color: rgba(16, 185, 129, 0.35);
      background: rgba(16, 185, 129, 0.06);
    }

    .comp-card.highlight-amber {
      border-color: rgba(245, 158, 11, 0.35);
      background: rgba(245, 158, 11, 0.06);
    }

    .comp-card.highlight-rose {
      border-color: rgba(244, 63, 94, 0.35);
      background: rgba(244, 63, 94, 0.06);
    }

    .comp-card-title {
      font-size: 0.92rem;
      font-weight: 700;
      color: #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      letter-spacing: 0.02em;
    }

    .comp-card-title span.badge {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 3px;
    }

    .comp-card p, .comp-card ul {
      font-size: 0.84rem;
      color: #cbd5e1;
      line-height: 1.45;
      margin: 0;
    }

    .comp-card ul {
      padding-left: 18px;
    }

    .comp-card li {
      margin-bottom: 4px;
    }

    .comp-card strong {
      color: #f8fafc;
    }

    /* LEGEND BADGES GRID */
    .legend-badges-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-top: 4px;
    }

    @media (max-width: 800px) {
      .legend-badges-grid { grid-template-columns: repeat(2, 1fr); }
    }

    .legend-badge-item {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 6px;
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .legend-badge-header {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.82rem;
      font-weight: 700;
      color: #f1f5f9;
    }

    .legend-badge-desc {
      font-size: 0.75rem;
      color: #94a3b8;
      line-height: 1.3;
    }

    /* TELEMETRY MATRIX TABLE */
    .comp-matrix-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
      color: #cbd5e1;
      background: rgba(10, 15, 24, 0.6);
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #1e293b;
    }

    .comp-matrix-table th {
      background: #111a28;
      color: #94a3b8;
      font-weight: 700;
      text-transform: uppercase;
      font-size: 0.72rem;
      letter-spacing: 0.05em;
      padding: 8px 12px;
      text-align: left;
      border-bottom: 1px solid #1e293b;
    }

    .comp-matrix-table td {
      padding: 8px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.04);
      vertical-align: middle;
    }

    .comp-matrix-table tr:hover td {
      background: rgba(56, 189, 248, 0.05);
    }

    .comp-matrix-table strong { color: #f8fafc; }
    .comp-matrix-table .tag-red { color: #f87171; font-weight: 700; }
    .comp-matrix-table .tag-cyan { color: #38bdf8; font-weight: 700; }
    .comp-matrix-table .tag-amber { color: #fbbf24; font-weight: 700; }
    .comp-matrix-table .tag-emerald { color: #34d399; font-weight: 700; }

    /* 0-EVIDENCE QUICK CARDS GRID */
    .quick-buster-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    @media (max-width: 960px) {
      .quick-buster-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .quick-buster-grid { grid-template-columns: 1fr; }
    }

    .buster-item {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid #1e293b;
      border-radius: 6px;
      padding: 9px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: all 0.15s;
    }

    .buster-item:hover {
      border-color: rgba(56, 189, 248, 0.4);
      background: rgba(30, 41, 59, 0.5);
    }

    .buster-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .buster-name {
      font-size: 0.88rem;
      font-weight: 700;
      color: #38bdf8;
    }

    .buster-badge {
      font-size: 0.68rem;
      padding: 1px 5px;
      border-radius: 3px;
      background: #1e293b;
      color: #94a3b8;
    }

    .buster-tip {
      font-size: 0.78rem;
      color: #cbd5e1;
      line-height: 1.35;
    }

    /* ==============================================================
       ★ THE JOURNAL BOOK: 6 DIVIDER TABS & DOUBLE-PAGE LAYOUT ★
       ============================================================== */
    .journal-wrapper {
      position: relative;
      width: 100%;
      max-width: 1140px;
    }


    /* ==============================================================
       PANE TU VUNG � dan d�i danh s�ch g?n h�ng cho d? d?c
       ============================================================== */
    #compPaneVocab ul {
      list-style: none;
      padding: 0 !important;
    }

    #compPaneVocab .comp-card li {
      list-style: none;
      padding: 9px 12px 10px;
      margin: 0 0 7px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid rgba(255, 255, 255, 0.07);
    }

    #compPaneVocab .comp-card strong {
      display: block;
      font-size: 0.92rem;
      color: #f3e9d6;
      margin: 0 0 4px;
    }

    #compPaneVocab .comp-card em {
      display: block;
      font-size: 0.7rem;
      color: #94815f;
      margin: 0 0 5px;
    }

    /* BANNER LỌC NHANH THEO TAB 01 EVIDENCE */
    .comp-evidence-filterbar {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(14, 116, 144, 0.14);
      border: 1px solid rgba(56, 189, 248, 0.4);
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 0.82rem;
      color: #bae6fd;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .comp-filter-dot {
      width: 9px; height: 9px; border-radius: 50%;
      background: #38bdf8; box-shadow: 0 0 8px #38bdf8;
      flex-shrink: 0;
    }
    .comp-filter-clear {
      margin-left: auto;
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.4);
      color: #fca5a5;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 2px 10px;
      cursor: pointer;
    }
    .comp-filter-clear:hover { background: #dc2626; color: #fff; }
    /* Ma bị loại trong Cẩm Nang: mờ + gạch */
    .comp-matrix-table tr.comp-ruled-out td {
      opacity: 0.32;
      filter: grayscale(0.7);
      text-decoration: line-through;
      text-decoration-color: rgba(239,68,68,0.6);
    }
    .comp-matrix-table tr.comp-match td {
      background: rgba(56, 189, 248, 0.07);
    }
    .comp-matrix-table tr.comp-match td:first-child {
      border-left: 3px solid #38bdf8;
    }
    /* Buster card bị loại: mờ, còn khớp thì viền xanh nổi lên đầu */
    .buster-item.buster-dimmed {
      opacity: 0.28;
      filter: grayscale(0.8);
    }
    .buster-item.buster-match {
      border-color: #38bdf8;
      box-shadow: 0 0 10px rgba(56,189,248,0.25);
      opacity: 1;
    }
