/* Set View: make Comic Books / Checklist match the My Collection text-underlined tabs. */
.view-toggle-row{
  justify-content:center !important;
  gap:18px !important;
  margin:8px 0 12px !important;
  padding:0 8px !important;
}
.view-toggle-btn{
  appearance:none !important;
  border:none !important;
  border-bottom:1px solid rgba(255,255,255,0.10) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--text) !important;
  padding:0 6px 8px !important;
  min-height:0 !important;
  font-size:14px !important;
  font-weight:400 !important;
  letter-spacing:.01em !important;
  text-transform:none !important;
  gap:0 !important;
  transition:border-bottom-color .18s ease, opacity .18s ease !important;
}
.view-toggle-btn .material-symbols-outlined{
  display:none !important;
}
.view-toggle-btn:hover,
.view-toggle-btn:focus-visible{
  background:transparent !important;
  border-color:transparent !important;
  border-bottom-color:#ffffff !important;
  transform:none !important;
  outline:none !important;
}
.view-toggle-btn[aria-pressed="true"]{
  background:transparent !important;
  border-color:transparent !important;
  border-bottom-color:#ffffff !important;
  color:var(--text) !important;
  opacity:1 !important;
}
@media (max-width:780px){
  .view-toggle-row{
    justify-content:center !important;
    flex-wrap:nowrap !important;
  }
  .view-toggle-btn{
    flex:0 0 auto !important;
    justify-content:center !important;
  }
}

/* Add the existing mobile back-to-top arrow behavior to desktop too. */
@media (min-width:781px){
  .ccc-mobile-scroll-top{
    position:fixed !important;
    right:18px !important;
    bottom:calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    z-index:96 !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    padding:0 !important;
    border-radius:999px !important;
    border:1px solid rgba(255,255,255,.24) !important;
    background:rgba(16,17,20,.78) !important;
    color:#fff !important;
    box-shadow:0 12px 32px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.045) !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    align-items:center !important;
    justify-content:center !important;
    opacity:0 !important;
    pointer-events:none !important;
    transform:translateY(12px) scale(.96) !important;
    transition:opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease !important;
  }
  .ccc-mobile-scroll-top.is-visible{
    display:inline-flex !important;
    opacity:1 !important;
    pointer-events:auto !important;
    transform:translateY(0) scale(1) !important;
  }
  .ccc-mobile-scroll-top:hover{
    background:rgba(255,255,255,.13) !important;
    border-color:rgba(255,255,255,.44) !important;
  }
}

/* The mobile topbar is viewport-fixed; keep anchor targets below it. */
@media (max-width:780px), (hover:none) and (pointer:coarse){
  #result,
  #result > .card,
  .mini-subset-header,
  .comic-cuts-row,
  .ccc-checklist-highlight,
  .ccc-set-overview-card,
  .ccc-set-overview-title,
  .ccc-set-overview-hero{
    scroll-margin-top:calc(var(--topbar-h, 56px) + 14px) !important;
  }
}
