
.reagents-card .subs-list {
  grid-template-columns: 1fr !important;
}

.reagents-card .sub-head {
  display: none;
}



.reagents-card .reagents-list {
  display: inline;
  display: initial;
}


@media (max-width:450px){
.reagents-card .rx-row
{min-width: 180px!important;
flex: auto;
}
}



.card-pager {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-pager__pager {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  transition: height 220ms ease;
}

.card-pager__pager::-webkit-scrollbar {
  display: none;
}

.card-pager__page {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

.card-pager__page-content {
  min-width: 0;
  
  padding-bottom: 18px;
}



.card-pager--fill {
  flex: 1 1;
  min-height: 0;
  position: relative;
}

.card-pager--fill .card-pager__pager {
  flex: 1 1;
  min-height: 0;
  align-items: stretch;
  transition: none;
}

.card-pager--fill .card-pager__page {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 14px calc(84px + env(safe-area-inset-bottom, 0px));
}

.card-pager--fill .card-pager__footer {
  margin: 0;
  position: absolute;
  z-index: 5;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: fit-content;
  max-width: calc(
    100% - max(12px, env(safe-area-inset-left, 0px)) -
      max(12px, env(safe-area-inset-right, 0px))
  );
  margin-inline: auto;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 82%, transparent);
  background: color-mix(in srgb, var(--card-bg, #fff) 82%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-dark .card-pager--fill .card-pager__footer,
[data-theme="dark"] .card-pager--fill .card-pager__footer {
  background: color-mix(in srgb, #10151b 82%, transparent);
  background: color-mix(in srgb, var(--card-bg, #10151b) 82%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.card-pager__footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.card-pager__chevron {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 24, 39, 0.08);
  color: rgba(17, 24, 39, 0.72);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 140ms ease;
}

.card-pager__chevron:disabled {
  opacity: 0.38;
  cursor: default;
}

@media (hover: hover) {
  .card-pager__chevron:hover:not(:disabled) {
    background: rgba(17, 24, 39, 0.14);
  }
}

.card-pager__chevron:active:not(:disabled) {
  background: rgba(17, 24, 39, 0.2);
}

.theme-dark .card-pager__chevron,
[data-theme="dark"] .card-pager__chevron {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.card-pager__pagination {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(227, 232, 240, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
  flex: 0 1 auto;
}

.card-pager__pagination::-webkit-scrollbar {
  display: none;
}

.card-pager__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(142, 145, 153, 0.56);
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.card-pager__dot.is-active {
  background: rgba(17, 24, 39, 0.96);
}

.theme-dark .card-pager__pagination,
[data-theme="dark"] .card-pager__pagination {
  background: rgba(255, 255, 255, 0.08);
}

.theme-dark .card-pager__dot,
[data-theme="dark"] .card-pager__dot {
  background: rgba(255, 255, 255, 0.35);
}

.theme-dark .card-pager__dot.is-active,
[data-theme="dark"] .card-pager__dot.is-active {
  background: rgba(255, 255, 255, 0.95);
}



.substance-cards-page {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(248, 249, 252, 0.98), rgba(241, 243, 247, 0.98));
  display: flex;
  flex-direction: column;
}


.substance-cards-page .card-pager--fill .card-pager__page {
  padding-top: calc(56px + 4px);
  padding-top: var(--app-floating-chrome-content-top, calc(var(--app-floating-topbar-h, var(--topbar-h, 56px)) + 4px));
}


.substance-cards-page .card-pager__page-content > .card {
  padding-bottom: 1.5rem;
}

.theme-dark .substance-cards-page,
[data-theme="dark"] .substance-cards-page {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(18, 18, 18, 0.98));
}







.filters-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  flex-wrap: nowrap;
  
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; 
}

.filters-container > * {
  flex: 0 0 auto;
}

.filter-class-group-divider {
  align-self: stretch;
  width: 1px;
  min-height: 28px;
  margin: 8px 2px;
  background: color-mix(in srgb, #111 20%, transparent);
  background: color-mix(in srgb, var(--fg, #111) 20%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

.theme-dark .filter-class-group-divider {
  background: color-mix(in srgb, #fff 30%, transparent);
  background: color-mix(in srgb, var(--fg, #fff) 30%, transparent);
}


.filters-strip {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; 
  cursor: grab;
}


.filters-strip::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.filters-strip.dragging {
  cursor: grabbing;
}


.filter-btn {
  margin: 6px 4px;
  min-width: auto;
  padding: clamp(8px, 0.7vw, 10px) clamp(8px, 1vw, 14px);
  border: 1px solid #ccc;
  border: 1px solid var(--border, #ccc);
  border-radius: 7px;
  cursor: pointer;
  background-color: transparent;
  color: inherit;
  color: var(--chip-fg, inherit);
  font-weight: 600;
  transition:
    background-color .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    transform .15s ease;
  white-space: nowrap;
  user-select: none;
  
  display: inline-flex;         
  align-items: center;          
  justify-content: center;
  vertical-align: middle;       
  
  flex: 0 1 auto;
  transform: translateY(0);     
  will-change: transform;  
    user-select: none;
  -webkit-user-select: none; 
  -ms-user-select: none;          
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}

.filter-btn {
    min-width: auto!important;
}


@media (hover: hover) {
.filter-btn:hover {
  transform: scale(1.12);

  background: linear-gradient(
    to top,
    color-mix(
      in oklab,
      var(--card) 80%,
      #6ea8fe 12%
    ),
    color-mix(
      in oklab,
      #fff 85%,
      #6ea8fe 15%
    )
  );

  background: linear-gradient(
    to top,
    color-mix(
      in oklab,
      var(--chip-bg, var(--card)) 80%,
      var(--accent, #6ea8fe) 12%
    ),
    color-mix(
      in oklab,
      var(--bg, #fff) 85%,
      var(--accent, #6ea8fe) 15%
    )
  );

  box-shadow:
    0 4px 12px rgba(0,0,0, .18),
    0 0 18px color-mix(
      in oklab,
      #6ea8fe 28%,
      transparent
    );

  box-shadow:
    0 4px 12px rgba(0,0,0, var(--hover-shadow, .18)),
    0 0 18px color-mix(
      in oklab,
      var(--accent, #6ea8fe) 28%,
      transparent
    );

  -webkit-backdrop-filter: blur(6px) saturate(150%);

          backdrop-filter: blur(6px) saturate(150%);
}


.theme-dark .filter-btn:hover {
  --hover-shadow: .38;

  background: linear-gradient(
    to top,
    color-mix(
      in oklab,
      var(--card) 70%,
      #6ea8fe 22%
    ),
    color-mix(
      in oklab,
      #0b0f14 65%,
      #6ea8fe 35%
    )
  );

  background: linear-gradient(
    to top,
    color-mix(
      in oklab,
      var(--chip-bg, var(--card)) 70%,
      var(--accent, #6ea8fe) 22%
    ),
    color-mix(
      in oklab,
      var(--bg, #0b0f14) 65%,
      var(--accent, #6ea8fe) 35%
    )
  );

  box-shadow:
    0 6px 16px rgba(0,0,0,.55),
    0 0 26px color-mix(
      in oklab,
      #6ea8fe 45%,
      transparent
    );

  box-shadow:
    0 6px 16px rgba(0,0,0,.55),
    0 0 26px color-mix(
      in oklab,
      var(--accent, #6ea8fe) 45%,
      transparent
    );
}
}


.filter-btn.active {
  transform: scale(1.12);
  background: linear-gradient(
    to top,
    color-mix(in srgb, #6ea8fe 20%, transparent),
    color-mix(in srgb, #6ea8fe 35%, transparent)
  );
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--accent, #6ea8fe) 20%, transparent),
    color-mix(in srgb, var(--accent, #6ea8fe) 35%, transparent)
  );
  border-color: #6ea8fe;
  border-color: var(--accent, #6ea8fe);
  box-shadow:
    0 4px 16px rgba(0,0,0,.15),
    0 0 25px color-mix(in srgb, #6ea8fe 35%, transparent);
  box-shadow:
    0 4px 16px rgba(0,0,0,.15),
    0 0 25px color-mix(in srgb, var(--accent, #6ea8fe) 35%, transparent);
  color: #111;
  color: var(--fg, #111);
  animation: chipPulseAccent 2.6s ease-in-out infinite;
}


.filters-strip .filter-btn:nth-of-type(1).active {
  animation: none !important;
  transform: scale(1.12) !important;
}

.filters-strip
  .filter-btn:nth-of-type(2).active:not(:has(~ .filter-btn.active))
  :not(.dummy) {
  animation: chipPulseAccent 2.6s ease-in-out infinite;
}

.filters-strip:has(.filter-btn.active:nth-of-type(n + 3)) .filter-btn.active {
  animation: none !important;
  transform: scale(1.12) !important;
}


@keyframes chipPulseAccent {
  0%, 100% {
    transform: scale(1.12);
    box-shadow:
      0 4px 16px rgba(0,0,0,.15),
      0 0 25px color-mix(in srgb, #6ea8fe 25%, transparent);
    box-shadow:
      0 4px 16px rgba(0,0,0,.15),
      0 0 25px color-mix(in srgb, var(--accent, #6ea8fe) 25%, transparent);
  }
  50% {
    transform: scale(1.18);
    box-shadow:
      0 6px 22px rgba(0,0,0,.18),
      0 0 30px color-mix(in srgb, #6ea8fe 55%, transparent);
    box-shadow:
      0 6px 22px rgba(0,0,0,.18),
      0 0 30px color-mix(in srgb, var(--accent, #6ea8fe) 55%, transparent);
  }
}


.filters-search-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}



.filters-mask-wrapper {
  position: relative;
  flex: 1 1;
  overflow: visible;
}

@media (orientation: landscape) and (pointer: coarse) and (max-width:900px)
{

.theme-dark .reagent-analyze-content .searchbar-wrap {
  margin: 0px 0 0px 
}
.theme-dark .reagent-analyze-content .reagents-toolbar--hscroll {
  padding: 17px 0px 17px;
}
.reagent-analyze-content .filters-strip .filters-container {
  padding: 5px 15px 10px
}
.reagent-analyze-content .filters-search-section .searchbar-wrap {
  padding-bottom: 0;
}
.reagent-analyze-content .reagents-toolbar--hscroll {
  padding: 2px 0px 17px;
}
.filter-btn.active {
    transform: scale(1.12);
    background: linear-gradient(
to top,
color-mix(in srgb, #6ea8fe 20%, transparent),
color-mix(in srgb, #6ea8fe 35%, transparent)
);
    background: linear-gradient(
to top,
color-mix(in srgb, var(--accent, #6ea8fe) 20%, transparent),
color-mix(in srgb, var(--accent, #6ea8fe) 35%, transparent)
);
    border-color: #6ea8fe;
    border-color: var(--accent, #6ea8fe);
    box-shadow: 0 3px 12px rgba(0,0,0,.15),
0 0 15px color-mix(in srgb, #6ea8fe 35%, transparent);
    box-shadow: 0 3px 12px rgba(0,0,0,.15),
0 0 15px color-mix(in srgb, var(--accent, #6ea8fe) 35%, transparent);
    color: #111;
    color: var(--fg, #111);
    animation: chipPulseAccent 2.6s ease-in-out infinite;
}

}

@media (hover: none) and (pointer: coarse) {
  .filter-btn:active {
    transform: scale(1.08);
  }
}
@supports not selector(:has(*)) {
  .filters-strip .filter-btn.active {
    animation: none;
  }
}

.theme-dark .filter-btn:not(.active) {
  background: none;
}

@media (max-width: 900px), (pointer: coarse) {
  .filter-btn--more-categories {
    display: none;
  }
}


.filters-strip .filter-btn {
  border-color: color-mix(in srgb, #111 14%, transparent);
  border-color: color-mix(in srgb, var(--fg, #111) 14%, transparent);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .filters-strip .filter-btn:hover {
    transform: scale(1.025);
    border-color: color-mix(in srgb, #6ea8fe 38%, transparent);
    border-color: color-mix(in srgb, var(--accent, #6ea8fe) 38%, transparent);
    background: color-mix(in srgb, #6ea8fe 7%, transparent);
    background: color-mix(in srgb, var(--accent, #6ea8fe) 7%, transparent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
            backdrop-filter: blur(10px) saturate(120%);
  }
}

.filters-strip .filter-btn.active {
  transform: scale(1.035) !important;
  border-color: color-mix(in srgb, #6ea8fe 62%, transparent);
  border-color: color-mix(in srgb, var(--accent, #6ea8fe) 62%, transparent);
  background: color-mix(in srgb, #6ea8fe 13%, transparent);
  background: color-mix(in srgb, var(--accent, #6ea8fe) 13%, transparent);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, .07),
    0 0 0 1px color-mix(in srgb, #6ea8fe 7%, transparent);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, .07),
    0 0 0 1px color-mix(in srgb, var(--accent, #6ea8fe) 7%, transparent);
  color: #111;
  color: var(--fg, #111);
  animation: none !important;
}

.theme-dark .filters-strip .filter-btn {
  border-color: color-mix(in srgb, #fff 18%, transparent);
  border-color: color-mix(in srgb, var(--fg, #fff) 18%, transparent);
}

.theme-dark .filters-strip .filter-btn.active {
  background: color-mix(in srgb, #6ea8fe 17%, transparent);
  background: color-mix(in srgb, var(--accent, #6ea8fe) 17%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}


.filters-strip .filter-btn--reset {
  gap: 5px;
  border-color: transparent;
  background: transparent;
  color: color-mix(in srgb, #111 68%, transparent);
  color: color-mix(in srgb, var(--fg, #111) 68%, transparent);
  font-weight: 650;
}

.filters-strip .filter-btn--reset::before {
  content: "↺";
  font-size: 1.05em;
  font-weight: 500;
  line-height: 1;
  transition: transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .filters-strip .filter-btn--reset:hover {
    border-color: transparent;
    background: color-mix(in srgb, #111 5%, transparent);
    background: color-mix(in srgb, var(--fg, #111) 5%, transparent);
    color: #111;
    color: var(--fg, #111);
    box-shadow: none;
  }

  .filters-strip .filter-btn--reset:hover::before {
    transform: rotate(-35deg);
  }
}

.theme-dark .filters-strip .filter-btn--reset {
  border-color: transparent;
  background: transparent;
  color: color-mix(in srgb, #fff 72%, transparent);
  color: color-mix(in srgb, var(--fg, #fff) 72%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .theme-dark .filters-strip .filter-btn--reset:hover {
    background: color-mix(in srgb, #fff 8%, transparent);
    background: color-mix(in srgb, var(--fg, #fff) 8%, transparent);
    color: #fff;
    color: var(--fg, #fff);
  }
}

.filters-strip .filter-btn--reset:active {
  transform: scale(.97);
  border-color: transparent;
  background: color-mix(in srgb, #6ea8fe 10%, transparent);
  background: color-mix(in srgb, var(--accent, #6ea8fe) 10%, transparent);
  color: #111;
  color: var(--fg, #111);
  box-shadow: none;
}



.filters-wrapper,.filter-btn, .filters-strip.dragging, .filters-strip,
.filters-search-section, .filters-container, .filters-wrapper * {
  user-select: none!important;
  -webkit-user-select: none!important;
  -ms-user-select: none!important;
  -webkit-touch-callout: none!important;
}

.searchbar-input-wrap {
  position: relative;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.searchbar-row--prominent {
  gap: 0;
}

.searchbar-input {
  width: 100%;
  padding: 10px 42px 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
  background: #fff;
  background: var(--card-bg, #fff);
  caret-color: #dcaa2e;
  caret-color: var(--accent-strong, var(--accent, #dcaa2e));
}


.searchbar-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.searchbar-input::placeholder {
  color: transparent;
}

.searchbar-center-placeholder {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  opacity: 0.72;
  font-size: 14px;
}


.searchbar-clear {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 10px;
  margin-block: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  color: var(--sub, rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.searchbar-clear > :is(.mdi, .dp-icon) {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.searchbar-toggle.is-active {
  color: #1f2328;
  color: var(--fg, #1f2328);
}

.theme-dark .searchbar-input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.theme-dark .searchbar-clear {
  color: rgba(255, 255, 255, 0.82);
}

.theme-dark .searchbar-center-placeholder {
  opacity: 0.85;
}


.searchbar-row--native-toolbar {
  min-height: 0;
  justify-content: flex-end;
}
.searchbar-row--native-toolbar:empty,
.searchbar-wrap:has(> .searchbar-row--native-toolbar:empty) {
  display: none;
}



.library-filters {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    grid-template-rows 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.library-filters.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


@media (max-height: 1999px) {
  .library-class-filters {
    max-height: 0;
    overflow-y: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      max-height 240ms ease,
      opacity 180ms ease,
      transform 220ms ease;
  }

  .library-class-filters.is-open {
    max-height: 72px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.library-filters > .library-filters__panel {
  min-height: 0;
  padding: 0 14px;
}

.library-filters.is-open > .library-filters__panel {
  padding-top: 2px;
  padding-bottom: 12px;
}

.library-filters__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  font-size: 14px;
  color: #111;
  color: var(--fg, #111);
}

.library-filters__row--range {
  gap: 10px;
}

.library-filters__row--range > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.library-filters__row--range .range {
  flex: 1 1 auto;
  min-width: 0;
}

.library-order-select {
  box-sizing: border-box;
  min-height: 36px;
  min-width: 132px;
  max-width: 190px;
  margin: 0;
  padding: 7px 32px 7px 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid color-mix(in srgb, #111 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg, #111) 14%, transparent);
  border-radius: 10px;
  background-color: color-mix(in srgb, #111 6%, transparent);
  background-color: color-mix(in srgb, var(--fg, #111) 6%, transparent);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: #111;
  color: var(--fg, #111);
  box-shadow: none;
  font: 500 14px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}


body.nav-mobile-active .library-filters__row--sort > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.nav-mobile-active .library-filters__row--sort > .library-order-select {
  flex: 0 1 176px;
  width: min(44vw, 176px);
  min-width: 132px;
  max-width: 176px;
}

.library-order-select:focus {
  outline: none;
  border-color: color-mix(in srgb, #d19a2a 58%, transparent);
  border-color: color-mix(in srgb, var(--accent, #d19a2a) 58%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, #d19a2a 13%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #d19a2a) 13%, transparent);
}

@media (hover: hover) {
  .library-order-select:hover {
    background-color: color-mix(in srgb, #111 9%, transparent);
    background-color: color-mix(in srgb, var(--fg, #111) 9%, transparent);
  }
}

.theme-dark .library-order-select,
[data-theme="dark"] .library-order-select {
  border-color: rgba(84, 84, 88, 0.65);
  background-color: rgba(118, 118, 128, 0.18);
  color: rgba(255, 255, 255, 0.94);
}

[dir="rtl"] .library-order-select {
  padding-right: 12px;
  padding-left: 32px;
  background-position:
    16px calc(50% - 2px),
    11px calc(50% - 2px);
}


@media (min-width: 1200px) {
  .library-filters__panel {
    display: grid;
    grid-template-columns:
      max-content
      minmax(240px, 1fr)
      minmax(240px, 1fr)
      max-content;
    align-items: center;
    grid-column-gap: clamp(18px, 2vw, 36px);
    column-gap: clamp(18px, 2vw, 36px);
  }

  .library-filters__row {
    min-width: 0;
  }

  .library-filters__row--sort,
  .library-filters__row--range {
    justify-content: flex-start;
  }

  .library-filters__row--range .range {
    min-width: 120px;
  }
}




.page-shell:has(#substances-sxs).hide-tabs-bar .tabs-bar {
  display: none !important;
}


@media (max-width: 900px) and (orientation: landscape) {
  .page-shell:has(#substances-sxs) .tabs-bar {
    display: none !important;
  }
}




.page-shell:has(#substances-sxs).hide-filters-bar .filters-strip {
  display: none !important;
}


:root{
  
  --gutter: 12px;                                        
  --gutter-start: calc(var(--gutter));                   
  --gutter-end: clamp(6px, 0.8vw, 10px);                 
}



.substances-index-page {
  --sub-topbar-h: 42px;     
  --sub-topbar-h-pwa: 70px;
  --sub-tabs-h: 0px;       
}

@media (pointer: coarse) {
.substances-index-page {
  --sub-topbar-h: 0px;     
}
}


:root.entry-native-shell .substances-index-page {
  --sub-topbar-h: 0px;
  --sub-topbar-h-pwa: 0px;
}





.substancespage-root{
  
  --fg: #0f172a;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --accent: #dcaa2e;

  
  --scrollbar-track: color-mix(in srgb, var(--bg) 96%, black 4%);
  --scrollbar-thumb: color-mix(in srgb, var(--fg) 28%, transparent);
  --scrollbar-thumb-hover: color-mix(in srgb, var(--fg) 40%, transparent);
}


.theme-dark .substancespage-root{
  --fg: #e5e7eb;
  --bg: #141416;             
  --card-bg: #10151b;        
  --border: rgba(255,255,255,.14);
  --muted: #9aa3ae;

  
  --scrollbar-track: rgba(255,255,255,.06);
  --scrollbar-thumb: rgba(255,255,255,.28);
  --scrollbar-thumb-hover: rgba(255,255,255,.40);
}


html, body{
  background: var(--bg);
  color: var(--fg);
}


.page__content > .screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0; 
}


.substances-index-page {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100dvh;
}

.substances-sxs .sxs-active {
  max-width: 2000px;
}


#substances-sxs {
  flex: 1 1;
  min-height: 0;
  display: grid;            
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}

#substance-left-pane {
  position: relative;
  padding-bottom: 200px;
}


@media (pointer: coarse)
  and (hover: none)
  and (orientation: portrait)
  and (max-width: 600px) {
  :root.entry-browser body.nav-mobile-active #substance-left-pane {
    --substances-pane-mobile-top-reserve: max(
      3rem,
      var(--floating-topbar-content-top)
    );
    padding-top: var(--substances-pane-mobile-top-reserve);
  }
}

@media (orientation: portrait) and (display-mode: standalone) {
  body.nav-mobile-active #substance-left-pane {
    --substances-pane-mobile-top-reserve: max(
      6rem,
      var(--floating-topbar-content-top)
    );
    padding-top: var(--substances-pane-mobile-top-reserve);
  }
}

@media (orientation: portrait) {
  :root.entry-ios-floating-chrome body.nav-mobile-active #substance-left-pane {
    --substances-pane-mobile-top-reserve: max(
      3rem,
      var(--floating-topbar-content-top)
    );
    padding-top: var(--substances-pane-mobile-top-reserve);
  }
}


@media (max-width: 900px) and (orientation: portrait) {
  #substances-sxs.sxs-active #substance-left-pane {
    padding-bottom: 0 !important;
  }
}


@media (pointer: coarse) and (hover: none) and (orientation: portrait) and (max-width:520px) {
  body.entry-browser #substance-left-pane {
    padding-top: 75px;
  }
}

#substance-left-pane,
#substance-right-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;           
  overflow-x: hidden;
  min-height: 0;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}




.filters-strip {
  display: block;
}


.substances-index-page > .filters-search-section,
.substancespage-content .filters-search-section{
  position: sticky;
  top: 0;
  
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;        
  gap: 5px; 
  
background: linear-gradient(
  180deg,
  color-mix(in srgb, var(--card-bg) 92%, transparent),
  color-mix(in srgb, var(--card-bg) 98%, transparent)
);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  
}


.list-scroll{
  padding-bottom: calc(var(--tabbar-h) + 12px);
}



.theme-dark .filters-container-wrapper {
  border-bottom: none;
}

.filters-strip {
  border-bottom: 1px solid #e5e7eb
}


.searchbar-row {
    padding: 15px 10px;
}



.theme-dark .filters-search-section{
  background: linear-gradient(180deg, #141416, #10151b);
  border-bottom-color: rgba(255,255,255,.08);
}



.substance-inline-sticky strong {
  color: #22304a;
  color: var(--fg, #22304a);
  transition: color 0.25s ease;
  font-weight: 700;
}


[data-theme="dark"] .substance-inline-sticky strong,
.theme-dark .substance-inline-sticky strong {
  color: #e4e4e6;
  color: var(--fg, #e4e4e6); 
}





@media (max-width: 440px){

  
  @supports (zoom: 1){
    .substance-index-listitem.open .substance-inline-sticky + .sp-grid{
    
    
      zoom: .8;          
    }
  }

  
  @supports not (zoom: 1){
    .substance-index-listitem.open .substance-view-wrapped{
      overflow-x: clip;
    }

    .substance-index-listitem.open .substance-inline-sticky + .sp-grid{
      transform: scale(.8);
      transform-origin: top center;
      display: inline-block;
      margin-inline: auto;
      max-width: 100%;
    }
  }

  
  .substance-index-listitem.open,
  [id^="substance-index-listitem-"].open {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}




.substance-index-listitem.open,
[id^="substance-index-listitem-"].open,
#substance-right-pane .pinned-wrap,
#substance-right-pane .sp-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


@supports (zoom: 1){
  #substance-right-pane .sp-grid, #substances-sxs.sxs-active #substance-left-pane .sp-grid {
    zoom: .8;
  }
}
@supports not (zoom: 1){
  #substance-right-pane .sp-grid, #substances-sxs.sxs-active #substance-left-pane .sp-grid {
    transform: scale(.8);
    transform-origin: top center;
    display: inline-block;
    margin-inline: auto;
    max-width: 100%;
  }
}








#substance-left-pane, #substance-right-pane{
  container-type: inline-size;
  container-name: pane;
}


.sp-grid{
  display: grid;
  grid-template-columns: 1fr;      
  grid-gap: 14px;
  gap: 14px;
  align-content: start;
}


.sp-grid{
  display: grid;
  grid-template-columns: 1fr;   
  grid-gap: 12px;
  gap: 12px;
  align-content: start;
  transition: gap .28s ease;    
}


.sp-cell--wide{
  grid-column: 1 / -1;
}



@media (orientation: landscape) and (max-width: 920px) and (pointer: coarse){
  body:not(:has(#substances-sxs.sxs-active)) .substancespage-root .sp-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  
  body:not(:has(#substances-sxs.sxs-active)) .substancespage-root .sp-grid > *,
  body:not(:has(#substances-sxs.sxs-active)) .substancespage-root .sp-grid .sp-cell--wide{
    grid-column: auto !important;
    min-width: 0;
    max-width: none;
  }
}



@container pane (min-width: 920px){
  .sp-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    grid-auto-flow: row dense;
  }

  
  .sp-grid > *,
  .sp-grid .sp-cell--wide{
    grid-column: auto !important;
    min-width: 0;
    max-width: none;
  }

  
  .sp-grid > *{
    animation: spCardPop .28s cubic-bezier(.22,1,.36,1);
  }
}


@container pane (min-width: 1500px){
  .sp-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    grid-auto-flow: row dense;
  }
}

@container pane (min-width: 920px){
  #substances-sxs .sxs-active .sp-grid{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


@container pane (min-width: 1900px){
  .sp-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    grid-auto-flow: row dense;
  }
}


@container pane (min-width: 1900px){
  #substances-sxs .sxs-active .sp-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container pane (min-width: 2500px){
  .sp-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


@container pane (min-width: 2500px){
  #substances-sxs .sxs-active .sp-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}






@keyframes spCardPop{
  from{ opacity:.001; transform: translateY(6px); }
  to  { opacity:1;    transform: translateY(0);   }
}

@media (hover:hover){
  .sp-grid section .card{
    transition: transform .22s cubic-bezier(.05,.7,.1,1), box-shadow .22s ease;
    will-change: transform;
  }
  .sp-grid section .card:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06), 0 16px 48px rgba(0,0,0,.08);
  }
}


.substancespage-root .sp-grid > section{ display: flex; }




.sp-grid > section > .card{
  flex: 1 1;
  display: flex;
  flex-direction: column;
  height: auto;
}


.sp-grid .sidx-chartWrap,
.sp-grid .dose-chart{
  flex: 1 1;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
}
.recharts-wrapper, .recharts-wrapper svg{
  width:100% !important; height:100% !important;
}




.substances-index-page{
  min-height: 0;
  box-sizing: border-box;
  height: calc(100dvh - var(--sub-topbar-h));
  overflow: hidden;
}
@media (display-mode: standalone) {
  .substances-index-page{
    height: calc(100dvh - var(--sub-topbar-h-pwa));
  }
}



#substance-left-pane,
#substance-right-pane{
  flex: 1 1 auto;
  min-height: 0;
  scroll-padding-top: var(--sub-topbar-h);
}

@media (display-mode: standalone) {
  #substance-left-pane,
  #substance-right-pane{
    scroll-padding-top: var(--sub-topbar-h-pwa);
  }
}


.substance-inline-sticky,
#substance-right-pane .pin-bar{
  position: sticky;
  top: 0;
  z-index: 2;
}


@media (max-width: 860px){
  :root{
    --gutter-end: clamp(6px, 1.8vw, 12px);    
  }

  .page__content > .substances-index-page{
    
    padding-inline-start: calc(calc(12px) + env(safe-area-inset-left));
    padding-inline-start: calc(var(--gutter-start) + env(safe-area-inset-left));
    padding-inline-end: calc(clamp(6px, 0.8vw, 10px) + env(safe-area-inset-right));
    padding-inline-end: calc(var(--gutter-end) + env(safe-area-inset-right));
  }
}


#substances-sxs{
  display:flex;
  gap:8px;
  padding-inline:12px;
  min-height:0;
    
  align-items: stretch;
  overflow:visible;
  box-sizing:border-box;
  transition:background .6s ease;
}
@media (pointer:fine) {
  #substances-sxs {
  padding: 1rem;}
}

@media (pointer:coarse) and (orientation: portrait) {
  #substances-sxs{
    padding-inline:0
}
}

@media (orientation: portrait) and (max-width: 519px) {
  
  :root.entry-android #substance-left-pane {
    padding-top: max(4em, var(--floating-topbar-content-top));
  }
}

#substance-left-pane,
#substance-right-pane{
  flex:1 1;
  min-width:0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,#e5e7eb60%,transparent);
  border:1px solid color-mix(in srgb,var(--border,#e5e7eb)60%,transparent);
  border-radius:16px;
  background: color-mix(in srgb, #fff 97.5%, #dcaa2e 3%);
  background: color-mix(in srgb, var(--card-bg,#fff) 97.5%, var(--accent,#dcaa2e) 3%);
  box-shadow:0 4px 16px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.06);
  transition:opacity .35s ease,box-shadow .45s ease;
  
  margin: 0px 0px 0px 0px
}
#substance-left-pane {
  border-top-right-radius: 0px;
  border-bottom-right-radius:0px ;
}

@media (pointer:coarse) {
  #substance-left-pane {
    background: none;
  }
}

.substance-inline-sticky {
  background: color-mix(in srgb, #fff 97.5%, #dcaa2e 3%)!important;
  background: color-mix(in srgb, var(--card-bg,#fff) 97.5%, var(--accent,#dcaa2e) 3%)!important;
}


#substance-left-pane::after,
#substance-right-pane::after{
  content:"";
  display:block;
  height: max(
    120px,                                    
    calc(56px + env(safe-area-inset-bottom, 0px) + 12px)
  );
  height: max(
    120px,                                    
    calc(var(--tabbar-h, 56px) + env(safe-area-inset-bottom, 0px) + 12px)
  );
}


#substance-left-pane[aria-busy="true"]::after {
  display: none;
}


#substance-left-pane,
#substance-right-pane{
  scroll-padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 12px);
  scroll-padding-bottom: calc(var(--tabbar-h, 56px) + env(safe-area-inset-bottom, 0px) + 12px);
}

#substance-left-pane:hover,
#substance-right-pane:hover{
  box-shadow:0 8px 24px rgba(0,0,0,.06),0 16px 48px rgba(0,0,0,.08);
}



#substances-sxs:not(.sxs-active)#substance-right-pane{
  flex:0 0;width:0;opacity:0;visibility:hidden;pointer-events:none;
}
#substances-sxs.sxs-active #substance-left-pane,
#substances-sxs.sxs-active #substance-right-pane{flex-basis:50%;}
#substances-sxs.sxs-active #substance-right-pane.hidden{
  opacity:0;pointer-events:none;
}

@media (max-width:900px) and (orientation: portrait) {

  #substances-sxs {
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
  }

  #substance-left-pane,
  #substance-right-pane {
    flex-basis: auto;
    width: 100%;
    max-height: none;
  }
}


#substances-sxs.sxs-active #substance-right-pane{
  animation:rightPaneFadeIn .55s cubic-bezier(.22,1,.36,1);
}
@keyframes rightPaneFadeIn{from{opacity:0}to{opacity:1}}
#substances-sxs:not(.sxs-active)#substance-right-pane{
  animation:rightPaneFadeOut .4s cubic-bezier(.55,.06,.68,.19);
}
@keyframes rightPaneFadeOut{from{opacity:1}to{opacity:0}}




#substance-right-pane .pinned-wrap{display:flex;flex-direction:column;}


#substance-right-pane .pinned-wrap > .substance-inline-sticky.pin-bar:first-child {
  border-top-right-radius: 0px;
  top:-1px
}
#substance-right-pane .pinned-wrap:not(:first-child) >.substance-inline-sticky.pin-bar {
border-top-right-radius: 16px;
}


#substance-right-pane .pinned-wrap .pin-bar button{
  cursor:pointer;
  padding:4px 8px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  border:1px solid var(--border,#e5e7eb);
  background:#f9f9f9;
  background:var(--chip-bg,#f9f9f9);
  transition:background .2s ease,box-shadow .2s ease;
}
#substance-right-pane .pinned-wrap .pin-bar button:hover{
  background:color-mix(in srgb,#6ea8fe15%,transparent);
  background:color-mix(in srgb,var(--accent,#6ea8fe)15%,transparent);
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  
}




.list-item__center{
  min-width: 0;           
  overflow: hidden;       
  text-overflow: ellipsis;
}


.substance-index-listitem,
.substance-index-listitem .card,
.substance-view-wrapped{
  max-width: 100%;
  box-sizing: border-box;
}


.list-item__center{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px){
  
}



.substance-index-listitem{cursor:pointer;overflow-anchor:none;}
.substance-index-listitem *{cursor:inherit;pointer-events:auto;}
.list-item--tappable:hover{
  background:color-mix(in srgb,#1116%,transparent);
  background:color-mix(in srgb,var(--fg,#111)6%,transparent);
}
.list-item--tappable:active{
  background:color-mix(in srgb,#11110%,transparent);
  background:color-mix(in srgb,var(--fg,#111)10%,transparent);
}
.substances-index-page .substance-index-listitem.open .substance-index-listitem-header>*{
  display:none!important;
}
.substances-index-page .substance-view-wrapped .s-title,
.substances-index-page .pinned-wrap .s-title,
.substances-index-page .substance-view-wrapped h1,
.substances-index-page .pinned-wrap h1{display:none!important;}

#substance-right-pane .pinned-wrap .pin-bar .s-title {
  display: block !important;
}

#substance-left-pane{position:relative;overflow-y:auto;overflow-x:hidden;}
.substance-index-listitem-content{overflow:visible;}
#substance-left-pane .list,
#substance-left-pane .list-item,
#substance-left-pane .list-item__center,
#substance-left-pane .page__content,
#substance-left-pane .card,
#substance-left-pane .substance-view-wrapped{overflow:visible!important;}





#substance-left-pane *:not(.effect-chart):not(.effect-chart *):not(.time-ph):not(.time-ph *),
#substance-right-pane *:not(.effect-chart):not(.effect-chart *):not(.time-ph):not(.time-ph *) {
  transform: none !important;
}


:root{
  
  --app-top-offset: var(--sub-topbar-h);

  --row-pad:16px;
}
@media (display-mode: standalone) {
  .substances-index-page{
    --app-top-offset: var(--sub-topbar-h-pwa);
  }
}

#substances-sxs{position:relative;z-index:0;}
#substance-left-pane,#substance-right-pane{
  scroll-padding-top:var(--sub-topbar-h);
  scroll-padding-top:var(--app-top-offset);
  scroll-behavior:auto;
}
#substance-left-pane .substance-inline-sticky{
  left:0;right:0;
  margin-left:calc(-.9*16px);
  margin-left:calc(-.9*var(--row-pad));
  margin-right:calc(-1*16px);
  margin-right:calc(-1*var(--row-pad));
  
  
}

@media (max-width: 900px){
  #substance-left-pane .substance-inline-sticky{
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-left: var(--row-pad);
    padding-right: 16px;
    padding-right: var(--row-pad);
  }
}


#substance-left-pane .substance-inline-sticky+*{
  
  margin-top:0!important;
  padding-top:0;
}



#substance-left-pane .substance-inline-sticky {
  border-top: 1px solid rgba(0,0,0,.08);
;
}


.substance-inline-sticky{
  position: sticky; top: 0; z-index: 20;
     padding: 18.5px 16px;
     padding: 18.5px var(--row-pad); 
  display: flex; align-items: center; justify-content: space-between;
  height: var(--row-header-h);                 
  
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--border,#e5e7eb);
  background: color-mix(in srgb, #fff 97.5%, #dcaa2e 3%);
  background: color-mix(in srgb, var(--card-bg,#fff) 97.5%, var(--accent,#dcaa2e) 3%);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-top-left-radius: 16px; border-top-right-radius: 16px;
}

@media (max-width: 900px){
  .substance-inline-sticky{
    padding-inline: 16px;
    padding-inline: var(--row-pad);
  }
}

.substances-index-page .substance-index-listitem.open .substance-index-listitem-header{
  padding: 0;
}







.substances-index-page 
{ flex:1 1 auto; 
  min-height:0; display:flex; flex-direction:column; }



.substance-inline-sticky { position: sticky; top: 0; z-index: 20; }


#substance-right-pane .pin-bar { position: sticky; top: 0; z-index: 20; }


#substance-right-pane .sub-body .rx-row{
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  column-gap: 8px;
  row-gap: 4px;
}
#substance-right-pane .sub-body .rx-left,
#substance-right-pane .sub-body .rx-colors,
#substance-right-pane .sub-body .rx-hint{
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
#substance-right-pane .sub-body .rx-left{ flex: 1 1; }
#substance-right-pane .sub-body .reagent-icon{ flex: 0 0 auto; }
#substance-right-pane .sub-body .rx-colors{  flex: 0 0 auto; }
#substance-right-pane .sub-body .rx-reag-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
#substance-right-pane .sub-body .rx-hint{
  flex: 1 1 120px;
  white-space: normal;
}


#substance-right-pane .risk-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
#substance-right-pane .risk-legend .risk-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
#substance-right-pane .risk-legend .risk-name,
#substance-right-pane .risk-legend .risk-text{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


#substance-right-pane,
#substance-right-pane .sp-grid{
  min-width: 0 !important;
  max-width: 100% !important;
}


#substance-right-pane .sp-cell,
#substance-right-pane .card{
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  overflow-x: hidden !important;
}


#substance-right-pane img,
#substance-right-pane svg,
#substance-right-pane canvas,
#substance-right-pane video,
#substance-right-pane iframe,
#substance-right-pane .recharts-wrapper,
#substance-right-pane .recharts-wrapper svg{
  max-width: 100% !important;
  height: auto;
  display: block;
  overflow: hidden;
}



#substance-left-pane .list,
#substance-left-pane .list-item,
#substance-left-pane .list-item__center,
#substance-left-pane .page__content,
#substance-left-pane .card,
#substance-left-pane .substance-view-wrapped,
#substance-right-pane .list,
#substance-right-pane .list-item,
#substance-right-pane .list-item__center,
#substance-right-pane .page__content,
#substance-right-pane .card,
#substance-right-pane .substance-view-wrapped { overflow: visible !important; }





#substances-sxs { transition: background .6s ease; }


#substance-left-pane { overflow-anchor: none; }
.substance-index-listitem { overflow-anchor: none; }  




#substance-left-pane, #substance-right-pane {
  transition: opacity .35s ease, box-shadow .45s ease;
}


#substance-left-pane:hover, #substance-right-pane:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.06), 0 16px 48px rgba(0,0,0,.08);
}


#substance-left-pane, #substance-right-pane { scroll-behavior: auto; }





.substancespage-root{
  --row-r:12px;--row-pad-y:10px;--row-pad-x:12px;
  --row-gap:12px;--row-border:color-mix(in srgb,var(--border,#e5e7eb)70%,transparent);
  --row-bg:color-mix(in srgb,var(--card-bg,#fff)94%,transparent);
  --row-hover:color-mix(in srgb,var(--fg,#111)6%,transparent);
  --row-active:color-mix(in srgb,var(--fg,#111)10%,transparent);
  --row-shadow:0 1px 0 rgba(0,0,0,.04);
  --letter-w:28px;
}
.substance-index-listitem.list-item--pt{
  margin:6px 8px;
  border-radius:var(--row-r);
  background:var(--row-bg);
  box-shadow:var(--row-shadow);
  border:1px solid var(--row-border);
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  overflow:hidden;
  
}
.substance-index-listitem.list-item--pt:hover{
  background:linear-gradient(0deg,var(--row-hover),var(--row-hover)),var(--row-bg);
  transform:translateY(-1px);
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.substance-index-listitem.list-item--pt:active{
  background:linear-gradient(0deg,var(--row-active),var(--row-active)),var(--row-bg);
  transform:translateY(0);
}
.substance-index-listitem.list-item--pt:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px color-mix(in srgb,#caa64840%,transparent),0 2px 10px rgba(0,0,0,.08);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#caa648)40%,transparent),0 2px 10px rgba(0,0,0,.08);
  border-color:color-mix(in srgb,#caa64855%,transparent);
  border-color:color-mix(in srgb,var(--accent,#caa648)55%,transparent);
}
.substance-index-listitem-header{
  display:grid;grid-template-columns:var(--letter-w) 1fr;
  align-items:center;grid-column-gap:var(--row-gap);column-gap:var(--row-gap);
  
}

@media(mix-width:860px){
.substance-index-listitem-heade {padding:var(--row-pad-y) var(--row-pad-x);}

}

.substance-index-letter{
  width:var(--letter-w);height:28px;
  border-radius:8px;display:grid;place-items:center;
  font-weight:700;font-size:12px;
  color:color-mix(in srgb,#11155%,transparent);
  color:color-mix(in srgb,var(--fg,#111)55%,transparent);
  background:color-mix(in srgb,#1116%,transparent);
  background:color-mix(in srgb,var(--fg,#111)6%,transparent);
  border:1px solid color-mix(in srgb,#e5e7eb70%,transparent);
  border:1px solid color-mix(in srgb,var(--border,#e5e7eb)70%,transparent);
  visibility:hidden;
  
}
.substance-index-letter.is-start{visibility:visible;}
.drugspro-header{
  font-weight:600;color:#16181c;color:var(--fg,#16181c);
  line-height:1.25;letter-spacing:.1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}




.substances-index-page .substance-index-listitem.open {
  background: var(--card);
  background: var(--row-bg, var(--card)); 
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}


.theme-dark .substances-index-page .substance-index-listitem.open {
  background: var(--card);
  background: var(--row-bg, var(--card));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); 
}
.substances-index-page {
  background: var(--bg);
  color: var(--fg);
  transition: background-color 0.25s ease, color 0.25s ease;
}
@media(max-width:560px){
  
  .substancespage-root{--row-pad-x:10px;--letter-w:24px;}
  .substance-index-letter{height:24px;font-size:11px;}
}


.drugspro-header {
  display: flex;
  flex-direction: column;
  min-width: 0; 
}

.substance-inline-sticky > strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drugspro-header .s-names {
  max-width: 100%;
}
.drugspro-header .s-title {
  font-weight: 700;            
  line-height: 1.2;
}

.drugspro-header .s-sub {
  margin-left: 2px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  color: var(--muted, #6b7280);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;     
}




















:root{
  
  --a-fast: 160ms;
  --a-med: 320ms;
  --a-slow: 520ms;

  
  --ease-spring: cubic-bezier(.22, 1, .36, 1);  
  --ease-emphasized: cubic-bezier(.05, .7, .1, 1); 

  
  --y-small: 6px;
  --y-med: 10px;
}







.substance-index-listitem-header {
  transition: background-color 120ms ease; 
  will-change: auto;                       
}
.substance-index-listitem-header:active {
  scale: .985;
}



.substance-view-wrapped{
  display: grid;
  grid-template-rows: auto 0fr;                 
  transition: grid-template-rows 320ms cubic-bezier(.22, 1, .36, 1);
  transition: grid-template-rows var(--a-med) var(--ease-spring);
}


.substance-inline-sticky + *{
  overflow: hidden;                              
}


.substance-index-listitem.open .substance-view-wrapped{
  grid-template-rows: auto 1fr;
}



.substance-view-wrapped .substance-inline-sticky{
  opacity: 1;
  translate: 0 0;
}


.substance-inline-sticky + *{
  opacity: 1;
  translate: 0 0;
}


.substance-index-listitem.open .substance-inline-sticky{
  animation: stickyPopIn 160ms cubic-bezier(.05, .7, .1, 1) forwards;
  animation: stickyPopIn var(--a-fast) var(--ease-emphasized) forwards;
}


.substance-index-listitem:not(.open) .substance-inline-sticky{
  animation: stickyPopOut 140ms cubic-bezier(.05, .7, .1, 1) forwards;
  animation: stickyPopOut 140ms var(--ease-emphasized) forwards;
}
.substance-index-listitem:not(.open) .substance-inline-sticky + *{
  animation: cardHide 220ms cubic-bezier(.05, .7, .1, 1) forwards;
  animation: cardHide 220ms var(--ease-emphasized) forwards;
}


@keyframes stickyPopIn{
  0%   { opacity:.001; translate:0 calc(-1 * 6px); translate:0 calc(-1 * var(--y-small)); }
  100% { opacity:1;    translate:0 0; }
}
@keyframes cardReveal{
  0%   { opacity:.001; translate:0 10px; translate:0 var(--y-med); }
  100% { opacity:1;    translate:0 0; }
}
@keyframes stickyPopOut{
  
  100% { opacity:.001; translate:0 calc(-.5 * 6px); translate:0 calc(-.5 * var(--y-small)); }
}
@keyframes cardHide{
  0%   { opacity:1; translate:0 0; }
  100% { opacity:.001; translate:0 calc(.5 * 10px); translate:0 calc(.5 * var(--y-med)); }
}





.substance-inline-sticky + * .parallax-in{
  opacity:.001; translate:0 8px;
}
.substance-index-listitem.open .substance-inline-sticky + * .parallax-in{
  animation: cardReveal 320ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation: cardReveal var(--a-med) var(--ease-spring) forwards;
  animation-delay: 40ms; 
}


.substances-index-page .substance-index-listitem.open .substance-index-listitem-header > *{
  animation: none !important;
  opacity: 1 !important;
  translate: 0 0 !important;
}


.substance-view-wrapped,
.substance-inline-sticky {
  will-change: transform, opacity;
  transform: translateZ(0); 
}




.substance-view-wrapped .substance-inline-sticky{
  opacity:1;
  transform: translate3d(0, 0, 0);
}
.substance-inline-sticky + *{
  opacity:1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) and (orientation: portrait) {
#substance-right-pane.open {
  margin-top: -1px;
  border-top-right-radius: 0px
}
}

#substance-right-pane.open .substance-inline-sticky + * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0 round 0);
  animation: cardReveal 320ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation: cardReveal var(--a-med) var(--ease-spring) forwards;
}

#substance-right-pane:not(.open) .substance-inline-sticky + * {
  opacity: .001;
  transform: translate3d(0, 10px, 0);
  transform: translate3d(0, var(--y-med), 0);
  clip-path: inset(0 0 100% 0 round 0);
}

#substance-right-pane:not(.hidden) .substance-inline-sticky + * {
  animation: cardReveal 320ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation: cardReveal var(--a-med) var(--ease-spring) forwards;
}


.substance-index-listitem.open .substance-inline-sticky{
  animation: stickyPopIn 160ms cubic-bezier(.05, .7, .1, 1) forwards;
  animation: stickyPopIn var(--a-fast) var(--ease-emphasized) forwards;
}
.substance-index-listitem.open .substance-inline-sticky + *{
  animation: cardReveal 320ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation: cardReveal var(--a-med) var(--ease-spring) forwards;
}
@keyframes stickyPopIn{
  0%   { opacity:.001; transform:translate3d(0, calc(-1 * 6px), 0); transform:translate3d(0, calc(-1 * var(--y-small)), 0); }
  100% { opacity:1;    transform:translate3d(0,0,0); }
}
@keyframes cardReveal{
  0%   { opacity:.001; transform:translate3d(0, 10px, 0); transform:translate3d(0, var(--y-med), 0); }
  100% { opacity:1;    transform:translate3d(0,0,0); }
}


.substance-inline-sticky + * {
  
  clip-path: inset(0 0 100% 0 round 0);      
  transition: clip-path 320ms cubic-bezier(.22, 1, .36, 1);
  transition: clip-path var(--a-med) var(--ease-spring);
  will-change: clip-path, transform, opacity;
}

.substance-index-listitem.open .substance-inline-sticky + * {
  clip-path: inset(0 0 0 0 round 0);         
}



.substances-animating .substance-inline-sticky{
  -webkit-backdrop-filter: none;
          backdrop-filter: none; 
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}




.list--pt {
  padding-top: 5px;
  margin-top: -2px
}



.substancespage-root #substance-right-pane,
.substancespage-root #substance-right-pane *{
  will-change: auto !important;        
}



.substancespage-root #substance-right-pane .sp-grid section .card:hover{
  transform: none !important;
  box-shadow: none; 
}
















#substances-sxs:not(.sxs-active) #substance-right-pane{
  flex: 0 0;
  width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}







#substances-sxs{
  --sxs-left: 50%;
}

#substances-sxs:not(.sxs-active) #sxs-divider {
  display: none;
}


#sxs-divider{
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  cursor: col-resize;
  touch-action: none;
  -webkit-user-select: none;
          user-select: none;
  margin-inline: 2px;
  border-radius: 10px;
  background: color-mix(in srgb, #e5e7eb 55%, transparent);
  background: color-mix(in srgb, var(--border,#e5e7eb) 55%, transparent);
}


#sxs-divider::before{
  content:"";
  position:absolute;
  inset: -16px;          
  background: transparent;
}
#sxs-divider:hover{
  background: color-mix(in srgb, #dcaa2e 35%, transparent);
  background: color-mix(in srgb, var(--accent,#dcaa2e) 35%, transparent);
}
#sxs-divider:active,
#sxs-divider:has(:active){
  background: color-mix(in srgb, #dcaa2e 55%, transparent);
  background: color-mix(in srgb, var(--accent,#dcaa2e) 55%, transparent);
}


#substances-sxs.sxs-active #substance-left-pane{
  flex: 0 0 var(--sxs-left);
}
#substances-sxs.sxs-active #substance-right-pane{
  flex: 1 1;
}

@media (max-width:900px) and (orientation: portrait) {

  
  #substances-sxs{
    --sxs-top: 50%;
    flex-direction: column;
  }

  #sxs-divider{
    display: block;
    flex: 0 0 10px;
    height: 10px;
    width: 100%;
    cursor: row-resize;
  }
    #sxs-divider::before{
    inset: -20px 0;   
  }

  #substances-sxs.sxs-active #substance-left-pane{
    flex: 0 0 var(--sxs-top);
  }

  #substances-sxs.sxs-active #substance-right-pane{
    flex: 1 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  #substance-right-pane {
    border-top-right-radius: 0;
  }
}


#substance-right-pane.hidden{ display: none; }




#substance-right-pane .pin-bar 
{margin: 0px 0px 0px 0px}


.drugspro-header .s-chip {
  pointer-events: auto;
}




.substance-index-listitem-header {
    justify-content: flex-start!important
}

.substance-inline-sticky {
  pointer-events: auto;     
  position: sticky;         
  top: 0;
  z-index: 2;               
  cursor: pointer;}

  
#substance-left-pane .list-item__center{
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


#substance-left-pane .substance-index-listitem,
#substance-left-pane .substance-view-wrapped,
#substance-left-pane .card{
  max-width: 100%;
  box-sizing: border-box;
}
#substance-left-pane .substance-view-wrapped > *{ min-width: 0; }

















.s-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}














.filters-strip{
  position: sticky; top: 0;
  
background: var(--bg);
background: var(--card-bg, var(--bg));
  
  z-index: 5;
  display: flex;
  
  
}


.filters-scroller{
  overflow-x: auto;          
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; 
  touch-action: pan-x;       
  width: 100%;               
  padding: 0 8px;
  scrollbar-width: thin;     
}
.filters-scroller::-webkit-scrollbar{ height:6px; }
.filters-scroller::-webkit-scrollbar-thumb{
  background: rgba(100,100,100,.4); border-radius:4px;
}


.filters-container{
  display: inline-flex;      
  gap: 8px;
  padding: 8px;
  align-items: center;
  flex-wrap: nowrap;         
  min-width: 100dvw
}










.substances-index-page .list-item__center,
.substances-index-page .list-item--pt__center{
  background-image: none !important;
}












.substancespage-root #substance-left-pane,
.substancespage-root #substance-left-pane *,
.substancespage-root #substance-right-pane,
.substancespage-root #substance-right-pane *{
  
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.substancespage-root #substance-left-pane .om-floating-actions--popover,
.substancespage-root #substance-left-pane .om-floating-actions--popover *,
.substancespage-root .substance-left-pane .om-floating-actions--popover,
.substancespage-root .substance-left-pane .om-floating-actions--popover * {
  max-width: none !important;
}

.substancespage-root .substance-index-listitem,
.substancespage-root .pinned-wrap,
.substancespage-root .pin-bar {
  transform: none !important;
}



.substancespage-root .substance-index-listitem:hover{
  transform: none !important; 
}

.substancespage-root .substance-index-listitem-header{
  transition: background-color 120ms ease, box-shadow 200ms ease !important;
}







#substance-right-pane {
  transition: opacity .35s ease; 
}

#substance-right-pane:hover {
  
  box-shadow: 0 4px 16px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06) !important;
}


#substance-left-pane {
  transition: opacity .35s ease; 
}

#substance-left-pane:hover {
  
  box-shadow: 0 4px 16px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06) !important;
}





.list-item,
.list-item--tappable,
ons-list-item {
  cursor: default !important;
}


#substance-left-pane > ons-list.list:not(:has(.substance-index-listitem.open)) {
  background-image: none !important;   
  background-color: transparent !important;
}






#substance-left-pane *,
.substance-left-pane *{
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}











.s-chip {
  font-size: 0.7rem;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  background: #ececec;
  background: var(--chip-bg, #ececec);
  color: #555;
  color: var(--text-muted, #555);
  white-space: nowrap;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
}

.s-title, .s-sub {
  line-height: 1.2;
}

.s-names {
  min-height: 2.2em;
  justify-content: center;
}

 









































.substance-index-listitem {
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--border, #e5e7eb);
  transition: background 0.25s ease;
  cursor: pointer;
  background: #fff;
  background: var(--card-bg, #fff);
}

@media (hover: hover) {
  .substances-index-page .substance-index-listitem {
    transition:
      background 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease;
  }

  .substances-index-page .substance-index-listitem:hover {
    background: linear-gradient(
      0deg,
      color-mix(in srgb, #111 4%, transparent),
      color-mix(in srgb, #111 4%, transparent)
    ), #fff;
    background: linear-gradient(
      0deg,
      color-mix(in srgb, var(--fg, #111) 4%, transparent),
      color-mix(in srgb, var(--fg, #111) 4%, transparent)
    ), var(--card-bg, #fff);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    
  }
}

.theme-dark .substance-index-listitem {
  border-color: #333;
  
  background: #0e0f11;
}

.substance-index-listitem.open {
  background: #fafafa;
  background: var(--card-bg-open, #fafafa);
}
.theme-dark .substance-index-listitem.open {
  background: #181b20;
}


.substance-index-listitem-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: .5em 0em .5em 2em;
  min-height: 56px;
}

.substance-index-letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff6600;
  background: var(--accent, #ff6600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.drugspro-header {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.s-names {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.s-title {
  font-weight: 600;
  color: #111;
  color: var(--fg, #111);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-dark .s-title {
  color: #f0f0f0;
}

.s-sub {
  font-size: 0.8rem;
  color: #666;
  color: var(--fg-muted, #666);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-dark .s-sub {
  color: #aaa;
}

.s-effects-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  margin-left: 0;        
  padding-left: 5rem;   
  max-width: 100%;
  box-sizing: border-box;
}


.s-chip {
  background: #f3f4f6;
  background: var(--chip-bg, #f3f4f6);
  color: #333;
  color: var(--chip-fg, #333);
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.1;
}
.theme-dark .s-chip {
  background: #25282d;
  color: #ccc;
}

.s-chip.s-chip-more {
  pointer-events: none;
}

#substance-right-pane .s-effects-chips {
  display: none !important;
}


.substance-inline-sticky {
  position: sticky;
  top: 0;
  
  
  
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
}
.theme-dark .substance-inline-sticky {
  
  border-color: #333;
}

.s-pin-btn {
  border: 1px solid #ccc;
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  padding: 4px 8px;
  background: #f3f4f6;
  background: var(--chip-bg, #f3f4f6);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 12px;
}

#substance-left-pane .s-pin-btn {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.theme-dark .s-pin-btn {
  background: #1c1f25;
  border-color: #333;
  color: #ccc;
}


.pin-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  background: var(--card-bg, #fff);
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.theme-dark .pin-bar {
  background: #0f1115;
  border-color: #333;
}


.substance-index-listitem-content {
  transition: all 0.25s ease;
  overflow: visible;              
  max-height: none;
}


.substance-view-wrapped {
  overflow: hidden;
  animation: fadeInSubstance 0.25s ease;
}

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


.substance-index-listitem.open > .substance-index-listitem-header {
  display: none !important;
}


.substance-inline-sticky {
  margin-top: 0;
  top: 0;
}


.substance-inline-sticky::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
  background: var(--border, #e5e7eb);
  opacity: 0.8;
}




.substance-index-listitem-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  overflow: visible; 
}


.substance-inline-sticky {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  background: var(--card-bg, var(--page-bg, #fff));
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


.substance-inline-sticky::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
  background: var(--border, #e5e7eb);
  opacity: 0.8;
}
.theme-dark .substance-inline-sticky::after {
  background: #333;
  opacity: 0.5;
}





.letter-anchor {
  font-weight: 800;
  
  border-bottom: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.1));
  background: rgba(255,255,255,0.6);
  background: var(--chip-bg, rgba(255,255,255,0.6));
  color: #333;
  color: var(--fg, #333);
}

.letter-anchor:first-of-type {
  display: none; 
}

.substance-index-listitem.letter-anchor {
    padding: .5em .75em;
    font-size: large;
    opacity: .8;
}

.theme-dark .substance-index-listitem.letter-anchor {
    opacity: .95;
}



.letter-anchor {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.letter-anchor.is-folded {
  opacity: 0.6;
}






.drugspro-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  grid-gap: 0.6rem;
  gap: 0.6rem;
  
  width: 100%;
}


.s-names {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  min-width: 0;
}


.drugspro-header .s-effects-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;

  overflow-x: auto;        
  overflow-y: hidden;
  overscroll-behavior-x: contain;

  -webkit-overflow-scrolling: touch; 
  touch-action: pan-y;     

  min-width: 0;
  scrollbar-width: none;  
}

.drugspro-header .s-effects-chips::-webkit-scrollbar {
  display: none;          
}


.drugspro-header .s-effects-chips {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 12px,
    black calc(100% - 12px),
    transparent
  );
          mask-image: linear-gradient(
    to right,
    transparent,
    black 12px,
    black calc(100% - 12px),
    transparent
  );
}

.drugspro-header .s-effects-chips {
  scroll-snap-type: x proximity;
}

.substance-index-listitem.open .s-effects-inline {
    display: none;
}


.drugspro-header .s-chip {
  display: inline-flex;
  align-items: center;
  
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 9px;
  padding: 6px 10px;
  margin-left: 0.35rem;
  white-space: nowrap;
  line-height: 1;
  width: max-content;
  border: 1px solid #e6ebf3;
  border: 1px solid var(--fx-chip-border, #e6ebf3);
  background: #f7fafc;
  background: var(--fx-chip-bg, #f7fafc);
  color: #22304a;
  color: var(--fx-chip-fg, #22304a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  flex-shrink: 0;             

}


#substance-left-pane .drugspro-header .s-chip {
  min-width: max-content;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}


.drugspro-header body:not(.dark) {
  --fx-chip-bg: #f7fafc;
  --fx-chip-fg: #22304a;
  --fx-chip-border: #e6ebf3;
}


body.dark {
  --fx-chip-bg: #1e293b;
  --fx-chip-fg: #f1f5f9;
  --fx-chip-border: #334155;
}


.s-chip:hover {
  background: var(--accent-tint-hover);
  
  border-color: var(--accent-ring);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent-ring) 50%, transparent);
}







@media (orientation: landscape) and (pointer: coarse) and (max-width:900px)
{
.drugspro-header {
padding: 0px;
}
.substance-index-listitem-header{
min-height: 0;
min-height: initial;

}
}



@media (max-width: 920px) {
  
  body.nav-mobile-active
    .page-shell
    > .content-refresh-transition:has(.substances-index-page) {
    padding-top: 0;
  }

  
  body.nav-mobile-active .substances-index-page > .filters-search-section,
  body.nav-mobile-active #substance-left-pane > .filters-search-section {
    gap: 0;
    padding-top: 20px;
    padding-top: var(--app-route-content-gap, 20px);
  }

  
  body.nav-mobile-active
    .substances-index-page
    > .filters-search-section
    > .searchbar-wrap
    > .searchbar-row {
    padding: 0 20px 15px;
  }
}

@media (max-width: 920px) and (pointer: coarse){

  .substances-index-page > .filters-search-section,
  .substancespage-content .filters-search-section,
  .substance-inline-sticky,
  #substance-right-pane .pin-bar,
  .filters-strip{
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
  }

[id]:has(> .substance-view-wrapped) {
margin-top: -1px
;}



#substances-sxs .sp-grid {
  margin-bottom: 10px;
}
#substances-sxs #substance-left-pane .substance-inline-sticky {
padding: 15px 10px 15px 15px;

}
#substances-sxs #substances-right-pane .substance-inline-sticky {
border-top-right-radius: 0px
}

} 


.substance-index-listitem-content {
  display: none;
}

.library-startup-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: max(700px, calc(100dvh - 140px));
  overflow: hidden;
  background: #fff;
  background: var(--background-color, var(--bg, #fff));
  pointer-events: none;
  
  padding-top: inherit;
  box-sizing: border-box;
}

.library-startup-skeleton.is-hidden {
  opacity: 0;
}

.library-startup-skeleton__row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 57px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.16);
  border-bottom: 1px solid var(--border, rgba(127, 127, 127, 0.16));
}

.library-startup-skeleton__row > span {
  width: min(46%, 420px);
  height: 13px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, #16181c 9%, transparent) 48%,
      transparent 100%
    ),
    color-mix(in srgb, #16181c 5%, transparent);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--fg, #16181c) 9%, transparent) 48%,
      transparent 100%
    ),
    color-mix(in srgb, var(--fg, #16181c) 5%, transparent);
  background-size: 220% 100%, 100% 100%;
  animation: library-startup-shimmer 1.25s ease-in-out infinite;
}

@keyframes library-startup-shimmer {
  0% {
    background-position: 180% 0, 0 0;
  }
  100% {
    background-position: -40% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .library-startup-skeleton__row > span {
    animation: none;
  }
}


.substance-index-listitem.open .substance-index-listitem-content {
  display: block;
}

@media (max-width: 920px) and (pointer: coarse){
  .filters-strip{
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .filters-strip .filters-container{
    display: inline-flex;
    min-width: max-content;
    width: max-content;
    flex-wrap: nowrap;
  }

  #substance-left-pane > .filters-search-section{
    position: static;
    top: auto;
    z-index: auto;
    border-bottom: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@keyframes stickyPopIn {
  0% { opacity: .001; transform: translate3d(0, calc(-1 * 6px), 0); transform: translate3d(0, calc(-1 * var(--y-small)), 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes saferuse-enter {
  0% { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

