.cat-tab.cat-locked{
  position:relative;overflow:visible;
  filter:none;opacity:1;
}
.cat-tab.cat-locked::before{
  content:'🔒';position:absolute;top:-3px;right:6px;z-index:3;
  display:grid;place-items:center;width:13px;height:13px;border-radius:50%;
  background:rgba(18,7,35,.72);font-size:7px;line-height:1;
  box-shadow:0 1px 4px rgba(0,0,0,.28);
}
.cat-tab.cat-locked:active{transform:scale(.97)}
#cat-toggle-btn{pointer-events:auto!important;touch-action:manipulation}
#cat-panel.open{
  display:flex!important;visibility:visible!important;opacity:1!important;
  pointer-events:auto!important;
}
/* 类目面板向输入栏上方展开；打开时必须解除收缩动画容器的裁剪。 */
#gua-control-stage.cat-panel-visible{
  overflow:visible;
  z-index:80;
}
.category-lock-toast{
  position:fixed;left:50%;bottom:calc(118px + env(safe-area-inset-bottom,0px));z-index:12100;
  width:min(344px,calc(100vw - 32px));padding:13px 15px;border-radius:16px;
  color:#fff9e9;background:linear-gradient(135deg,rgba(72,28,90,.97),rgba(99,42,57,.97));
  border:1px solid rgba(245,205,103,.62);box-shadow:0 16px 42px rgba(28,5,48,.35);
  font-size:13px;font-weight:700;line-height:1.75;text-align:center;letter-spacing:.02em;
  opacity:0;transform:translate3d(-50%,18px,0) scale(.96);
  transition:opacity .36s ease,transform .5s cubic-bezier(.16,1,.3,1);
  pointer-events:none;will-change:transform,opacity;
}
.category-lock-toast.show{opacity:1;transform:translate3d(-50%,0,0) scale(1)}
.category-lock-toast::before{content:'🔒';display:inline-block;margin-right:6px;font-size:12px}
.category-lock-toast.leaving{opacity:0;transform:translate3d(-50%,8px,0) scale(.98);transition-duration:.28s}
.gua-access-reason{
  margin:2px 0 12px;padding:11px 13px;border-radius:13px;text-align:center;
  color:#b52424;background:linear-gradient(135deg,rgba(255,240,224,.96),rgba(255,249,238,.98));
  border:1px solid rgba(183,72,37,.28);box-shadow:0 5px 16px rgba(86,31,15,.08);
  font-size:12px;font-weight:700;line-height:1.75;letter-spacing:.025em;
  animation:guaAccessNoticeIn .48s cubic-bezier(.2,.9,.25,1) both;
}
.gua-access-reason::before{content:'☯';margin-right:6px;color:#9b6120}
@keyframes guaAccessNoticeIn{
  from{opacity:0;transform:translate3d(0,8px,0) scale(.98)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .gua-access-reason{animation:none}
  .category-lock-toast{transition-duration:.01ms!important}
}
