


.route-host:has(.lab-photos-page),
body:has(.lab-photos-page) {
  overflow-y: hidden !important;
}






.lab-photos-page.overlay-open .lab-wrap {
  overflow-y: clip !important;
  
}



.lab-photos-page{
  position: relative;
  min-height: 100dvh;
  display: block;                
  box-sizing: border-box;
  overflow: visible;
  isolation: isolate;            

  
  

}

.theme-dark .lab-photos-page {
  background:#141414;
}



.will-reveal {
}


.gp-grid {
  contain: layout paint;
}


.lab-wrap{
  height: 100dvh;
  overflow-y: auto;
  
  -webkit-overflow-scrolling: touch;
    
}

.lab-photos-page {
  --lp-accent: 28 90% 48%;
  --lp-text: 220 18% 18%;
--lp-glass: hsla(0, 0%, 100%, 0.55);
--lp-stroke: hsla(0, 0%, 0%, 0.08);
  --chip-h: 34px;
  --chip-r: 9px;
  --chip-px: 12px;
}
















.lab-wrap .gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1fr));
  
  width: auto;
  padding-top: 12px;
  transition: all 0.3s ease;
}

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

@media (max-height: 499px) and (orientation: landscape) {
  .lab-wrap .gp-grid {
    padding-top: 0;
  }
}


.gp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  content-visibility: auto;
  aspect-ratio: 1 / 1;
  contain-intrinsic-size: auto 220px;
  background: #fff;
  background: var(--lp-card-bg, #fff);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

@media (orientation: landscape) and (max-width:1000px){
  .gp-card { border-radius: 8px!important;}
}

.gp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.theme-dark .gp-card {
  background: #0F0F0F;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.theme-dark .gp-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
}


.gp-imglink {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f6f6f6;
}
.gp-imglink img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: contrast(1.03) saturate(1.05);
}
.gp-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gp-grid > article:hover,
.gp-grid--expandable > article:hover {
  cursor: pointer;
}


.gp-badge {
  position: absolute;
  left: 18px;
  right: 8px;
  bottom: 18px;
  display: flex;
  align-items: center;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}
.gp-badge__text {
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: #0b1220;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}


.gp-card[data-tone="light"] .gp-badge__text {
  color: #0b1220;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.gp-card[data-tone="dark"] .gp-badge__text {
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,.6),
    0 0 1px rgba(0,0,0,.4);
}

@supports (-webkit-text-stroke: 1px black) {
  .gp-card[data-tone="dark"] .gp-badge__text { -webkit-text-stroke: .2px rgba(0,0,0,.35); }
  .gp-card[data-tone="light"] .gp-badge__text { -webkit-text-stroke: .2px rgba(255,255,255,.35); }
}



.theme-dark .gp-imglink { background: #1b1f27; }
.theme-dark .gp-badge__text { text-shadow: 0 1px 5px rgba(0,0,0,.9); }









.gp-skel .gp-skel-img--square {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 18px;
  background: linear-gradient(90deg, #e9eef5, #ffffff, #e9eef5);
  background-size: 200% 100%;
  animation: gp-shimmer 1.2s infinite;
}
@keyframes gp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


.gp-body, .gp-title, .gp-desc { display: none !important; }

.gp-month-section {
  margin-bottom: clamp(24px, 5vw, 48px);
  width: 95%;
}
.gp-month-header {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: .03em;
  margin: 0 0 12px 4px;
  color: rgba(0,0,0,.9);
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
          backdrop-filter: blur(6px) saturate(1.2);
  
}
.theme-dark .month-header {
    margin-left: 12px!important;

  color: rgba(255, 255, 255, 0.9)!important;
}

.gp-section-header {
  grid-column: 1 / -1;
  text-align: left;
  font-weight: 700;
  font-size: 1.3rem;
  color: rgba(0,0,0,0.65);
  margin: 16px 16px 8px;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.theme-dark .gp-section-header {
  color: rgba(255, 255, 255, 0.9);
}


.gp-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}


.theme-dark {
  
  background: #0e1117;
  color: #e6ebf4;
}

.theme-dark .gp-card {
  background: #0F0F0F;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.theme-dark .gp-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,.7);
}
.theme-dark .gp-badge {
  text-shadow: 0 1px 5px rgba(0,0,0,.9);
}

.theme-dark .lab-tag {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
  color: #e6ebf4;
}
.theme-dark .lab-tag:hover {
  background: rgba(255,255,255,.18);
}
.theme-dark .lab-tag.is-active {
  background: linear-gradient(90deg, #ffd36a, #ffe59a);
  color: #0b1220;
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 2px 12px rgba(255,255,255,.2);
}

.theme-dark .chip {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
  color: #e6ebf4;
}
.theme-dark .chip__remove {
  color: rgba(230,235,244,.8);
}
.theme-dark .chip__remove:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}


.gp-warning {
  --gp-warning-filter: none;
  display: block;
  
  padding: clamp(10px, 2vw, 16px) clamp(12px, 3vw, 20px);
  
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  border-inline: 0;
  background: var(--accent-tint-hover);
  color: #5c4600;
  border: 1px solid rgba(255, 238, 186, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  filter: var(--gp-warning-filter);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, filter 0.16s ease;

  
  
  margin-inline: auto;
  text-wrap: balance; 
  text-align: center;
  -webkit-hyphens: auto;
          hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;

  
  white-space: normal;
  -webkit-user-select: text;
  user-select: text;
}


:root:is(.entry-ios, .entry-android) body.nav-mobile-active .gp-warning,
body:is(.entry-ios, .entry-android).nav-mobile-active .gp-warning {
  --gp-warning-filter: blur(var(--mobile-pull-blur, 5px));
}

.results-gallery-host .gp-warning-results {
  --gp-warning-filter: none;
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  filter: none;
}

:root:is(.entry-ios, .entry-android) body.nav-mobile-active .results-gallery-host .gp-warning-results,
body:is(.entry-ios, .entry-android).nav-mobile-active .results-gallery-host .gp-warning-results {
  --gp-warning-filter: none;
  filter: none;
}

.lab-photos-page .gp-warning {
  margin-bottom: 10px;
}

.labs-content--scroll-shell {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  box-sizing: border-box;
}

.labs-content--scroll-shell > .gp-warning {
  margin-bottom: 10px;
}

.labs-content--scroll-shell > .lab-photos-page > .lab-wrap {
  height: auto !important;
  overflow: visible !important;
}

@media (pointer: coarse) and (hover: none) and (orientation: portrait) and (max-width:520px) {
  body.entry-browser .howto-content .lab-photos-page .gp-warning {
    margin: 20px 0 10px
  }
  body.entry-browser .lab-wrap {
    padding-top: 0!important
  }

}

.lab-photos-page .gp-warning-intro,
.labs-content--scroll-shell > .gp-warning-intro {
  cursor: default;
}

.lab-photos-page .gp-warning-intro summary,
.labs-content--scroll-shell > .gp-warning-intro summary {
  display: block;
  width: 100%;
  list-style: none;
  cursor: inherit;
}

.lab-photos-page .gp-warning-intro summary::-webkit-details-marker,
.labs-content--scroll-shell > .gp-warning-intro summary::-webkit-details-marker {
  display: none;
}

.lab-photos-page .gp-warning-intro[open] summary,
.labs-content--scroll-shell > .gp-warning-intro[open] summary {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}


@media (max-width: 900px) {
  body.entry-browser.nav-mobile-active
    .page-shell[data-route="alerts"][data-route-tab="labs"]
    > .labs-content {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  body.entry-pwa.nav-mobile-active
    .page-shell[data-route="alerts"][data-route-tab="labs"]
    > .labs-content {
    padding-top: 1rem;
  }
}

@media (max-width: 519px) {
  @media (pointer: coarse) {
.howto-content .lab-photos-page .gp-warning {
  margin-top: 30px;
}

}  
}





@media (max-width: 519px) {
  .lab-photos-page .gp-warning-intro.is-collapsible,
  .labs-content--scroll-shell > .gp-warning-intro.is-collapsible {
    cursor: pointer;
    
  }

  .lab-photos-page .gp-warning-intro.is-collapsible:not([open]) summary,
  .labs-content--scroll-shell > .gp-warning-intro.is-collapsible:not([open]) summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 60px;
    word-break: keep-all;
  }

  
  :root:is(.entry-ios, .entry-android) .lab-photos-page .gp-warning-intro.is-collapsible:not([open]) summary,
  :root:is(.entry-ios, .entry-android) .labs-content--scroll-shell > .gp-warning-intro.is-collapsible:not([open]) summary {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: clip;
    max-height: none;
  }
}





.theme-dark .gp-warning {
  background: rgba(48, 37, 0, 0.7);
  border-color: rgba(255, 204, 102, 0.3);
  color: #ffe9b0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  border-inline: 0
}











.gp-grid--expandable {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  padding: 0 15px;
  align-items: start;
  width: auto;
}



@media (max-width: 468px) and (orientation: portrait) {
  .gp-grid,
  .gp-grid--expandable {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gp-grid.gp-grid--expandable {
    grid-template-columns: repeat(2, 50vw) !important;
    justify-content: center;
  }

  .gp-grid.gp-grid--expandable > article.gp-summary-card {
    width: 45vw;
    max-width: 45vw;
  }

  .gp-summaries__grid {
    grid-template-columns: repeat(2, 45vw) !important;
    justify-content: center;
  }

  .gp-summaries__grid > article.gp-summary-card {
    width: 45vw;
    max-width: 45vw;
  }
}


@media (max-width: 319px) and (orientation: portrait) {
  .gp-grid,
  .gp-grid--expandable {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 10px !important;
  }

  .gp-summaries__grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}


@media (max-width: 925px) and (orientation: landscape) and (pointer: coarse) {
  .gp-grid,
  .gp-grid--expandable {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)) !important;
    gap: 8px !important;
  }

  .gp-summaries__grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)) !important;
    gap: 8px !important;
  }
}






.gp-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  background: var(--tile-bg, rgba(255,255,255,0.7));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  content-visibility: auto;
  aspect-ratio: 1 / 1;
  contain-intrinsic-size: 220px;
}

.gp-card--skeleton {
  pointer-events: none;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(247,247,247,0.9));
}

.theme-dark .gp-card--skeleton {
  background: linear-gradient(135deg, rgba(33,33,33,0.92), rgba(20,20,20,0.96));
  box-shadow: 0 4px 18px rgba(0,0,0,0.32);
}


.gp-skeleton-media,
.gp-skeleton-line,
.img-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}

.theme-dark .gp-skeleton-media,
.theme-dark .gp-skeleton-line,
.theme-dark .img-shimmer {
  background: rgba(255,255,255,0.08);
}

.gp-skeleton-media::after,
.gp-skeleton-line::after,
.img-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.48) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: gp-skeleton-shimmer 1.15s linear infinite;
}

.theme-dark .gp-skeleton-media::after,
.theme-dark .gp-skeleton-line::after,
.theme-dark .img-shimmer::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 45%, transparent 100%);
}

.gp-skeleton-media {
  aspect-ratio: 1 / 1;
}

.gp-skeleton-badge {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.gp-skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.gp-skeleton-line--title {
  width: 68%;
  height: 16px;
}

.gp-skeleton-line--meta {
  width: 42%;
}

@keyframes gp-skeleton-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

body:not(.lab-back-loaded) .gp-card:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.lab-back-loaded .gp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gp-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  
}



.gp-badge--top {
  position: absolute;
  top: 6px;
  
  
  display: flex;
    flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
  
}


.gp-card .detected-text {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}




.gp-card {
  container-type: inline-size;
  container-name: card;
}
@container card (width > 200px) {
  .detected-text {
    font-size: 8cqi;
  }
}

.detected-sup {
  font-size: 0.65em;
  line-height: 1;
  margin-left: 1px;
  opacity: 0.7;
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
  top: -0.42em;
}

.detected-line-row {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  width: 100%;
  max-width: 100%;
}

.detected-line-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detected-line-suffix {
  flex: 0 0 auto;
  white-space: nowrap;
}

.detectedDose {
  white-space: nowrap;
}

.gp-badge .badge-tags {
  font-size: 5cqi;
  bottom: -5px!important;
  padding: .5cqi;
}

div.gp-badge.gp-badge--top > div.geoLabel {
  font-size: 5cqi;
}




.lab-result.em-animate-in {
  grid-column: auto; 
  animation: fadeSlideIn .25s ease;
  max-width: 100%;
  overflow: hidden;
  transition: all .35s ease;
}


@media (max-width: 768px) {
  .lab-result.em-animate-in {
    grid-column: 1 / -1;
  }
}


@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  
}



.gp-grid--expandable .lab-result.is-expanded {
  grid-column: span 2;
  width: 100%;
  box-sizing: border-box;
  animation: fadeSlideIn .25s ease;
  max-height: 100%;
}

@media (max-width: 768px) {
  .gp-grid--expandable .lab-result.is-expanded {
    grid-column: 1 / -1; 
      z-index: 2; 

  }
}




@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-tile {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
          backdrop-filter: blur(12px) saturate(150%);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.lab-result .glass-tile:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.lab-result .em-chip {
 display: flex;
  align-items: center;
  border-radius: 9999px;
  padding: 4px 10px 4px 4px;
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
          backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  color: #111;
}

.lab-result .em-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  margin-right: 6px;
}

.lab-result .em-chip-title {
  font-size: 15px;
    white-space: nowrap;

}

.lab-reult .em-chip.clickable {
  cursor: pointer;
  transition: transform 0.15s ease
}

.lab-result .em-chip.clickable:hover {
  transform: scale(1.04);
  
}


.glass-popup {
  background: linear-gradient(145deg, rgba(255,255,255,0.88) 0%, rgba(245,245,255,0.6) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
          backdrop-filter: blur(14px) saturate(180%);
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.25),
    0 2px 8px rgba(255,255,255,0.15) inset;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
}



.glass-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
  pointer-events: none;
  mix-blend-mode: screen;
}


.lab-result .glass-popup.em-animate-in {
  animation: popupLift .4s ease;
}

@keyframes popupLift {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}












.img-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}



.img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.18s ease-out, transform 0.28s ease-out;
  will-change: opacity, transform;
}

.img-main.is-loaded {
  opacity: 1;
}

.img-main.is-hover-hidden {
  opacity: 0;
}

.img-hover-layer {
  z-index: 1;
  pointer-events: none;
}

.img-main.img-main--contain {
  width: 70%;
  height: 70%;
  object-fit: contain;
  top: 15%;
  left: 15%;
}
















.lab-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  
  padding: 10px clamp(12px,2vw,20px); 
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  
  max-width: 100%;
  min-width: 0;
}
.lab-tags-row::-webkit-scrollbar { display: none; }









.divider-dot {
  background: white;   
  padding: 0;
  width: 26px;
  height: 26px 
}
.divider-dot:hover {
  transform: scale(1.12);
}
.divider-dot svg {
  pointer-events: none;
}

.lab-dropdown.divider {
  background-image: none;
  padding-inline: 12px;
  text-align: center;
}

.color-picker {
  gap: 10px;
  
  padding: 6px 0px;
  border-radius: 14px;
  
  background: transparent;
}

.color-dot {
  transition: all 0.25s ease;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    0 1px 2px rgba(0,0,0,0.1);
  filter: brightness(1.02) saturate(0.9);
}

.color-dot:hover {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.05);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.15),
    inset 0 0 2px rgba(255,255,255,0.6);
}

.color-dot:active {
  transform: scale(0.95);
}

.color-dot:focus {
  outline: none;
}

.color-picker-wrap {
    justify-content: center;
      display: flex;

  gap: 10px;


}

@media (max-width: 479px) {
  .color-picker-wrap {
    display: flex;
  flex-wrap: wrap;
  gap:inherit;
  row-gap: 20px;
  }
  }
















.em-chip.clickable {
  -webkit-appearance: none;
          appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
          backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 1px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.em-chip.clickable:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.em-chip.clickable:active {
  transform: scale(0.97);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.15);
}

.em-chip.em-chip.clickable.no-click:hover {
  opacity: 1!important;
  opacity: initial!important;
  filter: initial!important;
  scale: unset!important;
  
  transform: none;
  transform: initial;
  cursor: default!important;
}



.lab-search-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  box-sizing: border-box;      

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  
position: sticky;
left: 0;              
width: 100%;          
max-width: 100vw;     
box-sizing: border-box;
  


  
  box-sizing: border-box;
    
  max-height: calc(2 * 48px); 
  overflow: hidden;
}


.lab-search-bar {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 85px;
  overflow: visible;
  gap: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(var(--lp-glass)), hsl(var(--lp-glass)));
  border: 1px solid color-mix(in oklab, #000 8%, transparent);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 6px 18px rgba(0,0,0,.06);
      backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.lab-search-bar.lab-search-bar--prominent {
  max-height: none;
  overflow: visible;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.lab-offline-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 10px 12px 4px;
  padding: 9px 12px;
  box-sizing: border-box;
  border: 1px solid color-mix(in oklab, var(--accent) 34%, transparent);
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: hsl(var(--lp-text));
  font-size: 0.78rem;
  line-height: 1.35;
}

.lab-offline-scope > span {
  flex: 1 1 auto;
  min-width: 0;
}

.lab-offline-scope > strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.lab-offline-scope--unavailable {
  border-color: color-mix(in oklab, #d45b4d 38%, transparent);
  background: color-mix(in oklab, #d45b4d 10%, transparent);
}

.lab-search-row--prominent {
  align-items: center;
}

.lab-search-input {
  flex: 1 1 auto;
  min-width: 0;        
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  outline: none;
  font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: hsl(var(--lp-text));
  padding: 4px 34px 4px 2px;
  overflow: visible;
  text-overflow: ellipsis;
}

.lab-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.lab-search-input::placeholder {
  color: transparent;
}

.lab-search-center-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  opacity: 0.72;
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.lab-search-center-placeholder > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.lab-search-clear {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 2px;
  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: hsl(var(--lp-text) / 0.58);
  cursor: pointer;
}

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

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



.lab-search-reset {
  all: unset;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 34px;
  padding: 0 14px;
  border-radius: 10px;

  font: 600 13.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .01em;

  
  color: var(--muted);
  background: linear-gradient(
    180deg,
    hsl(var(--lp-glass)),
    hsl(var(--lp-glass))
  );

  border: 1px solid color-mix(in oklab, #000 10%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 4px 12px rgba(0,0,0,.08);

  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);

  transition:
    background .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}

.lab-search-toggle {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  background: linear-gradient(
    180deg,
    hsl(var(--lp-glass)),
    hsl(var(--lp-glass))
  );
  border: 1px solid color-mix(in oklab, #000 10%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 4px 12px rgba(0,0,0,.08);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  transition:
    background .18s ease,
    box-shadow .18s ease,
    transform .12s ease,
    color .18s ease;
}

.lab-search-toggle:hover {
  background: color-mix(in oklab, hsl(var(--lp-glass)) 85%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.lab-search-toggle:active {
  transform: scale(.96);
}

.lab-search-toggle.is-active {
  background: linear-gradient(
    180deg,
    hsl(var(--lp-glass)),
    hsl(var(--lp-glass))
  );
  color: var(--muted);
  border-color: #d0872a;
  border-color: var(--accent-strong, #d0872a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 0 2px color-mix(in srgb, #d0872a 18%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 18%, transparent);
}

.theme-dark .lab-search-toggle {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 18px rgba(0,0,0,.45);
}

.theme-dark .lab-search-toggle.is-active {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border-color: #d0872a;
  border-color: var(--accent-strong, #d0872a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 2px color-mix(in srgb, #d0872a 22%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 22%, transparent);
}

.lab-search-reset:hover {
  background: color-mix(in oklab, hsl(var(--lp-glass)) 85%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.lab-search-reset:active {
  transform: scale(.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 2px 6px rgba(0,0,0,.12);
}

.theme-dark .lab-search-reset {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 18px rgba(0,0,0,.45);
}

.theme-dark .lab-search-reset:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}


@media (orientation: portrait) and (max-width: 519px),
       (pointer: coarse) and (orientation: landscape) and (max-height: 519px) {
  .lab-photos-page.overlay-open .lab-search-row {
    display: none;
  }
}

.gp-grid.gp-grid--expandable:has(> .lab-no-results) {
  display: block;
}
.lab-no-results {
  text-align: center;
  margin-inline: auto;
  padding: 32px 16px;
}

.gp-summaries {
  grid-column: 1 / -1;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.gp-summaries__header {
  min-height: 28px;
  padding-inline: 2px;
  display: flex;
  align-items: center;
  color: hsl(var(--lp-text));
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.theme-dark .gp-summaries__header,
.theme-dark .gp-summary-row {
  color: rgba(255,255,255,0.92);
}

.gp-summaries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  align-items: start;
}

.gp-summaries__grid--year-on {
  animation: gp-summaries-slide-in 240ms cubic-bezier(.22, 1, .36, 1);
}

.gp-summaries__grid--year-off {
  animation: gp-summaries-slide-out 220ms cubic-bezier(.22, 1, .36, 1);
}

@keyframes gp-summaries-slide-in {
  0% {
    opacity: 0.4;
    transform: translateY(-8px);
  }
  
}

@keyframes gp-summaries-slide-out {
  0% {
    opacity: 0.55;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.lab-stat-year-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: none;
  cursor: pointer;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  -webkit-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lab-stat-year-toggle .dp-icon {
  opacity: 0.82;
  flex: 0 0 auto;
  transition: opacity .18s ease, transform .18s ease;
}

.lab-stat-year-toggle--info {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.lab-stat-year-toggle span {
  white-space: nowrap;
}

.month-header.gp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.month-header.gp-section-header[data-month-key] {
  scroll-margin-top: 8px;
}

@media (max-width: 560px), (pointer: coarse) and (max-width: 925px) {
  .month-header.gp-section-header {
    box-sizing: border-box;
    width: 100%;
    margin-right: 0;
    margin-left: 0 !important;
    padding-inline: clamp(16px, 4vw, 20px);
  }

  .month-header.gp-section-header .gp-month-header__title {
    margin-inline-start: 8px;
  }
}

.gp-month-header__date-picker {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gp-month-header__date-picker:focus-within {
  border-radius: 8px;
  outline: 2px solid rgba(46, 115, 252, 0.5);
  outline-offset: 3px;
}

.gp-month-picker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.gp-month-header__title {
  min-width: 0;
}

.gp-month-header__action {
  flex: 0 0 auto;
  color: inherit;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 1px 6px rgba(0,0,0,0.05);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}

.gp-month-header__action:hover {
  background: rgba(255,255,255,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 2px 8px rgba(0,0,0,0.07);
}

.gp-month-header__action:hover .dp-icon,
.gp-month-header__action.active .dp-icon {
  opacity: 1;
}

.gp-month-header__action:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 0 2px rgba(46, 115, 252, 0.2),
    0 2px 8px rgba(0,0,0,0.07);
}

.gp-month-header__action:active {
  transform: scale(0.98);
}

.gp-month-header__action.active {
  background: rgba(255,255,255,0.56);
  border-color: rgba(0,0,0,0.12);
}

.gp-month-header__action.active .dp-icon {
  transform: translateY(-0.5px);
}

.theme-dark .gp-month-header__action {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 2px 10px rgba(0,0,0,0.22);
}

.theme-dark .gp-month-header__action:hover {
  background: rgba(255,255,255,0.12);
}

.theme-dark .gp-month-header__action:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 2px rgba(120, 170, 255, 0.22),
    0 2px 10px rgba(0,0,0,0.22);
}

.theme-dark .gp-month-header__action.active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.2);
}


.gp-month-header__action.lab-stat-year-toggle--info,
.theme-dark .gp-month-header__action.lab-stat-year-toggle--info,
.gp-month-header__action.lab-stat-year-toggle--info.active {
  color: rgba(60,60,67,0.72);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gp-month-header__action.lab-stat-year-toggle--info:hover {
  background: rgba(120,120,128,0.12);
}

.gp-month-header__action.lab-stat-year-toggle--info:active {
  transform: scale(0.94);
}

.theme-dark .gp-month-header__action.lab-stat-year-toggle--info,
.theme-dark .gp-month-header__action.lab-stat-year-toggle--info.active {
  color: rgba(235,235,245,0.82);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.theme-dark .gp-month-header__action.lab-stat-year-toggle--info:hover {
  background: rgba(120,120,128,0.2);
}

.gp-summary-card {
  cursor: pointer !important;
  border: 0;
  border-radius: 18px;
  overflow: clip;
  background: rgba(255,255,255,0.78);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.75) inset,
    0 5px 16px rgba(24,32,48,0.12);
}

.gp-summary-card:focus-visible {
  outline: 3px solid rgba(46, 115, 252, 0.32);
  outline-offset: 2px;
}

.theme-dark .gp-summary-card {
  background: rgba(255,255,255,0.07);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 8px 22px rgba(0,0,0,0.28);
}

.gp-summary-card--search-result {
}

.gp-summary-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,0.92), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, rgba(252,252,252,1), rgba(237,240,244,0.96));
}

article[data-summary="mdma-pills"] .gp-summary-card__media,
article[data-id="summary-mdma-pills"] .gp-summary-card__media,
article[data-summary="2c-b-pills"] .gp-summary-card__media,
article[data-id="summary-2c-b-pills"] .gp-summary-card__media,
article[data-summary="lsd"] .gp-summary-card__media,
article[data-id="summary-lsd"] .gp-summary-card__media {
  padding: 10%;
  box-sizing: border-box;
  object-fit: contain;
}

article.gp-summary-card--search-result[data-id="summary-mdma-pills"] .img-wrapper,
article.gp-summary-card--search-result[data-id="summary-2c-b-pills"] .img-wrapper,
article.gp-summary-card--search-result[data-id="summary-lsd"] .img-wrapper {
  padding: 10%;
  box-sizing: border-box;
}

article.gp-summary-card--search-result[data-id="summary-mdma-pills"] .img-main,
article.gp-summary-card--search-result[data-id="summary-2c-b-pills"] .img-main,
article.gp-summary-card--search-result[data-id="summary-lsd"] .img-main {
  padding: 10%;
  box-sizing: border-box;
  object-fit: contain;
}

.gp-summary-card__media--other {
  display: grid;
  place-items: center;
}

.gp-summary-card__question {
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(10, 18, 32, 0.72);
}

.theme-dark .gp-summary-card__media {
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,0.12), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, rgba(34,34,34,0.98), rgba(18,18,18,0.96));
}

.theme-dark .gp-summary-card__question {
  color: rgba(255, 255, 255, 0.82);
}

.gp-summaries--compact {
  gap: 8px;
  
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

.gp-summaries--compact .gp-summaries__header {
  padding-inline: 4px;
}

.gp-summaries--compact .gp-summaries__grid {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.72) inset,
    0 6px 20px rgba(24,32,48,0.10);
}

.theme-dark .gp-summaries--compact .gp-summaries__grid {
  background: rgba(255,255,255,0.075);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 8px 24px rgba(0,0,0,0.24);
}

.gp-summary-row {
  --gp-summary-accent: 99 99 102;
  --gp-summary-accent-dark: 174 174 178;
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  -webkit-appearance: none;
          appearance: none;
  border: 0;
  background: transparent;
  color: hsl(var(--lp-text));
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.gp-summary-row[data-summary="2c-b-pills"] {
  --gp-summary-accent: 255 45 85;
  --gp-summary-accent-dark: 255 55 95;
}

.gp-summary-row[data-summary="2c-b-powders"] {
  --gp-summary-accent: 175 82 222;
  --gp-summary-accent-dark: 191 90 242;
}

.gp-summary-row[data-summary="amphetamine"] {
  --gp-summary-accent: 255 149 0;
  --gp-summary-accent-dark: 255 159 10;
}

.gp-summary-row[data-summary="cannabinoids"] {
  --gp-summary-accent: 40 172 73;
  --gp-summary-accent-dark: 48 209 88;
}

.gp-summary-row[data-summary="mephedrone"] {
  --gp-summary-accent: 255 59 48;
  --gp-summary-accent-dark: 255 69 58;
}

.gp-summary-row[data-summary="cocaine"] {
  --gp-summary-accent: 50 173 230;
  --gp-summary-accent-dark: 100 210 255;
}

.gp-summary-row[data-summary="heroin"] {
  --gp-summary-accent: 162 132 94;
  --gp-summary-accent-dark: 172 142 104;
}

.gp-summary-row[data-summary="ketamine"] {
  --gp-summary-accent: 48 176 199;
  --gp-summary-accent-dark: 64 200 224;
}

.gp-summary-row[data-summary="lsd"] {
  --gp-summary-accent: 88 86 214;
  --gp-summary-accent-dark: 94 92 230;
}

.gp-summary-row[data-summary="mdma-pills"] {
  --gp-summary-accent: 226 54 138;
  --gp-summary-accent-dark: 255 100 178;
}

.gp-summary-row[data-summary="mdma-powders"] {
  --gp-summary-accent: 0 122 255;
  --gp-summary-accent-dark: 10 132 255;
}

.gp-summary-row[data-summary="methamphetamine"] {
  --gp-summary-accent: 166 125 0;
  --gp-summary-accent-dark: 255 214 10;
}

.gp-summary-row[data-summary="tuci"] {
  --gp-summary-accent: 0 153 145;
  --gp-summary-accent-dark: 102 212 207;
}

.gp-summary-row[data-summary="other"] {
  --gp-summary-accent: 99 99 102;
  --gp-summary-accent-dark: 174 174 178;
}

.gp-summary-row + .gp-summary-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 56px;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.10);
}

.theme-dark .gp-summary-row + .gp-summary-row::before {
  background: rgba(255,255,255,0.13);
}

.gp-summary-row:hover {
  background: rgba(28,32,40,0.035);
}

.gp-summary-row:active {
  background: rgba(28,32,40,0.07);
}

.gp-summary-row:focus-visible {
  outline: 3px solid rgb(var(--gp-summary-accent) / 0.34);
  outline-offset: -3px;
}

.gp-summary-row__icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: rgb(var(--gp-summary-accent));
  background: rgb(var(--gp-summary-accent) / 0.12);
}

.theme-dark .gp-summary-row__icon {
  color: rgb(var(--gp-summary-accent-dark));
  background: rgb(var(--gp-summary-accent-dark) / 0.16);
}

.theme-dark .gp-summary-row:hover {
  background: rgba(255,255,255,0.045);
}

.theme-dark .gp-summary-row:active {
  background: rgba(255,255,255,0.08);
}

.theme-dark .gp-summary-row:focus-visible {
  outline-color: rgb(var(--gp-summary-accent-dark) / 0.42);
}

.gp-summary-row__copy {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.gp-summary-row__copy strong,
.gp-summary-row__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-summary-row__copy strong {
  font-size: 15px;
  font-weight: 650;
}

.gp-summary-row__copy span {
  color: rgba(28,32,40,0.60);
  font-size: 12px;
  font-weight: 450;
}

.theme-dark .gp-summary-row__copy span,
.theme-dark .gp-summary-row__chevron {
  color: rgba(255,255,255,0.58);
}

.gp-summary-row__chevron {
  color: rgba(28,32,40,0.38);
}


.lab-dropdown {
  --lab-dropdown-border: color-mix(in oklab, #000 10%, transparent);
  --lab-dropdown-shadow:
    inset 0 1px 2px rgba(255,255,255,0.6),
    0 2px 6px rgba(0,0,0,0.08);
  -webkit-appearance: none;
          appearance: none;
  font-weight: 500;
font-size: 13.5px;
line-height: 1.2;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: hsl(var(--lp-text));
  padding: 8px 32px 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--lab-dropdown-border);
  background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(240,240,245,0.65));
background-image: url("data:image/svg+xml,%3Csvg width=%2710%27 height=%276%27 xmlns=%27http:%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath d=%27M0 0l5 6 5-6H0z%27 fill=%27%23666%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  box-shadow: var(--lab-dropdown-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
          backdrop-filter: blur(10px) saturate(1.2);
  cursor: pointer;
  min-width:100px;
  width: 100%;
  
  color-scheme: light;
}

.lab-dropdown option,
.lab-dropdown optgroup {
  color: #1f2937;
  background: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
}

.lab-filter-control--weight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-filter-control--weight input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  accent-color: var(--accent-strong);
}

.lab-weight-label {
  color: hsl(var(--lp-text) / 0.64);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.lab-weight-label--value {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}


.theme-dark .lab-dropdown {
  --lab-dropdown-border: rgba(255,255,255,0.14);
  --lab-dropdown-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 6px 18px rgba(0,0,0,0.45);
  color: rgba(230,235,244,0.9);
background: rgba(255,255,255,0.05);
 border-color: var(--lab-dropdown-border);

  box-shadow: var(--lab-dropdown-shadow);
  background-repeat: no-repeat;
  background-position: right 10px center;
background-image: url("data:image/svg+xml,%3Csvg width=%2710%27 height=%276%27 xmlns=%27http:%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath d=%27M0 0l5 6 5-6H0z%27 fill=%27%23666%27/%3E%3C/svg%3E");
}

.theme-dark .lab-dropdown.divider {
background-image: none;
background-image: initial;
}



@media (min-width: 487px) and (max-width: 925px) and (pointer: fine) {
  
}


@media (min-width: 487px) and (max-width: 925px) and (pointer: coarse) and (orientation: portrait) {
  .lab-tags-row > *:nth-child(-n+3) {
    flex: 1 1 auto;
    min-width: 30%;
  }
}



.lab-dropdown.active {
  border-color: #d0872a;
  border-color: var(--accent-strong, #d0872a);
  background-color: transparent;
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px color-mix(in srgb, #d0872a 18%, transparent);
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 18%, transparent);
}

.theme-dark .lab-dropdown.active {
  background-color: rgba(255,255,255,0.05);
}



.theme-dark .lab-search-input {
    color: black;
}


.lab-dropdown:focus {
  outline: none;
  border-color: var(--lab-dropdown-border);
  box-shadow: var(--lab-dropdown-shadow);
}

.lab-dropdown:focus-visible {
  border-color: var(--lab-dropdown-border);
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px hsla(var(--lp-accent), 0.25),
    0 3px 10px rgba(0,0,0,.1);
}

select.lab-dropdown:focus:not(:focus-visible) {
  border-color: var(--lab-dropdown-border);
  box-shadow: var(--lab-dropdown-shadow);
}


.lab-search-bar .color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
}


@media (max-width:481px) {
  .lab-tags-row > div:nth-child(6) {
    margin-top: 10px;
  }
}


@media (max-width: 560px), (pointer: coarse) and (max-width: 925px) {
  .lab-photos-page .lab-tags-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 10px;
    gap: 10px;
    align-items: stretch;
    padding: 12px clamp(16px, 4vw, 20px) 14px;
  }

  .lab-photos-page .lab-filter-control {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }

  .lab-photos-page .lab-filter-control--divider,
  .lab-photos-page .lab-filter-control--weight {
    grid-column: 1 / -1;
  }

  .lab-photos-page .lab-filter-control--weight {
    min-height: 48px;
    margin-top: 2px !important;
    padding: 0 4px;
    gap: 10px;
  }

  .lab-photos-page .lab-filter-control--weight input[type="range"] {
    min-height: 44px;
    margin: 0;
  }

  .lab-photos-page .lab-weight-label {
    color: hsl(var(--lp-text) / 0.58);
    font-size: 15px;
    font-weight: 450;
  }

  .lab-photos-page .lab-dropdown {
    min-width: 0;
    min-height: 44px;
    padding: 0 36px 0 14px;
    border-radius: 14px;
    border-color: rgba(60, 60, 67, 0.18);
    background-color: rgba(248, 248, 250, 0.78);
    background-position: right 14px center;
    background-size: 9px 6px;
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    color: hsl(var(--lp-text));
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease, border-color 160ms ease, transform 100ms ease;
  }

  .lab-photos-page .lab-dropdown:active {
    transform: scale(0.985);
  }

  .lab-photos-page .lab-dropdown.active {
    border-color: #d0872a;
    border-color: var(--accent-strong, #d0872a);
    background-color: rgba(248, 248, 250, 0.78);
    box-shadow:
      inset 0 0.5px 0 rgba(255,255,255,0.72),
      0 0 0 2px color-mix(in srgb, #d0872a 18%, transparent);
    box-shadow:
      inset 0 0.5px 0 rgba(255,255,255,0.72),
      0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 18%, transparent);
  }

  .lab-photos-page .lab-dropdown.divider {
    padding-inline: 14px;
    text-align: center;
  }

  .theme-dark .lab-photos-page .lab-dropdown {
    border-color: rgba(255,255,255,0.14);
    background-color: rgba(255,255,255,0.075);
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.92);
  }

  .theme-dark .lab-photos-page .lab-dropdown.active {
    border-color: #d0872a;
    border-color: var(--accent-strong, #d0872a);
    background-color: rgba(255,255,255,0.075);
    box-shadow:
      inset 0 0.5px 0 rgba(255,255,255,0.1),
      0 0 0 2px color-mix(in srgb, #d0872a 22%, transparent);
    box-shadow:
      inset 0 0.5px 0 rgba(255,255,255,0.1),
      0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 22%, transparent);
  }

  .theme-dark .lab-photos-page .lab-weight-label {
    color: rgba(255,255,255,0.6);
  }
}



.lab-result-overlay {
  animation: fadeIn 0.25s ease;
}


body:has(.global-topbar--floating) .lab-result-overlay .lab-search-reset--back {
  display: none !important;
}
@keyframes fadeIn {
  
  to { opacity: 1; transform: scale(1); }
}


.lab-result-overlay {
  cursor: pointer;
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 4px 20px rgba(0, 0, 0, 0.06);

  animation: fadeIn 0.25s ease;
  padding-bottom: clamp(40px, 8vw, 100px);
}


html.dev-desktop .lab-result-overlay {
  left: 84px;
  left: var(--rail-w, 84px);
  transition: left .72s cubic-bezier(.22,1,.36,1);
  transition: left var(--rail-dur, .72s) var(--rail-ease, cubic-bezier(.22,1,.36,1));
}

@media (min-width: 520px) and (orientation: portrait),
       (min-width: 520px) and (orientation: landscape) and (min-height: 520px),
       (min-width: 520px) and (pointer: fine) {
  .lab-result-overlay {
    
    top: calc(44px + 47px);
    top: calc(var(--app-topbar-h, 44px) + 47px);
  }
}

.lab-result-overlay > .lab-result-wrapper {
  container-name: lab-result;
  container-type: inline-size;
  width: min(1120px, 100%);
  max-width: 1120px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.theme-dark .lab-result-overlay > .lab-result-wrapper {
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
}

@media (max-width: 519px),
       (orientation: landscape) and (max-height: 519px) {
  .lab-result-overlay {
    padding: 0;
    scrollbar-width: none;
  }

  .lab-result-overlay::-webkit-scrollbar {
    display: none;
  }

  .lab-result-overlay > .lab-result-wrapper {
    width: 100%;
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none !important;
  }
}


@media (orientation: portrait),
       (orientation: landscape) and (max-height: 519px) {
  body.nav-mobile-active .lab-result-overlay {
    top: 0;
    padding: 0;
    scrollbar-width: none;
  }

  body.nav-mobile-active .lab-result-overlay::-webkit-scrollbar {
    display: none;
  }

  body.nav-mobile-active .lab-result-overlay > .lab-result-wrapper {
    width: 100%;
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none !important;
    margin-bottom: 116px;
    margin-bottom: var(--app-mobile-dock-reserve, 116px);
  }
}


.theme-dark .lab-result-overlay {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    0 4px 20px rgba(0, 0, 0, 0.8);
}



.theme-dark .lab-search-bar {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 6px 18px rgba(0,0,0,0.4);
}

.theme-dark .lab-search-input {
  color: #e6ebf4;
}
.theme-dark .lab-search-input::placeholder {
  color: transparent;
}

.theme-dark .lab-search-center-placeholder {
  opacity: 0.9;
}
.theme-dark input[type="date"]  {
background:   rgb(30, 30, 30)!important;
}


.lab-result .labresult-top {
  background: var(--labresult-media-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}


.theme-dark .lab-result .labresult-top {
  background: var(--labresult-media-bg) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lab-result-wrapper {
  cursor: pointer;
  margin-top: 0px!important;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


.lab-result-overlay .lab-result-wrapper > .labresult-wrapper {
  width: 100%;
  min-width: 0;
}







.theme-dark .gp-card {
  
  box-shadow: none !important;
}








.detected-line.tone-light {
  color: #111;
}

.detected-line.tone-dark {
  color: #fff;
}


.theme-dark .detected-line.tone-light {
  color: #fff;
}


.theme-dark .detected-line.tone-dark {
  color: #fff;
}





.theme-dark .gp-card [title][style*="position: absolute"] {
  color: #fff !important;
  text-shadow: rgba(0, 0, 0, 0.9) 0px 1px 3px !important;
}


.theme-dark .gp-card [style*="rotate(90deg"] {
  color: #fff !important;
  text-shadow: rgba(0, 0, 0, 0.9) 0px 1px 3px !important;
}

.geoLabel::first-letter {
  text-transform: uppercase;
}

.theme-dark .is-structure, .theme-dark .img-main.is-structure[style*="opacity: 1"] {
    filter: invert(1) hue-rotate(180deg) brightness(1.05) saturate(0.8) contrast(1.05)!important;
}




.theme-dark .gp-card > div:nth-child(2) {
background: linear-gradient(
  rgba(0, 0, 0, 0.35) 0%,
  rgba(0, 0, 0, 0.25) 35%,
  rgba(0, 0, 0, 0.10) 70%,
  rgba(0, 0, 0, 0) 100%
)!important;
}

.community-content .gp-badge {
    text-shadow: 0 1px 5px rgba(0,0,0,.9);
}

.community-content .detected-line.tone-light {
  color: white!important;
}

.community-content .gp-card > div:nth-child(2) {
background: linear-gradient(
rgba(0, 0, 0, 0.45) 0%,
rgba(0, 0, 0, 0.25) 45%,
rgba(0, 0, 0, 0.05) 80%,
rgba(0, 0, 0, 0) 100%
)!important
}

.theme-dark .community-content .gp-card > div:nth-child(2) {
background: linear-gradient(
rgba(0, 0, 0, 0.65) 0%,
rgba(0, 0, 0, 0.45) 45%,
rgba(0, 0, 0, 0.15) 80%,
rgba(0, 0, 0, 0) 100%
)!important
}







.img-wrapper {
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f4f4f4 70%, #ececec 100%);
  background: var(--img-light-matte, radial-gradient(circle at 50% 35%, #ffffff 0%, #f4f4f4 70%, #ececec 100%));
  contain: layout paint style;
}




.theme-dark .lab-photos-page .img-wrapper, .theme-dark .labs-content .gp-grid.gp-grid--expandable > article > div:nth-child(1) {
  background: #0f0f0f !important;

}



.lab-photos-page .lab-search-shell {
  width: 100%;
  position: sticky;
  top: 0px;
  top: var(--lab-search-sticky-top, 0px);
  z-index: 5;
  box-sizing: border-box;
  isolation: isolate;
  scroll-margin-top: 8px;
  scroll-margin-top: var(--lab-search-scroll-margin-top, 8px);
}

.lab-photos-page .lab-search-row {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 11.5px 20px 15px;
  box-sizing: border-box;
}


@media (hover: hover) and (pointer: fine) {
  .lab-photos-page .search-field--prominent {
    height: 40px;
  }
}

.lab-photos-page .lab-search-shell::before {
  content: "";
  position: absolute;
  inset: calc(0px * -1) 0 0px 0;
  inset: calc(var(--lab-search-sticky-top, 0px) * -1) 0 0px 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.55) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  
}

@media (orientation: portrait) and (max-width: 519px) {
.lab-photos-page .lab-search-shell::before {
  inset: calc(80px * -1) 0 0px 0;
  inset: calc(var(--lab-search-sticky-top, 80px) * -1) 0 0px 0;
}
}

.lab-photos-page .lab-search-shell > * {
  position: relative;
  z-index: 1;
}


@media (pointer: coarse), (hover: none), (max-height: 519px) {
  .lab-photos-page .lab-search-shell {
    position: relative;
    top: auto;
  }

  .lab-photos-page .lab-search-shell::before {
    inset: 0 0 0 0;
  }

  
}

body.nav-mobile-active .lab-photos-page .lab-search-shell {
  position: relative;
  top: auto;
}

body.nav-mobile-active .lab-photos-page .lab-search-shell::before {
  inset: 0 0 0 0;
}


body.nav-mobile-active .lab-photos-page .lab-search-row {
  padding-top: 20px;
  padding-bottom: 0;
}


body.nav-mobile-active
  .page-shell[data-route="alerts"][data-route-tab="labs"]
  .lab-photos-page
  .lab-search-shell {
  --alerts-labs-search-top-gap: var(--floating-topbar-content-top);
  margin-top: var(--alerts-labs-search-top-gap);
}


body.nav-mobile-active .lab-photos-page .lab-search-shell .lab-search-bar,
body.nav-mobile-active .lab-photos-page .lab-search-shell .lab-search-toggle,
body.nav-mobile-active .lab-photos-page .lab-search-shell .lab-search-reset {
  border-radius: 999px;
}

.lab-search-filters {
  width: 100%;
  overflow: visible;
}

.lab-filter-sheet-header,
.lab-filter-sheet-scrim {
  display: none;
}

.lab-search-filters.is-collapsible {
  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;
}

.lab-search-filters.is-collapsible.is-open {
  grid-template-rows: 1fr;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lab-search-filters.is-collapsible > .lab-tags-row {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.lab-search-filters.is-collapsible.is-open > .lab-tags-row {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (orientation: portrait) and (max-width: 519px),
       (orientation: landscape) and (max-height: 519px) {
  .lab-search-filters:not(.is-collapsible) {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}


@media (max-width: 560px), (pointer: coarse) and (max-width: 925px) {
  .lab-photos-page .lab-filter-sheet-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3098;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: lab-filter-scrim-in 180ms ease-out both;
  }

  .lab-photos-page .lab-search-filters.is-collapsible,
  .lab-photos-page .lab-search-filters.is-collapsible.is-open {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3099;
    display: block;
    width: auto;
    max-height: min(78dvh, 620px);
    padding: 0 16px max(16px, env(safe-area-inset-bottom));
    overflow: auto;
    border-radius: 28px 28px 0 0;
    background: rgba(244, 244, 246, 0.94);
    box-shadow: 0 -14px 40px rgba(0,0,0,0.22);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    backdrop-filter: blur(28px) saturate(1.5);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(105%);
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
  }

  .lab-photos-page .lab-search-filters.is-collapsible.is-open {
    transform: translateY(0);
  }

  .theme-dark .lab-photos-page .lab-search-filters.is-collapsible,
  .theme-dark .lab-photos-page .lab-search-filters.is-collapsible.is-open {
    background: rgba(28, 28, 30, 0.94);
    box-shadow: 0 -14px 44px rgba(0,0,0,0.52);
  }

  .lab-photos-page .lab-filter-sheet-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 64px;
    color: hsl(var(--lp-text));
    text-align: center;
  }

  .lab-photos-page .lab-filter-sheet-header strong {
    grid-column: 2;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.015em;
  }

  .lab-photos-page .lab-filter-sheet-reset {
    grid-column: 1;
    justify-self: start;
    min-width: 44px;
    min-height: 44px;
    margin-left: -6px;
    padding: 0 6px;
    border: 0;
    color: currentColor;
    opacity: 0.68;
    background: transparent;
    font: 500 16px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
  }

  .lab-photos-page .lab-filter-sheet-reset:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 8px;
  }

  .lab-photos-page .lab-filter-sheet-grabber {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 5px;
    border-radius: 999px;
    background: rgba(60,60,67,0.26);
    transform: translateX(-50%);
  }

  .theme-dark .lab-photos-page .lab-filter-sheet-grabber {
    background: rgba(235,235,245,0.3);
  }

  .lab-photos-page .lab-filter-sheet-close {
    grid-column: 3;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: rgba(60,60,67,0.72);
    background: rgba(120,120,128,0.16);
    -webkit-tap-highlight-color: transparent;
  }

  .theme-dark .lab-photos-page .lab-filter-sheet-close {
    color: rgba(235,235,245,0.72);
    background: rgba(120,120,128,0.24);
  }

  .lab-photos-page .lab-search-filters.is-collapsible > .lab-tags-row,
  .lab-photos-page .lab-search-filters.is-collapsible.is-open > .lab-tags-row,
  .lab-photos-page .lab-tags-row {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    overflow: visible;
    border-radius: 12px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.04);
  }

  .theme-dark .lab-photos-page .lab-tags-row {
    background: rgba(44,44,46,0.9);
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.04);
  }

  :root.theme-dark .lab-photos-page .lab-search-filters.is-collapsible > .lab-tags-row,
  :root.theme-dark .lab-photos-page .lab-search-filters.is-collapsible.is-open > .lab-tags-row,
  :root.theme-dark .lab-photos-page .lab-tags-row {
    background: rgba(44,44,46,0.96);
  }

  :root.theme-dark .lab-photos-page .lab-filter-sheet-header {
    color: rgba(255,255,255,0.94);
  }

  .lab-photos-page .lab-filter-control {
    position: relative;
    box-sizing: border-box;
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 0 16px;
  }

  .lab-photos-page .lab-filter-control:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 16px;
    height: 0.5px;
    background: rgba(60,60,67,0.2);
    pointer-events: none;
  }

  .theme-dark .lab-photos-page .lab-filter-control:not(:last-child)::after {
    background: rgba(84,84,88,0.65);
  }

  .lab-photos-page .substances-dropdown {
    min-width: 0;
  }

  .lab-photos-page .lab-dropdown,
  .theme-dark .lab-photos-page .lab-dropdown {
    min-width: 0;
    min-height: 52px;
    padding: 0 42px 0 0;
    border: 0;
    border-radius: 0;
    color: hsl(var(--lp-text));
    background-color: transparent;
    background-position: right 17px center;
    background-size: 8px 5px;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.015em;
    text-align: left;
    transform: none;
  }

  .theme-dark .lab-photos-page .lab-dropdown {
    color: rgba(255,255,255,0.94);
  }

  .lab-photos-page .lab-dropdown.active,
  .theme-dark .lab-photos-page .lab-dropdown.active {
    color: inherit;
    background-color: transparent;
    border-radius: 10px;
    box-shadow:
      inset 0 0 0 1px #d0872a,
      0 0 0 2px color-mix(in srgb, #d0872a 18%, transparent);
    box-shadow:
      inset 0 0 0 1px var(--accent-strong, #d0872a),
      0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 18%, transparent);
  }

  .lab-photos-page .lab-filter-control--divider {
    padding-right: 12px;
  }

  .lab-photos-page .lab-dropdown.divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    color: hsl(var(--lp-text));
    text-align: left;
  }

  .theme-dark .lab-photos-page .lab-dropdown.divider {
    color: rgba(255,255,255,0.94);
  }

  .lab-filter-switch {
    position: relative;
    flex: 0 0 auto;
    width: 51px;
    height: 31px;
    border-radius: 999px;
    background: rgba(120,120,128,0.24);
    transition: background 180ms ease;
  }

  .lab-filter-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 200ms cubic-bezier(.22, 1, .36, 1);
  }

  .lab-dropdown.divider[aria-pressed="true"] .lab-filter-switch {
    background: var(--accent-strong);
  }

  .lab-dropdown.divider[aria-pressed="true"] .lab-filter-switch::after {
    transform: translateX(20px);
  }

  .lab-photos-page .lab-filter-control--weight {
    min-height: 70px;
    margin: 0 !important;
    padding: 0 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    grid-gap: 10px;
    gap: 10px;
  }

  .lab-photos-page .lab-filter-control--weight input[type="range"] {
    min-width: 0;
    min-height: 44px;
    margin: 0;
  }

  .lab-photos-page .lab-weight-label {
    color: rgba(60,60,67,0.6);
    font-size: 15px;
    font-weight: 400;
  }

  .theme-dark .lab-photos-page .lab-weight-label {
    color: rgba(235,235,245,0.6);
  }
}

@media (max-width: 560px), (pointer: coarse) and (max-width: 925px) {
  body:has(.lab-filter-sheet-scrim) #nav-rail-portal-host,
  body:has(.lab-filter-sheet-scrim) .scroll-top-fab {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@keyframes lab-filter-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}



.lab-search-row .lab-dropdown {
  flex: 0 0 auto;
  min-width: 110px;
  max-width: 100%;
  white-space: nowrap;
}






.lab-search-row > .lab-dropdown,
.lab-search-row > .substances-dropdown {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc(50% - 10px);
  max-width: calc(50% - 10px);
}




.substances-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;

}
  .substances-dropdown {
    flex: 1 1 100%;
    max-width: 100%;
  }



.lab-tags-row > * {
  flex: 1 1 180px;
}







.theme-dark .lab-photos-page .lab-search-shell {
  border-color: rgba(255,255,255,0.12) !important;
  
}

.theme-dark .lab-photos-page .lab-search-row {
  background: rgba(20, 20, 20, 0.76);
}

.theme-dark .lab-photos-page .lab-search-shell::before {
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.78) 0%,
    rgba(20, 20, 20, 0.55) 72%,
    rgba(20, 20, 20, 0) 100%
  ) !important;
}



.theme-dark .lab-search-row .lab-search-reset {
  color: rgba(255,255,255,0.65) !important;
  background: rgba(255,255,255,0.05)!important;
}
.theme-dark .lab-search-row .lab-search-reset:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
}


.theme-dark .dropdown-list, .theme-dark .lab-dropdown-panel {
  background: #141414!important;
}

.detected-dropdown-panel {
  --dd-x: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, max-content);
  min-width: min(max(100%, 220px), 300px);
  max-width: min(300px, calc(100vw - 16px));
  z-index: 2000;
  max-height: min(56dvh, 340px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #000 10%, transparent);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 12px 34px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.1);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--dd-x), -6px) scale(.985);
  pointer-events: none;
  transition:
    opacity .22s cubic-bezier(.22,1,.36,1),
    transform .28s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

.detected-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--dd-x), 0) scale(1);
  pointer-events: auto;
}

.detected-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.detected-dropdown-item:hover {
  background: rgba(0,0,0,.045);
  transform: translateX(1px);
}

.detected-dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(0,0,0,.045);
}

.detected-dropdown-check {
  flex: 0 0 auto;
}

.detected-dropdown-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-dark .detected-dropdown-item:hover {
  background: rgba(255,255,255,.08);
}

.theme-dark .detected-dropdown-item:focus-visible {
  background: rgba(255,255,255,.08);
}

@media (max-width: 560px) {
  .detected-dropdown-panel {
    --dd-x: -50%;
    left: 50%;
    right: auto;
    width: min(92vw, 560px);
    max-width: 92vw;
    transform-origin: top center;
  }
}

.color-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #000 10%, transparent);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 12px 34px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.1);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.985);
  pointer-events: none;
  transition:
    opacity .22s cubic-bezier(.22,1,.36,1),
    transform .28s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

.color-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.color-dropdown-panel .dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  transition: background .16s ease, transform .16s ease;
}

.color-dropdown-panel .dropdown-item:hover {
  background: rgba(0,0,0,.045);
  transform: translateX(1px);
}

.color-dropdown-panel .dropdown-item.is-selected {
  background: transparent;
  box-shadow: inset 0 0 0 1px #d0872a;
  box-shadow: inset 0 0 0 1px var(--accent-strong, #d0872a);
}

.detected-dropdown-item[aria-selected="true"] {
  background: transparent;
  box-shadow: inset 0 0 0 1px #d0872a;
  box-shadow: inset 0 0 0 1px var(--accent-strong, #d0872a);
}

.theme-dark .color-dropdown-panel .dropdown-item:hover {
  background: rgba(255,255,255,.08);
}

@media (prefers-reduced-motion: reduce) {
  .detected-dropdown-panel,
  .color-dropdown-panel {
    transition: none;
  }
}


.theme-dark .howto-page .lab-photos-page .img-wrapper, .theme-dark .howto-page .labs-content .gp-grid.gp-grid--expandable > article > div:nth-child(1) {
  background: #141414 !important; 
}
.warning-footer-wrap {
  display: flex;
  justify-content: center; 
  align-items: center;     
  text-align: center;
}
.warning-footer {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  text-wrap: balance;
  line-height: 1;
  font-weight: 300;
  margin-top: 1.95em;
  padding-inline: 1.5em;
}


.lab-photos-page :is(button, select).lab-dropdown.active {
  border-color: #d0872a !important;
  border-color: var(--accent-strong, #d0872a) !important;
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px color-mix(in srgb, #d0872a 18%, transparent) !important;
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 18%, transparent) !important;
}

.theme-dark .lab-photos-page :is(button, select).lab-dropdown.active {
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px color-mix(in srgb, #d0872a 22%, transparent) !important;
  box-shadow:
    var(--lab-dropdown-shadow),
    0 0 0 2px color-mix(in srgb, var(--accent-strong, #d0872a) 22%, transparent) !important;
}




:root.entry-native-shell body:has(.lab-result-overlay) .lab-photos-page > .lab-search-shell,
:root.entry-native-shell body:has(.lab-result-overlay) .lab-wrap > .lab-search-shell {
  display: none;
}


:root.entry-native-shell .lab-result-overlay {
  backdrop-filter: blur(3px) saturate(1.02);
  -webkit-backdrop-filter: blur(3px) saturate(1.02);
  background: rgba(255, 255, 255, 0.82);
}

:root.entry-native-shell.theme-dark .lab-result-overlay,
:root.entry-native-shell .theme-dark .lab-result-overlay {
  background: rgba(16, 16, 16, 0.86);
}


:root.entry-native-shell .lab-result-overlay {
  top: 0;
}

