/* OnlyShows 0.11.1: bottom-anchored mobile library and separated thumb controls. */

@media (max-width: 719px) {
  .topbar {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .topbar .brand {
    background: transparent !important;
    box-shadow: none !important;
  }

  .library {
    min-height: calc(100dvh - 96px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  body.mobile-database-tab .library {
    min-height: calc(100dvh - 44px);
  }

  .mobile-workspace-heading {
    margin-bottom: auto;
  }

  html[data-background] body > .mobile-workspace-dock,
  .mobile-workspace-dock {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-filter-row {
    gap: 8px !important;
  }

  .mobile-filter-row > button {
    height: 40px !important;
    border: 1px solid var(--outline-variant) !important;
    border-radius: 999px !important;
    background: var(--surface-container-high) !important;
    box-shadow: 0 5px 14px rgb(0 0 0 / 9%);
  }

  .mobile-filter-row > button.active {
    border-color: color-mix(in srgb, var(--primary) 38%, var(--outline-variant)) !important;
    background: var(--primary-container) !important;
    color: var(--on-primary-container) !important;
  }

  .mobile-database-dock {
    gap: 8px !important;
  }

  .mobile-database-actions {
    grid-template-columns: minmax(0, 1fr) 44px 44px !important;
    gap: 6px !important;
    padding: 4px !important;
    border: 1px solid var(--outline-variant);
    border-radius: 999px;
    background: var(--surface-container-high) !important;
    box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
  }

  .mobile-add-button,
  .mobile-view-button {
    border-radius: 50% !important;
  }

  .mobile-database-search {
    border: 1px solid color-mix(in srgb, var(--outline-variant) 70%, transparent);
    border-radius: 999px !important;
    background: var(--surface-container-lowest) !important;
  }

  html body .mobile-bottom-nav,
  html body .mobile-bottom-nav.is-scroll-hidden,
  html[data-background="prism-mono"] body .mobile-bottom-nav,
  html[data-background="prism-violet"] body .mobile-bottom-nav {
    background: var(--surface-container-high) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .profile-dialog.mobile-tab-page[open] {
    inset: 0 !important;
    padding-bottom: 0 !important;
    background: var(--surface) !important;
  }

  .profile-dialog.mobile-tab-page .insights-scroll {
    padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important;
    background: var(--surface) !important;
  }

  .mobile-profile-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-top: 10px !important;
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    border-radius: 20px;
    background: var(--surface-container-low) !important;
  }

  .mobile-profile-actions button {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 22px !important;
    min-height: 64px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--outline-variant) !important;
    border-radius: 0 !important;
    align-items: center !important;
    align-content: initial !important;
    justify-items: stretch !important;
    gap: 11px !important;
    background: transparent !important;
    text-align: left;
  }

  .mobile-profile-actions button:last-child {
    border-bottom: 0 !important;
  }

  .mobile-profile-actions button > .material-symbols-rounded:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    place-items: center;
    background: var(--primary-container);
    color: var(--on-primary-container);
  }

  .mobile-profile-actions button > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-profile-actions button b {
    font-size: 14px;
  }

  .mobile-profile-actions button small {
    overflow: hidden;
    color: var(--on-surface-variant);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-profile-actions button > .material-symbols-rounded:last-child {
    color: var(--on-surface-variant);
    font-size: 20px;
  }
}
