/* BIO LIFE staging controls and three user-selectable visual themes. */
.online-record-root {
  position: relative;
}

.bio-ui-toolbar {
  position: fixed;
  z-index: 9999;
  inset: 12px 16px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  font-family: Geologica, "Source Sans 3", Montserrat, sans-serif;
}

.bio-ui-toolbar__left,
.bio-ui-toolbar__right,
.bio-theme-menu {
  pointer-events: auto;
}

.bio-ui-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 112, 170, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  color: #11548b;
  box-shadow: 0 8px 22px rgba(23, 74, 105, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bio-ui-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 11px 26px rgba(23, 74, 105, 0.13);
}

.bio-language-selector { position: relative; pointer-events: auto; }

.bio-language-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 98px;
  width: auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(82, 204, 224, 0.34);
  color: #125a78;
  list-style: none;
  user-select: none;
}

.bio-language-button::-webkit-details-marker { display: none; }
.bio-language-button::marker { content: ""; }
.bio-language-current-flag { display: inline-flex; }
.bio-language-code { min-width: 19px; text-align: center; font-weight: 750; letter-spacing: 0.035em; }
.bio-language-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.bio-language-selector[open] .bio-language-chevron { transform: rotate(180deg); }

.bio-language-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: none;
  min-width: 156px;
  padding: 6px;
  border: 1px solid rgba(0, 112, 170, 0.16);
  border-radius: 14px;
  background: rgba(248, 253, 255, 0.88);
  box-shadow: 0 14px 34px rgba(23, 74, 105, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.bio-language-selector[open] .bio-language-menu { display: grid; gap: 3px; }
.bio-language-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: #31556d; font: inherit; font-size: 13px; font-weight: 650; text-align: left; cursor: pointer; }
.bio-language-menu button:hover,
.bio-language-menu button.is-selected { background: rgba(0, 160, 220, 0.12); color: #075995; }

.bio-language-flag {
  display: inline-flex;
  flex: 0 0 27px;
  width: 27px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(30, 73, 105, 0.2);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(24, 58, 78, 0.14);
}

.bio-language-flag svg { display: block; width: 100%; height: 100%; }

.bio-ui-button:focus-visible,
.bio-theme-menu__options button:focus-visible {
  outline: 3px solid rgba(0, 160, 220, 0.35);
  outline-offset: 2px;
}

.bio-theme-menu { position: relative; }

.bio-theme-menu__summary {
  display: flex;
  align-items: center;
  list-style: none;
  user-select: none;
}

.bio-theme-menu__summary::-webkit-details-marker { display: none; }

.bio-theme-menu__options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 7px;
  border: 1px solid rgba(0, 112, 170, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 38px rgba(24, 55, 79, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.bio-theme-menu__options button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334f65;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.bio-theme-menu__options button:hover,
.bio-theme-menu__options button[aria-pressed="true"] {
  background: rgba(0, 160, 220, 0.12);
  color: #075995;
}

.bio-scroll-top {
  position: fixed;
  z-index: 9997;
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #8bdcff 0%, #52baf0 58%, #318fd3 100%);
  box-shadow: 0 8px 24px rgba(0, 82, 126, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, visibility 180ms;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.bio-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.bio-scroll-top:hover {
  box-shadow: 0 11px 28px rgba(0, 82, 126, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.bio-scroll-top:focus-visible {
  outline: 3px solid rgba(0, 160, 220, 0.45);
  outline-offset: 3px;
}

.bio-scroll-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Liquid Glass: Tashkent wallpaper under the translucent BIO LIFE glass. */
html[data-bio-theme="new"] {
  background-color: #dff2f6 !important;
  background-image:
    radial-gradient(ellipse at 9% 12%, rgba(0, 160, 220, 0.2), transparent 38%),
    radial-gradient(ellipse at 88% 28%, rgba(70, 190, 200, 0.16), transparent 37%),
    radial-gradient(ellipse at 82% 92%, rgba(86, 175, 64, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(230, 246, 250, 0.48) 0%, rgba(246, 251, 255, 0.44) 45%, rgba(229, 245, 224, 0.48) 100%),
    url("/static/media/tashkent-liquid-glass.jpg") !important;
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html[data-bio-theme="new"] body {
  background-color: transparent !important;
  background-image: none !important;
}

@media (max-width: 680px) {
  html[data-bio-theme="new"] {
    background-position: center, center, center, center, center;
    background-attachment: scroll;
  }
}

html[data-bio-theme="new"] .online-record-root .date-picker-root,
html[data-bio-theme="new"] .online-record-root .select-service-root,
html[data-bio-theme="new"] .online-record-root .choose-master-root__master,
html[data-bio-theme="new"] .online-record-root .choose-master-root__search input,
html[data-bio-theme="new"] .online-record-root .client-data-root__field,
html[data-bio-theme="new"] .online-record-root .payment-form-root__time,
html[data-bio-theme="new"] .online-record-root .payment-form-root__services,
html[data-bio-theme="new"] .online-record-root .payment-form-root__total-amount,
html[data-bio-theme="new"] .online-record-root .online-record-modal__paper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.44)) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 22px 58px rgba(31, 95, 126, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 160, 220, 0.08) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__master {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32) 56%, rgba(234, 249, 250, 0.48)) !important;
}

html[data-bio-theme="new"] .online-record-root .date-picker-root,
html[data-bio-theme="new"] .online-record-root .select-service-root {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__search input,
html[data-bio-theme="new"] .online-record-root .client-data-root__field {
  background: rgba(255, 255, 255, 0.48) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 24px rgba(0, 112, 170, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

html[data-bio-theme="new"] .online-record-root .home-page-btn,
html[data-bio-theme="new"] .online-record-root .general-btn:not(.general-btn__disabled) {
  background-image: linear-gradient(112deg, rgba(0, 120, 170, 0.9) 0%, rgba(22, 139, 131, 0.86) 52%, rgba(86, 175, 64, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 12px 28px rgba(0, 105, 145, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* A calm dark theme with readable translucent surfaces and brand accents. */
html[data-bio-theme="night"],
html[data-bio-theme="night"] body {
  color-scheme: dark;
  background-color: #111b25 !important;
  background-image:
    radial-gradient(ellipse at 8% 8%, rgba(0, 160, 220, 0.2), transparent 38%),
    radial-gradient(ellipse at 92% 88%, rgba(86, 175, 64, 0.13), transparent 42%),
    linear-gradient(135deg, #101a24 0%, #182632 52%, #17241f 100%) !important;
  background-attachment: fixed;
}

html[data-bio-theme="night"] .online-record-root,
html[data-bio-theme="night"] .online-record-root .choose-master-root,
html[data-bio-theme="night"] .online-record-root .select-date-root,
html[data-bio-theme="night"] .online-record-root .client-data-root {
  color: #edf5f7 !important;
}

html[data-bio-theme="night"] .online-record-root .date-picker-root,
html[data-bio-theme="night"] .online-record-root .select-service-root,
html[data-bio-theme="night"] .online-record-root .choose-master-root__master,
html[data-bio-theme="night"] .online-record-root .choose-master-root__search input,
html[data-bio-theme="night"] .online-record-root .client-data-root__field,
html[data-bio-theme="night"] .online-record-root .payment-form-root__time,
html[data-bio-theme="night"] .online-record-root .payment-form-root__services,
html[data-bio-theme="night"] .online-record-root .payment-form-root__total-amount,
html[data-bio-theme="night"] .online-record-root .online-record-modal__paper {
  color: #edf5f7 !important;
  background: rgba(24, 39, 51, 0.82) !important;
  border: 1px solid rgba(161, 203, 219, 0.18) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

html[data-bio-theme="night"] .online-record-root .select-service-root__title,
html[data-bio-theme="night"] .online-record-root .select-service-root__name,
html[data-bio-theme="night"] .online-record-root .choose-master-root__master-name,
html[data-bio-theme="night"] .online-record-root .payment-form-root__services,
html[data-bio-theme="night"] .online-record-root .payment-form-root__total-amount,
html[data-bio-theme="night"] .online-record-root .select-date-root__title,
html[data-bio-theme="night"] .online-record-root .client-data-root__title,
html[data-bio-theme="night"] .online-record-root .title,
html[data-bio-theme="night"] .online-record-root label,
html[data-bio-theme="night"] .online-record-root p,
html[data-bio-theme="night"] .online-record-root h1,
html[data-bio-theme="night"] .online-record-root h2,
html[data-bio-theme="night"] .online-record-root h3 {
  color: #edf5f7 !important;
}

html[data-bio-theme="night"] .online-record-root .choose-master-root__master-position,
html[data-bio-theme="night"] .online-record-root .choose-master-root__time,
html[data-bio-theme="night"] .online-record-root .select-service-root__time,
html[data-bio-theme="night"] .online-record-root .date-picker-root__date p {
  color: #c4d1d8 !important;
}

html[data-bio-theme="night"] .online-record-root input,
html[data-bio-theme="night"] .online-record-root select,
html[data-bio-theme="night"] .online-record-root textarea {
  color: #f1f7f9 !important;
  caret-color: #56af40;
}

html[data-bio-theme="night"] .online-record-root input::placeholder,
html[data-bio-theme="night"] .online-record-root textarea::placeholder {
  color: #aabac4 !important;
  opacity: 1;
}

html[data-bio-theme="night"] .online-record-root .react-calendar,
html[data-bio-theme="night"] .online-record-root .react-calendar__tile,
html[data-bio-theme="night"] .online-record-root .date-picker-root__date p {
  color: #edf5f7 !important;
  background-color: transparent;
}

html[data-bio-theme="night"] .online-record-root .react-calendar__tile:hover,
html[data-bio-theme="night"] .online-record-root .react-calendar__tile:focus {
  background: rgba(0, 160, 220, 0.2) !important;
}

html[data-bio-theme="night"] .online-record-root .react-calendar__month-view__weekdays,
html[data-bio-theme="night"] .online-record-root .react-calendar__navigation button {
  color: #b8cbd5 !important;
}

html[data-bio-theme="night"] .bio-ui-button {
  color: #eaf6fa;
  background: rgba(24, 39, 51, 0.84);
  border-color: rgba(161, 203, 219, 0.24);
}

html[data-bio-theme="night"] .bio-language-flag { border-color: rgba(255, 255, 255, 0.36); }
html[data-bio-theme="night"] .bio-language-button { background: rgba(43, 130, 159, 0.42); color: #eaf6fa; }
html[data-bio-theme="night"] .bio-language-menu { background: rgba(24, 39, 51, 0.95); border-color: rgba(161, 203, 219, 0.2); }
html[data-bio-theme="night"] .bio-language-menu button { color: #eaf6fa; }
html[data-bio-theme="night"] .bio-language-menu button:hover,
html[data-bio-theme="night"] .bio-language-menu button.is-selected { background: rgba(0, 160, 220, 0.22); color: #dff5ff; }

html[data-bio-theme="night"] .bio-scroll-top {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #70cef5 0%, #329fd7 58%, #1675b8 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-bio-theme="night"] .bio-theme-menu__options {
  background: rgba(24, 39, 51, 0.95);
  border-color: rgba(161, 203, 219, 0.2);
}

html[data-bio-theme="night"] .bio-theme-menu__options button { color: #eaf6fa; }
html[data-bio-theme="night"] .bio-theme-menu__options button:hover,
html[data-bio-theme="night"] .bio-theme-menu__options button[aria-pressed="true"] {
  background: rgba(0, 160, 220, 0.22);
  color: #dff5ff;
}

@media (max-width: 600px) {
  .bio-ui-toolbar { inset: 8px 10px auto; }
  .bio-ui-button { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .bio-theme-menu__options { min-width: 132px; }
  .bio-scroll-top { left: 14px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .bio-ui-button { transition: none; }
  .bio-scroll-top { transition: none; }
}

.bio-medical-notice {
  display: block;
  width: min(100%, 760px);
  margin: 24px auto 12px;
  padding: 8px 14px 14px;
  color: rgba(95, 108, 118, 0.52);
  text-align: center;
  font-family: "Source Sans 3", Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.42;
}

.bio-medical-notice p { margin: 0 0 2px; color: inherit !important; }

html[data-bio-theme="night"] .bio-medical-notice { color: rgba(191, 205, 213, 0.55); }

/* Keep the doctor search visually compact on desktop and touch-friendly on mobile. */
.online-record-root .choose-master-root__search {
  width: min(100%, 820px);
  margin-inline: auto;
}

/* Hide the service-duration badge while the source provides only the unit. */
.online-record-root .select-service-root .select-service-root__time {
  display: none !important;
}

.online-record-root .choose-master-root__search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  font-size: clamp(16px, 1.4vw, 18px);
}

@media (max-width: 600px) {
  .bio-medical-notice {
    margin: 20px auto 10px;
    padding: 6px 12px 12px;
    font-size: 9px;
  }

  .online-record-root .choose-master-root__search {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .online-record-root .choose-master-root__search input {
    min-height: 48px;
    font-size: 16px;
  }
}

/* A more polished glass navigation for doctor specialties. */
.online-record-root .choose-master-root__tabs.Specialities {
  box-sizing: border-box;
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 7px;
  margin: 22px auto 26px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.53), rgba(218, 246, 247, 0.34));
  box-shadow: 0 10px 28px rgba(34, 98, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  backdrop-filter: blur(16px) saturate(155%);
  scrollbar-width: none;
}

.online-record-root .choose-master-root__tabs.Specialities::-webkit-scrollbar,
.online-record-root .choose-master-root__tabs.branch::-webkit-scrollbar {
  display: none;
}

.online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab {
  box-sizing: border-box;
  min-height: 42px;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 999px;
  background: transparent !important;
  color: #73899b;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab::before {
  display: none !important;
}

.online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab:hover {
  color: #075095;
  background: rgba(255, 255, 255, 0.62) !important;
}

.online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab.active {
  border-color: rgba(255, 255, 255, 0.62) !important;
  background: linear-gradient(120deg, #075095 0%, #087fb0 58%, #13a49b 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(7, 80, 149, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.online-record-root .choose-master-root__tabs.branch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 5px;
  margin: 0 auto 18px;
  padding: 3px 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.online-record-root .choose-master-root__tabs.branch .choose-master-root__tab {
  margin: 0 !important;
  padding: 7px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 999px;
  background: transparent !important;
  color: #8294a4;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.online-record-root .choose-master-root__tabs.branch .choose-master-root__tab::before {
  display: none !important;
}

.online-record-root .choose-master-root__tabs.branch .choose-master-root__tab.active {
  border-color: rgba(255, 255, 255, 0.74) !important;
  background: rgba(255, 255, 255, 0.52) !important;
  color: #075095 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(41, 107, 137, 0.08);
}

.bio-mobile-categories { display: none; }

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities {
  background: linear-gradient(110deg, rgba(0, 166, 210, 0.15), rgba(31, 181, 142, 0.13), rgba(95, 175, 64, 0.12));
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab.active {
  background: linear-gradient(112deg, #075095 0%, #087fa7 52%, #1a9b68 100%) !important;
}

html[data-bio-theme="night"] .online-record-root .choose-master-root__tabs.Specialities {
  border-color: rgba(161, 203, 219, 0.22);
  background: linear-gradient(115deg, rgba(18, 36, 50, 0.78), rgba(27, 48, 57, 0.66));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-bio-theme="night"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab,
html[data-bio-theme="night"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab {
  color: #b8cbd5;
}

html[data-bio-theme="night"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab:hover,
html[data-bio-theme="night"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab.active {
  border-color: rgba(161, 203, 219, 0.2) !important;
  background: rgba(0, 160, 220, 0.18) !important;
  color: #e9f7fc !important;
}

@media (max-width: 680px) {
  .online-record-root .choose-master-root__tabs.Specialities {
    display: none !important;
  }

  .online-record-root .bio-mobile-categories {
    position: relative;
    z-index: 20;
    display: block;
    width: min(100% - 24px, 520px);
    margin: 16px auto 12px;
  }

  .bio-mobile-categories__summary {
    box-sizing: border-box;
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 11px;
    padding: 6px 15px 6px 7px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(223, 248, 248, 0.5));
    box-shadow: 0 8px 23px rgba(20, 96, 128, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    color: #16465e;
    cursor: pointer;
    list-style: none;
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    backdrop-filter: blur(18px) saturate(165%);
  }

  .bio-mobile-categories__summary::-webkit-details-marker { display: none; }

  .bio-mobile-categories__burger {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #006c65, #075095);
    box-shadow: 0 4px 12px rgba(5, 92, 113, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .bio-mobile-categories__burger svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .bio-mobile-categories__current {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 15px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bio-mobile-categories__chevron {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform 160ms ease;
  }

  .bio-mobile-categories[open] .bio-mobile-categories__chevron { transform: rotate(180deg); }

  .bio-mobile-categories__items {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(62vh, 440px);
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 22px;
    background: rgba(241, 251, 252, 0.88);
    box-shadow: 0 18px 40px rgba(21, 79, 105, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(22px) saturate(175%);
    backdrop-filter: blur(22px) saturate(175%);
  }

  .bio-mobile-categories__option {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: #35546a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .bio-mobile-categories__option.is-selected {
    border-color: rgba(35, 154, 183, 0.18);
    background: linear-gradient(115deg, rgba(0, 127, 176, 0.14), rgba(29, 169, 151, 0.11));
    color: #075095;
  }

  .bio-mobile-categories__option.is-selected::after {
    content: "✓";
    color: #0a8d9d;
    font-size: 15px;
    font-weight: 750;
  }

  .online-record-root .choose-master-root__tabs.branch {
    width: 100%;
    justify-content: flex-start;
    margin: 0 auto 16px;
    padding: 3px 10px 8px;
  }

  .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab {
    min-height: 34px;
    padding: 7px 12px !important;
    font-size: 12px;
  }

  html[data-bio-theme="night"] .bio-mobile-categories__summary {
    border-color: rgba(161, 203, 219, 0.26);
    background: linear-gradient(115deg, rgba(22, 42, 57, 0.92), rgba(24, 55, 64, 0.86));
    color: #e8f5f8;
  }

  html[data-bio-theme="night"] .bio-mobile-categories__items {
    border-color: rgba(161, 203, 219, 0.22);
    background: rgba(20, 37, 50, 0.95);
  }

  html[data-bio-theme="night"] .bio-mobile-categories__option { color: #c5d8e0; }
  html[data-bio-theme="night"] .bio-mobile-categories__option.is-selected {
    border-color: rgba(99, 186, 218, 0.2);
    background: rgba(0, 160, 220, 0.2);
    color: #f0fbff;
  }
}

/* Finish the Liquid Glass theme with clearer translucency across the specialist finder. */
html[data-bio-theme="new"] .online-record-root .choose-master-root__master {
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.2) 55%, rgba(232, 250, 248, 0.3)) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 20px 48px rgba(31, 95, 126, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(0, 160, 220, 0.06) !important;
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__search input {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.39), rgba(255, 255, 255, 0.2) 58%, rgba(213, 246, 245, 0.28)) !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 10px 26px rgba(0, 112, 170, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.3), rgba(203, 242, 244, 0.16), rgba(225, 247, 226, 0.2));
  box-shadow: 0 14px 34px rgba(34, 98, 129, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.13)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 4px 12px rgba(31, 95, 126, 0.045);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab:hover {
  border-color: rgba(255, 255, 255, 0.78) !important;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.55), rgba(226, 250, 250, 0.34)) !important;
  box-shadow: 0 6px 16px rgba(31, 95, 126, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab.active {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: linear-gradient(120deg, rgba(7, 80, 149, 0.84), rgba(8, 127, 176, 0.74) 58%, rgba(19, 164, 155, 0.64)) !important;
  box-shadow: 0 7px 18px rgba(7, 80, 149, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.36), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.26), rgba(217, 246, 242, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 18px rgba(31, 95, 126, 0.05);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab.active {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.62), rgba(211, 246, 244, 0.44)) !important;
  box-shadow: 0 4px 14px rgba(31, 95, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@media (max-width: 680px) {
  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__summary {
    border-color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(213, 246, 246, 0.22) 58%, rgba(222, 246, 226, 0.26));
    box-shadow: 0 12px 30px rgba(20, 96, 128, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -1px 0 rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
  }

  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__items {
    border-color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, rgba(246, 255, 255, 0.62), rgba(222, 247, 248, 0.42) 54%, rgba(234, 249, 237, 0.48));
    box-shadow: 0 20px 44px rgba(21, 79, 105, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    backdrop-filter: blur(30px) saturate(190%);
  }

  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__option {
    margin: 3px 0;
    border-color: rgba(255, 255, 255, 0.68);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18) 60%, rgba(218, 246, 243, 0.22));
    box-shadow: 0 4px 12px rgba(31, 95, 126, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
  }

  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__option:hover,
  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__option.is-selected {
    border-color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(115deg, rgba(0, 155, 199, 0.24), rgba(23, 177, 157, 0.2) 58%, rgba(107, 190, 83, 0.14));
    box-shadow: 0 7px 17px rgba(21, 113, 134, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* Improve text contrast and reduce the glass transparency by 15 points. */
html[data-bio-theme="new"] {
  background-image:
    radial-gradient(ellipse at 9% 12%, rgba(0, 160, 220, 0.2), transparent 38%),
    radial-gradient(ellipse at 88% 28%, rgba(70, 190, 200, 0.16), transparent 37%),
    radial-gradient(ellipse at 82% 92%, rgba(86, 175, 64, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(230, 246, 250, 0.33) 0%, rgba(246, 251, 255, 0.29) 45%, rgba(229, 245, 224, 0.33) 100%),
    url("/static/media/tashkent-liquid-glass.jpg") !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__search input {
  color: #18384d !important;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.35) 58%, rgba(213, 246, 245, 0.43)) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__search input::placeholder {
  color: #3d566a !important;
  opacity: 1;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.45), rgba(218, 246, 247, 0.31));
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab:not(.active),
html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab:not(.active) {
  color: #29475c !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab:not(.active) {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.28)) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.Specialities .choose-master-root__tab:hover {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.70), rgba(226, 250, 250, 0.49)) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.41), rgba(217, 246, 242, 0.31));
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab:not(.active) {
  background: rgba(255, 255, 255, 0.39) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__tabs.branch .choose-master-root__tab.active {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.77), rgba(211, 246, 244, 0.59)) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__master {
  color: #1d3749 !important;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.63), rgba(255, 255, 255, 0.35) 55%, rgba(232, 250, 248, 0.45)) !important;
}

html[data-bio-theme="new"] .online-record-root .choose-master-root__master > :not(:first-child),
html[data-bio-theme="new"] .online-record-root .choose-master-root__master > :not(:first-child) p,
html[data-bio-theme="new"] .online-record-root .choose-master-root__master > :not(:first-child) span {
  color: #1d3749 !important;
}

@media (max-width: 680px) {
  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__summary {
    color: #17394d;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(213, 246, 246, 0.37) 58%, rgba(222, 246, 226, 0.41));
  }

  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__items {
    background: linear-gradient(135deg, rgba(246, 255, 255, 0.77), rgba(222, 247, 248, 0.57) 54%, rgba(234, 249, 237, 0.63));
  }

  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__option {
    color: #29475c;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.33) 60%, rgba(218, 246, 243, 0.37));
  }

  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__option:hover,
  html[data-bio-theme="new"] .online-record-root .bio-mobile-categories__option.is-selected {
    background: linear-gradient(115deg, rgba(0, 155, 199, 0.39), rgba(23, 177, 157, 0.35) 58%, rgba(107, 190, 83, 0.29));
  }
}
