/* Enabled by the mobileStyles media condition in index.html, including tablets. */

/* Mobile workspace: map, sheets and thumb navigation. */
html,
body {
  height: 100%;
  overscroll-behavior: none;
}
body {
  display: block !important;
}
header {
  height: auto !important;
  min-height: 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  z-index: 30;
  background: var(--panel);
}
.brand {
  font-size: 21px !important;
  gap: 7px;
}
.logo {
  height: 30px;
  width: 30px;
  font-size: 20px;
  border-radius: 10px;
}
.headeractions {
  margin-left: auto;
  gap: 8px !important;
}
.headeractions .userAvatar {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
}
.header-divider,
#addPlace,
#addCollection,
#theme {
  display: none;
}
.desktopSearchSlot {
  order: 3 !important;
  width: 100%;
  flex: 0 0 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  position: relative;
  display: block !important;
}
.searchwrap {
  display: flex !important;
  border: 1px solid var(--line);
  padding: 0 5px 0 12px !important;
}
.searchwrap input {
  min-width: 0;
  font-size: 16px !important;
  padding: 12px 0 !important;
}
.filterToggle {
  min-width: 44px;
  min-height: 44px;
}
.tagFilterBar {
  padding: 6px 0 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.tagFilterTitle,
.tagFilterSearch,
#tagFilterSummary {
  display: none !important;
}
.tagFilterChips {
  flex-wrap: nowrap;
  overflow: auto;
  max-width: 100%;
}
.tagFilterChips button {
  white-space: nowrap;
  flex-shrink: 0;
}
.tagFilterBar:has(.tagFilterChips:empty) {
  display: none !important;
}
.globalResults {
  top: 100% !important;
  max-height: 55dvh !important;
  z-index: 60;
}
.filterPanel {
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  width: auto !important;
}
.filters select {
  font-size: 14px;
  min-height: 44px;
}
.freshfilter {
  min-height: 44px;
}
main {
  position: fixed !important;
  inset: 0 !important;
  height: 100dvh !important;
  display: block !important;
}
.maparea {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100%;
}
.maptop {
  top: calc(142px + env(safe-area-inset-top)) !important;
  left: 14px !important;
  right: 14px !important;
  justify-content: space-between;
  gap: 8px;
}
.desktopMapActions button {
  min-height: 44px;
  font-size: 12px;
  padding: 10px;
}
.mode {
  padding: 3px;
  gap: 0;
}
.mode button {
  min-height: 40px;
  min-width: 38px;
  padding: 6px !important;
}
.mode .divider {
  margin: 0 2px;
}
.maptools {
  bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  right: 14px !important;
}
.maptools button {
  height: 44px !important;
  width: 44px !important;
}
.maplegend,
.palette-corner,
.mapAppearance {
  display: none !important;
}
.maplibregl-ctrl-bottom-right {
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
}
.backcity {
  bottom: 150px !important;
  top: auto !important;
}
.noresults,
.maperror {
  top: 205px !important;
  max-width: calc(100vw - 40px);
}
#sidebar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  top: auto !important;
  width: 100% !important;
  height: min(66dvh, 650px) !important;
  margin: 0 !important;
  z-index: 40;
  display: none !important;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -16px 60px #0003;
  overflow: hidden;
}
body.mobile-list #sidebar {
  display: flex !important;
}
.sidebarContent {
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border: 0;
}
.sidehead {
  padding: 10px 16px 0 !important;
}
.sidehead h1 {
  font-size: 21px;
}
.titleline {
  margin-bottom: 10px !important;
}
.handle {
  display: block !important;
  flex-shrink: 0;
  width: 44px;
  height: 5px;
  min-height: 5px;
  padding: 0;
  background: var(--line);
  border-radius: 10px;
  margin: 10px auto 0;
}
.collapseBtn {
  display: none !important;
}
.collectionlist {
  padding: 10px 12px !important;
  overscroll-behavior: contain;
}
.collection {
  padding: 14px 10px;
  min-height: 70px;
}
.coltext strong {
  font-size: 14px;
}
.coltext small {
  font-size: 12px;
}
.tile {
  height: 40px;
  width: 40px;
}
.rowactions {
  padding-left: 12px;
  gap: 4px;
}
.rowactions button {
  min-height: 40px;
  padding: 8px;
  font-size: 12px;
}
.sidefooter {
  padding: 10px 14px;
  font-size: 11px;
}
.sidefooter button {
  min-height: 38px;
}
.tabs button,
.viewSwitch button {
  min-height: 42px;
  font-size: 13px;
}
.mobileNav {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 -4px 24px #0001;
}
.mobileNav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  color: var(--muted);
  font-size: 11px;
  border-radius: 14px;
}
.mobileNav button span {
  font-size: 23px;
  line-height: 26px;
}
.mobileNav button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--ink);
}
.mobileNav .mobileAdd span {
  display: grid;
  place-items: center;
  width: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--onaccent);
}
.mobileSettingsButton {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 21px;
}
.detail {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  width: 100% !important;
  max-height: 66dvh !important;
  border-radius: 24px 24px 0 0;
  z-index: 50;
}
.detail .body {
  padding: 22px;
}
.detail p {
  font-size: 14px;
}
.detail .close,
.modalback .close {
  width: 40px;
  height: 40px;
}
.detail .primary,
.detail .editrow button,
.detail .quiet {
  min-height: 46px;
}
.modalback {
  padding: 0;
  align-items: end;
  z-index: 100;
}
.modalback > dialog {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 90dvh;
  border-radius: 26px 26px 0 0;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
}
.modalback input,
.modalback select,
.modalback textarea,
.collectionCreateDialog input,
.collectionCreateDialog textarea {
  font-size: 16px !important;
}
.modalback button.primary {
  min-height: 48px;
}
.collectionCreateDialog {
  width: calc(100% - 24px);
  padding: 24px 18px;
  color: var(--ink);
}
.castSelectMenu {
  position: relative;
  top: auto;
  max-height: 230px;
}
.castSelectCurrent {
  min-height: 48px;
}
.toast {
  bottom: calc(95px + env(safe-area-inset-bottom)) !important;
  z-index: 300;
}
.picker {
  position: fixed !important;
  bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  width: calc(100% - 24px) !important;
  max-width: 440px !important;
}
.selecting .mobileNav,
body:has(.selecting) .mobileNav {
  display: none;
}
.selecting .picker {
  bottom: 20px !important;
}
.settingsSection {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.settingsSection h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.settingsThemes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.settingsThemes button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.settingsThemes button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
#settingsPalette .palette {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  box-shadow: none;
  border: 0;
  background: none;
  padding: 0;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
}
#settingsPalette .palettelabel {
  display: none;
}
#settingsPalette .palette button {
  width: 42px;
  height: 46px;
}
#settingsPalette .palette button:before {
  width: 28px;
  height: 28px;
}
#settingsAppearance .mapAppearance {
  display: block !important;
  position: static !important;
  border: 0;
  padding: 0;
  box-shadow: none;
  background: none;
  min-width: 0;
}
#settingsAppearance .heightColorToggle {
  min-height: 48px;
  font-size: 14px;
}
.mobileCreateOptions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.mobileCreateOptions button {
  text-align: left;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.mobileCreateOptions strong {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}
.mobileCreateOptions small {
  color: var(--muted);
}

header .headeractions {
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  order: 1 !important;
  transform: none !important;
  width: auto !important;
  align-items: center !important;
}
header .headeractions > button {
  position: static !important;
  inset: auto !important;
}
header .brand {
  order: 0 !important;
}
#sidebar:before,
.sidebarContent:before {
  display: none !important;
}
.sidefooter button {
  font-size: 11px !important;
}
.rowactions button {
  font-size: 12px !important;
}
.collectionCreateDialog {
  color: var(--ink) !important;
}

/* Mobile bottom-first layout: compact logo, search dock, three-item navigation. */
#mobileSearchDock {
  display: none;
}
.mobileZoom {
  display: none;
}
.mobileNav {
  grid-template-columns: repeat(3, 1fr);
}

body {
  --m-nav: calc(62px + env(safe-area-inset-bottom));
}
header {
  position: fixed !important;
  top: calc(8px + env(safe-area-inset-top)) !important;
  left: 12px !important;
  right: 12px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  z-index: 70;
  pointer-events: none;
}
header .brand {
  pointer-events: auto;
  margin: 0 !important;
  padding: 6px 9px 6px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 4px 18px #0002;
  font-size: 16px !important;
  gap: 7px;
}
header .brand > span:last-child {
  display: none;
}
header .logo {
  width: 28px !important;
  height: 28px !important;
  font-size: 19px !important;
  border-radius: 9px !important;
}
header .palette,
header .headeractions {
  display: none !important;
}
#mobileSearchDock #login {
  display: grid !important;
  place-items: center;
  position: absolute !important;
  right: 12px !important;
  top: 7px !important;
  left: auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--panel) !important;
  border: 2px solid var(--line) !important;
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 700;
  box-shadow: 0 2px 10px #0002;
  z-index: 3;
  pointer-events: auto;
}
#mobileSearchDock #login.logged-in {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--onaccent) !important;
}

#mobileSearchDock {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--m-nav);
  z-index: 56;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 7px 12px;
  box-shadow: 0 -8px 26px #0002;
}
#mobileSearchDock .desktopSearchSlot {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  position: relative;
}
#mobileSearchDock .searchwrap {
  padding: 0 9px !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-right: 56px;
}
#mobileSearchDock .searchwrap > span {
  display: none;
}
#mobileSearchDock .searchwrap input {
  min-height: 44px !important;
  font-size: 16px !important;
  padding: 10px 0 !important;
}
#mobileSearchDock .filterToggle {
  order: -1;
  min-width: 36px !important;
  min-height: 40px !important;
  margin-right: 2px;
}
#mobileSearchDock .tagFilterBar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 6px 8px !important;
  background: var(--panel);
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: 0 6px 24px #0002;
  z-index: 1;
}
#mobileSearchDock .tagFilterChips {
  flex-wrap: wrap;
}
#mobileSearchDock .globalResults {
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 46dvh !important;
  z-index: 65;
}
#mobileSearchDock .filterPanel {
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  z-index: 64;
}

body.mobile-list #sidebar {
  bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  height: min(56dvh, 560px) !important;
}
.detail {
  bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  max-height: calc(100dvh - 200px) !important;
}
.picker {
  bottom: calc(140px + env(safe-area-inset-bottom)) !important;
}
.toast {
  bottom: calc(150px + env(safe-area-inset-bottom)) !important;
}
.maptop {
  top: calc(58px + env(safe-area-inset-top)) !important;
}
.noresults,
.maperror {
  top: calc(108px + env(safe-area-inset-top)) !important;
}
.backcity {
  left: auto !important;
  right: 12px !important;
  bottom: calc(136px + env(safe-area-inset-bottom)) !important;
  max-width: 190px;
}
.maptop .mode,
.maptop .desktopMapActions {
  display: none !important;
}

.mobileZoom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: fixed;
  left: 12px;
  bottom: calc(136px + env(safe-area-inset-bottom));
  z-index: 20;
}
.mobileZoom .mzGroup {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px #0002;
}
.mobileZoom .mzGroup button {
  height: 44px;
  width: 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: none;
}
.mobileZoom .mzGroup button + button {
  border-top: 1px solid var(--line);
}
.mobileZoom .mzModes {
  flex-direction: row;
}
.mobileZoom .mzModes button {
  height: 36px;
  font-size: 12px;
  font-weight: 700;
}
.mobileZoom .mzModes button + button {
  border-top: 0;
  border-left: 1px solid var(--line);
}
.mobileZoom #locateDesktop {
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px #0002;
}
.mobileZoom #locateDesktop:before {
  content: "⌖";
  font-size: 21px;
  line-height: 1;
}
body.dark .mobileZoom .mzGroup,
body.dark .mobileZoom #locateDesktop {
  background: #1a1a1a;
}
body.mobile-list .mobileZoom {
  display: none !important;
}
body:has(.selecting) #mobileSearchDock,
body:has(.selecting) .mobileZoom,
body:has(.selecting) .mobileNav {
  display: none !important;
}

.mobileNav {
  grid-template-columns: 1fr 1fr 1fr !important;
  padding: 5px 10px calc(5px + env(safe-area-inset-bottom)) !important;
  border-top: 0 !important;
}
.mobileNav button {
  min-height: 52px !important;
  font-size: 11px !important;
}
.mobileNav .mobileAdd span {
  width: 46px !important;
  height: 36px !important;
  border-radius: 12px;
  font-size: 24px !important;
  line-height: 36px !important;
  background: var(--accent) !important;
  color: var(--onaccent) !important;
  box-shadow: 0 4px 14px #0002;
}

.settingsSection .secondary {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
}
.settingsSection .primary {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
}
.settingsSection p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.settingsSection p b {
  color: var(--ink);
}

/* Search overlay and panel controls, formerly inserted by mobile.js. */

header .brand {
  padding: 5px !important;
  border-color: color-mix(in srgb, var(--line) 55%, transparent) !important;
  box-shadow: 0 2px 8px #0001 !important;
}
header .logo {
  width: 32px !important;
  height: 32px !important;
  font-size: 21px !important;
}
header > #login {
  display: grid !important;
  place-items: center;
  pointer-events: auto;
  margin-left: auto;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--panel) !important;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent) !important;
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 700;
  box-shadow: 0 2px 8px #0001;
}
header > #login.logged-in {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--onaccent) !important;
}
header > #login svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}
#mobileSearchDock {
  background: var(--panel) !important;
  border: 0 !important;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 20px #0001 !important;
  padding: 20px 12px 10px !important;
}
#mobileSearchDock:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
#mobileSearchDock .searchwrap {
  margin-right: 0 !important;
  padding: 4px !important;
  gap: 10px;
  border-radius: 14px !important;
  background: var(--soft) !important;
  box-shadow: none !important;
  border: 0 !important;
  min-height: 44px;
}
#mobileSearchDock .searchwrap input {
  font-size: 16px !important;
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 6px 0 !important;
  min-height: 36px !important;
}
#mobileSearchDock .filterToggle {
  order: 0 !important;
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border-radius: 10px;
  background: var(--panel);
}
.mobileZoom {
  left: 0 !important;
  right: 0 !important;
  bottom: calc(136px + env(safe-area-inset-bottom)) !important;
  height: 142px;
  display: block !important;
  pointer-events: none;
}
.mobileZoom .mzZoom {
  position: absolute;
  right: 12px;
  bottom: 52px;
  pointer-events: auto;
}
.mobileZoom #locateDesktop {
  position: absolute;
  right: 12px;
  bottom: 0;
  pointer-events: auto;
  display: grid !important;
  place-items: center !important;
}
.mobileZoom .mzModes {
  position: absolute;
  left: 12px;
  bottom: 0;
  pointer-events: auto;
}
.mobileZoom #locateDesktop {
  padding: 0 !important;
  color: transparent !important;
}
.mobileZoom #locateDesktop:before {
  content: "" !important;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27px;
  height: 27px;
  transform: translate(-50%, -50%) translateY(1px);
  background: var(--ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2v4m0 12v4M2 12h4m12 0h4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.backcity {
  left: 50% !important;
  right: auto !important;
  top: calc(66px + env(safe-area-inset-top)) !important;
  bottom: auto !important;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  white-space: nowrap;
}
#expand.handle {
  width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  background: none !important;
  border-radius: 0;
}
#expand.handle:after {
  left: 50% !important;
  top: 10px !important;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
}
body:has(.selecting) .mobileZoom {
  display: none !important;
}
body.mobile-list #sidebar::before,
body.mobile-list .sidebarContent::before {
  content: none !important;
  display: none !important;
}
body.mobile-search-active #mobileSearchDock {
  top: auto !important;
  bottom: var(--m-nav) !important;
  height: 62dvh;
  max-height: calc(100dvh - var(--m-nav) - 80px);
  display: flex !important;
  flex-direction: column;
  z-index: 80 !important;
  background: var(--panel) !important;
  padding: 20px 12px 12px !important;
}
body.mobile-search-active #mobileSearchDock .desktopSearchSlot {
  height: 100%;
  min-height: 0;
  display: flex !important;
  padding-right: 0;
}
body.mobile-search-active #mobileSearchDock .searchwrap {
  margin-right: 48px !important;
  flex-shrink: 0;
}
#mobileSearchDock .searchwrap:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-radius: 14px !important;
}
#mobileSearchDock .searchwrap input:focus {
  outline: none !important;
  border-radius: 10px;
}
body.mobile-search-active #mobileSearchDock .searchwrap input {
  min-height: 36px !important;
  font-size: 16px !important;
}
body.mobile-search-active #mobileSearchDock .globalResults {
  position: static !important;
  flex: 1;
  min-height: 0;
  max-height: none !important;
  margin-top: 12px;
  overflow: auto;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
body.mobile-search-active #mobileSearchDock .filterPanel {
  position: static !important;
  margin-top: 12px;
}
body.mobile-search-active #mobileSearchDock #login,
body.mobile-search-active .tagFilterBar {
  display: none !important;
}
body.mobile-overlay-hidden-search #mobileSearchDock {
  display: none !important;
}
body.mobile-list #sidebar,
.detail {
  bottom: var(--m-nav) !important;
  max-height: calc(100dvh - var(--m-nav) - 80px) !important;
}
body.mobile-list #sidebar {
  height: 62dvh !important;
  transition: height 0.22s ease;
}
body.mobile-list.mobile-list-expanded #sidebar {
  height: calc(100dvh - var(--m-nav) - env(safe-area-inset-top) - 12px) !important;
  max-height: calc(100dvh - var(--m-nav) - env(safe-area-inset-top) - 12px) !important;
  z-index: 75;
}
body.mobile-list .sidehead .tabs {
  overflow: hidden;
  max-height: 56px;
  transition:
    max-height 0.18s ease,
    margin 0.18s ease,
    padding 0.18s ease;
}
body.mobile-list.mobile-list-scrolling .sidehead .tabs {
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
  pointer-events: none;
}
body.mobile-list .collectionlist {
  min-height: 0;
  overscroll-behavior: contain;
}
#expand.handle {
  touch-action: none;
}
@media (prefers-reduced-motion: reduce) {
  body.mobile-list #sidebar,
  body.mobile-list .sidehead .tabs {
    transition: none;
  }
}
.mobileZoom {
  bottom: var(--mobile-controls-bottom, calc(160px + env(safe-area-inset-bottom))) !important;
}
body.mobile-controls-hidden .mobileZoom {
  display: none !important;
}
.mobileSearchClose {
  display: none;
}
body.mobile-search-active .mobileSearchClose {
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}
