 
 body {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 0.95rem;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
    background: #f9faff;
}
 a, button {
     transition: .3s all ease;
     color: #8e5ce1;
     text-decoration: none;
}
 a:hover, a:focus, button:hover, button:focus {
     text-decoration: none;
     color: #9427d8;
     outline: none !important;
     box-shadow: none !important;
}
 h1, h2, h3, h4, h5, h6 {
     line-height: 1.5;
     color: rgba(0, 0, 0, 0.8);
     font-weight: 400;
}
/* Navbar theme */
 .ppgx-navbar-light {
     background: #ffffff !important;
     box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
     position: absolute;
     left: 0;
     right: 0;
     z-index: 3;
     padding: 0;
}
 @media (max-width: 991.98px) {
     .ppgx-navbar-light {
         background: #481e8f !important;
         padding: 1em 0;
         position: relative;
         top: 0;
    }
}
 .ppgx-navbar-light .navbar-brand {
     color: #000000;
     padding: 0;
     position: relative;
     z-index: 0;
}
 .ppgx-navbar-light .navbar-brand small {
     color: #8a48fa;
}
 @media (max-width: 991.98px) {
     .ppgx-navbar-light .navbar-brand {
         color: #986ce2;
    }
     .ppgx-navbar-light .navbar-nav {
         padding-top: 20px;
    }
 .ppgx-navbar-light .navbar-brand small {
     color: #fff;
}
}
 .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link {
     position: relative;
     font-size: 15px;
     padding-top: 1.7rem;
     padding-bottom: 1.7rem;
     padding-left: 25px;
     padding-right: 25px;
     color: rgba(0, 0, 0, 0.8);
     font-weight: 400;
}
 @media (max-width: 991.98px) {
     .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link {
         padding-left: 10px;
         padding-right: 10px;
         padding-bottom: 1rem;
         padding-top: 0;
         color: #fff;
    }
}
 .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link.active {
     background-color: transparent;
     color: #8e5ce1;
     font-weight: 550;
}
 @media (max-width: 991.98px) {
     .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link.active {
         color: #fff !important;
    }
}
 @media (min-width: 991px) {
    .nav-link:hover {
      background-color: #eee;
    }

    .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link.active,
    .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link.active:hover,
    .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link.active:focus {
      background-color: transparent;
      color: #8e5ce1;
    }
}

.ppgx-navbar-light .dropdown-menu .dropdown-item.active,
.ppgx-navbar-light .dropdown-menu .dropdown-item.active:hover,
.ppgx-navbar-light .dropdown-menu .dropdown-item.active:focus,
.ppgx-navbar-light .dropdown-menu .dropdown-item[aria-current="page"] {
    background-color: transparent;
    background-image: linear-gradient(#8e5ce1, #8e5ce1);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 2px 55%;
    color: #8e5ce1;
    font-weight: 550;
}
 .ppgx-navbar-light .navbar-toggler {
     border: none;
     color: rgba(255, 255, 255, 0.9) !important;
     cursor: pointer;
     padding-right: 0;
     font-size: 16px;
     letter-spacing: .1em;
}

/* Global knowledgebase search */
.ppgx-site-search {
    position: relative;
    width: min(340px, 29vw);
    z-index: 4;
}

.ppgx-search-box {
    position: relative;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ppgx-search-box:focus-within {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ppgx-search-box .search-input {
    width: 100%;
    height: 44px;
    padding: 10px 50px 10px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    background: #fff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.ppgx-search-box .search-input:focus {
    border-color: #8f4ff9;
    box-shadow: none !important;
}

.ppgx-search-box .search-icon {
    position: absolute;
    top: 22px;
    right: 20px;
    color: #666;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.3s ease;
}

.ppgx-search-box:focus-within .search-icon {
    color: #8f4ff9;
}

.ppgx-search-box .spinner-border {
    position: absolute;
    top: 15px;
    right: 48px;
    color: #8f4ff9;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    max-height: min(60vh, 390px);
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.search-suggestions.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ppgx-search-suggestions-label {
    padding: 10px 20px;
    border-radius: 15px 15px 0 0;
    background: #f8f9fa;
    color: #666;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ppgx-search-suggestion {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 11px 20px;
    border-top: 1px solid #f1f1f1;
    color: #2c2731;
    text-align: left;
    transition: background-color 0.2s ease;
}

.ppgx-search-suggestion:hover,
.ppgx-search-suggestion:focus,
.ppgx-search-suggestion.is-active {
    color: #2c2731;
    background: #f8f9fa;
}

.ppgx-search-suggestion > i {
    flex: 0 0 18px;
    width: 18px;
    margin-right: 12px;
    color: #777;
    text-align: center;
}

.ppgx-search-suggestion-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ppgx-search-suggestion-title,
.ppgx-search-suggestion-description {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppgx-search-suggestion-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.ppgx-search-suggestion-description {
    margin-top: 2px;
    color: #777;
    font-size: 0.75rem;
}

.ppgx-search-suggestion-type {
    flex: 0 0 auto;
    margin-left: 10px;
    color: #8f4ff9;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ppgx-site-search-message {
    padding: 0.85rem;
    color: #706978;
    font-size: 0.86rem;
    text-align: center;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .ppgx-site-search {
        width: 220px;
    }

    .ppgx-navbar-light .navbar-nav > .nav-item > .nav-link {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 991.98px) {
    .ppgx-site-search {
        width: 100%;
        margin-top: 1.25rem;
    }
}
/* Brand styling */
 .navbar-brand {
     font-weight: 800;
     font-size: 27px;
     color: #8f4ff9;
     z-index: 3;
     position: relative;
     line-height: 1.1;
}
 .navbar-brand small {
     font-size: 27px;
}
 .navbar-brand span {
     color: #a6a6a6;
     line-height: 1.1;
     text-transform: uppercase;
     font-size: 11px;
     display: block;
     font-weight: 500;
     letter-spacing: 1px;
}
/* Sections */
 .ppgx-section {
    padding-left: 2em;
    padding-right: 2em;
     padding-top: 5em;
     padding-bottom: 3em;
     position: relative;
     width: 100%;
     overflow-x: hidden;
}
.ppgx-section p {
     text-align: justify;
     line-height: 1.8;
}

 @media (max-width: 575.98px) {
     .ppgx-section {
         padding: 6em 0;
    }
}
/* Heading block */
 .heading-section .subheading {
     font-size: 13px;
     display: block;
     margin-bottom: 5px;
     color: rgba(0, 0, 0, 0.3);
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
}
 .heading-section h2 {
     font-size: 38px;
     font-weight: 500;
     line-height: 1.4;
}
 @media (max-width: 991.98px) {
     .heading-section h2 {
         font-size: 40px;
    }
}

/* Reusable inner-page header */
.ppgx-page-header {
    position: relative;
    display: flex;
    min-height: 86px;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.2rem 1.6rem;
}

.ppgx-page-header-copy {
    max-width: 680px;
}

.ppgx-page-header-title {
    margin: 0;
    color: #30283a;
    font-size: clamp(1.55rem, 3vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.ppgx-page-header p {
    margin: 0.25rem 0 0;
    color: #77707d;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ppgx-page-header-bare-baseline {
    padding: 0.8rem 0.25rem 1rem;
    border-bottom: 1px solid #ddd8e3;
}

.ppgx-page-header-bare-baseline::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 58px;
    height: 2px;
    background: #76549b;
    content: "";
}

@media (max-width: 575.98px) {
    .ppgx-page-header {
        min-height: 80px;
        padding-right: 0;
        padding-left: 0;
    }
}

/* Shared inner-page content panel */
.ppgx-about-panel,
.ppgx-content-panel {
    --ppgx-panel-padding: clamp(1.0rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    padding: var(--ppgx-panel-padding);
    border: 1px solid #e9e4ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(52, 35, 75, 0.06);
    color: #302a37;
}

.ppgx-content-panel > .card-body {
    padding: 0;
}

.ppgx-content-panel > .card-footer {
    margin: 1.5rem calc(-1 * var(--ppgx-panel-padding)) calc(-1 * var(--ppgx-panel-padding));
    padding: 0.8rem var(--ppgx-panel-padding);
    border-top: 1px solid #f0edf2;
    border-radius: 0 0 9px 9px;
    background: #fcfbfd;
}

/* About page content */
.ppgx-about-panel-body > p {
    max-width: 920px;
    color: #615968;
    line-height: 1.7;
}

.ppgx-about-section-head {
    margin-bottom: 1rem;
}

.ppgx-about-section-label {
    color: #76549b;
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ppgx-about-section-head h2 {
    margin: 0.22rem 0 0;
    color: #30283a;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ppgx-about-section-divider {
    position: relative;
    height: 1px;
    margin: 2.25rem 0;
    background: #eeeaf1;
}

.ppgx-about-section-divider::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: 58px;
    height: 2px;
    background: #76549b;
    content: "";
}

.ppgx-about-panel .accordion {
    --bs-accordion-border-color: #e9e4ef;
    --bs-accordion-border-radius: 10px;
    --bs-accordion-inner-border-radius: 9px;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-color: #5f3f87;
    --bs-accordion-active-bg: #faf7fd;
}

.ppgx-about-panel .accordion-item {
    overflow: hidden;
    border: 1px solid #e9e4ef;
    border-radius: 10px;
    background: #fff;
}

.ppgx-about-panel .accordion-item:not(:last-child) {
    margin-bottom: 0.65rem !important;
}

.ppgx-about-panel .accordion-button {
    padding: 1rem 1.15rem;
    background: #fcfbfd;
    color: #4d4555;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.4;
}

.ppgx-about-panel .accordion-button:not(.collapsed) {
    background: #faf7fd;
    color: #5f3f87;
    box-shadow: none;
}

.ppgx-about-panel .accordion-body {
    padding: 1.25rem;
    border-top: 1px solid #f0edf2;
    color: #514a58;
}

.ppgx-about-panel .accordion-body > p {
    line-height: 1.65;
}

@media (max-width: 575.98px) {
    .ppgx-about-panel,
    .ppgx-content-panel {
        --ppgx-panel-padding: 1.15rem;
    }

    .ppgx-about-panel .accordion-button,
    .ppgx-about-panel .accordion-body {
        padding: 1rem;
    }
}

/* Theme buttons */
 .btn {
     padding: 9px 12px;
     cursor: pointer;
     border-radius: 4px;
     box-shadow: 0px 24px 36px -11px rgba(0, 0, 0, 0.09);
     font-size: 13px;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
}
 .btn.btn-primary {
     background: #8f4ff9 !important;
     border: 1px solid #8f4ff9 !important;
     color: #fff !important;
}
 .btn.btn-primary:hover {
     border: 1px solid #8f4ff9;
     background: transparent;
     color: #8f4ff9;
}
/* Services cards */
 .services-wrap {
     position: relative;
     margin-bottom: 25px;
}
 .services-wrap .services {
     padding: 40px;
     display: block;
     width: 100%;
     margin-bottom: 0px;
     border-radius: 5px;
     box-shadow: 0px 5px 25px -2px rgba(0, 0, 0, 0.03);
}
 .services-wrap .services .icon {
     margin-bottom: 20px;
     width: 64px;
     height: 64px;
     border-radius: 50%;
     background: #e3ecfe;
     position: relative;
     margin-left: 0;
}
 .services-wrap .services .icon span {
     position: absolute;
     font-size: 40px;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
}
 .services-wrap .services .text h2 {
     font-size: 20px;
     font-weight: 500;
}
/* The .services block itself is used too */
 .services {
     width: 100%;
     background: #fff;
     padding: 30px;
     margin-bottom: 20px;
     transition: all 0.3s ease;
}
 .services .icon {
     margin: 0 auto;
}
 .services .icon span {
     font-size: 60px;
     line-height: 1.2;
     color: #8f4ff9;
}
 .services .text {
     color: #69666c;
     width: 100%;
}
 .services .text h2 {
     font-size: 26px;
     font-weight: 500;
     margin-bottom: 15px;
}
 .services:hover, .services.active {
     background: #8f4ff9;
     box-shadow: 0px 5px 25px -2px rgba(0, 0, 0, 0.18);
}
 .services:hover .icon, .services.active .icon {
     background: #9568fa;
}
 .services:hover .icon span, .services.active .icon span {
     color: #fff;
}
 .services:hover .text, .services.active .text {
     color: rgba(255, 255, 255, 0.9);
}
 .services:hover .text h2, .services.active .text h2 {
     color: #fff;
}
/* Footer */
 .ppgx-footer {
     padding: 3em 0 0 0;
     position: relative;
     z-index: 0;
     color: rgba(255, 255, 255, 0.9);
}
 .ppgx-footer .overlay {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     opacity: .8;
     background: #000000;
     z-index: -1;
}
 .ppgx-footer .ppgx-footer-widget h2 {
     color: #fff;
     margin-bottom: 40px;
     font-size: 18px;
     font-weight: 500;
}
 .sticky-top {
     position: -webkit-sticky;
     position: sticky;
     top: 0;
     z-index: 1020;
}


/* on hover (and when the card has .active like your template) */
.services:hover .icon .bi,
.services.active .icon .bi {
  color: #fff;
}
.services .icon {
  position: relative; /* needed for absolute centring */
}

.services .icon i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.8rem;
}

.form-check-input:checked {
    background-color: #8b48fa;
    border-color: #7f42e4;
}

.text-justify {
    text-align: justify;
}

/* Curated interaction summary text */
#interaction-summary {
  text-align: justify;
  line-height: 1.5;
  color: var(--bs-gray-600);
}

#evidence-table {
    font-size: 0.9rem;
    line-height: 1.3;
}

#evidence-table tr.ref-highlight {
  background-color: rgba(121, 13, 253, 0.095);
  transition: background-color 0.6s ease;
}

#evidence-table tr.ref-highlight.fade-out {
  background-color: transparent;
}

#evidence-table tbody tr.evidence-row {
  cursor: pointer;
}

#summaryModalBody .study-details {
    text-align: justify;
    line-height: 1.4;
}

#ddi-list li,
#proteine-block {
    line-height: 1.4;
}


.ref-link {
  cursor: pointer;
  user-select: none;
}

.ref-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.adr-pill {
  font-size: 0.7em;
  line-height: 0.9
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bd-violet-bg);
  --bs-tooltip-color: var(--bs-white);
}

.target-block,
.transporter-block {
    margin-top: 3px;
    margin-bottom: 3px;
}

.text-purple {
    color: #8f4ff9 !important;
}

.table-tight td, .table-tight th, .table-tight thead tr th { 
    padding-top: 0.25rem; 
    padding-bottom: 0.25rem; 
    line-height: 1.5; 
}

.table-tighter td, .table-tighter th, .table-tighter thead tr th  { 
    padding-top: 0.15rem; 
    padding-bottom: 0.15rem; 
    line-height: 1.3; 
}

/* Pharmacogenetics evidence matrix */
.egm-page {
  --egm-ink: #292331;
  --egm-muted: #716a79;
  --egm-purple: #7b45d4;
  --egm-border: #e9e4ef;
  --egm-metabolism: #5873a5;
  --egm-transporter: #4f8464;
  --egm-target: #76549b;
  color: var(--egm-ink);
}

.egm-section-label {
  color: var(--egm-purple);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.egm-scope-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid #e8e2ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.egm-scope-note i {
  margin-top: 0.15rem;
  color: var(--egm-purple);
}

.egm-scope-note p {
  margin: 0;
  color: var(--egm-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.egm-scope-note strong {
  color: var(--egm-ink);
}

.egm-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}

.egm-stat {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--egm-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(48, 32, 68, 0.04);
}

.egm-stat::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: #d7c5f2;
  content: "";
}

.egm-stat-3::before { background: #8b59d6; }
.egm-stat-4::before { background: #d4a151; }

.egm-stat-value,
.egm-stat-label {
  display: block;
}

.egm-stat-value {
  color: var(--egm-ink);
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1.1;
}

.egm-stat-label {
  margin-top: 0.35rem;
  color: var(--egm-muted);
  font-size: 0.78rem;
}

.egm-stat.is-loading .egm-stat-value {
  width: 45%;
  border-radius: 5px;
  background: #eeeaf2;
}

.egm-panel {
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--egm-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(52, 35, 75, 0.06);
}

.egm-panel-head {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.egm-panel-head h2 {
  margin: 0.25rem 0 0;
  color: var(--egm-ink);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.egm-open-hint {
  margin: 0;
  color: var(--egm-muted);
  font-size: 0.78rem;
}

.egm-open-hint i {
  margin-right: 0.25rem;
  color: var(--egm-purple);
}

.egm-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.egm-mode-toggle {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 3px;
  border: 1px solid #e2dce8;
  border-radius: 10px;
  background: #f7f5f9;
}

.egm-mode-option {
  padding: 0.48rem 0.7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #746c7b;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
}

.egm-mode-option i {
  margin-right: 0.3rem;
}

.egm-mode-option:hover,
.egm-mode-option:focus-visible {
  color: #6333ab;
}

.egm-mode-option.is-active {
  background: #fff;
  color: #6333ab;
  box-shadow: 0 2px 8px rgba(58, 39, 75, 0.1);
}

.egm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.egm-filter {
  display: inline-flex;
  min-height: 30px;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.62rem;
  border: 1px solid #e5deeb;
  border-radius: 999px;
  background: #fff;
  color: #716978;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.egm-filter span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 0;
  border-radius: 9px;
  place-items: center;
  background: #f2eef6;
  font-size: 0.58rem;
}

.egm-filter:hover,
.egm-filter:focus-visible,
.egm-filter.is-active {
  border-color: #ccb5ec;
  background: #f3ecff;
  color: #6533b0;
}

.egm-filter.is-active {
  box-shadow: inset 0 0 0 1px rgba(123, 69, 212, 0.08);
}

.egm-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #faf9fc;
}

.egm-legend-block > strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #615869;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.egm-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.egm-legend-item {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: #68616f;
  font-size: 0.72rem;
  white-space: nowrap;
}

.egm-legend-swatch {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 3px;
}

.egm-model-marker {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.egm-model-marker.is-probable {
  border-color: #9b3f61;
  background: #9b3f61;
  box-shadow: 0 0 0 1px #f3dce5;
}

.egm-model-marker.is-possible {
  border-color: #b37817;
  background: #fff;
  box-shadow: 0 0 0 1px #f8e6bd;
}

.egm-model-marker.is-limited {
  border-color: #60849a;
  background: linear-gradient(90deg, #60849a 50%, #fff 50%);
  box-shadow: 0 0 0 1px #dce9ee;
}

.egm-pathway-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8060ad;
  box-shadow: 0 0 0 2px #eee8f7;
}

.egm-table-wrap {
  overflow: auto;
  max-height: 68vh;
  border: 1px solid #ece8f0;
  border-radius: 14px;
  scrollbar-color: #cfc5d8 transparent;
  scrollbar-width: thin;
}

.egm-table-wrap:focus {
  outline: 2px solid rgba(123, 69, 212, 0.32);
  outline-offset: 3px;
}

.egm-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.egm-table th,
.egm-table td {
  border-right: 1px solid #efecf2;
  border-bottom: 1px solid #efecf2;
}

.egm-table tr:last-child th,
.egm-table tr:last-child td {
  border-bottom: 0;
}

.egm-table th:last-child,
.egm-table td:last-child {
  border-right: 0;
}

.egm-corner,
.egm-gene-head {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 62px;
  background: #f7f4fa;
}

.egm-corner {
  left: 0;
  z-index: 5;
  width: 132px;
  min-width: 132px;
  padding: 0.85rem 1rem;
  text-align: left;
}

.egm-corner span,
.egm-corner small {
  display: block;
}

.egm-corner span {
  color: #544c5d;
  font-size: 0.72rem;
  font-weight: 600;
}

.egm-corner small {
  color: #9a92a2;
  font-size: 0.65rem;
  font-weight: 500;
}

.egm-gene-head {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  padding: 0.45rem 0.2rem;
  text-align: center;
}

.egm-gene-head a {
  display: block;
  overflow: hidden;
  width: 74px;
  color: #4c4257;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egm-gene-head > span {
  display: block;
  overflow: hidden;
  width: 74px;
  margin-top: 0.3rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #796b86;
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egm-gene-metaboliser { box-shadow: inset 0 3px 0 var(--egm-metabolism); }
.egm-gene-transporter { box-shadow: inset 0 3px 0 var(--egm-transporter); }
.egm-gene-target { box-shadow: inset 0 3px 0 var(--egm-target); }
.egm-gene-metaboliser > span { color: var(--egm-metabolism); }
.egm-gene-transporter > span { color: var(--egm-transporter); }
.egm-gene-target > span { color: var(--egm-target); }

.egm-gene-head a:hover {
  color: var(--egm-purple);
}

.egm-psy-head {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 132px;
  min-width: 132px;
  padding: 0.6rem 0.8rem;
  background: #fbfafc;
  text-align: left;
}

.egm-psy-head a {
  color: #403748;
  font-size: 0.82rem;
  font-weight: 650;
}

.egm-psy-head a:hover {
  color: var(--egm-purple);
}

.egm-matrix-cell {
  height: 61px;
  padding: 4px;
  background: #fff;
}

.egm-cell {
  display: flex;
  position: relative;
  width: 100%;
  min-width: 52px;
  height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.egm-cell:hover,
a.egm-cell:focus-visible {
  z-index: 1;
  color: inherit;
  border-color: currentColor;
  box-shadow: 0 8px 20px rgba(57, 40, 75, 0.13);
  transform: translateY(-2px);
}

a.egm-cell:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.egm-cell-code {
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}

.egm-cell-label {
  overflow: hidden;
  width: 100%;
  margin-top: 0.32rem;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egm-cell-count {
  position: absolute;
  top: 3px;
  left: 4px;
  min-width: 13px;
  padding: 1px 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.47rem;
  font-weight: 700;
  line-height: 1.2;
}

.egm-cell-open {
  position: absolute;
  right: 4px;
  bottom: 3px;
  opacity: 0;
  font-size: 0.62rem;
  transition: opacity 0.18s ease;
}

.egm-cell .egm-cell-pathway {
  position: absolute;
  bottom: 5px;
  left: 6px;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.egm-cell > .egm-model-marker {
  position: absolute;
  top: 3px;
  right: 3px;
}

.egm-cell.has-pathway {
  box-shadow: none;
}

a.egm-cell:hover .egm-cell-open,
a.egm-cell:focus-visible .egm-cell-open {
  opacity: 0.7;
}

.egm-inspector {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 58px;
  margin-top: 0.75rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #ece7f0;
  border-radius: 11px;
  background: #faf9fb;
  color: #7a7281;
}

.egm-inspector > i {
  margin-top: 0.05rem;
  color: #9a83b8;
}

.egm-inspector strong,
.egm-inspector span {
  display: block;
}

.egm-inspector strong {
  margin-bottom: 0.15rem;
  color: #5c5364;
  font-size: 0.76rem;
}

.egm-inspector span {
  font-size: 0.7rem;
  line-height: 1.45;
}

.egm-inspector.has-selection {
  border-color: #ddd0ec;
  background: #fbf8ff;
}

.egm-status-strong_human {
  background: #eee5ff;
  color: #5b2ba2;
}

.egm-status-preliminary_human {
  background: #fff0cd;
  color: #815a12;
}

.egm-status-mixed_human {
  background: #fbe5eb;
  color: #934058;
}

.egm-status-negative_human {
  background: #e5eef8;
  color: #3b668c;
}

.egm-status-mechanistic_only {
  background: #dff3ef;
  color: #2d746b;
}

.egm-status-unclassified {
  background: #eeeaf1;
  color: #6c6373;
}

.egm-status-not_studied {
  border-color: #ece8ef;
  background:
    repeating-linear-gradient(135deg, #faf9fb 0, #faf9fb 6px, #f5f3f7 6px, #f5f3f7 12px);
  color: #a099a7;
}

/* Drug-drug evidence summary */
.ddi-em-page {
  --ddi-em-antidepressant: #5873a5;
  --ddi-em-antipsychotic: #76549b;
  --ddi-em-recreational: #9a6b42;
  --ddi-em-other: #4f8464;
  --ddi-em-increase-bg: #e3edf8;
  --ddi-em-increase-text: #3e678e;
  --ddi-em-decrease-bg: #f5e5e8;
  --ddi-em-decrease-text: #8a4b59;
  --ddi-em-neutral-bg: #e9efec;
  --ddi-em-neutral-text: #566e63;
  --ddi-em-mixed-bg: #fff0d5;
  --ddi-em-mixed-text: #79591f;
  --ddi-em-unclear-bg: #eeeaf2;
  --ddi-em-unclear-text: #665d6d;
}

.egm-drug-head {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}

.egm-drug-head a,
.egm-drug-head > span {
  width: 92px;
}

.ddi-em-category-antidepressant {
  box-shadow: inset 0 3px 0 var(--ddi-em-antidepressant);
}

.ddi-em-category-antipsychotic {
  box-shadow: inset 0 3px 0 var(--ddi-em-antipsychotic);
}

.ddi-em-category-recreational {
  box-shadow: inset 0 3px 0 var(--ddi-em-recreational);
}

.ddi-em-category-other {
  box-shadow: inset 0 3px 0 var(--ddi-em-other);
}

.ddi-em-page .egm-mode-toggle {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ddi-em-page .egm-legend {
  grid-template-columns: 1fr;
  gap: 0;
}

.ddi-em-page .egm-legend-block {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
}

.ddi-em-page .egm-legend-block + .egm-legend-block {
  border-top: 1px solid #ece8f0;
}

.ddi-em-page .egm-legend-block > strong {
  margin: 0;
}

.ddi-em-page .egm-panel-head {
  align-items: flex-start;
}

.ddi-em-page .egm-panel-actions {
  width: min(100%, 620px);
}

.ddi-em-page .egm-filters {
  flex-wrap: nowrap;
}

.ddi-em-pk-tools {
  display: flex;
  width: 100%;
  gap: 0.45rem;
  align-items: flex-start;
  justify-content: flex-end;
  margin-top: 0.1rem;
}

.ddi-em-search {
  display: flex;
  position: relative;
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
  margin: 0;
}

.ddi-em-search i {
  position: absolute;
  left: 0.7rem;
  color: #8b8292;
  font-size: 0.72rem;
  pointer-events: none;
}

.ddi-em-search input {
  width: 100%;
  height: 34px;
  padding: 0.46rem 0.7rem 0.46rem 1.9rem;
  border: 1px solid #e2dce8;
  border-radius: 9px;
  background: #fff;
  color: #514958;
  font-size: 0.7rem;
  outline: 0;
}

.ddi-em-search input:focus {
  border-color: #bda4df;
  box-shadow: 0 0 0 3px rgba(123, 69, 212, 0.1);
}

.ddi-em-search input::placeholder {
  color: #9a929f;
}

.ddi-em-enzyme-filter {
  position: relative;
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  margin: 0;
}

.ddi-em-enzyme-filter > summary {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border: 1px solid #e2dce8;
  border-radius: 9px;
  background: #fff;
  color: #5c5363;
  cursor: pointer;
  list-style: none;
}

.ddi-em-enzyme-filter > summary::-webkit-details-marker {
  display: none;
}

.ddi-em-enzyme-filter > summary span {
  font-size: 0.7rem;
  font-weight: 700;
}

.ddi-em-enzyme-filter > summary small {
  margin-left: auto;
  color: #8d8493;
  font-size: 0.6rem;
}

.ddi-em-enzyme-filter > summary i {
  margin-left: 0.45rem;
  color: #8c7a9e;
  font-size: 0.58rem;
  transition: transform 0.18s ease;
}

.ddi-em-enzyme-filter[open] > summary {
  border-color: #bda4df;
  box-shadow: 0 0 0 3px rgba(123, 69, 212, 0.08);
}

.ddi-em-enzyme-filter[open] > summary i {
  transform: rotate(180deg);
}

.ddi-em-enzyme-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: min(360px, calc(100vw - 3rem));
  padding: 0.8rem;
  border: 1px solid #ded6e5;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(52, 35, 75, 0.16);
}

.ddi-em-enzyme-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.ddi-em-enzyme-head > span {
  max-width: 205px;
  color: #776e7d;
  font-size: 0.62rem;
  line-height: 1.35;
}

.ddi-em-enzyme-head > div {
  display: flex;
  gap: 0.25rem;
}

.ddi-em-enzyme-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b3ca3;
  font-size: 0.58rem;
  font-weight: 700;
}

.ddi-em-enzyme-head button + button::before {
  margin-right: 0.25rem;
  color: #c9c0d0;
  content: '·';
}

.ddi-em-enzyme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.ddi-em-enzyme-option {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  border: 1px solid #ebe6ef;
  border-radius: 8px;
  background: #fbfafc;
  color: #5d5464;
  cursor: pointer;
}

.ddi-em-enzyme-option.is-selected {
  border-color: #d3c2e8;
  background: #f7f2fc;
}

.ddi-em-enzyme-option input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #7444aa;
}

.ddi-em-enzyme-option span {
  font-size: 0.65rem;
  font-weight: 700;
}

.ddi-em-enzyme-option small {
  margin-left: auto;
  color: #978d9e;
  font-size: 0.55rem;
}

.egm-ddi-curated-potentiates {
  background: var(--ddi-em-increase-bg, #e3edf8);
  color: var(--ddi-em-increase-text, #3e678e);
}

.egm-ddi-curated-attenuates {
  background: var(--ddi-em-decrease-bg, #f5e5e8);
  color: var(--ddi-em-decrease-text, #8a4b59);
}

.egm-ddi-curated-no_change {
  background: var(--ddi-em-neutral-bg, #e9efec);
  color: var(--ddi-em-neutral-text, #566e63);
}

.egm-ddi-curated-mixed {
  background: var(--ddi-em-mixed-bg, #fff0d5);
  color: var(--ddi-em-mixed-text, #79591f);
}

.egm-ddi-curated-unclear {
  background: var(--ddi-em-unclear-bg, #eeeaf2);
  color: var(--ddi-em-unclear-text, #665d6d);
}

.egm-ddi-pk-direction-increase {
  background: var(--ddi-em-increase-bg, #e3edf8);
  color: var(--ddi-em-increase-text, #3e678e);
}

.egm-ddi-pk-direction-decrease {
  background: var(--ddi-em-decrease-bg, #f5e5e8);
  color: var(--ddi-em-decrease-text, #8a4b59);
}

.egm-ddi-pk-direction-minimal {
  background: var(--ddi-em-neutral-bg, #e9efec);
  color: var(--ddi-em-neutral-text, #566e63);
}

.egm-ddi-prediction-no_impact {
  background: #f0eff2;
  color: #69646e;
}

.ddi-em-evidence-marker {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid currentColor;
  border-radius: 6px;
  place-items: center;
  background: #fff;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1;
}

.egm-cell > .ddi-em-evidence-marker {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 14px;
  padding: 0 3px;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 3px rgba(52, 35, 75, 0.12);
  font-size: 0.42rem;
}

.ddi-em-evidence-marker.is-high { color: #60398f; }
.ddi-em-evidence-marker.is-moderate { color: #3f688b; }
.ddi-em-evidence-marker.is-low { color: #86621f; }
.ddi-em-evidence-marker.is-very_low { color: #716579; }
.ddi-em-evidence-marker.is-unknown { color: #8b838f; }

.ddi-em-magnitude-key {
  display: inline-grid;
  min-width: 28px;
  height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  place-items: center;
  background: #f1eef3;
  color: #5e5665;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.ddi-em-literature-key {
  display: inline-flex;
  min-width: 48px;
  height: 18px;
  gap: 3px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid #76519f;
  border-radius: 5px;
  place-items: center;
  background: #f6f0fb;
  color: #63398d;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1;
}

.ddi-em-literature-key.is-mixed {
  border-color: #d4ad69;
  background: #fff0d5;
  color: #79591f;
}

.ddi-em-literature-effect {
  display: inline-flex;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 16px;
  gap: 3px;
  align-items: center;
  justify-content: center;
  padding: 2px 16px 2px 4px;
  border-top: 1px solid rgba(85, 67, 99, 0.1);
  border-radius: 0 0 8px 8px;
  background: rgba(246, 242, 249, 0.94);
  color: #63398d;
  overflow: hidden;
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddi-em-literature-effect i {
  flex: 0 0 auto;
  font-size: 0.66rem;
}

.ddi-em-literature-effect.is-potentiates {
  background: var(--ddi-em-increase-bg, #e3edf8);
  color: var(--ddi-em-increase-text, #3e678e);
}

.ddi-em-literature-effect.is-attenuates {
  background: var(--ddi-em-decrease-bg, #f5e5e8);
  color: var(--ddi-em-decrease-text, #8a4b59);
}

.ddi-em-literature-effect.is-no_change {
  background: var(--ddi-em-neutral-bg, #e9efec);
  color: var(--ddi-em-neutral-text, #566e63);
}

.ddi-em-literature-effect.is-mixed {
  background: var(--ddi-em-mixed-bg, #fff0d5);
  color: var(--ddi-em-mixed-text, #79591f);
}

.ddi-em-literature-effect.is-unclear {
  background: var(--ddi-em-unclear-bg, #eeeaf2);
  color: var(--ddi-em-unclear-text, #665d6d);
}

.egm-cell.has-literature .egm-cell-open {
  z-index: 1;
  bottom: 3px;
}

.egm-page a.egm-cell:hover {
  border-color: transparent;
}

.ddi-em-prediction-direction {
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.ddi-em-prediction-direction.magnitude-probable {
  font-size: 0.86rem;
}

.ddi-em-prediction-direction.magnitude-unlikely,
.ddi-em-prediction-direction.magnitude-no_impact {
  letter-spacing: 0;
}

.ddi-em-prediction-direction.is-increase {
  color: var(--ddi-em-increase-text, #3e678e);
}

.ddi-em-prediction-direction.is-decrease {
  color: var(--ddi-em-decrease-text, #8a4b59);
}

.ddi-em-prediction-direction.is-minimal {
  color: var(--ddi-em-neutral-text, #566e63);
}

.ddi-em-prediction-direction.is-no_impact {
  color: #69646e;
}

.ddi-em-method-context {
  border-color: #ded2eb;
  background: #faf7fd;
}

.ddi-em-method-magnitude {
  background: #f1eef3;
  color: #5e5665;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.ddi-em-literature-method {
  background: #f2e9f8;
  color: #63398d;
}

.ddi-em-empty {
  height: 160px;
  padding: 2rem;
  background: #fff;
  color: #817887;
  font-size: 0.78rem;
  text-align: center;
}

.ddi-em-adr {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(147, 64, 88, 0.12);
  color: #934058;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.egm-loading,
.egm-error {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  border: 1px dashed #ded7e5;
  border-radius: 14px;
  color: var(--egm-muted);
  font-size: 0.86rem;
}

.egm-loading .spinner-border {
  color: var(--egm-purple);
}

.egm-error {
  color: #85505c;
  background: #fff8f9;
}

.egm-method {
  margin-top: 1rem;
  border: 1px solid var(--egm-border);
  border-radius: 10px;
  background: #fff;
}

.egm-method summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.3rem;
  color: #4d4555;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.egm-method summary::-webkit-details-marker {
  display: none;
}

.egm-method summary span i {
  margin-right: 0.45rem;
  color: var(--egm-purple);
}

.egm-method-chevron {
  transition: transform 0.2s ease;
}

.egm-method[open] .egm-method-chevron {
  transform: rotate(180deg);
}

.egm-method-body {
  padding: 0 1.3rem 1.3rem;
  border-top: 1px solid #f0edf2;
}

.egm-method-body > p {
  margin: 1.25rem 0;
  color: var(--egm-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.egm-prediction-method {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid #eadff1;
  border-radius: 11px;
  background: #faf7fe;
}

.egm-prediction-method > i {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--egm-purple);
}

.egm-prediction-method p {
  margin: 0;
  color: #716779;
  font-size: 0.74rem;
  line-height: 1.5;
}

.egm-prediction-method strong {
  color: #514758;
}

.egm-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.egm-method-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid #efebf2;
  border-radius: 12px;
  background: #fcfbfd;
}

.egm-method-symbol {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 750;
}

.egm-method-item h3 {
  margin: 0 0 0.2rem;
  color: #4d4555;
  font-size: 0.78rem;
  font-weight: 700;
}

.egm-method-item p {
  margin: 0;
  color: #7c7482;
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .ddi-em-page .egm-legend-block {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .egm-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egm-panel-head {
    display: block;
  }

  .egm-panel-actions {
    align-items: flex-start;
  }

  .egm-filters {
    justify-content: flex-start;
  }

  .egm-open-hint {
    margin-top: 0.55rem;
  }

  .egm-legend {
    grid-template-columns: 1fr;
  }

  .egm-method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .ddi-em-page .egm-panel-head {
    display: block;
  }

  .ddi-em-page .egm-panel-actions {
    width: 100%;
    align-items: flex-start;
    margin-top: 1rem;
  }

  .ddi-em-page .egm-mode-toggle,
  .ddi-em-page .egm-filters {
    justify-content: flex-start;
  }

  .ddi-em-page .egm-filters {
    flex-wrap: wrap;
  }
}

@media (max-width: 419.98px) {
  .ddi-em-pk-tools {
    gap: 0.3rem;
  }

  .ddi-em-enzyme-filter > summary small {
    display: none;
  }

  .egm-scope-note {
    display: block;
  }

  .egm-scope-note > i {
    display: block;
    margin-bottom: 0.55rem;
  }

  .egm-stat {
    padding: 1rem;
  }

  .egm-stat-value {
    font-size: 1.4rem;
  }
}
