@media (min-width: 768px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body > main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: clip;
  }

  body > main > header,
  body > main > .desktop-search-shell,
  body > main > .hidden.md\:flex {
    flex-shrink: 0;
  }

  #bookmark-content-shell {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}

#bookmark-content-shell {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#bookmark-content-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

input::selection,
textarea::selection {
  background-color: #2f6b3a !important;
  color: #fff !important;
}

input::-moz-selection,
textarea::-moz-selection {
  background-color: #2f6b3a !important;
  color: #fff !important;
}

#grid-view .home-bookmark-card:focus-visible {
  border-radius: 12px;
  outline: 2px solid #2f6b3a;
  outline-offset: 4px;
}

.bookmark-favicon-shell:not(.bookmark-favicon-shell-loaded) {
  background: var(--bookmark-monogram-background);
}

.bookmark-favicon-tone-0 { --bookmark-monogram-background: #e7edf7; --bookmark-monogram-color: #344b70; }
.bookmark-favicon-tone-1 { --bookmark-monogram-background: #e4f1ed; --bookmark-monogram-color: #285d51; }
.bookmark-favicon-tone-2 { --bookmark-monogram-background: #f4eadf; --bookmark-monogram-color: #775034; }
.bookmark-favicon-tone-3 { --bookmark-monogram-background: #eee8f5; --bookmark-monogram-color: #5e4977; }
.bookmark-favicon-tone-4 { --bookmark-monogram-background: #f3e7e8; --bookmark-monogram-color: #78464f; }
.bookmark-favicon-tone-5 { --bookmark-monogram-background: #e6eff2; --bookmark-monogram-color: #315d6b; }
.bookmark-favicon-tone-6 { --bookmark-monogram-background: #edf0e3; --bookmark-monogram-color: #536038; }
.bookmark-favicon-tone-7 { --bookmark-monogram-background: #eeeae4; --bookmark-monogram-color: #5f5548; }

.bookmark-favicon-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bookmark-monogram-color);
  font-family: inherit;
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1;
  user-select: none;
}

.bookmark-favicon-card-shell .bookmark-favicon-monogram {
  font-size: 1.35rem;
}

.bookmark-favicon-shell-loaded .bookmark-favicon-monogram {
  display: none;
}

.bookmark-favicon-shell:not(.bookmark-favicon-shell-loaded) .bookmark-favicon-img {
  opacity: 0;
}

.bookmark-favicon-shell-small .bookmark-favicon-img,
.bookmark-favicon-card-shell.bookmark-favicon-shell-small .bookmark-favicon-img {
  width: min(var(--bookmark-small-icon-size, 32px), 70%);
  height: min(var(--bookmark-small-icon-size, 32px), 70%);
  object-fit: contain;
  border-radius: 12%;
}

body.wallpaper-enabled .bookmark-favicon-shell:not(.bookmark-favicon-shell-loaded) {
  background: var(--bookmark-monogram-background);
}

#grid-view .home-bookmark-card .bookmark-favicon-grid-shell {
  box-shadow: 0 0 16px 2px rgba(15, 23, 42, 0.11), 0 8px 18px -5px rgba(15, 23, 42, 0.16);
  translate: 0 0;
  transition: box-shadow 180ms ease, translate 180ms ease;
}

#grid-view .home-bookmark-card:hover .bookmark-favicon-grid-shell {
  box-shadow: 0 0 18px 2px rgba(15, 23, 42, 0.14), 0 12px 24px -4px rgba(15, 23, 42, 0.2);
  translate: 0 -2px;
}
