:root {
      --bg: #0c0c12;
      --panel: #15151d;
      --panel-2: #1b1b25;
      --line: #2b2b38;
      --muted: #8d91a3;
      --text: #eef0f8;
      --yellow: #f6d84c;
      --orange: #ff9d28;
      --red: #ff4545;
      --blue: #69a7ff;
      --green: #66e08a;
      --chip: #20212c;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top right, #171827 0, #0c0c12 38%, #08080d 100%);
      color: var(--text);
      overflow: hidden;
    }

    .app {
      display: grid;
      grid-template-columns: 270px 1fr; // Tamanho horizontal do menu
      height: 100vh;
    }

    .sidebar {
      background: #111119;
      border-right: 1px solid var(--line);
      padding: 20px 18px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      height: 100vh;
      overflow-y: auto;
      overflow-x: hidden;
    }
    
    .sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

    .logo {
      display: flex;
      align-items: center;
    }
    
    .logo img {
      height: 32px;
      width: auto;
      display: block;
      object-fit: contain;
    
      filter:
        drop-shadow(0 0 12px rgba(255,255,255,.06));
    }

    .logo span { color: var(--yellow); }

    .section-title {
      font-size: 10px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .08em;
      margin: 12px 0 8px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #b9bccb;
      font-size: 13px;
      padding: 9px 8px;
      border-radius: 9px;
      cursor: pointer;
    }

    .nav-item.active, .nav-item:hover {
      background: #1d1e29;
      color: #fff;
    }

    .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--muted);
    }

    .active .dot { background: var(--yellow); }

    .main {
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .topbar {
      position: relative;
      z-index: 1000;
      height: 54px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 22px;
      background: rgba(17,17,25,.72);
      backdrop-filter: blur(18px);
    }

    .workspace {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      color: var(--muted);
    }

    select {
      background: #191a23;
      border: 1px solid var(--line);
      color: var(--text);
      padding: 8px 12px;
      border-radius: 8px;
      outline: none;
    }

    .top-actions {
       position: relative;
       z-index: 1001;
      display: flex;
      align-items: center;
      gap: 14px;
      color: var(--muted);
      font-size: 13px;
    }

    .avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f0f0f0, #8d91a3);
      color: #111;
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 11px;
    }

    .content {
      padding: 22px;
      height: calc(100vh - 54px);
      overflow: auto;
    }

    .hero {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
    }

    .hero h1 {
      margin: 0;
      font-size: 24px;
      letter-spacing: -0.04em;
    }

    .hero p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .search-main {
      width: 380px;
      max-width: 42vw;
      height: 40px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #101018;
      color: var(--text);
      padding: 0 14px;
      outline: none;
    }

    .cards {
      display: grid;
      grid-template-columns: 2.1fr 1fr 1fr 1.45fr;
      gap: 14px;
    }

    .card {
      background: linear-gradient(180deg, rgba(26,26,37,.96), rgba(15,15,22,.96));
      border: 1px solid var(--line);
      border-radius: 3px;
      padding: 18px;
      min-height: 178px;
      position: relative;
      box-shadow: 0 20px 50px rgba(0,0,0,.23);
    }

    .card-title {
      color: #c5c8d4;
      font-size: 13px;
      margin-bottom: 14px;
    }

    .menu {
      position: absolute;
      top: 14px;
      right: 16px;
      color: var(--muted);
    }

    .metric {
      font-size: 32px;
      letter-spacing: -0.05em;
      line-height: 1;
    }

    .metric span {
      font-size: 15px;
      color: var(--muted);
      font-weight: 500;
    }

    .delta {
      color: var(--red);
      font-size: 12px;
      margin-top: 7px;
    }

    .mini {
      height: 44px;
      margin-top: 24px;
    }

    .sparkline {
      width: 100%;
      height: 100%;
    }

    .burndown {
      height: 125px;
      width: 100%;
    }

    .donut-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 10px;
    }

    .donut {
      --p1: 42;
      width: 135px;
      height: 135px;
      border-radius: 50%;
      background:
        conic-gradient(var(--red) 0 32%, var(--orange) 32% 53%, var(--yellow) 53% 78%, #484b57 78% 100%);
      position: relative;
      display: grid;
      place-items: center;
      margin: auto;
    }

    .donut::after {
      content: "";
      position: absolute;
      width: 94px;
      height: 94px;
      border-radius: 50%;
      background: #15151d;
      border: 1px solid var(--line);
    }

    .donut-number {
      z-index: 2;
      text-align: center;
      font-size: 24px;
      font-weight: 800;
    }

    .donut-number small {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 500;
      margin-top: 2px;
    }

    .legend {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 7px 10px;
      font-size: 11px;
      color: #c3c6d2;
    }

    .legend i {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      margin-right: 6px;
    }

    .toolbar {
      margin: 18px 0 12px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
    }

    .filters {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .chip {
      border: 1px solid #3a3b48;
      color: #c6c9d5;
      background: var(--chip);
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 11px;
      cursor: pointer;
    }

    .chip:hover { border-color: var(--yellow); }

    .table-wrap {
      background: #101018;
      border: 1px solid var(--line);
      border-radius: 3px;
      overflow: hidden;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    th, td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      white-space: nowrap;
    }

    th {
      color: #a4a8b7;
      font-weight: 600;
      background: #14141d;
      font-size: 11px;
    }

    td { color: #dfe2ed; }

    tr:hover td { background: #171824; }

    .severity {
      display: inline-flex;
      align-items: center;
      padding: 4px 7px;
      border-radius: 4px;
      color: #0b0b0f;
      font-weight: 800;
      font-size: 10px;
    }

    .critical { background: var(--red); color: white; }
    .high { background: var(--orange); }
    .medium { background: var(--yellow); }

    .tag {
      border: 1px solid #4a4c5a;
      border-radius: 999px;
      padding: 4px 8px;
      color: #d4d6df;
      font-size: 10px;
    }

    .status-new { color: var(--blue); }
    .status-triage { color: var(--orange); }
    .status-fixed { color: var(--green); }

    .cta {
      margin-top: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid rgba(246,216,76,.34);
      background: linear-gradient(90deg, rgba(246,216,76,.08), rgba(105,167,255,.05));
      padding: 16px;
      border-radius: 4px;
    }

    .cta strong { display: block; }
    .cta span { color: var(--muted); font-size: 12px; }

    .btn {
      background: var(--yellow);
      color: #121212;
      border: none;
      border-radius: 8px;
      padding: 10px 14px;
      font-weight: 800;
      cursor: pointer;
    }


    .library-overview {
      margin-bottom: 18px;
      display: grid;
      grid-template-columns: 1.6fr .9fr;
      gap: 14px;
    }

    .library-profile {
      background: linear-gradient(180deg, rgba(26,26,37,.96), rgba(15,15,22,.96));
      border: 1px solid var(--line);
      border-radius: 3px;
      padding: 18px;
      position: relative;
      box-shadow: 0 20px 50px rgba(0,0,0,.23);
    }

    .library-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .library-name {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .library-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(246,216,76,.22), rgba(105,167,255,.13));
      border: 1px solid rgba(246,216,76,.25);
      color: var(--yellow);
      font-weight: 900;
      letter-spacing: -0.06em;
    }

    .library-name h2 {
      margin: 0;
      font-size: 20px;
      letter-spacing: -0.04em;
    }

    .library-name p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .library-badge {
      border: 1px solid rgba(246,216,76,.34);
      color: var(--yellow);
      background: rgba(246,216,76,.06);
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }


    .library-header-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      margin-right: 26px;
    }

    .library-version-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .library-version-pill {
      border: 1px solid var(--line);
      background: rgba(16,16,24,.72);
      border-radius: 999px;
      padding: 6px 10px;
      min-width: 96px;
    }

    .library-version-pill span {
      display: block;
      color: var(--muted);
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 3px;
    }

    .library-version-pill strong {
      color: var(--text);
      font-size: 12px;
      line-height: 1.2;
    }

    .library-description {
      color: #dfe2ed;
      font-size: 13px;
      line-height: 1.6;
      margin: 0 0 14px;
      max-width: 960px;
    }

    .library-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-top: 14px;
    }

    .library-kv {
      background: rgba(16,16,24,.72);
      border: 1px solid var(--line);
      border-radius: 3px;
      padding: 11px;
    }

    .library-kv span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 6px;
    }

    .library-kv strong {
      color: var(--text);
      font-size: 12px;
    }

    .why-list {
      display: grid;
      gap: 9px;
      margin-top: 4px;
    }

    .why-item {
      color: #dfe2ed;
      font-size: 12px;
      line-height: 1.45;
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .why-item::before {
      content: "";
      width: 7px;
      height: 7px;
      min-width: 7px;
      border-radius: 50%;
      margin-top: 5px;
      background: var(--yellow);
    }

    .risk-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 14px;
    }

    .risk-mini {
      background: rgba(16,16,24,.72);
      border: 1px solid var(--line);
      border-radius: 3px;
      padding: 11px;
    }

    .risk-mini span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 7px;
    }

    .risk-mini strong {
      font-size: 18px;
      letter-spacing: -0.04em;
    }

    @media (max-width: 1100px) {
      body { overflow: auto; }
      .app { grid-template-columns: 1fr; }
      .sidebar { display: none; }
      .cards { grid-template-columns: 1fr 1fr; }
      .library-overview { grid-template-columns: 1fr; }
      .library-header { align-items: flex-start; }
      .library-header-right { align-items: flex-start; margin-right: 0; }
      .library-version-row { justify-content: flex-start; }
      .search-main { max-width: none; width: 100%; }
      .hero { flex-direction: column; }
    }

    @media (max-width: 720px) {
      .cards { grid-template-columns: 1fr; }
      .library-grid, .risk-strip { grid-template-columns: 1fr 1fr; }
      .content { padding: 14px; }
      table { min-width: 900px; }
      .table-wrap { overflow-x: auto; }
    }
    .delta-up {
      color: #ff4d4f; /* vermelho */
    }
    
    .delta-down {
      color: #52c41a; /* verde */
    }
    .badge-owned {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(246, 216, 76, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(246, 216, 76, 0.35);
  font-weight: 700;
  white-space: nowrap;
}
.badge-poc,
.badge-exploit {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-poc {
  color: #69a7ff;
  border: 1px solid rgba(105, 167, 255, 0.45);
  background: rgba(105, 167, 255, 0.12);
}

.badge-exploit {
  color: #ff4545;
  border: 1px solid rgba(255, 69, 69, 0.45);
  background: rgba(255, 69, 69, 0.12);
}
.unlock-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(246, 216, 76, 0.08);
  color: var(--yellow);
  border: 1px solid rgba(246, 216, 76, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease;
}

.unlock-action:hover {
  background: rgba(246, 216, 76, 0.16);
  border-color: rgba(246, 216, 76, 0.7);
  box-shadow: 0 0 18px rgba(246, 216, 76, 0.12);
  transform: translateY(-1px);
}

.unlock-action:active {
  transform: translateY(0);
}
.unlock-action:hover::after {
  content: "Includes exploit chain, PoC and attack impact analysis";
  position: absolute;
  bottom: 120%;
  right: 0;
  background: #0c0c12;
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 10px;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--muted);
}
.tag-link {
  display: inline-block;
  text-decoration: none;
  transition: all .18s ease;
}

.tag-link:hover {
  color: var(--yellow);
  border-color: rgba(246,216,76,.65);
  background: rgba(246,216,76,.08);
}

.modal-corner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 340px;
  z-index: 9999;
  display: none;
}

.modal-corner.active {
  display: block;
}

.modal-box {
  position: relative;
  background: linear-gradient(180deg, rgba(26,26,37,.98), rgba(15,15,22,.98));
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  border-radius: 8px;
  padding: 18px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.modal-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 14px;
}

.modal-box input,
.modal-box textarea {
  width: 100%;
  background: #101018;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 9px;
  outline: none;
}

.modal-box textarea {
  min-height: 84px;
  resize: vertical;
}

.modal-submit {
  width: 100%;
  margin-top: 4px;
}

.modal-thank-you {
  display: grid;
  gap: 6px;
}

.modal-thank-you span {
  color: var(--muted);
  font-size: 12px;
}

.modal-center {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
}

.modal-center.active {
  display: flex;
}

.modal-center .modal-box {
  width: 420px;
  max-width: calc(100vw - 32px);
}
.account-menu {
  position: relative;
  z-index: 1002;
}

.avatar-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.account-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 180px;

  background: #11131a;
  border: 1px solid #262935;
  border-radius: 14px;

  padding: 8px;
  display: none;

  box-shadow:
    0 10px 40px rgba(0,0,0,.45);

  z-index: 9999;
}

.account-dropdown.active {
  display: flex;
  flex-direction: column;
}

.account-dropdown a {
  color: #d8dbe7;
  text-decoration: none;

  padding: 12px 14px;
  border-radius: 10px;

  font-size: 14px;
  transition: .15s ease;
}

.account-dropdown a:hover {
  background: #1a1d27;
  color: #fff;
}
.login-error {
  margin-top: 14px;
  margin-bottom: 14px;

  padding: 12px 14px;

  border-radius: 10px;

  background: rgba(255, 69, 69, 0.12);
  border: 1px solid rgba(255, 69, 69, 0.25);

  color: #ff7d7d;
  font-size: 14px;
}
.cookie-consent {
  position: fixed;

  left: 24px;
  bottom: 24px;

  width: 360px;
  max-width: calc(100vw - 48px);

  z-index: 99999;

  background:
    linear-gradient(
      180deg,
      rgba(13,15,23,.96),
      rgba(8,10,16,.98)
    );

  border: 1px solid rgba(255,255,255,.08);

  border-radius: 18px;

  box-shadow:
    0 10px 40px rgba(0,0,0,.45);

  padding: 18px;

  display: none;
}

.cookie-content {
  display: grid;
  gap: 16px;
}

.cookie-text strong {
  display: block;

  color: #fff;

  font-size: 14px;
  margin-bottom: 8px;
}

.cookie-text p {
  color: #98a1b3;

  font-size: 13px;
  line-height: 1.65;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-actions button {
  border: none;
  outline: none;

  background: #f6d84c;
  color: #0b0c12;

  font-weight: 700;
  font-size: 13px;

  border-radius: 12px;

  padding: 10px 16px;

  cursor: pointer;

  transition: .2s ease;
}

.cookie-actions button:hover {
  transform: translateY(-1px);
}
.dropdown-section-label {
  padding: 10px 14px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7f8a99;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}

.dropdown-action-link {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: #d7dde8;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.dropdown-action-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.account-dropdown a {
  color: #d7dde8;
}

.account-dropdown a:hover {
  color: #fff;
}
.token-warning {
  border: 1px solid rgba(246,216,95,.35);
  background: rgba(246,216,95,.08);
  color: #f6d85f;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

.token-label {
  display: block;
  color: #8d91a3;
  font-size: 11px;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.token-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.token-textarea,
.token-command {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #d7dde8;
  border-radius: 10px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  resize: vertical;
}

.token-textarea {
  min-height: 70px;
}

.token-command {
  min-height: 150px;
  margin-bottom: 10px;
}

.token-copy-btn {
  white-space: nowrap;
  align-self: start;
  cursor: pointer;
}
/* Research Notes */

.research-notes-section {
  margin-top: 18px;
}

.research-notes-header {
  padding: 28px 28px 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-eyebrow {
  display: block;
  color: var(--yellow);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.research-notes-header h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.research-notes-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 880px;
}

.research-notes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.research-note-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(26,26,37,.96), rgba(15,15,22,.96));
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.23);
  position: relative;
}

.research-note-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: linear-gradient(180deg, var(--yellow), var(--blue));
}

.research-note-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.research-note-code {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246,216,76,.34);
  color: var(--yellow);
  background: rgba(246,216,76,.06);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.research-note-card h4 {
  margin: 10px 0 6px;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.research-note-card p {
  margin: 0;
  color: #c5c8d4;
  font-size: 13px;
  line-height: 1.6;
}

.research-note-badges {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 220px;
}

.rn-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(16,16,24,.72);
}

.rn-status {
  color: var(--green);
  border-color: rgba(102,224,138,.36);
  background: rgba(102,224,138,.08);
}

.rn-severity {
  color: var(--yellow);
  border-color: rgba(246,216,76,.36);
  background: rgba(246,216,76,.08);
}

.rn-confidence {
  color: var(--blue);
  border-color: rgba(105,167,255,.36);
  background: rgba(105,167,255,.08);
}

.research-note-summary {
  margin-top: 14px;
  color: #dfe2ed;
  font-size: 13px;
  line-height: 1.65;
}

.research-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.research-note-box {
  background: rgba(16,16,24,.72);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px;
}

.research-note-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.research-note-box strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.research-note-block {
  margin-top: 14px;
  padding: 13px 14px;
  background: rgba(16,16,24,.72);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 3px;
}

.research-note-block.mitigation {
  border-left-color: var(--green);
}

.research-note-block strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 6px;
}

.research-note-block p {
  color: #c5c8d4;
  font-size: 12px;
  line-height: 1.6;
}

.research-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.research-evidence-box {
  border: 1px solid var(--line);
  background: #101018;
  border-radius: 3px;
  overflow: hidden;
}

.research-evidence-box span {
  display: block;
  padding: 10px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #14141d;
  border-bottom: 1px solid var(--line);
}

.research-evidence-box.danger span {
  color: var(--red);
}

.research-evidence-box.safe span {
  color: var(--green);
}

.research-evidence-box pre,
.research-note-details pre {
  margin: 0;
  padding: 13px;
  overflow-x: auto;
  background: #090910;
  color: #dfe2ed;
  font-size: 12px;
  line-height: 1.55;
}

.research-evidence-box code,
.research-note-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.research-note-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #101018;
}

.research-note-details summary {
  cursor: pointer;
  padding: 11px 13px;
  color: #c5c8d4;
  font-size: 12px;
  font-weight: 700;
  background: #14141d;
  border-bottom: 1px solid var(--line);
}

.research-note-details summary:hover {
  color: var(--yellow);
}

.research-note-details.safe summary {
  color: var(--green);
}

.research-note-details.fres summary {
  color: var(--blue);
}

.research-note-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .research-note-top,
  .research-note-footer {
    flex-direction: column;
  }

  .research-note-badges {
    justify-content: flex-start;
    min-width: 0;
  }

  .research-note-grid,
  .research-evidence-grid {
    grid-template-columns: 1fr;
  }
}
.research-notes-search {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  max-width: 620px;
}

.research-notes-search input {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101018;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.research-notes-search button {
  border: 1px solid rgba(246,216,76,.34);
  background: rgba(246,216,76,.08);
  color: var(--yellow);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.research-pagination {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.research-pagination a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #c5c8d4;
  border: 1px solid var(--line);
  background: #101018;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.research-pagination a.active,
.research-pagination a:hover {
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow);
}
.research-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 28px 0 10px;
}

.research-pagination a {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 10px;
    background: rgba(17, 20, 38, 0.9);
    color: #9aa4c7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .18s ease;
}

.research-pagination a:hover {
    border-color: rgba(255, 215, 0, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.research-pagination a.active {
    background: linear-gradient(135deg, #ffd84c, #f4b400);
    color: #08101f;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(255, 216, 76, 0.22);
}
.research-notes-section {
    padding: 0;
    overflow: hidden;
}

.research-notes-list {
    padding: 22px 28px 28px;
}

.research-pagination {
    padding: 0 28px 28px;
}
.nav-item.roadmap {
    opacity: 0.48;
    cursor: default;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.nav-item.roadmap:hover {
    opacity: 0.72;
}

.dot.muted {
    background: #4a4f63;
}

.coming-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: #8d91a3;
    letter-spacing: 0.04em;
}

.sidebar-footnote {
    margin-top: 26px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #6d7285;
    opacity: 0.75;
}
.academy-section {
    margin-top: 26px;
}

.nav-item.academy {
    opacity: 0.92;
}

.academy-dot {
    background: #f6d84c;
    box-shadow: 0 0 8px rgba(246, 216, 76, 0.35);
}
.academy-section {
  margin-top: 26px;
}

.academy-dot {
  background: #f6d84c;
  box-shadow: 0 0 8px rgba(246,216,76,.35);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.academy-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

.academy-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.academy-card h3 {
  margin: 8px 0 8px;
  font-size: 20px;
  color: #fff;
}

.academy-card p {
  color: var(--muted);
  line-height: 1.6;
}

.academy-excerpt {
  margin-top: 14px;
}

.academy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.academy-meta span {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: 6px 10px;
}

.chip.active {
  border-color: rgba(246,216,76,.55);
  color: #f6d84c;
}

@media (max-width: 980px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
}
.academy-section {
  margin-top: 26px;
}

.academy-dot {
  background: #f6d84c;
  box-shadow: 0 0 8px rgba(246,216,76,.35);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.academy-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.academy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246,216,76,.35);
  background: rgba(255,255,255,.045);
}

.academy-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.academy-card h3 {
  margin: 8px 0 8px;
  font-size: 20px;
  color: #fff;
}

.academy-card p {
  color: var(--muted);
  line-height: 1.6;
}

.academy-excerpt {
  margin-top: 14px;
}

.academy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.academy-meta span {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: 6px 10px;
}

.chip.active {
  border-color: rgba(246,216,76,.55);
  color: #f6d84c;
}

.academy-pagination {
  margin-top: 22px;
}

.academy-read-btn {
  width: 100%;
  justify-content: center;
}

.academy-modal .modal-box {
  width: min(980px, calc(100vw - 42px));
}

.academy-modal-box {
  max-height: 86vh;
  overflow-y: auto;
}

.academy-modal-box h2 {
  margin: 8px 0;
  font-size: 30px;
  color: #fff;
}

.academy-modal-subtitle {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.modal-meta {
  margin-top: 14px;
}

.modal-grid {
  margin: 18px 0;
}

.academy-modal-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.academy-modal-section strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.academy-modal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.academy-modal-section.mitigation {
  border-color: rgba(246,216,76,.25);
}

@media (max-width: 980px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
}