.crash-screen,
.crash-screen * {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: auto;
}

.crash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1a1a1a, #000);
  display: grid;
  place-items: center;
  z-index: 99999;
}

.crash-card {
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  text-align: center;
  color: #eee;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.crash-code {
  margin: 12px 0;
  font-family: monospace;
  opacity: .9;
}

.crash-card button {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent-ring);
  font-weight: 600;
  cursor: pointer;
}


.crash-card button {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: #757575;
  font-weight: 600;
  cursor: pointer;
}


.crash-card button:hover {

  background: #464646;
  cursor: pointer;
}

.crash-mail {
  
  margin-top: 12px;
  
  color: #dcaa2e;
  text-decoration: underline;
  cursor: pointer;
}
.dp-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.dp-icon.mdi-spin {
  animation: dp-icon-spin 1.5s linear infinite;
}

.dp-icon.mdi-spin-reverse {
  animation: dp-icon-spin-reverse 1.5s linear infinite;
}

@keyframes dp-icon-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes dp-icon-spin-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}




.ob-dialog .dialog-container,
.ob-dialog .dialog {
  animation: none !important;
  transition: none !important;
  
}


.ob-dialog,
.ob-dialog .dialog-container {
  z-index: 100000 !important;
}

.ob-dialog .dialog {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 20px!important;
}
.ob-dialog .dialog-container {
  transform: none !important;
  will-change: auto !important;
}

@media (orientation: landscape) and (pointer: coarse) and (max-height:400px){
.ob-dialog .dialog {
top: 30%!important
}
}



.ob-dialog::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);

  
  background:
    radial-gradient(
      120% 90% at 50% 10%,
      rgba(255,255,255,0.10),
      rgba(0,0,0,0.15)
    );

  pointer-events: none;
}



.theme-dark .ob-dialog::before {
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);

  background:
    radial-gradient(
      120% 90% at 50% 10%,
      rgba(40,40,40,0.05),
      rgba(0,0,0,0.25)
    );
}

.ob-dialog .dialog-mask {
background-color: rgba(0,0,0,.1)!important;
cursor: pointer;
}


@media (max-width:531px) {
  .ob {
    padding: 0 1em 1em 1em;
  }
}

@media (max-width:300px) {
  .ob {
    padding: 0 1em 2em 1em;
  }
}


.ob {
  width: min(560px, calc(100vw - 28px));
  max-height: min(90vh, 660px);

  display: flex;
  flex-direction: column;

  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);

  animation: ob-fade-in 220ms ease-out !important;
}

.ob-dialog:not(.ob-dialog--section) .ob {
  height: min(88vh, 660px);
}

.theme-dark .ob {
  background: color-mix(in srgb, var(--card) 82%, black);
  border-color: color-mix(in srgb, var(--line) 55%, transparent);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}



.ob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.ob-skip {
  background: transparent;
  border: 0;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.ob-skip:hover { opacity: 0.85; }
.ob-skip:active { opacity: 0.75; }


.ob-dots { display: flex; gap: 6px; }
.ob-dot {
  border: 0;
  padding: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--fg) 20%, transparent);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease!important;
}
.ob-dot:disabled {
  cursor: default;
  opacity: 0.55;
}
.ob-dot.is-active {
  width: 18px;
  background: color-mix(in srgb, var(--fg) 55%, transparent);
}

.theme-dark .ob-dot {
  background: color-mix(in srgb, var(--fg) 28%, transparent);
}

.theme-dark .ob-dot.is-active {
  background: color-mix(in srgb, var(--fg) 65%, transparent);
}

.ob-dialog--section .ob-dots,
.ob-dialog--section .ob-skip {
  display: none;
}


.ob-dialog--section .ob-body {
  min-height: 0;
  padding-bottom: 1em;
}

.ob-dialog--section .ob-slide {
  position: static;
  inset: auto;
  box-sizing: border-box;
  padding-bottom: 10px;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}



.ob-hero {
  position: relative;
  height: clamp(160px, 32vh, 260px);
  flex: 1 1 auto;
  min-height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;

  background:
    radial-gradient(120px 120px at 20% 40%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(160px 160px at 70% 30%, rgba(255,255,255,.05), transparent 65%);
      isolation: isolate;
}

.ob-hero--welcome {
  height: clamp(120px, 24vh, 200px);
  min-height: 96px;
}

.ob-hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ob-hero-layer.is-active {
  opacity: 1;
}

.ob-hero-img {
  width: 100%;
  height: 100%;
  max-width: 520px;
  max-height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  padding: clamp(14px, 4vw, 24px);

  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;

  
  animation: ob-fade-in 260ms ease-out !important;
}

.ob-hero-layer--welcome .ob-hero-img {
  max-height: 230px;
  padding-top: clamp(6px, 1.4vh, 14px);
  padding-bottom: clamp(6px, 1.4vh, 14px);
}

@media (max-width:400px) {
.ob-hero--welcome {
  height: clamp(104px, 22vh, 168px);
  min-height: 88px;
}

.ob-hero-layer--welcome .ob-hero-img {
  max-height: 200px;
}

}

@media (max-width: 560px) {
  .ob-dialog:not(.ob-dialog--section) .ob {
    height: min(74vh, 560px);
    max-height: min(74vh, 560px);
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .ob-hero-layer--welcome .ob-hero-img {
    max-height: min(170px, 38vh);
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

.ob-hero-drift {
    position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform: translateZ(0);

  
animation: ob-drift-strong 18s cubic-bezier(.4,0,.2,1) infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}



.ob-body {
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}





.ob-slide,
.ob-slide * {
  transform: none !important;
}


.ob-body {
  position: relative;
  min-height: clamp(132px, 21vh, 170px);
}

.ob-slide {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding-bottom: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ob-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}


.ob-dialog:not(.ob-dialog--section) .ob:has(.ob-slide--pick.is-active) .ob-body {
  min-height: clamp(170px, 27vh, 220px);
}

@media (orientation: landscape) and (max-height: 540px) {
  .ob-body {
    min-height: clamp(120px, 24vh, 152px);
  }

  .ob-dialog:not(.ob-dialog--section) .ob:has(.ob-slide--pick.is-active) .ob-body {
    min-height: clamp(152px, 29vh, 188px);
  }
}




.ob-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  padding: 1em 0em 0em 1em;
    transition: opacity 220ms ease;

}

.ob-desc {
  font-size: 14px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--fg) 72%, transparent);
  text-wrap: balance;
  padding: 1em 1.5em 0em;
    transition: opacity 220ms ease;

}



.ob-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.ob-btn {
  
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  margin: 0 1em;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--fg);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  min-width: 120px;
  cursor: pointer;

  transition:
    background 140ms ease,
    transform 80ms ease,
    border-color 140ms ease!important;
}

.ob-btn:hover{
    border: 1px solid
    color-mix(in srgb, var(--accent) 55%, transparent);

}


.ob-nav:has(.ob-btn:only-child) .ob-btn {
  width: 100%;
}

.ob-btn.ghost { background: transparent; }
.ob-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.ob-btn:not(:disabled):hover {
   border: 1px solid
    color-mix(in srgb, var(--accent) 55%, transparent);

}
.ob-btn:not(:disabled):active {
  transform: translateY(1px);
}



.ob-pick {
  margin: 1em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

.ob-card {
  text-align: left;
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-radius: 14px;
  padding: 12px;
  color: var(--fg);
  cursor: pointer;

  transition:
    background 140ms ease,
    transform 80ms ease,
    border-color 140ms ease!important;
}

.ob-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.ob-card:active {
  transform: translateY(1px);
  opacity: 0.96;
}

.ob-card-title {
  font-weight: 700;
  font-size: 14px;
  text-wrap: balance;
}

.ob-card-desc {
  margin-top: 3px;
  font-size: 12px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  text-wrap: balance;
}





.ob-hero--pick ~ .ob-body .ob-card {
  position: relative;
  isolation: isolate;
}


.ob-hero--pick ~ .ob-body .ob-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;

  border: 1px solid
    color-mix(in srgb, var(--accent) 55%, transparent);

  opacity: 0.35;
  transition:
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease!important;
  }


.theme-dark .ob-hero--pick ~ .ob-body .ob-card::after {

  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;

  

  opacity: 0;
  filter: blur(12px);
  transition: opacity 220ms ease!important;
  z-index: -1;
}


.ob-hero--pick ~ .ob-body .ob-card:hover::before,
.ob-hero--pick ~ .ob-body .ob-card:focus-visible::before {
  opacity: 0.9;
  border-color: var(--accent);
}

.ob-hero--pick ~ .ob-body .ob-card:hover::after,
.ob-hero--pick ~ .ob-body .ob-card:focus-visible::after {
  opacity: 0.8;
}


.ob-hero--pick ~ .ob-body .ob-card:active {
  transform: translateY(1px) scale(0.985);
}


.ob-hero--pick ~ .ob-body .ob-card:focus-visible {
  outline: none;
}
.ob-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-dark .ob-hero {
  background:
    radial-gradient(
      140px 140px at 20% 40%,
      rgba(255,255,255,.03),
      transparent 60%
    ),
    radial-gradient(
      180px 180px at 70% 30%,
      rgba(255,255,255,.02),
      transparent 65%
    );
}

.theme-dark .ob-desc {
  color: color-mix(in srgb, var(--fg) 78%, transparent);
}

.theme-dark .ob-card-desc {
  color: color-mix(in srgb, var(--fg) 74%, transparent);
}



@keyframes ob-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}



@keyframes ob-drift-strong {
  from {
    transform: translate3d(-6px, -4px, 0) rotate(-0.6deg) scale(1.01);
  }
  to {
    transform: translate3d(6px, 4px, 0) rotate(0.6deg) scale(1.015);
  }
}



@media (prefers-reduced-motion: reduce) {
  .ob,
  .ob-body,
  .ob-pick,
  .ob-hero-img {
    animation: none !important;
    transform: none !important;
  }
}




@media (min-width: 900px) {
  .ob {
    width: min(620px, 60vw);
  }
}

.ob {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
          mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}
.theme-dark .ob {
  -webkit-mask-image: none;
          mask-image: none;
}
.theme-dark .ob {
  position: relative;
}


.theme-dark .ob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 2px rgba(255,255,255,0.03);

  
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.01) 30%,
      rgba(255,255,255,0.0) 60%
    );

  opacity: 0.9;
}




.ob-hero {
  isolation: isolate;
}

.ob-body {
  isolation: isolate;
}




.theme-dark .ob-title {
  color: color-mix(in srgb, var(--fg) 92%, white);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.04);
}

.theme-dark .ob-hero--pick ~ .ob-body .ob-title {
  color: color-mix(in srgb, var(--accent) 85%, var(--fg));
}
.theme-dark .ob-card .dialog-container {
    border-radius: 20px!important;
}

body:has(.ob-dialog) {
  overflow: hidden;
}



.ob-hero-layer--welcome .ob-hero-drift {
  animation: none !important;
  transform: none !important;
}



.ob-hero--split {
  height: auto;
  padding: 0;
}

.ob-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100%;
  padding: 1em;
  grid-gap: 1em;
  gap: 1em;
}

.ob-logo {
  width: 100%;
  max-width: 180px;
  justify-self: center;
  opacity: 0.95;
}

.ob-text--welcome {
  padding: 1.2em 1.4em 0;
}


@media (max-width: 560px) {
  .ob-hero-split {
    grid-template-columns: 1fr;
  }

  .ob-logo {
    margin-bottom: 0.5em;
  }

  .ob-text--welcome {
    padding-top: 0.5em;
  }
}




.ob-slide + .ob-slide {
  margin-top: 0;
}


:root {
  
  --topbar-h: 56px;
  --rail-w: 84px;                 
  --rail-w-expanded: 200px;       
  --rail-icon-w: 84px;            
  --rail-label-w: 0px;            
  --rail-btn-h: clamp(45px, 5.5vw, 64px);
  --rail-pad: 8px 6px;
  --rail-shadow: 0 0 8px rgba(0,0,0,.04);
  --rail-border: 1px solid var(--border);

  
  --accent: #dcaa2e;              
  --accent-strong: #d0872a;       
  --accent-tint-hover: rgba(220,170,46,.10);
  --accent-tint-active: rgba(220,170,46,.18);
  --accent-ring: rgba(220,170,46,.35);

  
  --rail-ease: cubic-bezier(.22,1,.36,1);
  --rail-dur: .72s;               
}


.theme-dark {
  --rail-shadow: 0 0 12px rgba(0,0,0,.35);
  --accent-tint-hover: rgba(220,170,46,.14);
  --accent-tint-active: rgba(220,170,46,.22);
  --accent-ring: rgba(220,170,46,.45);
}

#nav-rail-portal-host{ pointer-events:none; z-index:2147483647; }
#nav-rail-portal-host .nav-rail{ pointer-events:auto; }




#nav-rail-portal-host * {
  -webkit-user-select: none!important;
          user-select: none!important
}

.rail-wrap,
.page-shell {
  position: relative;
  z-index: 0;     
}


.nav-rail {

  color: var(--rail-fg);
  
  border-right: 1px solid var(--border);
  border-right: var(--rail-border);

  display: flex;
  
  overflow: hidden;

  width: 100%;
  min-width: 100%;
  transition:
    box-shadow .28s ease,
    background .22s ease,
    color .22s ease;

    
}

.rail-wrap.desktop-only {
  background: var(--rail-bg);
  box-shadow: 0 0 8px rgba(0,0,0,.04);
  box-shadow: var(--rail-shadow);
  padding-top: 56px;
  padding-top: var(--topbar-h)
}

@media (pointer: coarse) and (display-mode: standalone) {
.rail-wrap.desktop-only {
  display: none;
}
}


.nav-rail.is-expanded {
  --rail-label-w: calc(var(--rail-w-expanded) - var(--rail-icon-w));
  
}

.nav-rail__list {
  padding: 7px 0 0px;
  margin: 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  
}

.nav-rail__item { width: 100%; }
.nav-rail__item a {
  text-decoration: none;
  height: clamp(45px, 5.5vw, 64px);
  height: var(--rail-btn-h);
}


.nav-rail__btn {
  height: clamp(45px, 5.5vw, 64px);
  height: var(--rail-btn-h);
  margin: 3px 0px;
  width: 100%;
  display: grid;
  grid-template-columns: 84px 0px;
  grid-template-columns: var(--rail-icon-w) var(--rail-label-w);
  align-items: center;
  justify-items: center;      
  grid-gap: 8px;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  transition:
    background .18s ease, color .18s ease, box-shadow .18s ease,
    grid-template-columns .72s cubic-bezier(.22,1,.36,1);
  transition:
    background .18s ease, color .18s ease, box-shadow .18s ease,
    grid-template-columns var(--rail-dur) var(--rail-ease); 
  will-change: grid-template-columns;
}

nav > ul > li > button {
  padding-inline: 0px!important;
}


.nav-rail__icon {
  
  justify-self: baseline;
  font-size: 22px;
  line-height: 1;
  margin-left: 20px;
  position: relative;
}

.nav-rail__icon-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c63b2d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--card);
}


.nav-rail__label {
  display: block;
  justify-self: start;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
  
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);

  opacity: 0;
  transform: translateX(-12px);

  transition:
    opacity .32s ease,
    transform .32s ease;
}

.nav-rail.is-expanded .nav-rail__label {
  opacity: 1;
  
}


.nav-rail__btn:focus {
  outline: none;
}

.nav-rail__btn:focus-visible {
  outline: 2px solid rgba(220,170,46,.35);
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-rail__btn:hover {
    background: rgba(220,170,46,.10);
    background: var(--accent-tint-hover);
    
  }
}

.nav-rail__item.is-active .nav-rail__btn {
  background: rgba(220,170,46,.18);
  background: var(--accent-tint-active);
  
  color: #dcaa2e;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(220,170,46,.35) inset;
  box-shadow: 0 0 0 1px var(--accent-ring) inset;

}





.nav-rail__list .nav-rail__item.nav-rail__toggle {
  padding: 0px 10px;
  
}






.nav-rail.is-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  border-right: 0;
  transition:
    transform .34s cubic-bezier(.22, 1, .36, 1),
    opacity .34s ease,
    box-shadow .28s ease,
    background .28s ease,
    color .28s ease;
  will-change: transform, opacity;
  
}

.nav-rail.is-mobile.is-hidden {
  display: none;
}

.nav-rail.is-mobile .nav-rail__list {
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  align-items: stretch;
  grid-gap: 2px;
  gap: 2px;
}

.nav-rail.is-mobile .nav-rail__item {
  width: 100%;
  padding: 0;
}

.nav-rail.is-mobile .nav-rail__item a {
  height: auto;
}

.nav-rail.is-mobile .nav-rail__btn {
  min-height: 56px;
  height: auto;
  margin: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
}

.nav-rail.is-mobile .nav-rail__icon {
  justify-self: center;
  margin-left: 0;
  font-size: 21px;
}

.nav-rail.is-mobile .nav-rail__icon-badge {
  top: -6px;
  right: -12px;
}

.nav-rail.is-mobile .nav-rail__label {
  opacity: 1;
  transform: none;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
          hyphens: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
}

#nav-rail-portal-host > .nav-rail.is-mobile > div > div > div.nav-rail__item.is-active > a > span.nav-rail__label, #nav-rail-portal-host > nav > ul > li.nav-rail__item.is-active > a > span.nav-rail__label,
#nav-rail-portal-host > nav > ul > li.nav-rail__item.is-active > button > span.nav-rail__label {
   
  color: #dcaa2e;
  color: var(--accent);
  }

.nav-rail.is-mobile.is-ios-style {
  --nav-mobile-dock-bottom-offset: calc(env(safe-area-inset-bottom, 0px) + 2em);
  --nav-mobile-dock-left-offset: calc(env(safe-area-inset-left, 0px) + 24px);
  --nav-ios-surface-bg: color-mix(in srgb, var(--card) 95%, rgba(255,255,255,.22));
  --nav-ios-surface-border: color-mix(in srgb, var(--border) 88%, transparent);
  --nav-ios-surface-shadow:
    0 20px 24px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255,255,255,.35);
  background: transparent;
  border-top: 0;
  box-shadow: none;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: auto;
  min-width: 0;
  overflow: visible;
  padding:
    0
    max(12px, env(safe-area-inset-right, 0px))
    var(--nav-mobile-dock-bottom-offset)
    max(12px, env(safe-area-inset-left, 0px));
}

@media (display-mode: standalone) {
  .nav-rail.is-mobile.is-ios-style {
    --nav-mobile-dock-bottom-offset: max(8px, env(safe-area-inset-bottom, 0px));
  }
}

:root.entry-ios .nav-rail.is-mobile.is-ios-style {
  --nav-mobile-dock-bottom-offset: max(8px, env(safe-area-inset-bottom, 0px));
}

.nav-rail.is-mobile.is-ios-style.is-collapsed {
  justify-content: flex-start;
  pointer-events: none;
  width: calc(var(--nav-mobile-dock-left-offset) + 48px + 24px);
  min-width: 0;
  max-width: calc(var(--nav-mobile-dock-left-offset) + 48px + 24px);
  margin-inline: 0 auto;
  padding-right: 0;
}

.nav-rail__mobile-peek {
  position: absolute;
  left: var(--nav-mobile-dock-left-offset);
  bottom: var(--nav-mobile-dock-bottom-offset);
  width: 48px;
  height: 48px;
  border: 1px solid var(--nav-ios-surface-border);
  border-radius: 999px;
  background: var(--nav-ios-surface-bg);
  box-shadow: var(--nav-ios-surface-shadow);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0;
  transform: translateY(10px) scale(.84);
  pointer-events: none;
  transition:
    opacity .22s ease,
    transform .26s cubic-bezier(.22, 1, .36, 1),
    box-shadow .22s ease,
    background .22s ease;
}

.theme-dark .nav-rail__mobile-peek,
body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__mobile-peek {
  background: var(--nav-ios-surface-bg);
  box-shadow: var(--nav-ios-surface-shadow);
}

@media (pointer: coarse) and (orientation: landscape) {
  .nav-rail.is-mobile.is-ios-style {
    --nav-mobile-dock-bottom-offset: calc(env(safe-area-inset-bottom, 0px) + 26px);
  }

  .nav-rail__mobile-peek {
    bottom: var(--nav-mobile-dock-bottom-offset);
  }
}

@media (pointer: coarse) and (orientation: landscape) and (display-mode: standalone) {
  .nav-rail.is-mobile.is-ios-style {
    --nav-mobile-dock-bottom-offset: max(8px, env(safe-area-inset-bottom, 0px));
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  :root.entry-ios .nav-rail.is-mobile.is-ios-style {
    --nav-mobile-dock-bottom-offset: max(8px, env(safe-area-inset-bottom, 0px));
  }
}

@media (pointer: fine) {
  .nav-rail__mobile-peek {
    left: calc(env(safe-area-inset-left, 0px) + 2em);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 34px);
  }
}

.nav-rail.is-mobile.is-ios-style.is-collapsed .nav-rail__mobile-peek {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-rail.is-mobile.is-ios-style .nav-rail__ios-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: min(100%, 300px);
  max-width: calc(100vw - max(24px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
  margin-inline: auto;
  padding: 6px 6px;
  border: 1px solid var(--nav-ios-surface-border);
  border-radius: 999px;
  background: var(--nav-ios-surface-bg);
  box-shadow: var(--nav-ios-surface-shadow);
  transform-origin: left center;
  transition:
    opacity .22s ease,
    transform .34s cubic-bezier(.22, 1, .36, 1),
    max-width .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease;
}

.theme-dark .nav-rail.is-mobile.is-ios-style {
  --nav-ios-surface-bg: color-mix(in srgb, var(--card) 92%, rgba(17,24,39,.42));
  --nav-ios-surface-shadow:
    0 12px 28px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail.is-mobile.is-ios-style {
  --nav-ios-surface-bg: color-mix(in srgb, var(--card) 92%, rgba(17,24,39,.42));
  --nav-ios-surface-shadow:
    0 12px 28px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.nav-rail.is-mobile.is-ios-style.is-collapsed .nav-rail__ios-wrap {
  opacity: 0;
  transform: translateX(-24px) scaleX(.88) scaleY(.96);
  pointer-events: none;
}

.nav-rail.is-mobile.is-ios-style .nav-rail__ios-cluster,
.nav-rail.is-mobile.is-ios-style .nav-rail__ios-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-rail.is-mobile.is-ios-style .nav-rail__ios-cluster {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-left: 4px;
}

.nav-rail.is-mobile.is-ios-style .nav-rail__ios-search {
  flex: 1 1;
  margin-left: 2px;
  padding-left: 2px;
  border-left: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.nav-rail.is-mobile.is-ios-style .nav-rail__item {
  flex: 1 1;
  min-width: 0;
}

.nav-rail.is-mobile.is-ios-style .nav-rail__btn {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 54px;
  padding: 9px 16px;
  gap: 4px;
  border-radius: 18px;
  
}

.nav-rail.is-mobile.is-ios-style .nav-rail__ios-search .nav-rail__btn {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding-inline: 16px;
}

.nav-rail.is-mobile.is-ios-style .nav-rail__label {
  font-size: 10px;
  line-height: 1.15;
}

#nav-rail-portal-host .nav-rail.is-mobile.is-ios-style .nav-rail__item.is-active .nav-rail__btn {
  box-shadow:
    0 0 0 1px rgba(220,170,46,.35) inset,
    0 6px 14px rgba(220,170,46,.12);
  box-shadow:
    0 0 0 1px var(--accent-ring) inset,
    0 6px 14px rgba(220,170,46,.12);
  
  color: #dcaa2e;
  color: var(--accent);
}


.nav-rail__item {
  
  padding: 5px 10px;
  width: auto;
  align-content: center;
  justify-content: baseline;
}

@keyframes railIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}






  .nav-rail__backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 110;
  }
  .nav-rail__backdrop.is-open { opacity: 1; pointer-events: auto; }

  .nav-rail__sheet {
  position: fixed; left: 0; right: 0;
bottom: 0;

    height: auto;
    background: var(--bg);
    color: var(--fg);
    border-top-left-radius: 18px; border-top-right-radius: 18px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);
    transform: translateY(calc(100% + env(safe-area-inset-bottom))) scale(.985);
    transform-origin: center bottom;
    opacity: 0;
    transition:
      transform .16s cubic-bezier(.4, 0, .2, 1),
      opacity .12s ease-out,
      background .22s ease,
      color .22s ease,
      border-color .22s ease;
    will-change: transform, opacity;
    z-index: 120; display: flex; flex-direction: column;
    pointer-events: none;
  }
  .nav-rail__sheet.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    transition:
      transform .28s cubic-bezier(.22, 1, .36, 1),
      opacity .2s ease-out,
      background .22s ease,
      color .22s ease,
      border-color .22s ease;
    pointer-events: all;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }

  .nav-rail__sheet-layout--horizontal {
    display: none;
  }

  .nav-rail__sheet-layout--vertical {
    display: block;
  }

  .nav-rail__sheet-body {
    padding:
      0
      0
      max(12px, env(safe-area-inset-bottom, 0px))
      0;
  }

  .nav-rail__sheet-layout--horizontal,
  .nav-rail__sheet-layout--vertical {
    width: 100%;
  }

  @media (orientation: landscape) {
    .nav-rail__sheet {
      left: 0;
      right: 0;
      bottom: 0;
      width: auto;
      max-width: none;
      background: transparent;
      border: 0;
      box-shadow: none;
      border-radius: 0;
      padding:
        0
        max(10px, env(safe-area-inset-right, 0px))
        max(10px, env(safe-area-inset-bottom, 0px))
        max(10px, env(safe-area-inset-left, 0px));
    }

    .nav-rail__sheet.is-open {
      border-radius: 0;
    }

    .theme-dark .nav-rail__sheet,
    body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet {
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .nav-rail__sheet-body {
      padding: 0;
    }

    .nav-rail__sheet-layout--horizontal {
      display: block;
    }

    .nav-rail__sheet-layout--vertical {
      display: none;
    }
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet {
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    max-width: min(100%, 960px);
    margin-inline: auto;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster,
  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 5px 3px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--card) 95%, rgba(255,255,255,.22));
    box-shadow:
      0 20px 24px rgba(15, 23, 42, .06),
      inset 0 1px 0 rgba(255,255,255,.35);
  }

  .theme-dark .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster,
  .theme-dark .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-search,
  body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster,
  body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-search {
    background: color-mix(in srgb, var(--card) 82%, rgba(17,24,39,.42));
    box-shadow:
      0 12px 28px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.06);
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 5px;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__item {
    flex: 1 1;
    min-width: 0;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__btn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-search,
  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-close {
    flex: 0 0 auto;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-close {
    width: 48px;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__label {
    opacity: 1;
    transform: none;
  }

  .nav-rail__sheet-layout--horizontal .nav-rail__ios-wrap--sheet .nav-rail__ios-search .nav-rail__label {
    display: none;
  }

  @media (orientation: portrait) {
    .theme-dark .nav-rail__sheet,
    body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet {
      background: var(--bg);
      border-top-color: var(--border);
      box-shadow: 0 -12px 32px rgba(0,0,0,.28);
    }
  }

  .nav-rail__sheet-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding:
      
      max(12px, env(safe-area-inset-right, 0px))
      0
      max(12px, env(safe-area-inset-left, 0px));
  }

  .nav-rail__sheet-head {
    display: grid; grid-template-columns: 36px 1fr 36px;
    align-items: center; grid-gap: 8px; gap: 8px; padding: 6px 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-rail__sheet-title { text-align: center; font-weight: 700; }

  .nav-rail__sheet-close {
    width: 36px; height: 36px; 
    border-radius: 9px;
    
    border: 0;
    
    background: color-mix(in srgb, var(--card) 95%, rgba(255,255,255,.22));
    color: var(--fg);
    display: inline-flex; align-items: center; justify-content: center;
  }

  .theme-dark .nav-rail__sheet-close {
        border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--card) 92%, rgba(17,24,39,.42));
  }

  body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet-close {
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--card) 92%, rgba(17,24,39,.42));
  }

  .nav-rail__sheet-close--inline {
    width: 100%;
    height: 100%;
    min-height: 56px;
    border-radius: 20px;
    cursor: pointer;
  }

  .nav-rail__sheet-close--top {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
  }

  .theme-dark .nav-rail__sheet-close--top,
  body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet-close--top {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-rail__sheet-list {
    overflow-y: auto;
    
    display: grid;
    grid-auto-rows: minmax(44px, auto);
    
    
  }

  .nav-rail__sheet-list--rail {
    overflow-y: auto;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(54px, auto);
    gap: 0;
    justify-items: stretch;
  }

  .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:first-child .nav-rail__btn,
  .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:first-child .nav-rail__btn--sheet-row {
    border-top: 1px solid var(--border);
  }

  .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .14s ease-out, transform .18s cubic-bezier(.22, 1, .36, 1);
  }

  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(1) { transition-delay: 0ms; }
  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(2) { transition-delay: 18ms; }
  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(3) { transition-delay: 36ms; }
  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(4) { transition-delay: 54ms; }
  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(5) { transition-delay: 72ms; }
  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(6) { transition-delay: 90ms; }
  .nav-rail__sheet.is-open .nav-rail__sheet-list--rail > .nav-rail__sheet-item--rail:nth-child(7) { transition-delay: 108ms; }

  .nav-rail__sheet-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px 12px;
    
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--fg);
    font-size: 15px;
    background-image: none !important;
    cursor: pointer;
  }

  .nav-rail__sheet-item--compact {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav-rail__sheet-item--rail {
    padding: 0;
    background: transparent;
    border: 0;
    width: 100%;
  }

  .nav-rail__sheet-item--rail .nav-rail__item {
    width: 100%;
    padding: 0;
  }

  .nav-rail__sheet-item--rail .nav-rail__item a,
  .nav-rail__sheet-item--rail .nav-rail__item button {
    text-decoration: none;
  }

  .nav-rail__sheet-item--rail .nav-rail__btn,
  .nav-rail__btn--sheet-row {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding:
      12px
      max(12px, env(safe-area-inset-right, 0px))
      12px
      max(12px, env(safe-area-inset-left, 0px));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    border-radius: 0 !important;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }

  .theme-dark .nav-rail__sheet-item--rail .nav-rail__btn,
  .theme-dark .nav-rail__btn--sheet-row {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
  }

  body.needs-mobile-nav-dark .nav-rail__sheet-item--rail .nav-rail__btn,
  body.needs-mobile-nav-dark .nav-rail__btn--sheet-row {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
  }

  .nav-rail__sheet-item--rail .nav-rail__icon,
  .nav-rail__btn--sheet-row .nav-rail__icon {
    margin-left: 0;
    font-size: 20px;
    flex: 0 0 24px;
    display: inline-flex;
    justify-content: center;
    justify-self: start;
  }

  .nav-rail__sheet-item--rail .nav-rail__label,
  .nav-rail__btn--sheet-row .nav-rail__label {
    opacity: 1;
    transform: none;
    display: block;
    max-width: none;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
            hyphens: none;
    font-size: 15px;
    line-height: 1.2;
    color: var(--muted);
    flex: 1 1 auto;
  }

  .nav-rail__sheet-item--rail .nav-rail__item.is-active .nav-rail__btn,
  .nav-rail__btn--sheet-row:focus-visible,
  .nav-rail__sheet-item--rail .nav-rail__btn:hover {
    background: rgba(220,170,46,.10);
    background: var(--accent-tint-hover);
    box-shadow: inset 3px 0 0 #dcaa2e;
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .nav-rail__sheet-item--rail .nav-rail__item.is-active .nav-rail__label,
  .nav-rail__sheet-item--rail .nav-rail__item.is-active .nav-rail__icon {
    color: #dcaa2e;
    color: var(--accent);
  }

  .nav-rail__sheet-item--compact:hover,
  .nav-rail__sheet-item--compact:active {
    background: transparent !important;
    box-shadow: none;
    border-color: transparent;
  }

  .nav-rail__sheet-item--compact .nav-rail__item {
    width: 100%;
    padding: 0;
  }

  .nav-rail__sheet-item--compact .nav-rail__btn {
    min-height: 64px;
    height: auto;
    margin: 0;
    padding: 8px 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--card) 95%, rgba(255,255,255,.22));
    box-shadow:
      0 12px 24px rgba(15, 23, 42, .12),
      inset 0 1px 0 rgba(255,255,255,.35);
  }

  .theme-dark .nav-rail__sheet-item--compact .nav-rail__btn,
  body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet-item--compact .nav-rail__btn {
    background: color-mix(in srgb, var(--card) 92%, rgba(17,24,39,.42));
    box-shadow:
      0 12px 24px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.06);
  }

  .nav-rail__sheet-item--compact .nav-rail__icon {
    justify-self: center;
    margin-left: 0;
    font-size: 21px;
  }

  .nav-rail__sheet-item--compact .nav-rail__label {
    opacity: 1;
    transform: none;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
            hyphens: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
  }

  .nav-rail__sheet-item--close {
    display: block;
  }

  .nav-rail__sheet-item--close .nav-rail__sheet-close--inline {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--card) 95%, rgba(255,255,255,.22));
    box-shadow:
      0 12px 24px rgba(15, 23, 42, .12),
      inset 0 1px 0 rgba(255,255,255,.35);
  }

  .theme-dark .nav-rail__sheet-item--close .nav-rail__sheet-close--inline,
  body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet-item--close .nav-rail__sheet-close--inline {
    background: color-mix(in srgb, var(--card) 92%, rgba(17,24,39,.42));
    box-shadow:
      0 12px 24px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.06);
  }

  .nav-rail__sheet-item > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


@media (hover: hover) {
  .nav-rail__sheet-item {
    transition:
      background 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease;
  }

  .nav-rail__sheet-item:hover {
    background: linear-gradient(
      0deg,
      color-mix(in srgb, #111 4%, transparent),
      color-mix(in srgb, #111 4%, transparent)
    ), var(--card)!important;
    background: linear-gradient(
      0deg,
      color-mix(in srgb, var(--fg, #111) 4%, transparent),
      color-mix(in srgb, var(--fg, #111) 4%, transparent)
    ), var(--card)!important;

    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    border-color: color-mix(
      in srgb,
      #dcaa2e 40%,
      transparent
    );
    border-color: color-mix(
      in srgb,
      var(--accent, #dcaa2e) 40%,
      transparent
    );
  }

  .nav-rail__sheet-item:active {
    background: linear-gradient(
      0deg,
      color-mix(in srgb, #111 8%, transparent),
      color-mix(in srgb, #111 8%, transparent)
    ), var(--card)!important;
    background: linear-gradient(
      0deg,
      color-mix(in srgb, var(--fg, #111) 8%, transparent),
      color-mix(in srgb, var(--fg, #111) 8%, transparent)
    ), var(--card)!important;

    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }
}


@media (orientation: landscape) {body:has(.nav-rail.is-mobile) .nav-rail__sheet-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:has(.nav-rail.is-mobile) .nav-rail__sheet-list--compact {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}}


.nav-rail__sheet-close {
  order: 2; 
  cursor: pointer;
}

.nav-rail__sheet-title {
  order: 1; 
}

.nav-rail__sheet-title.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-rail__sheet-spacer {
  order: 0; 
}



body:has(.nav-rail.is-rail) #nav-rail-portal-host {
  display: none;
}

@media (orientation: landscape) {
  body:has(.nav-rail.is-mobile) .nav-rail__sheet-item {
    padding: 12px;
  }

  body:has(.nav-rail.is-mobile) .nav-rail__sheet-item--compact {
    padding: 0;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (hover: none) {
  body:has(.nav-rail.is-mobile) .nav-rail__sheet-item {
    justify-content: center;
  }

  body:has(.nav-rail.is-mobile) .nav-rail__sheet-head {
    padding-inline: env(safe-area-inset-left);
  }

  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster,
  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-search
  
   {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 5px 3px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--card) 95%, rgba(255,255,255,.22));
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow:
      0 20px 24px rgba(15, 23, 42, .06),
      inset 0 1px 0 rgba(255,255,255,.35);
  }

  

  .theme-dark body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster,
  .theme-dark body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-search
  
  {
    background: color-mix(in srgb, var(--card) 82%, rgba(17,24,39,.42));
    box-shadow:
      0 12px 28px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.06);
  }

  body.needs-mobile-nav-dark:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster,
  body.needs-mobile-nav-dark:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-search
  {
    background: color-mix(in srgb, var(--card) 82%, rgba(17,24,39,.42));
    box-shadow:
      0 12px 28px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.06);
  }

  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-cluster {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 5px;
  }

  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-search
  
  {
    flex: 0 0 auto;
  }

  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__ios-close {
    width: 48px;
  }

  body:has(.nav-rail.is-mobile) .nav-rail__ios-wrap--sheet .nav-rail__label {
    opacity: 1;
    transform: none;
  }

}






.contact-modal__backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  box-sizing: border-box;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  overflow-y: auto;

  display: grid;
  place-items: center;

  background:
    radial-gradient(
      120% 80% at 50% 30%,
      rgba(0,0,0,.25),
      rgba(0,0,0,.55)
    );

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

  z-index: 2147483647;
}


.contact-modal {
  width: min(100%, 320px);
  padding: 14px;

  background: var(--card);
  color: var(--fg);

  border-radius: 16px;
  border: 1px solid var(--border);

  box-shadow:
    0 10px 40px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.04) inset;

  animation: contactModalIn .22s ease;
}

.contact-modal--alerts {
  max-height: min(84dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-modal--day-entries {
  width: min(100%, 520px);
}

.contact-modal--alerts .contact-modal__list {
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}

.contact-modal.contact-modal--alerts .contact-modal__item {
  border: none;
}

.stats-day-modal__item {
  
  justify-content: space-between;
  text-align: left;
}

.contact-modal--day-entries .contact-modal__item.stats-day-modal__item--static {
  cursor: default;
}

.contact-modal--day-entries .stats-day-modal__item--static:hover {
  background: var(--card);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.contact-modal--day-entries .stats-day-modal__item--static:active {
  transform: none;
}

.stats-day-modal__item--empty {
  justify-content: flex-start;
}

.stats-day-modal__copy {
  min-width: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.stats-day-modal__copy strong,
.stats-day-modal__copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stats-day-modal__copy span {
  font-size: 12px;
  color: var(--muted);
}

.stats-day-modal__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.stats-day-modal__icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 1;
}


.contact-modal__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;

  font-weight: 600;
  font-size: 15px;

  margin-bottom: 10px;
}


.contact-modal__head button {
  width: 34px;
  height: 34px;

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

  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);

  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.contact-modal__head button:hover {
  background: rgba(220,170,46,.10);
  background: var(--accent-tint-hover);
  color: #dcaa2e;
  color: var(--accent);
  border-color: rgba(220,170,46,.35);
  border-color: var(--accent-ring);
}

.contact-modal__head button:active {
  box-shadow: 0 0 0 2px rgba(220,170,46,.35) inset;
  box-shadow: 0 0 0 2px var(--accent-ring) inset;
}

.contact-modal__head button:focus {
  outline: none;
}

.contact-modal__head button:focus-visible {
  box-shadow:
    0 0 0 2px rgba(220,170,46,.35),
    0 0 0 4px rgba(0,0,0,.15);
  box-shadow:
    0 0 0 2px var(--accent-ring),
    0 0 0 4px rgba(0,0,0,.15);
  border-color: #dcaa2e;
  border-color: var(--accent);
}


.contact-modal__list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}


.contact-modal__item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px;
  border-radius: 12px;

  text-decoration: none;
  color: inherit;

  border: 1px solid var(--border);
  background: var(--card);

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



.contact-modal__item:hover {
  background:
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--fg) 4%, transparent),
      color-mix(in srgb, var(--fg) 4%, transparent)
    ),
    var(--card);

  border-color: rgba(220,170,46,.35);

  border-color: var(--accent-ring);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.contact-modal__item:active {
  transform: translateY(1px);
}


.contact-modal__item .mdi {
  font-size: 20px;
  opacity: .9;
}



:root:not(.theme-dark) .contact-modal__item {
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}


:root:not(.theme-dark) .contact-modal__item:hover {
  background: rgba(0,0,0,.03);
}



.theme-dark .contact-modal__backdrop {
  background:
    radial-gradient(
      120% 80% at 50% 30%,
      rgba(0,0,0,.35),
      rgba(0,0,0,.75)
    );
}

.theme-dark .contact-modal {
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06) inset;
}




@keyframes contactModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.contact-modal__intro {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 6px 2px 12px;
}

.contact-modal__intro strong {
  color: var(--fg);
  font-weight: 600;
}

.contact-modal__note {
  opacity: .85;
}




.app-grid:has(.nav-rail.is-mobile) .rail-wrap {
  display: none;
}


@supports not (-webkit-touch-callout: none) {
  @media (orientation: landscape) and (pointer: coarse) and (hover: none) {
    .nav-rail__sheet {
      background: color-mix(in srgb, #fff 92%, transparent);
      background: color-mix(in srgb, var(--card-bg, #fff) 92%, transparent);
      border-top: 1px solid color-mix(in srgb, #e5e7eb 70%, transparent);
      border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
      box-shadow: 0 -8px 24px rgba(0,0,0,.06), 0 -16px 48px rgba(0,0,0,.08);
    }

    .theme-dark .nav-rail__sheet {
      background: color-mix(in srgb, rgb(20 20 22) 92%, transparent);
    }

    body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail__sheet {
      background: color-mix(in srgb, rgb(20 20 22) 92%, transparent);
    }
  }
}



.tabs-bar {
  
  position: sticky;
  
  z-index: 40;
  display: flex;
  align-items: center;           
  justify-content: flex-start;   
  flex-wrap: nowrap;             
  
  --g: clamp(2px, 4vw, 10px);   
  gap: var(--g);       

 
 
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
box-sizing: border-box;
}

.app-shell .tabs-bar * {
    -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  border-radius: 6px 6px 0 0;
  transition: background .2s, color .2s;
}
  
a.tab-btn {
    border-bottom: 2px solid transparent;

}

.tab-btn {
  background: rgba(203, 195, 173, 0.051);
}

.theme-dark .tab-btn {
background: rgba(203, 195, 173, 0.015);
}


.tab-btn:hover {
  background: rgba(221, 171, 46, 0.08);
    border-bottom: 2px solid rgb(220, 170, 46, 0.5);
  color: #111;
}
.tab-btn.is-active {
  border-bottom: 2px solid #dcaa2e;
  color: #dcaa2e;
  background: rgba(221, 171, 46, 0.1);
  font-weight: 600;
}

.tab-btn.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}





.theme-dark .tabs-bar {
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}
.theme-dark .tab-btn {
  color: #bbb;
}
.theme-dark .tab-btn:hover {
  background: #2a2a2a;
  color: #fff;
}
.theme-dark .tab-btn.is-active {
  border-bottom: 2px solid #dcaa2e;
  color: #dcaa2e;
}

.theme-dark .tab-btn.is-disabled {
  opacity: 0.32;
}

.theme-dark .tabs-wrap {
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}





.tab-btn--icon {
  width: 40px; aspect-ratio: 1/1;
  display: grid; place-items: center;
  padding: 0; border-radius: 10px;
}




.tab-btn,
.tab-btn:hover,
.tab-btn:focus {
  text-decoration: none;
}

.tabs-hint-row {
  padding: 6px 12px;
  font-size: 12px;
  text-align: center;
  opacity: 0.75;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0)
  );
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  text-wrap: balance;
}




@supports (-webkit-touch-callout: none) {
  .page-shell:not(.hide-tabs-bar) .tabs-bar
  {
    justify-content: center;
  }
  .tabs-bar a.tab-btn, .tabs-bar .tab-btn.is-active {
    border-bottom: 0px;
    border-radius: 999px;
  }
  .page-shell .tabs-bar {
    padding: 10px 0px 10px 0px;
  }
 }



html {
  font-size: calc(16px * 1);
  font-size: calc(16px * var(--font-scale));
}

:root{
    --font-scale: 1;
    --rail-w: 84px;
  --tabs-total: 119px;
  --pad-sm: 30px;
  --pad-md: 60px;
  --pad-lg: 90px;
  --gap-y: 12px;
  --rail-offset: calc(
    var(--rail-w)
    - 90px) ;
  --topbar-content-h: 44px;
  --topbar-safe-offset: 0px;
  --topbar-h: calc(var(--topbar-content-h) + var(--topbar-safe-offset));
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

@media (pointer: coarse) {
  :root {
    --topbar-content-h: 45px;
  }
}


@supports (-webkit-touch-callout: none) {
  @media (not (display-mode: standalone)) and (pointer: coarse) and (orientation: landscape) {
    :root {
      --topbar-content-h: 45px;
    }
  }
}


@media (display-mode: standalone) and (pointer: coarse) {
  :root {
    --topbar-content-h: 45px;
  }
}
@media (orientation: portrait) and (pointer: coarse) {
  :root {
    --topbar-content-h: 48px;
    --topbar-safe-offset: var(--safe-top);
  }

  :root.entry-android {
    --topbar-safe-offset: 0px;
  }
}





.no-route-overflow {
  overflow-y: hidden;
}

.page-shell:has(.map-page),
.page-shell:has(.labs-content),
.page-shell:has(.tlc-wrap),
.page-shell:has(.community-content),
.page-shell:has(.lab-wrap):not(:has(.howto-content))
 {
  overflow: hidden !important;
}

@supports not selector(:has(*)) {
  .page-shell {
    overflow: auto;
  }
}

.page-shell :focus-visible {
  scroll-margin: 16px;
}



@media (max-width: 359px){
  :root{ --pad-sm:20px; --pad-md:36px; --pad-lg:60px; --gap-y:8px; }
}


@media (min-width: 360px){
  :root{ --pad-sm:24px; --pad-md:44px; --pad-lg:72px; --gap-y:10px; }
}


@media (min-width: 390px){
  :root{ --pad-sm:26px; --pad-md:48px; --pad-lg:80px; --gap-y:10px; }
}


@media (min-width: 414px){
  :root{ --pad-sm:28px; --pad-md:54px; --pad-lg:84px; --gap-y:12px; }
}


@media (min-width: 480px){
  :root{ --pad-sm:30px; --pad-md:60px; --pad-lg:90px; --gap-y:12px; }
}


@media (min-width: 768px){
  :root{ --pad-sm:36px; --pad-md:72px; --pad-lg:108px; --gap-y:14px; }
}


@media (min-width: 1024px){
  :root{ --pad-sm:40px; --pad-md:80px; --pad-lg:120px; --gap-y:16px; }
}


@media (min-width: 1280px){
  :root{ --pad-sm:44px; --pad-md:88px; --pad-lg:132px; --gap-y:18px; }
}


@media (min-width: 1440px){
  :root{ --pad-sm:48px; --pad-md:96px; --pad-lg:144px; --gap-y:20px; }
}





.app-shell{
  display:flex;
  flex-direction:column;
  min-height:100%;
  width:100%;
   height:100vh;
}


.app-grid{
  display:grid;
    grid-template-columns: 84px 1fr;

  flex: 1 1 auto;
  min-height:0;
  min-width:0;
  width:100%;
  position:relative;
  
}

.app-grid:has(.nav-rail.is-mobile){
  grid-template-columns: 1fr;
}


.rail-wrap{
    width: 84px;
    width: var(--rail-w);
  transition: width .72s cubic-bezier(.22,1,.36,1);
  will-change: width;
  
  z-index: 0;
  min-width: 0;
  
}
.page-shell{
  margin-left: calc(
    84px
    - 90px) ;
  margin-left: var(--rail-offset);
will-change: margin-left;
  transition: margin-left .72s cubic-bezier(.22,1,.36,1);
}


.page-shell{
  display:flex;
  flex-direction:column;
  height: 100%;
  min-height:0;
  min-width:0;
  grid-column: auto;
  background: var(--bg);

  
  
  box-sizing: border-box;

}
.app-grid.is-mobile .page-shell{
  grid-column: 1 / -1; 
}


.route-host{
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  
  overflow-x: hidden;
  overflow-y: auto;             
}
.app-grid.is-mobile .route-host{
  overflow: auto;                  
  -webkit-overflow-scrolling: touch;
}


#nav-rail-portal-host{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  
  height: auto;
  width: 100%;
  z-index: 2147483647;
  pointer-events: none;
}

  


body.lightbox-open #nav-rail-portal-host.mobile-only{
  display: none;
}

html.lightbox-open #nav-rail-portal-host,
body.lightbox-open #nav-rail-portal-host {
  display: none !important;
  pointer-events: none !important;
}

body.lightbox-open .global-topbar {
  display: none;
}

body.lightbox-open .page-shell {
  padding-top: 0;
}

@media (pointer: coarse) and (orientation: landscape) {
  body.lightbox-open .page-shell {
    padding-top: 0;
  }
}


#nav-rail-portal-host .nav-rail{
  position: static !important;
  display:flex; align-items:center; justify-content:space-around;
  width:100%;
   height:100%;
  pointer-events: auto;
}

#nav-rail-portal-host .nav-rail.is-mobile.is-ios-style {
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--nav-mobile-dock-bottom-offset, max(8px, env(safe-area-inset-bottom, 0px)));
  border-top: 0;
  
  background:
    radial-gradient(
      120% 165% at 50% 110%,
      color-mix(in srgb, #111 10%, transparent) 0%,
      color-mix(in srgb, #111 4%, transparent) 38%,
      transparent 72%
    );
  background:
    radial-gradient(
      120% 165% at 50% 110%,
      color-mix(in srgb, var(--fg, #111) 10%, transparent) 0%,
      color-mix(in srgb, var(--fg, #111) 4%, transparent) 38%,
      transparent 72%
    );
  
}

#nav-rail-portal-host .nav-rail.is-mobile.is-ios-style.is-collapsed {
  width: calc(calc(env(safe-area-inset-left, 0px) + 24px) + 48px + 24px);
  width: calc(var(--nav-mobile-dock-left-offset, calc(env(safe-area-inset-left, 0px) + 24px)) + 48px + 24px);
  max-width: calc(calc(env(safe-area-inset-left, 0px) + 24px) + 48px + 24px);
  max-width: calc(var(--nav-mobile-dock-left-offset, calc(env(safe-area-inset-left, 0px) + 24px)) + 48px + 24px);
  margin-inline: 0 auto;
  justify-content: flex-start;
}



#nav-rail-portal-host .nav-rail__list{
  display:flex; flex-direction:row; width:100dvh; height:100%;
  align-items:center; justify-content:space-around; margin:0; padding:0; gap:0;
}


 */

#nav-rail-portal-host .nav-rail__icon {
  transform: translateY(-0px); 
  margin-left: 0px!
}


#nav-rail-portal-host .nav-rail__item:first-child .nav-rail__icon {
  transform: none;
}




#nav-rail-portal-host .nav-rail {
  pointer-events: auto;
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%; height: 100%;
  
  
  
  
  
  
  padding-top: 0px; 
  
}

.theme-dark #nav-rail-portal-host .nav-rail.is-mobile.is-ios-style {
  background:
    radial-gradient(
      120% 165% at 50% 110%,
      rgba(255,255,255,.08) 0%,
      rgba(255,255,255,.035) 38%,
      transparent 72%
    );
  
}

body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail.is-mobile.is-ios-style {
  background:
    radial-gradient(
      120% 165% at 50% 110%,
      rgba(255,255,255,.08) 0%,
      rgba(255,255,255,.035) 38%,
      transparent 72%
    );
  box-shadow:
    0 16px 36px rgba(0,0,0,.24),
    0 6px 18px rgba(0,0,0,.14);
}



@media (display-mode: standalone) and (orientation: portrait)
{
  #nav-rail-portal-host .nav-rail {
    
    padding: 1em;
  }
}
@supports (-webkit-touch-callout: none) {
@media (display-mode: standalone) and (orientation: portrait)
{
    #nav-rail-portal-host .nav-rail {
      
      padding: 1em;
    }
  }
}




.theme-dark #nav-rail-portal-host .nav-rail {
  background: color-mix(in srgb, rgb(20 20 22) 01%, transparent);
  
  border: 0;
  
}

body.needs-mobile-nav-dark #nav-rail-portal-host {
  color-scheme: dark;
  --bg: #141414;
  --fg: #e4e4e6;
  --muted: #9b9b9f;
  --card: #1b1b1b;
  --border: #2a2a2a;
  --rail-bg: #181818;
  --rail-fg: #e4e4e6;
  --rail-border: #2a2a2a;
  --accent-tint-hover: rgba(220,170,46,.14);
  --accent-tint-active: rgba(220,170,46,.22);
  --accent-ring: rgba(220,170,46,.45);
}

body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail {
  background: color-mix(in srgb, rgb(20 20 22) 01%, transparent);
  border: 0;
}





#nav-rail-portal-host .nav-rail__list {
  display: flex; flex-direction: row;
  align-items: baseline; justify-content: space-around;
  gap: 0; width: 100%; height: 100%; margin: 0; padding: 0;
}
#nav-rail-portal-host .nav-rail__item {
  flex: 1 1 auto; min-width: 56px;
  display: flex; justify-content: center; align-items: center;
  padding: 0px;
}
#nav-rail-portal-host > nav > ul > li.nav-rail__item.nav-rail__toggle > button  {
  width: 87.5%;
}
#nav-rail-portal-host .nav-rail__btn {
  display: flex; align-items: center; justify-content: center;
  margin: 0px;
  width: 90%;
  height: 44px; min-width: 44px; padding: 0 8px; 
  border-radius: 26px;
}


#nav-rail-portal-host .nav-rail__icon {
  display: inline-block;
  line-height: 1;
}

#nav-rail-portal-host .nav-rail__item:first-child .nav-rail__icon {
  transform: none;
}


  #nav-rail-portal-host > nav > ul > li.nav-rail__item > a > .nav-rail__icon,
  #nav-rail-portal-host .nav-rail__icon {
    margin-left: 0;
  }



#nav-rail-portal-host .nav-rail__item.is-active .nav-rail__btn {
  
    background: rgba(220,170,46,.18);
    background: var(--accent-tint-hover, rgba(220,170,46,.18));
  box-shadow: 0 0 0 1px rgba(220,170,46,.35) inset;
  box-shadow: 0 0 0 1px var(--accent-ring, rgba(220,170,46,.35)) inset;
    
    color: var(--accent);
  font-weight: 600;
}







  


.page__background,
.substances-index-page,
.route-host {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, #f8f8fa 95%, transparent) 0%,
    color-mix(in srgb, #f8f8fa 90%, transparent) 70%,
    color-mix(in srgb, #f8f8fa 0%, transparent) 100%
  );
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--app-bg, #f8f8fa) 95%, transparent) 0%,
    color-mix(in srgb, var(--app-bg, #f8f8fa) 90%, transparent) 70%,
    color-mix(in srgb, var(--app-bg, #f8f8fa) 0%, transparent) 100%
  );
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}


#nav-rail-portal-host::before {
  content: "";
  position: absolute;
  inset: -1px 0 100%;
  
  background: radial-gradient(
    120% 200% at 50% 120%,
    rgba(255, 220, 130, 0.3) 0%,
    rgba(255, 180, 80, 0.15) 30%,
    rgba(255, 255, 255, 0) 100%
  );
  
  pointer-events: none;
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: 0.4;
  z-index: -1;
}


.theme-dark #nav-rail-portal-host::before {
  background: radial-gradient(
    140% 220% at 50% 120%,
    rgba(255, 160, 80, 0.25) 0%,
    rgba(255, 120, 50, 0.12) 35%,
    rgba(0, 0, 0, 0) 100%
  );
  mix-blend-mode: lighten;
  opacity: 0.3;
}

body.needs-mobile-nav-dark #nav-rail-portal-host::before {
  background: radial-gradient(
    140% 220% at 50% 120%,
    rgba(255, 160, 80, 0.25) 0%,
    rgba(255, 120, 50, 0.12) 35%,
    rgba(0, 0, 0, 0) 100%
  );
  mix-blend-mode: lighten;
  opacity: 0.3;
}




#nav-rail-portal-host::before{
  animation: glassBreath 7s cubic-bezier(.22,1,.36,1) infinite alternate;
}


#nav-rail-portal-host::after{
  content: "";
  position: absolute;
  inset: -40px 0 100%;
  pointer-events: none;
  z-index: -1;

  
  background:
    radial-gradient(120% 180% at 30% 120%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(120% 180% at 70% 120%, rgba(255,220,130,.18) 0%, rgba(255,220,130,0) 70%);
  filter: blur(14px) saturate(140%);
  mix-blend-mode: screen;

  
  animation:
    glassShimmer 9s cubic-bezier(.22,1,.36,1) infinite,
    glassPulse   6s ease-in-out infinite alternate;
}


.theme-dark #nav-rail-portal-host::after{
  background:
    radial-gradient(120% 180% at 30% 120%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(120% 180% at 70% 120%, rgba(255,160,80,.18) 0%, rgba(255,160,80,0) 70%);
  mix-blend-mode: lighten;
}

body.needs-mobile-nav-dark #nav-rail-portal-host::after{
  background:
    radial-gradient(120% 180% at 30% 120%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(120% 180% at 70% 120%, rgba(255,160,80,.18) 0%, rgba(255,160,80,0) 70%);
  mix-blend-mode: lighten;
}


@keyframes glassBreath{
  0%   { opacity:.32; filter: blur(14px) saturate(160%); }
  100% { opacity:.46; filter: blur(18px) saturate(185%); }
}
@keyframes glassShimmer{
  0%   { transform: translateX(-12%); }
  50%  { transform: translateX(12%);  }
  100% { transform: translateX(-12%); }
}
@keyframes glassPulse{
  0%   { opacity:.22; }
  100% { opacity:.38; }
}



.substancespage-root .page__content {
  overflow-y: visible !important;   
}

.substancespage-root #substance-left-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  
  -webkit-overflow-scrolling: touch;
}

.substancespage-root #substance-right-pane {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}







div:empty {
  user-select: none!important;
  -webkit-user-select: none!important;
}

.app-shell p,
.app-shell span,
.app-shell li,
.app-shell dt,
.app-shell dd,
.app-shell blockquote,
.app-shell pre,
.app-shell code,
.app-shell kbd,
.app-shell samp,
.app-shell small,
.app-shell strong,
.app-shell em,
.app-shell label,
.app-shell time,
.rx-hint {
  user-select: text !important;
  -webkit-user-select: text !important;
}


.list-item--tappable p,
.list-item--tappable span,
ons-list-item[tappable] p,
ons-list-item[tappable] span,
.em-host p, .em-host span,
.em-sheet p, .em-sheet span,
.em-card p, .em-card span,
[role="dialog"] p,
[role="dialog"] span {
  user-select: text !important;
  -webkit-user-select: text !important;
}


.app-shell , [role="button"], .app-shell .tabs-bar, .app-shell .nav-rail, .app-shell .nav-rail *, .global-topbar.toolbar.toolbar--pt * {
  user-select: none !important;
  -webkit-user-select: none !important;
}






 


@media (orientation: landscape) {
  .app-grid:has(.nav-rail.is-mobile) {

    

    .lab-search-row:not(.global-topbar .lab-search-row) {
      display: none !important;
    }

    .filters-search-section .searchbar-row {
      display: none !important;
    }

    .global-topbar.toolbar.toolbar--pt .lab-search-row {
      padding: 0;
      display: flex;
    }

    .global-topbar.toolbar.toolbar--pt .lab-search-input {
      padding-bottom: 0px;
      height: 25px;
      transform: translateY(-2px);
    }

    .route-host .lab-result-overlay {
      top: 0px !important;
    }

    .toolbar--pt__right .lab-search-bar {
      flex-wrap: nowrap !important;
      width: -webkit-max-content !important;
      border-radius: 8px;
    }

    .toolbar--pt__center .searchbar-row {
      flex-wrap: nowrap !important;
      width: -webkit-max-content;
      min-width: 250px;
      margin: 0px !important;
    }

    .toolbar--pt__center > div {
      height: -webkit-fill-available;
    }

    .toolbar--pt__center {
      align-content: center;
    }

    .toolbar--pt__right .lab-search-reset {
      padding: 1px 8px !important;
      align-content: center;
      justify-content: center;
    }

  }
}










.global-topbar.toolbar.toolbar--pt {
    

  position:  fixed;
  top: 0;
  z-index: 10002;
}

@media (pointer: coarse) and (orientation: portrait) {
  
}

.tabs-bar {
  
  position: sticky;
  padding: 7px 0px 0px 1em;
  
  
}

.app-shell {
  
  overflow: visible;
  position: static;
  
}


.rail-wrap{
  position: relative;
  height: auto;
}

.page-shell {
  box-sizing: border-box;
  position: relative; 
  
  overflow: hidden;
  
  
}


@media (pointer: coarse) and (display-mode: standalone) and (orientation: portrait) {
  .page-shell {
    position: fixed;
    
  }
}

.app-grid:has(.nav-rail.is-rail) .page-shell {
    
      
    border-left: 1px solid rgba(255, 255, 255, 0.061);
  box-shadow: -4px 0 4px -4px rgba(0,0,0,.06);
    
}





 .page-shell {
  padding-top: calc(calc(44px + 0px) + 0px);
  padding-top: calc(var(--topbar-h) + 0px);
}


@supports (-webkit-touch-callout: none) {
  @media (orientation: landscape) and (pointer: coarse) and (not (display-mode: standalone)) {
    html:not(.entry-ios) body:has(.nav-rail.is-mobile) .page-shell {
      padding-top: 44px;
    }
  }
}



@media (orientation: portrait) and (pointer: coarse) {
body:has(.nav-rail.is-mobile) .page-shell {
  padding-top: calc(44px + 0px);
  padding-top: var(--topbar-h);
    width: -webkit-fill-available;
    position: fixed;
}

body:has(.nav-rail.is-mobile) .global-topbar.toolbar.toolbar--pt {
  box-sizing: border-box;
  padding-top: 0px;
  padding-top: var(--topbar-safe-offset);
  min-height: calc(44px + 0px);
  min-height: var(--topbar-h);
  height: calc(44px + 0px);
  height: var(--topbar-h);
}

body:has(.nav-rail.is-mobile) .dialog.dialog--pt {
  top: calc(calc(44px + 0px) + 5px);
  top: calc(var(--topbar-h) + 5px);
}
}

.app-grid:has(.nav-rail.is-mobile) .page-shell 

html:not(.booted) .nav-rail,
html:not(.booted) .global-topbar,
html:not(.booted) .tabs-bar {
  visibility: hidden;
}


@media (prefers-reduced-motion: reduce){
  #nav-rail-portal-host::before,
  #nav-rail-portal-host::after{
    animation: none !important;
  }
}

body:has(.nav-rail.is-mobile) #nav-rail-portal-host {
  display: block;
}






#nav-rail-portal-host {
  display: none;
}

body:has(.nav-rail.is-mobile) #nav-rail-portal-host {
  display: block;
  height: auto;
  min-height: env(safe-area-inset-bottom, 0px);
  overflow: visible;
}



.page-shell:focus,
.page-shell:focus-visible,
.nav-rail:focus,
.nav-rail:focus-visible,
.rail-wrap *:focus,
.rail-wrap *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}




@supports (-webkit-touch-callout: none) {
  @media (pointer: coarse) and (orientation: portrait) and (not (display-mode: standalone)) {
    :root.entry-ios #nav-rail-portal-host .nav-rail {
      
      padding: 1em;
    }

  }
}



@supports (-webkit-touch-callout: none) {
  @media (pointer: coarse)
    and (orientation: landscape)
    and (min-width: 1024px)
    and (min-height: 700px)
    and (not (display-mode: standalone)) {

    :root.entry-ios body:has(.nav-rail.is-mobile) .page-shell {
      padding-top: 52px !important; 
    }

    :root.entry-ios .global-topbar.toolbar.toolbar--pt {
      padding-top: 20px;
      height: 64px;
    }

    :root.entry-ios .dialog.dialog--pt {
      top: 70px;
    }

    :root.entry-ios .tabs-bar {
      padding: 20px 0 0 1em;
    }

    :root.entry-ios .pill-compare-modal.is-mobile-nav {
      padding-top: 12px;
    }

    :root.entry-ios .tabs-hint-row {
      padding: 2em 0 0px;
    }

  }
}














@supports not (-webkit-touch-callout: none) {

#nav-rail-portal-host .nav-rail:not(.is-ios-style) {
  pointer-events: auto;
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%; height: 100%;
  
  background: color-mix(in srgb, #fff 92%, transparent);
  background: color-mix(in srgb, var(--card-bg, #fff) 92%, transparent);
  
  border-top: 1px solid color-mix(in srgb, #e5e7eb 70%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
  box-shadow: 0 -8px 24px rgba(0,0,0,.06), 0 -16px 48px rgba(0,0,0,.08);
  
  padding: 5px 0px;
  
}

#nav-rail-portal-host .nav-rail.is-mobile.is-hidden {
  display: none !important;
  pointer-events: none;
}

.theme-dark #nav-rail-portal-host .nav-rail:not(.is-ios-style) {
  background: color-mix(in srgb, rgb(20 20 22) 92%, transparent);
}

body.needs-mobile-nav-dark #nav-rail-portal-host .nav-rail:not(.is-ios-style) {
  background: color-mix(in srgb, rgb(20 20 22) 92%, transparent);
}

#nav-rail-portal-host .nav-rail:not(.is-ios-style) .nav-rail__item.is-active .nav-rail__btn {
  background: none;
  box-shadow: none;
}


}



.page-view {
  animation: pageIn 0.28s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.page-view.back {
  animation: pageBack 0.25s cubic-bezier(.22,.61,.36,1);
}

@keyframes pageBack {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@media (prefers-reduced-motion: reduce) {
  .page-view {
    animation: none;
  }
}



@keyframes jenkemWobble {
  0% {
    transform: translate3d(-2px,1px,0) scale(1.015);
    filter: blur(0.9px) saturate(1.25) hue-rotate(18deg) contrast(1.06);
  }
  25% {
    transform: translate3d(1px,-3px,0) scale(1.035);
    filter: blur(1.6px) saturate(1.45) hue-rotate(-32deg) contrast(1.14);
  }
  50% {
    transform: translate3d(3px,2px,0) scale(1.02);
    filter: blur(1.2px) saturate(1.3) hue-rotate(28deg) contrast(1.1);
  }
  75% {
    transform: translate3d(-3px,-1px,0) scale(1.04);
    filter: blur(1.8px) saturate(1.55) hue-rotate(-18deg) contrast(1.16);
  }
  100% {
    transform: translate3d(-2px,1px,0) scale(1.015);
    filter: blur(0.9px) saturate(1.25) hue-rotate(18deg) contrast(1.06);
  }
}


html.jenkem-vision {
  position: relative;
  --jenkem-delay: 3s;     
  --jenkem-warmup: 6s;    
}


html.jenkem-vision body > * {
  filter: none;
  transform: none;
}


.jenkem-vision::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.025) 0 1px,
      rgba(0,0,0,0.04) 1px 2px
    ),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.06), transparent 50%);

  mix-blend-mode: overlay;
  opacity: 0;

  animation:
    jenkemNoise 180ms infinite steps(2,end),
    jenkemRoll 6s infinite linear,
    jenkemWarmup var(--jenkem-warmup) ease-out forwards;

  animation-delay:
    var(--jenkem-delay),
    var(--jenkem-delay),
    var(--jenkem-delay);

  animation-fill-mode: backwards;
}

@keyframes jenkemRoll {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 0 200px, 0 0, 0 0; }
}


html.jenkem-vision::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;

  background:
    linear-gradient(
      0deg,
      rgba(255,0,0,0.035),
      rgba(0,255,255,0.035)
    );

  mix-blend-mode: screen;
  opacity: 0;

  animation:
    jenkemRGB 1.6s infinite alternate ease-in-out,
    jenkemWarmup var(--jenkem-warmup) ease-out forwards;

  animation-delay:
    var(--jenkem-delay),
    var(--jenkem-delay);

  animation-fill-mode: backwards;
}

@keyframes jenkemRGB {
  0%   { transform: translate3d(-1px,0,0); opacity: .35; }
  50%  { transform: translate3d(1px,-1px,0); opacity: .55; }
  100% { transform: translate3d(0,1px,0); opacity: .4; }
}


html.jenkem-vision body::before {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 9998;

  background:
    radial-gradient(circle at 25% 35%, rgba(255,0,120,0.06), transparent 55%),
    radial-gradient(circle at 65% 30%, rgba(0,180,255,0.06), transparent 58%),
    radial-gradient(circle at 45% 75%, rgba(120,255,120,0.05), transparent 60%);

  filter: blur(44px) saturate(1.25);
  mix-blend-mode: screen;
  opacity: 0;

  animation:
    jenkemBlobs 26s infinite alternate cubic-bezier(.45,0,.2,1),
    jenkemWarmup var(--jenkem-warmup) ease-out forwards;

  animation-delay:
    var(--jenkem-delay),
    var(--jenkem-delay);

  animation-fill-mode: backwards;
}

@keyframes jenkemBlobs {
  0%   { background-position: 30% 40%, 60% 35%, 45% 70%; }
  50%  { background-position: 40% 30%, 55% 45%, 50% 60%; }
  100% { background-position: 35% 45%, 50% 40%, 40% 65%; }
}


html.jenkem-vision body > * {
  animation: jenkemWobble 8s infinite cubic-bezier(.08,.02,.04,2);
  animation-delay: var(--jenkem-delay);
  animation-fill-mode: backwards;
  transform-origin: 50% 50%;
  will-change: transform, filter;
}


@keyframes jenkemMelt {
  0%   { filter: blur(.6px); transform: translateY(0); }
  50%  { filter: blur(1.4px); transform: translateY(1.5px); }
  100% { filter: blur(.6px); transform: translateY(0); }
}

html.jenkem-vision body
:is(p,h1,h2,h3,h4,h5,h6,li,span,strong,em,a) {
  animation:
    jenkemMelt 6s infinite linear,
    jenkemWobble 18s infinite linear;
  animation-delay:
    var(--jenkem-delay),
    var(--jenkem-delay);
  animation-fill-mode: backwards;
}


@keyframes jenkemShadow {
  from { text-shadow: none; }
  to {
    text-shadow:
      0 .6px 0 rgba(0,0,0,.25),
      0 1.2px 0 rgba(0,0,0,.18),
      0 2.4px 0 rgba(0,0,0,.12);
  }
}

html.jenkem-vision body
:is(p,h1,h2,h3,h4,h5,h6,li,span) {
  animation: jenkemShadow .01s linear forwards;
  animation-delay: var(--jenkem-delay);
}


@keyframes jenkemDrip {
  0%   { transform: skewY(0deg); }
  50%  { transform: skewY(.3deg); }
  100% { transform: skewY(0deg); }
}

html.jenkem-vision body :is(p,li) {
  animation:
    jenkemDrip 9s infinite ease-in-out,
    jenkemMelt 6s infinite linear,
    jenkemWobble 18s infinite linear;
  animation-delay:
    var(--jenkem-delay),
    var(--jenkem-delay),
    var(--jenkem-delay);
  animation-fill-mode: backwards;
}


@keyframes jenkemWarmup {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dp-ios-toast {
  position: fixed;
  left: 50%;
  right: auto;
  width: min(calc(100vw - 16px), 420px);
  box-sizing: border-box;
  padding: 10px 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,247,250,0.68));
  color: #111827;
  box-shadow:
    0 20px 42px rgba(15, 23, 42, 0.18),
    0 4px 16px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.55);
  backdrop-filter: saturate(1.8) blur(22px);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  transform: translate3d(-50%, -24px, 0) scale(0.965);
  opacity: 0;
  transition:
    top 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.28s ease;
  will-change: transform, opacity, top;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

.dp-ios-toast[data-position="corner"] {
  left: auto;
  right: 12px;
  transform: translate3d(0, -24px, 0) scale(0.965);
}

.dp-ios-toast[data-visible="1"] {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.dp-ios-toast[data-position="corner"][data-visible="1"] {
  transform: translate3d(0, 0, 0) scale(1);
}

.dp-ios-toast[data-closing="1"] {
  opacity: 0;
  transform: translate3d(-50%, -10px, 0) scale(0.985);
  filter: blur(1px);
  pointer-events: none;
}

.dp-ios-toast[data-position="corner"][data-closing="1"] {
  transform: translate3d(0, -10px, 0) scale(0.985);
}

.dp-ios-toast[data-interactive="1"]:active {
  transform: translate3d(-50%, 0, 0) scale(0.988);
}

.dp-ios-toast[data-position="corner"][data-interactive="1"]:active {
  transform: translate3d(0, 0, 0) scale(0.988);
}

.dp-ios-toast__shine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.55), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.16), transparent 45%);
  pointer-events: none;
}

.dp-ios-toast__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: -0.01em;
  color: rgba(55, 65, 81, 0.88);
  transform: translateZ(0);
}

.dp-ios-toast__icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
  flex: 0 0 auto;
}

.dp-ios-toast__app {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-ios-toast__time {
  flex: 0 0 auto;
  color: rgba(75, 85, 99, 0.76);
  font-weight: 600;
}

.dp-ios-toast__body {
  position: relative;
  z-index: 1;
  font: 600 15px/1.28 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: -0.016em;
  color: rgba(17, 24, 39, 0.96);
  text-wrap: balance;
  transform: translateZ(0);
}

.dp-ios-toast[data-variant="success"] {
  border-color: rgba(52, 199, 89, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244,249,245,0.8)),
    radial-gradient(circle at top left, rgba(52, 199, 89, 0.12), transparent 52%);
  box-shadow:
    0 20px 42px rgba(15, 23, 42, 0.16),
    0 4px 16px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.dp-ios-toast[data-variant="success"] .dp-ios-toast__meta {
  color: rgba(22, 101, 52, 0.82);
}

.dp-ios-toast[data-variant="success"] .dp-ios-toast__time {
  color: rgba(21, 128, 61, 0.6);
}

.dp-ios-toast[data-variant="success"] .dp-ios-toast__body {
  color: rgba(20, 83, 45, 0.96);
}

.dp-ios-toast[data-variant="success"] .dp-ios-toast__shine {
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.5), transparent 52%),
    linear-gradient(180deg, rgba(52, 199, 89, 0.08), transparent 45%);
}

.dp-ios-toast[data-platform="android"] {
  border-radius: 18px;
  border-color: rgba(255,255,255,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(244,246,248,0.84));
  box-shadow:
    0 14px 32px rgba(17, 24, 39, 0.18),
    0 4px 12px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.45);
  backdrop-filter: saturate(1.35) blur(16px);
  -webkit-backdrop-filter: saturate(1.35) blur(16px);
}

.dp-ios-toast[data-platform="android"] .dp-ios-toast__meta {
  color: rgba(31, 41, 55, 0.8);
}

.dp-ios-toast[data-platform="android"] .dp-ios-toast__body {
  color: rgba(17, 24, 39, 0.92);
}

html.theme-dark .dp-ios-toast[data-platform="android"],
.theme-dark .dp-ios-toast[data-platform="android"],
[data-theme="dark"] .dp-ios-toast[data-platform="android"] {
  background:
    linear-gradient(180deg, rgba(36, 41, 49, 0.9), rgba(22, 25, 31, 0.92));
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.32),
    0 5px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: saturate(1.15) blur(14px);
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
}

html.theme-dark .dp-ios-toast[data-platform="android"] .dp-ios-toast__shine,
.theme-dark .dp-ios-toast[data-platform="android"] .dp-ios-toast__shine,
[data-theme="dark"] .dp-ios-toast[data-platform="android"] .dp-ios-toast__shine {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 34%);
}

html.theme-dark .dp-ios-toast[data-variant="success"],
.theme-dark .dp-ios-toast[data-variant="success"],
[data-theme="dark"] .dp-ios-toast[data-variant="success"] {
  background:
    linear-gradient(180deg, rgba(29, 59, 39, 0.9), rgba(17, 33, 24, 0.94)),
    radial-gradient(circle at top left, rgba(74, 222, 128, 0.16), transparent 56%);
  border-color: rgba(74, 222, 128, 0.14);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 6px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

html.theme-dark .dp-ios-toast[data-variant="success"] .dp-ios-toast__meta,
.theme-dark .dp-ios-toast[data-variant="success"] .dp-ios-toast__meta,
[data-theme="dark"] .dp-ios-toast[data-variant="success"] .dp-ios-toast__meta {
  color: rgba(187, 247, 208, 0.8);
}

html.theme-dark .dp-ios-toast[data-variant="success"] .dp-ios-toast__time,
.theme-dark .dp-ios-toast[data-variant="success"] .dp-ios-toast__time,
[data-theme="dark"] .dp-ios-toast[data-variant="success"] .dp-ios-toast__time {
  color: rgba(134, 239, 172, 0.58);
}

html.theme-dark .dp-ios-toast[data-variant="success"] .dp-ios-toast__body,
.theme-dark .dp-ios-toast[data-variant="success"] .dp-ios-toast__body,
[data-theme="dark"] .dp-ios-toast[data-variant="success"] .dp-ios-toast__body {
  color: rgba(240, 253, 244, 0.94);
}

html.theme-dark .dp-ios-toast,
.theme-dark .dp-ios-toast,
[data-theme="dark"] .dp-ios-toast {
  background:
    linear-gradient(180deg, rgba(46, 54, 68, 0.76), rgba(22, 26, 34, 0.84)),
    radial-gradient(circle at top center, rgba(148, 163, 184, 0.14), transparent 58%);
  border-color: rgba(255,255,255,0.09);
  color: #f3f4f6;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.42),
    0 6px 18px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 -1px 0 rgba(255,255,255,0.03);
  backdrop-filter: saturate(1.45) blur(24px);
  -webkit-backdrop-filter: saturate(1.45) blur(24px);
  color-scheme: dark;
}

html.theme-dark .dp-ios-toast__shine,
.theme-dark .dp-ios-toast__shine,
[data-theme="dark"] .dp-ios-toast__shine {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02) 18%, transparent 42%);
}

html.theme-dark .dp-ios-toast__meta,
.theme-dark .dp-ios-toast__meta,
[data-theme="dark"] .dp-ios-toast__meta {
  color: rgba(241, 245, 249, 0.72);
}

html.theme-dark .dp-ios-toast__icon,
.theme-dark .dp-ios-toast__icon,
[data-theme="dark"] .dp-ios-toast__icon {
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 2px 10px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

html.theme-dark .dp-ios-toast__time,
.theme-dark .dp-ios-toast__time,
[data-theme="dark"] .dp-ios-toast__time {
  color: rgba(203, 213, 225, 0.54);
}

html.theme-dark .dp-ios-toast__body,
.theme-dark .dp-ios-toast__body,
[data-theme="dark"] .dp-ios-toast__body {
  color: rgba(248, 250, 252, 0.94);
}





.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;
}


.gp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  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-card.is-drogart .img-main {
  transform: rotate(180deg);
}

.gp-card.is-drogart:hover .img-main {
  transform: rotate(180deg) scale(1.05);
}

.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 0 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 {
  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);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s 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;
}

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





.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, 45vw) !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;
  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 {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}

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

.gp-skeleton-media::after,
.gp-skeleton-line::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 {
  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); }
  to { opacity: 1; transform: translateY(0); }
}



.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-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f3f3f3;
  border-radius: 8px;
}

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

.img-main.is-loaded {
  opacity: 1;
  transform: scale(1);
}

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

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

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

.img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f3f3f3;
  border-radius: 8px;
}
















.lab-tags-row {
  display: flex;
  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;
}

.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 {
  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: 10px;
  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-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: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--lp-text) / 0.58);
  cursor: pointer;
}

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



.lab-search-reset, .lab-search-camera {
  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-camera {
  color: var(--em-muted);
}

.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: var(--accent-tint-active);
  color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-ring) inset,
    0 6px 14px rgba(220,170,46,.12);
}

.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: var(--accent-tint-active);
  color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-ring) inset,
    0 6px 14px rgba(220,170,46,.12);
}

.lab-search-reset:hover, .lab-search-camera: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, .lab-search-camera: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, .theme-dark .lab-search-camera {
  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, .theme-dark .lab-search-camera:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.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__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
}

.gp-summaries__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.gp-summaries__title {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  margin-left: 12px;
}

.gp-summaries__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  display: inline-block;
  position: relative;
  top: -1px;
  transform: rotate(45deg) scale(1);
  transform-origin: 50% 50%;
  transition:
    transform 240ms cubic-bezier(.22, 1, .36, 1),
    opacity 180ms ease,
    top 240ms cubic-bezier(.22, 1, .36, 1);
  opacity: 0.8;
  flex: 0 0 auto;
}

.gp-summaries.is-open .gp-summaries__chevron {
  top: 0;
  transform: rotate(225deg) scale(1.08);
  opacity: 1;
}

.gp-summaries__toggle:hover .gp-summaries__chevron,
.gp-summaries__toggle:focus-visible .gp-summaries__chevron {
  opacity: 1;
}

.gp-summaries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  align-items: start;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 240ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.gp-summaries__grid.is-open {
  max-height: 2400px;
  opacity: 1;
  transform: translateY(0);
}

.gp-summary-card {
  cursor: pointer !important;
}

.gp-summary-card--search-result {
  border: 2px solid var(--accent);
  border-radius: 18px;
  overflow: clip;
}

.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);
}


.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);
  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%;
}


.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) {
  .lab-tags-row > *:nth-child(-n+3) {
    flex: 1 1 auto;
    min-width: 30%;
  }
}


@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 {
  background: rgba(255,215,130,0.6);
}

.theme-dark .lab-dropdown.active {
  background:  var(--accent-ring);
}



.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;
}}



.lab-result-overlay {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}


.lab-result-overlay {
  cursor: pointer;
  
  position: absolute;
  inset: 0;
  z-index: 9999;
  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;
  
  

  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: 100px;
}


.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: #fff !important;      
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}


.theme-dark .lab-result .labresult-top {
  background: #171617 !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;
}







.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: 0;
  z-index: 5;
  box-sizing: border-box;
  isolation: isolate;
}

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

.lab-photos-page .lab-search-shell::before {
  content: "";
  position: absolute;
  inset: 0 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%
  );
  
}

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

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

.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: 499px) {
  .lab-search-filters:not(.is-collapsible) {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}



.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-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-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);
}

@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: rgba(255,215,130,.35);
}

.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;
}

.searchbar-input-wrap {
  position: relative;
  width: 100%;
}

.searchbar-input {
  width: 100%;
  padding: 10px 42px 10px 12px;
  border-radius: 12px;
  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 > {
  text-wrap: nowrap!important;
}

.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: 50%;
  right: 10px;
  transform: translateY(-50%);
  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;
}

.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;
}


@media
  (orientation: landscape)
  and (pointer: coarse)
  and (hover: none)
  and (max-width: 900px)
  and (display-mode: browser) {

  .global-topbar {
    padding-inline: 1em;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height:500px){

.global-topbar:has(.lab-search-row, .searchbar-row)
.left h2 {
  display: block;
  min-width: 0;
  max-width: clamp(72px, 22vw, 180px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
}


.global-topbar.pt {
  background: var(--rail-bg);
  color: var(--fg);
  position: relative;
  height: 56px;
  height: var(--topbar-base, 56px);
  min-height: 56px;
  min-height: var(--topbar-base, 56px);
  box-shadow: 0 0 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  z-index: 20000;
}
.theme-dark .global-topbar.pt { box-shadow: 0 0 10px rgba(0,0,0,.45); }


.global-topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
}
.global-topbar .left img { display: block; }

.topbar-logo {
  height: auto;
  max-height: 32px;
  width: auto;
}
.topbar-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.topbar-home-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.topbar-home-btn .topbar-logo {
  display: block;
}

.global-topbar .left h2 {
  padding-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}



.global-topbar .right {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-right: 8px;
}


.topbar-btn {
  background: transparent;
  border: none;
  color: inherit;
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.topbar-btn:hover {
  background: var(--accent-tint-hover);
  color: var(--accent-strong);
}


.global-topbar .ons-icon,
.global-topbar .ons-icon > svg {
  vertical-align: middle;
  display: inline-block;
  position: relative;
  top: 0;
  color: inherit !important;           
  fill: currentColor !important;       
}


.global-topbar .mdi-share-variant-outline,
.global-topbar [icon="mdi-share-variant-outline"] {
  color: var(--fg) !important;
  fill: var(--fg) !important;
  top: 0;

  transform: translateY(1px);
}


.topbar-btn:hover .mdi-share-variant-outline {
  color: var(--accent-strong);
  fill: var(--accent-strong);
}

@media (max-width: 499px) {
  .global-topbar .right > .topbar-btn--theme,
  .global-topbar .right > .toolbar-button.topbar-btn--theme,
  .global-topbar .right > .toolbar-button--pt.topbar-btn--theme {
    display: none;
  }
}


.chip-toggle {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.1;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chip-toggle[aria-pressed="true"],
.chip-toggle.is-active {
  border-color: var(--accent-strong);
  background: var(--accent-tint-hover);
  font-weight: 700;
  color: var(--accent-strong);
}


.chip-toggle {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  border: 1px solid var(--border, #ccc);
  background: #fff;
  background: var(--card, #fff);
  color: #222;
  color: var(--fg, #222);
  font-weight: 500;
  cursor: pointer;
  line-height: 1.1;
  transition: background .15s, border-color .15s, color .15s;
}


.chip-toggle[aria-pressed="true"],
.chip-toggle.is-active {
  border-color: #caa648;
  border-color: var(--accent-strong, #caa648);
  background: rgba(255, 204, 102, 0.15);
  background: var(--accent-tint-hover, rgba(255, 204, 102, 0.15));
  font-weight: 700;
  color: #caa648;
  color: var(--accent-strong, #caa648);
}


.theme-dark .chip-toggle {
  background: #1d1d1d;
  border-color: #3a3a3a;
  color: #ccc;
}
.theme-dark .chip-toggle:hover {
  background: #2a2a2a;
}
.theme-dark .chip-toggle[aria-pressed="true"],
.theme-dark .chip-toggle.is-active {
  background: rgba(255, 204, 102, 0.25);
  border-color: #dcbf69;
  border-color: var(--accent-strong, #dcbf69);
  color: #dcbf69;
  color: var(--accent-strong, #dcbf69);
}



.dialog.dialog--pt {
  position: fixed !important;
  left: auto !important;
  width: auto !important;
  max-width: calc(100vw - 16px);
  z-index: 20000;
  box-sizing: border-box;
  animation: fadeIndialog .15s ease-out;
  
  right: 5cqw;
  transform: none;
}

@media (display-mode: standalone) and (orientation: portrait) {
.dialog.dialog--pt {
  top: 70px;
}
}



.dialog-container--pt {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 12px 16px;
  box-sizing: border-box;
}
.dialog__arrow { display: none !important; } 



.settings-dialog--medium { min-width: 260px; }
.settings-dialog--wide   { min-width: 280px; }

.settings-dialog__title {
  font-weight: 700;
  margin-bottom: 8px;
}


.settings-dialog__row {
  display: grid;
  grid-template-columns: minmax(0, 250px) auto;
  align-items: center;
  grid-column-gap: 12px;
  column-gap: 12px;
  grid-row-gap: 8px;
  row-gap: 8px;         
  padding: 8px 0;
  white-space: nowrap;  
}
.settings-dialog__row > span { 
  max-width: 250px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: start;
}
.settings-dialog__row--range > span {
  max-width: 200px;
}
.settings-dialog__row--sort-compact > span {
  max-width: 100px;
}


.settings-dialog__sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;      
  justify-content: flex-end;
}
.settings-dialog .range,
.settings-dialog .switch,
.settings-dialog__sort { justify-self: end; }

.settings-dialog .switch,
.settings-dialog .switch .switch__input,
.settings-dialog .switch .switch__toggle,
.settings-dialog .switch .switch__touch {
  cursor: pointer;
}

.settings-dialog .switch .switch__input:disabled + .switch__toggle,
.settings-dialog .switch .switch__input:disabled,
.settings-dialog .switch .switch__input:disabled ~ .switch__touch {
  cursor: default;
}



.lang-select {
  appearance: none;
  -webkit-appearance: none;

  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;

  padding: 6px 28px 6px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;

  cursor: pointer;
  min-width: 160px;
  max-width: 220px;

  
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}



.lang-select,
.lang-select option {
  font-family: inherit !important;
  font-size: 14px;
  font-weight: 500;
}

@supports (-webkit-touch-callout: none) {
  .lang-select {
    font-size: 16px; 
  }
}


.lang-select:hover {
  background-color: var(--accent-tint-hover);
  border-color: var(--accent-strong);
}

.lang-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
}


.theme-dark .lang-select {
  background: #1d1d1d;
  border-color: #3a3a3a;
  color: var(--fg);
  
}


.range__input.range--pt__input {
  background-image: linear-gradient(#ccc, #ccc); 
}



@media (max-width: 900px){
  .global-topbar .left img { height: clamp(28px, 4vw, 32px); }
  .global-topbar .left h2{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 420px){
  .topbar-btn { width: 32px; height: 32px; }
  .global-topbar .left img { height: 24px; }
  .global-topbar .left h2 { max-width: 42vw; }
}


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




.englishSwitch {
  margin-left: 45px;
}

.dialog-container--pt{
    
  width: fit-content !important;       
  inline-size: max-content !important; 

  display: inline-block !important;    
  max-width: calc(100vw - 16px) !important;  
  min-width: 260px;                    
  box-sizing: border-box;

  
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 12px 16px;
}


.dialog.dialog--pt { max-width: 100vw; width: auto !important; }


.settings-dialog__row{
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  grid-column-gap: 12px;
  column-gap: 12px;
  grid-row-gap: 8px;
  row-gap: 8px;
  white-space: nowrap;
}



.global-topbar .right,
.global-topbar .toolbar__right,
.global-topbar .toolbar--pt__right {
  margin-left: auto;                
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  gap: var(--tb-gap, 6px);
  padding-right: 8px;
  padding-right: var(--tb-pad-x, 8px);
  flex-shrink: 0;                   
}


.toolbar--pt__right,
.toolbar__right {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}


@media (max-width: 900px) {
  .global-topbar .right,
  .global-topbar .toolbar__right,
  .global-topbar .toolbar--pt__right {
    gap: 4px;
    padding-right: 6px;
  }
}







@media (orientation: landscape) and (pointer: coarse) and (max-height:500px)
{

.global-topbar:has(.searchbar-row)
.right.toolbar__right.toolbar--pt__right > div:nth-child(1) {
  flex-direction: row-reverse;
}

.global-topbar .searchbar-row, .global-topbar .lab-search-row {
    border-radius: 0px;
    max-width: 250px;
    min-width: 200px;
    display: flex;
    flex-wrap: nowrap;
    padding: 0px;
    text-align: right;
    
    align-items: center;
  }

  .global-topbar .lab-search-row {
    width: 100%;
    gap: 10px;
  }

    .global-topbar .lab-search-bar {
      display: flex;
      flex-wrap: nowrap;
      min-width: 0;
      flex: 1 1 auto;
      height: 60px;
      align-content: center;
    }

  @supports (-webkit-touch-callout: none) {
    .global-topbar .lab-search-bar {
      height: 35px;
      align-content: center;
    }
  }

  .global-topbar .lab-search-reset, .global-topbar .lab-search-camera {
        height: 33px;
    align-content: center;
  }

  .global-topbar .searchbar-input-wrap,
  .global-topbar .lab-search-input-wrap {
    min-width: 0;
    overflow: hidden;
  }

  .global-topbar .searchbar-input {
  
  
border: 0;
}



  .global-topbar .searchbar-center-placeholder,
  .global-topbar .lab-search-center-placeholder {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding-inline: 10px;
  }

  .global-topbar .searchbar-center-placeholder > span,
  .global-topbar .lab-search-center-placeholder > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }


}






.dialog.dialog--pt {
  position: fixed !important;
  top: 3em;
  
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

:root.entry-android .dialog.dialog--pt {
  top: 4em;
}





.global-topbar.toolbar--pt {
  background: var(--rail-bg);
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 8px rgba(0,0,0,.06);
}


.theme-dark .global-topbar.toolbar--pt {
  background: var(--rail-bg);
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 12px rgba(0,0,0,.55);
}


.global-topbar.toolbar--pt .toolbar--pt__left,
.global-topbar.toolbar--pt .toolbar__left,
.global-topbar.toolbar--pt .left {
  display: flex;
  align-items: center;
  gap: 12px;
  gap: var(--tb-gap-lh, 12px);
  padding-inline-start: 14px;
  padding-inline-start: var(--tb-pad-x, 14px);
}

.global-topbar.toolbar--pt .left img {
  height: clamp(28px, 4.2vw, 36px);
  display: block;
}

.global-topbar.toolbar--pt .left h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
 max-width: 100dvh;
}

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

.global-topbar.toolbar--pt .left h2 {
 max-width: 52vw;
 display: none;
}
}


.global-topbar.toolbar--pt .toolbar--pt__right,
.global-topbar.toolbar--pt .toolbar__right,
.global-topbar.toolbar--pt .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  gap: var(--tb-gap, 8px);
  padding-inline-end: 8px;
  padding-inline-end: var(--tb-pad-x, 8px);
  position: static !important;
  transform: none !important;
}


.global-topbar.toolbar--pt .toolbar-button,
.global-topbar.toolbar--pt .toolbar-button--pt,
.global-topbar.toolbar--pt .topbar-btn {
  color: var(--fg);
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  transition: background .18s ease, color .18s ease;
  outline: none;
}

.global-topbar.toolbar--pt .toolbar-button:hover,
.global-topbar.toolbar--pt .topbar-btn:hover {
  background: var(--accent-tint-hover);
  color: var(--accent-strong);
}

.global-topbar.toolbar--pt i.mdi,
.global-topbar.toolbar--pt [class*="mdi-"] {
  color: currentColor !important;
  fill: currentColor !important;
  vertical-align: middle;
}


.global-topbar.toolbar--pt .mdi-share-variant-outline,
.global-topbar.toolbar--pt [icon="mdi-share-variant-outline"] {
  color: var(--fg) !important;
  fill: currentColor !important;
  transform: translateY(1px);
}

.global-topbar.toolbar--pt .topbar-btn:hover .mdi-share-variant-outline {
  color: var(--accent-strong) !important;
}


.global-topbar.toolbar--pt .toolbar-button:focus-visible,
.global-topbar.toolbar--pt .toolbar-button--pt:focus-visible,
.global-topbar.toolbar--pt .topbar-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-ring);
}


.global-topbar.pt {
  background: var(--rail-bg);
  color: var(--fg);
  height: auto;
  min-height: 56px;
  min-height: var(--topbar-base, 56px);
  box-shadow: 0 0 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  z-index: 20000;
}
.theme-dark .global-topbar.pt { box-shadow: 0 0 10px rgba(0,0,0,.45); }


.global-topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
}
.global-topbar .left img { height: 35px; display: block; }
.global-topbar .left h2 {
  padding-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}


.global-topbar .right {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-right: 8px;
}


.topbar-btn {
  background: transparent;
  border: none;
  color: inherit;
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.topbar-btn:hover {
  background: var(--accent-tint-hover);
  color: var(--accent-strong);
}


.global-topbar .ons-icon,
.global-topbar .ons-icon > svg {
  vertical-align: middle;
  display: inline-block;
  position: relative;
  top: 0;
  color: inherit !important;           
  fill: currentColor !important;       
}


.global-topbar .mdi-share-variant-outline,
.global-topbar [icon="mdi-share-variant-outline"] {
  color: var(--fg) !important;
  fill: var(--fg) !important;
  top: 0;

  transform: translateY(1px);
}


.topbar-btn:hover .mdi-share-variant-outline {
  color: var(--accent-strong);
  fill: var(--accent-strong);
}


.chip-toggle {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.1;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chip-toggle[aria-pressed="true"],
.chip-toggle.is-active {
  border-color: var(--accent-strong);
  background: var(--accent-tint-hover);
  font-weight: 700;
  color: var(--accent-strong);
}


.chip-toggle {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  border: 1px solid var(--border, #ccc);
  background: #fff;
  background: var(--card, #fff);
  color: #222;
  color: var(--fg, #222);
  font-weight: 500;
  cursor: pointer;
  line-height: 1.1;
  transition: background .15s, border-color .15s, color .15s;
}


.chip-toggle[aria-pressed="true"],
.chip-toggle.is-active {
  border-color: #caa648;
  border-color: var(--accent-strong, #caa648);
  background: rgba(255, 204, 102, 0.15);
  background: var(--accent-tint-hover, rgba(255, 204, 102, 0.15));
  font-weight: 700;
  color: #caa648;
  color: var(--accent-strong, #caa648);
}


.theme-dark .chip-toggle {
  background: #1d1d1d;
  border-color: #3a3a3a;
  color: #ccc;
}
.theme-dark .chip-toggle:hover {
  background: #2a2a2a;
}
.theme-dark .chip-toggle[aria-pressed="true"],
.theme-dark .chip-toggle.is-active {
  background: rgba(255, 204, 102, 0.25);
  border-color: #dcbf69;
  border-color: var(--accent-strong, #dcbf69);
  color: #dcbf69;
  color: var(--accent-strong, #dcbf69);
}



.dialog.dialog--pt {
  position: fixed !important;
  left: auto !important;
  width: auto !important;
  max-width: calc(100vw - 16px);
  z-index: 20000;
  box-sizing: border-box;
  animation: fadeIndialog .15s ease-out;
  
  right: 5cqw;
  transform: none;
}

@media (display-mode: standalone) and (orientation: portrait) {
.dialog.dialog--pt {
  top: 70px;
}
}



.dialog-container--pt {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 12px 16px;
  box-sizing: border-box;
}
.dialog__arrow { display: none !important; } 



.settings-dialog--medium { min-width: 260px; }
.settings-dialog--wide   { min-width: 280px; }

.settings-dialog__title {
  font-weight: 700;
  margin-bottom: 8px;
}


.settings-dialog__row {
  display: grid;
  grid-template-columns: minmax(0, 250px) auto;
  align-items: center;
  grid-column-gap: 12px;
  column-gap: 12px;
  grid-row-gap: 8px;
  row-gap: 8px;         
  padding: 8px 0;
  white-space: nowrap;  
}
.settings-dialog__row > span { 
  max-width: 250px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: start;
}
.settings-dialog__row--range > span {
  max-width: 200px;
}
.settings-dialog__row--sort-compact > span {
  max-width: 100px;
}


.settings-dialog__sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;      
  justify-content: flex-end;
}
.settings-dialog .range,
.settings-dialog .switch,
.settings-dialog__sort { justify-self: end; }

.settings-dialog .switch,
.settings-dialog .switch .switch__input,
.settings-dialog .switch .switch__toggle,
.settings-dialog .switch .switch__touch {
  cursor: pointer;
}

.settings-dialog .switch .switch__input:disabled + .switch__toggle,
.settings-dialog .switch .switch__input:disabled,
.settings-dialog .switch .switch__input:disabled ~ .switch__touch {
  cursor: default;
}



.lang-select {
  appearance: none;
  -webkit-appearance: none;

  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;

  padding: 6px 28px 6px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;

  cursor: pointer;
  min-width: 160px;
  max-width: 220px;

  
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}



.lang-select,
.lang-select option {
  font-family: inherit !important;
  font-size: 14px;
  font-weight: 500;
}

@supports (-webkit-touch-callout: none) {
  .lang-select {
    font-size: 16px; 
  }
}


.lang-select:hover {
  background-color: var(--accent-tint-hover);
  border-color: var(--accent-strong);
}

.lang-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
}


.theme-dark .lang-select {
  background: #1d1d1d;
  border-color: #3a3a3a;
  color: var(--fg);
  
}


.range__input.range--pt__input {
  background-image: linear-gradient(#ccc, #ccc); 
}



@media (max-width: 900px){
  .global-topbar .left img { height: clamp(28px, 4vw, 32px); }
  .global-topbar .left h2{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 420px){
  .topbar-btn { width: 32px; height: 32px; }
  .global-topbar .left img { height: 24px; }
  .global-topbar .left h2 { max-width: 42vw; }
}


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




.englishSwitch {
  margin-left: 45px;
}

.dialog-container--pt{
    
  width: fit-content !important;       
  inline-size: max-content !important; 

  display: inline-block !important;    
  max-width: calc(100vw - 16px) !important;  
  min-width: 260px;                    
  box-sizing: border-box;

  
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 12px 16px;
}


.dialog.dialog--pt { max-width: 100vw; width: auto !important; }


.settings-dialog__row{
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  grid-column-gap: 12px;
  column-gap: 12px;
  grid-row-gap: 8px;
  row-gap: 8px;
  white-space: nowrap;
}



.global-topbar .right,
.global-topbar .toolbar__right,
.global-topbar .toolbar--pt__right {
  margin-left: auto;                
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  gap: var(--tb-gap, 6px);
  padding-right: 8px;
  padding-right: var(--tb-pad-x, 8px);
  flex-shrink: 0;                   
}


.toolbar--pt__right,
.toolbar__right {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}


@media (max-width: 900px) {
  .global-topbar .right,
  .global-topbar .toolbar__right,
  .global-topbar .toolbar--pt__right {
    gap: 4px;
    padding-right: 6px;
  }
}




.global-topbar.pt {
  padding-inline: 8px;
  padding-block: 0;
}


.global-topbar .left,
.global-topbar .toolbar__left,
.global-topbar .toolbar--pt__left{
  display: flex;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
  gap: var(--tb-gap-lh);
  padding-inline-start: var(--tb-pad-x);
  padding-inline-end: 0;
  margin: 0;
  width: auto;
  max-width: 100%
}

.global-topbar .left img{
  height: clamp(28px, 4.2vw, 36px);
  display: block;
}

.global-topbar .left h2{
  margin: 0;
  
  padding: 0;
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.global-topbar .right,
.global-topbar .toolbar__right,
.global-topbar .toolbar--pt__right{
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  padding-inline-end: var(--tb-pad-x);
  padding-inline-start: 8px;
  position: static !important; 
  transform: none !important;
}


.global-topbar .toolbar-button,
.global-topbar .toolbar-button--pt,
.global-topbar .topbar-btn{
  width: 36px;
  height: 36px;
  padding: 0;                 
  line-height: 1;             
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.global-topbar .toolbar-button i.mdi,
.global-topbar .topbar-btn i.mdi{
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(0);   
}

.global-topbar .topbar-btn__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.global-topbar .topbar-btn__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c63b2d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--card);
}

.global-topbar .global-topbar__hamburger {
  min-width: 44px;
  min-height: 44px;
}

.topbar-btn--status {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}

.topbar-btn--syncing .mdi,
.topbar-btn--syncing [class*="mdi-"] {
  animation: topbar-sync-spin 1.5s linear infinite;
  transform-origin: center;
}

@keyframes topbar-sync-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.global-topbar .mdi-share-variant-outline{
  color: var(--fg) !important;
  fill: currentColor !important;
}
.topbar-btn:hover .mdi-share-variant-outline{ color: var(--accent-strong); }



@media (max-width: 900px){
  .global-topbar .right{ gap: 6px; }
}
@media (max-width: 420px){
  .global-topbar .toolbar-button,
  .global-topbar .toolbar-button--pt,
  .global-topbar .topbar-btn{ width: 32px; height: 32px; }
  .global-topbar .global-topbar__hamburger{
    width: 44px;
    height: 44px;
  }
  .global-topbar .left h2{ max-width: 42vw; }
}

@media (pointer: coarse){
  .global-topbar .global-topbar__hamburger{
    width: 44px;
    height: 44px;
  }
}





.dialog-mask.dialog-mask--pt,
.dialog-mask.dialog-mask--pt.dialog-mask--top {
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(8px) saturate(1.6);
  -webkit-backdrop-filter: blur(8px) saturate(1.6);
  transition: background .25s ease, -webkit-backdrop-filter .25s ease;
  transition: backdrop-filter .25s ease, background .25s ease;
  transition: backdrop-filter .25s ease, background .25s ease, -webkit-backdrop-filter .25s ease;
  opacity: 1 !important;
  z-index: 1999;
}

.theme-dark .dialog-mask.dialog-mask--pt,
.theme-dark .dialog-mask.dialog-mask--pt.dialog-mask--top {
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}



.dialog.dialog--pt,
.dialog-container--pt {
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.8) ;
          backdrop-filter: blur(14px) saturate(1.8) ;
  
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.18) !important;
  color: var(--fg);
  border-radius: 12px;
}

.theme-dark .dialog.dialog--pt,
.theme-dark .dialog-container--pt {
  background: rgba(20,20,20,0.52) !important;
  backdrop-filter: blur(16px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55) !important;
  color: var(--fg);
}



.settings-dialog,
.settings-dialog--medium,
.settings-dialog--wide {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}



.theme-dark .switch--pt .switch__toggle {
  background: rgba(255,255,255,0.18) !important;
}

.switch--pt input:checked + .switch__toggle {
  background: #dcbf69 !important;
  background: var(--accent-strong, #dcbf69) !important;
  box-shadow: 0 0 0 2px #dcbf69 inset !important;
  box-shadow: 0 0 0 2px var(--accent-strong, #dcbf69) inset !important;
}

.theme-dark .switch--pt .switch__touch {
  opacity: 0.35 !important;
}

.theme-dark .switch--pt .switch__handle {
  background: var(--fg) !important;
}

.theme-dark .switch--pt input:checked + .switch__toggle .switch__handle {
  
    background: #f1f1f1 !important;
}

:checked+.switch--material__toggle>.switch--material__handle{
  background: #f1f1f1 !important;
}




.settings-dialog {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: 1fr;
}

@media (orientation: landscape) and (max-height: 500px) {
  .settings-dialog:has(.settings-dialog__row:nth-child(5)) {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .switch.switch--pt{
    zoom: 0.8;
  } 
    .settings-dialog .range{
    zoom: 0.8;
    width: 150px;
  } 
  .settings-dialog .switch, .settings-dialog .range {
  
  justify-self: right;
  }
  .englishSwitch {
  margin-left: 0px;
  }
}




.settings-dialog__title {
  grid-column: 1 / -1;
}


.settings-dialog__row {
  grid-column: auto;
}








.topbar-inline-tabs {
  display: flex;
  gap: 10px;
  margin-left: 14px;
}

.topbar-inline-tab {
  padding: 6px 10px;
  font-size: 13px;
  background: transparent;
  border: 0;
  color: var(--fg);
  border-bottom: 2px solid transparent;
}

.topbar-inline-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}









.global-topbar .dialog:not(.dialog--pt),
.global-topbar .dialog:not(.dialog--pt) * {
  animation: none !important;
  transition: none !important;
}


.global-topbar .mdi-account-outline::before, .global-topbar .mdi-dots-vertical::before, .global-topbar .mdi-menu::before, .global-topbar .mdi-weather-night::before, .global-topbar .mdi-white-balance-sunny::before {
    width: 36px!important;
    text-align: center!important;
}

.global-topbar .mdi.mdi-share-variant-outline {
    font-size: 24px;
    line-height: 1;
    text-align: left!important;
    width: 27px!important;
}






.topbar-a11y {
  position: fixed;
  top: 0;
  right: 0;
  height: 52px;
  display: flex;
  gap: 9px;
  padding-right: 12px;
  z-index: 10000000000;
}

.topbar-a11y button {
  width: 36px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
}

.topbar-a11y button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.topbar-visual {
  position: relative;
  z-index: 3;
}

.global-topbar .center {
  position: absolute;
  left: 50%;
  top: calc(0px + (48px / 2));
  top: calc(var(--topbar-safe-offset, 0px) + (var(--topbar-content-h, 48px) / 2));
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100vw - 160px), 420px);
  height: 100%;
  min-width: 0;
  pointer-events: none;
  z-index: 2;
}

.global-topbar .topbar-title-center {
  margin: 0;
  display: block;
  padding: 0;
  color: var(--fg);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.theme-dark .global-topbar .topbar-title-center {
  color: var(--fg);
}

.global-topbar .topbar-title-center {
  max-width: 100%;
}

@media (orientation: landscape) and (max-height: 499px) {
  .global-topbar .center,
  .global-topbar .toolbar__center,
  .global-topbar .toolbar--pt__center,
  .global-topbar .topbar-title-center {
    display: none !important;
  }
}

@media (max-width: 500px) {
  .global-topbar .center,
  .global-topbar .toolbar__center,
  .global-topbar .toolbar--pt__center {
    width: min(calc(100vw - 132px), 260px);
  }
}

.topbar-a11y-left {
  position: relative;
  z-index: 1;
}

.topbar-logo-a11y {
  display: inline-block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.settings-dialog [tabindex="-1"]:focus {
  outline: none !important;
  box-shadow: none !important;
}


#journal-profile-password-title {
  padding: 0 1em;
}





.pwa-hint-banner{
  position:fixed;
  right:32px;
  min-width:220px;
  width:max-content;
  z-index:9999;
  padding:10px 12px;
  border-radius:14px;
  box-sizing:border-box;
  display:flex;
  gap:10px;
  align-items:flex-start;
  font:13px/1.45 system-ui, sans-serif;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), filter .25s ease;
}

.theme-dark .pwa-hint-banner{
  background:rgba(0,0,0,.88);
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}
html:not(.theme-dark) .pwa-hint-banner{
  background:#fff;
  color:#111;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.pwa-hint-icons{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pwa-hint-icon{
  width:43px;
  height:43px;
  border-radius:4px;
  cursor:pointer;
}

.pwa-hint-icon--stealth{
  border-radius:6px;
}

.pwa-hint-title{
  font-weight:600;
  margin-bottom:2px;
}
.pwa-hint-subtitle{
  font-size:12px;
  opacity:.6;
  margin-bottom:4px;
}
.pwa-hint-msg{
  opacity:.86;
  margin-inline:auto;
  text-wrap:balance;
  text-align:left;
  -webkit-hyphens:auto;
          hyphens:auto;
  overflow-wrap:break-word;
}

.pwa-hint-btn{
  margin-top:0;
  padding:4px 10px;
  border-radius:7px;
  border:0;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.pwa-hint-actions{
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-hint-btn--help{
  padding: 4px 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pwa-hint-btn--help svg{
  display: block;
}



.theme-dark .pwa-hint-btn{
  background:#f5c852;
  color:#111;
}

html:not(.theme-dark) .pwa-hint-btn{
  background:#111;
  color:#fff;
}


.pwa-share-icon{
  width:14px;
  height:14px;
  vertical-align:middle;
  margin:0 2px;
  display:inline-block;
}

.theme-dark img[src$="/ios-share.svg"] {
  filter: invert(1) hue-rotate(180deg) brightness(1.05) saturate(0.8) contrast(1.05)!important;
}

#vh-probe,
#viewport-probe{
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

#vh-probe{ height: 100vh; }
#viewport-probe{ height: -webkit-fill-available; }

#preboot-overlay.inline {
  background: transparent;
  pointer-events: auto;
    transition: opacity .15s ease;
  opacity: 1;
}

html.preboot-active #drugspro-app-web {
  pointer-events: none !important;
}


.android-backdrop-kill,
.android-backdrop-kill * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


.android-backdrop-kill .em-frost,
.android-backdrop-kill .gtm-backdrop,
.android-backdrop-kill .em-animate-in,
.android-backdrop-kill .gtm-panel {
  animation: none !important;
}

.android-backdrop-kill .em-frost,
.android-backdrop-kill .em-sheet,
.android-backdrop-kill .em-animate-in,
.android-backdrop-kill .gtm-backdrop,
.android-backdrop-kill .gtm-panel,
.android-backdrop-kill .em-grid,
.android-backdrop-kill .em-tile-wrap {
  transform: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
}

.android-backdrop-kill .em-sheet-head {
  contain: none !important;
}

.android-backdrop-kill .em-frost,
.android-backdrop-kill .gtm-backdrop {
  background: rgba(255,255,255,.78) !important;
}

html.theme-dark.android-backdrop-kill .em-frost,
html.theme-dark.android-backdrop-kill .gtm-backdrop {
  background: rgba(12,15,20,.78) !important;
}





@keyframes glass-drift {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.05);
  }
}


#preboot-overlay > * {
  position: relative;
  z-index: 1;
}




body.rx-class-loading #preboot-overlay.inline {
  opacity: 1;
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  
  background: #ffffff;
  background: var(--bg, #fff);
  background-color: #ffffff;
  background-color: var(--bg, #fff);
  color: #111827;
  color: var(--fg, #111827);
  overflow: hidden;
  
  
}

#drugspro-app-web {
  overflow-y: hidden;
}







html, body {
  height: 100vh!important;
}


@supports (-webkit-touch-callout: none) {
  html, body {
    height: -webkit-fill-available;
  }
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  
  --safe-top-css: env(safe-area-inset-top);
  --safe-bottom-css: env(safe-area-inset-bottom);
}


.substancespage-shell, .experiences-view,
.prognosis-content, .notes-content, .trends-content, .howto-content, .reagent-analyze-content,
.tlc-content, .hptlc-content {
  height: 100dvh;
  
  overflow-y: auto;
  
  overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  touch-action: pan-y; 
  overscroll-behavior-y: contain; 
  overflow-x: hidden;
}


.no-route-overflow {
  overflow-y: hidden;
}

.experiences-view, .notes-view, .trends-view, 
.subs-list, 
.em-host.insights-page, .secondary-grid 

{
  padding-bottom: 150px!important;
}


 

.app-grid.is-mobile .jrnl-wrap, .app-grid.is-mobile .page__content > .substances-index-page{
  padding-bottom:3em;
}


:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --card: #fcfcfc;
  --border: #e5e7eb;

  
  --accent: #dcaa2e;        
  --accent-strong: #d0872a; 
  --chip-bg: #fff8e6;
  --chip-fg: #6b4a1d;

  
  --rail-bg: #ffffff;
  --rail-fg: #1f2328;
  --rail-border: #e5e7eb;

  
}


.theme-dark {
  color-scheme: dark;
  --bg: #141414;          
  --fg: #e4e4e6;          
  --muted: #9b9b9f;       
  --card: #1b1b1b;        
  --border: #2a2a2a;      

  --accent: #dcaa2e;
  --accent-strong: #d0872a;
  --chip-bg: #1e1d18;      
  --chip-fg: #e8d7a1;

  --rail-bg: #181818;
  --rail-fg: #e4e4e6;
  --rail-border: #2a2a2a;

    --row-bg: #1a1a1a; 

  
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}




.list-item,
.list-item--pt {
  background: #fcfcfc;
  background: var(--card, #fff);
  color: #111827;
  color: var(--fg, #111);
  border-color: #e5e7eb;
  border-color: var(--border, #e5e7eb);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}


[data-theme="dark"] .list-item,
.theme-dark .list-item,
[data-theme="dark"] .list-item--pt,
.theme-dark .list-item--pt {
  background: #fcfcfc;
  background: var(--card, #1b1b1b);
  color: #111827;
  color: var(--fg, #e4e4e6);
  border-color: #e5e7eb;
  border-color: var(--border, #2a2a2a);
}




main {
    overflow: auto;
    
}




.list--pt {
  background: #fcfcfc;
  background: var(--card);
  color: #111827;
  color: var(--fg);
  border-color: #e5e7eb;
  border-color: var(--border);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.list--pt .list__item {
  background: #fcfcfc;
  background: var(--card);
  color: #111827;
  color: var(--fg);
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--border);
}


.list--pt .list__item--tappable:active,
.list--pt .list__item--tappable:focus {
  background: rgba(0, 0, 0, 0.05);
}
.theme-dark .list--pt .list__item--tappable:active,
.theme-dark .list--pt .list__item--tappable:focus {
  background: rgba(255, 255, 255, 0.07);
}


.glass-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.theme-dark .glass-head {
  border-color: rgba(255, 255, 255, 0.1);
}
.glass-title {
  font-weight: 800;
  font-size: 1.05rem;
}
.glass-body {
  padding: 16px;
  line-height: 1.45;
}
.glass-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 4px 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  color: #333;
}
.theme-dark .glass-close {
  background: rgba(0, 0, 0, 0.4);
  color: #fafafa;
}
.glass-close:hover {
  opacity: 0.85;
}










.theme-dark .filters-strip {
  background: #1e1e1e;
  border-bottom: 1px solid #333;
  margin-bottom: -1px;
}
.theme-dark .filters-strip .filters-container > div[role="button"] {
  background: #2a2a2a;
  border-color: #444;
  color: #ddd;
}
.theme-dark .filters-strip .filters-container > div[role="button"][aria-pressed="true"] {
  background: #333;
  border-color: #dcaa2e;
  color: #fff;
}

.theme-dark input[type="search"],
[data-theme='dark'] input[type="search"] {
  border: 0 !important;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  appearance: none;
  display: none;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}





.app-grid:has(.nav-rail.is-mobile).page-shell {
  .page__content > .substances-index-page{
    overflow: visible;     
    min-height: auto;
  }

  #substance-left-pane,
  #substance-right-pane{
    height: auto;        
    max-height: none;
  }




  .app-grid, .page-shell, .route-host{
     width:100%; 
    min-width:0;
    margin-left: 0;
  }
  .route-host{ overflow-y:auto; -webkit-overflow-scrolling:touch; }
}





.route-host {
  background: #ffffff;
  color: #111827;
  color: var(--fg);
  transition: background 0.3s ease, color 0.3s ease;
}


.dark-mode html, .dark-mode body {
    
    background-color: black;
}



.theme-dark .page__background,
.theme-dark .substances-index-page,
.theme-dark .route-host, 
.theme-dark .tabs-spacer,

.theme-dark .app-grid,
.theme-dark .app-shell,
.theme-dark .drugspro-app,
.theme-dark body,
.theme-dark html {
  background:#141414;
  background-color:#141414;
  color: #111827;
  color: var(--fg);
  
  transition: background .3s ease, color .3s ease;
}


button{
  appearance: none;
  color: inherit;
  background: none;
}



* {
  -webkit-user-select: none;
  user-select: none;
}


p, span, li, td, th,
h1, h2, h3, h4, h5, h6,
em, strong, small, b, i,
blockquote, pre, code {
  -webkit-user-select: text;
  user-select: text;
}



div[role="button"],
div[tabindex] {
  -webkit-user-select: none;
  user-select: none;
}


input, textarea {
  -webkit-user-select: text;
  user-select: text;
}


.app-shell div[data-content],
.app-shell .content,
.app-shell .text,
.app-shell .copy {
  -webkit-user-select: text;
          user-select: text;
}




@keyframes ach-pop-in {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ach-pop-out {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.25);
    opacity: 0;
  }
}





:focus-visible {
  outline: 2px solid #dcaa2e;
  outline: 2px solid var(--accent, #dcaa2e);
  outline-offset: 2px;
}


.theme-dark :focus-visible {
  outline-color: #f5d76e;
}


button:focus-visible {
  outline: 2px solid #dcaa2e;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}


main,
[role="main"] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}









html.preboot-active.exporting-snapshot #drugspro-app-web{
  opacity: 1;
  pointer-events: auto;
}
html.preboot-active #preboot-overlay{visibility:visible;pointer-events:auto}
html.preboot-active #preboot-overlay *{pointer-events:none}
html.preboot-active #preboot-overlay [role="status"],
html.preboot-active #preboot-overlay [aria-live]{pointer-events:auto}




:focus:not(:focus-visible) {
  outline: none !important;
}




:root {
  --bp-bg: rgba(255,255,255,0.965);
  --bp-glass: linear-gradient(
    180deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.12)
  );
}


.theme-dark {
  --bp-bg: rgba(0,0,0,0.12);
  --bp-glass: linear-gradient(
    180deg,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.12)
  );
}

:root {
  --bp-hud-fg: rgba(0,0,0,0.85);
}
.theme-dark {
  --bp-hud-fg: rgba(255,255,255,0.95);
}


.scroll-top-fab {
  position: fixed;
  right: 24px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2em);
  width: 48px;
  height: 48px;
  border-radius: 50%;

  
  background: rgba(246,247,247,0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);

  border: 1px solid rgba(255,255,255,0.65);
  color: #1c1c1e;

  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  
  box-shadow:
    0 8px 20px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.6);

  z-index: 1000;
  cursor: pointer;

  
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 180ms ease-out,
    transform 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 180ms ease;
}

@media (display-mode: standalone) {
body:has(.nav-rail.is-mobile.is-ios-style) .scroll-top-fab {
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
}
}

:root.entry-ios body:has(.nav-rail.is-mobile.is-ios-style) .scroll-top-fab {
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

@media (pointer: coarse) and (orientation: landscape) {
.scroll-top-fab {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
}}

@media (pointer: coarse) and (orientation: landscape) and (display-mode: standalone) {
body:has(.nav-rail.is-mobile.is-ios-style) .scroll-top-fab {
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
}}

@media (pointer: coarse) and (orientation: landscape) {
:root.entry-ios body:has(.nav-rail.is-mobile.is-ios-style) .scroll-top-fab {
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
}}

.scroll-top-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-fab:active {
  transform: scale(0.94);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.4);
}


@media (pointer: fine) {
  .scroll-top-fab {
    right: 2em;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 34px);
  }
}


.theme-dark .scroll-top-fab {
  background: rgba(28,28,30,0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.08);
  color: #f2f2f7;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.scroll-top-fab:active {
  transform: scale(0.95);
}

