/* YapThing's compact response-mode picker. Anchored to the Yap Auto control. */
html body .composer .compose-row.yap-compose-modes #yap-response-modes{
  position:relative!important;
  z-index:120!important;
}
html body .composer .compose-row.yap-compose-modes #yap-response-modes .yap-mode-panel{
  position:absolute!important;
  left:var(--yap-mode-shift,0px)!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(100% + 8px)!important;
  box-sizing:border-box!important;
  width:min(252px,calc(100vw - 20px))!important;
  max-height:min(45dvh,350px)!important;
  overflow-y:auto!important;
  padding:7px!important;
  border-radius:15px!important;
  background:color-mix(in srgb,var(--panel,#fff) 94%,transparent)!important;
  border:1px solid var(--border)!important;
  box-shadow:0 12px 36px #00000025,0 2px 8px #00000010!important;
  -webkit-backdrop-filter:blur(15px) saturate(1.12);
  backdrop-filter:blur(15px) saturate(1.12);
  scrollbar-width:thin;
}
html body .composer #yap-response-modes .yap-mode-panel h3{
  font-size:12px!important;font-weight:700!important;
  margin:5px 8px 2px!important;
}
html body .composer #yap-response-modes .yap-mode-panel p{
  font-size:10px!important;line-height:1.35!important;
  margin:1px 8px 6px!important;opacity:.68!important;
}
html body .composer #yap-response-modes .yap-mode-panel button{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  gap:1px 5px!important;align-items:center!important;
  width:100%!important;min-height:45px!important;
  margin:1px 0!important;padding:7px 9px!important;
  border-radius:10px!important;
  border:1px solid transparent!important;
  background:transparent!important;color:var(--fg)!important;
  text-align:left!important;
}
html body .composer #yap-response-modes .yap-mode-panel button strong{
  font-size:12px!important;font-weight:650!important;
}
html body .composer #yap-response-modes .yap-mode-panel button span{
  font-size:9px!important;opacity:.65!important;
}
html body .composer #yap-response-modes .yap-mode-panel button small{
  grid-column:1/-1!important;font-size:10px!important;
  line-height:1.35!important;opacity:.67!important;
  display:-webkit-box!important;-webkit-box-orient:vertical;
  -webkit-line-clamp:1;overflow:hidden;
}
html body .composer #yap-response-modes .yap-mode-panel button[aria-pressed=true]{
  background:color-mix(in srgb,var(--accent,#7bca33) 12%,var(--panel,#fff))!important;
  border-color:color-mix(in srgb,var(--accent,#7bca33) 31%,transparent)!important;
}
html body .composer #yap-response-modes .yap-mode-panel button:hover,
html body .composer #yap-response-modes .yap-mode-panel button:focus-visible{
  background:var(--bubble)!important;outline:2px solid transparent!important;
}
html body .composer #yap-response-modes .yap-mode-panel button:focus-visible{
  outline:2px solid var(--accent)!important;outline-offset:-2px!important;
}
@media(max-width:700px){
  html body .composer .compose-row.yap-compose-modes #yap-response-modes .yap-mode-panel{
    max-height:min(43dvh,310px)!important;
    width:min(252px,calc(100vw - 20px))!important;
  }
  html body .composer #yap-response-modes .yap-mode-panel button{min-height:46px!important;}
}
@media(prefers-reduced-transparency:reduce){
  html body .composer .compose-row.yap-compose-modes #yap-response-modes .yap-mode-panel{
    background:var(--panel)!important;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
}
