/* Rufiyaa Update 3: More menu visual-only polish. No header-button movement (Rewind archive target). */
body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) .header-actions #u2-header-menu.u3-polished-more-menu,
.header-actions #u2-header-menu.u3-polished-more-menu {
  width: min(286px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  right: 0;
  top: calc(100% + 10px);
  padding: 8px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.72);
  background: color-mix(in srgb,var(--card,#fff) 72%,transparent);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  backdrop-filter: blur(28px) saturate(155%);
  box-shadow: 0 16px 42px rgba(28,55,52,.15), inset 0 1px 0 rgba(255,255,255,.36);
}
.header-actions #u2-header-menu.u3-polished-more-menu hr{display:none!important}
body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) .header-actions #u2-header-menu.u3-polished-more-menu .u3-more-action,
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-action{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  justify-content:initial!important;
  width:100%;
  min-height:46px;
  padding:10px 12px!important;
  margin:1px 0;
  border-radius:13px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left!important;
  font-size:14px;
  font-weight:640;
  line-height:1.25;
  cursor:pointer;
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-action:hover,
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-action:focus-visible{
  background:rgba(82,140,120,.1);
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-action:focus-visible{
  outline:2px solid rgba(5,107,79,.72);outline-offset:-2px;
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-icon{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  color:currentColor;
  opacity:.76;
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-text{display:block;min-width:0;white-space:normal;overflow-wrap:break-word}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-count{
  padding:2px 7px;
  margin:0;
  border-radius:20px;
  background:rgba(11,120,81,.13);
  color:inherit;
  font-size:11px;
}
/* Sync remains the original button: tapping opens the approved Sync Review action. */
body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) .header-actions #u2-header-menu.u3-polished-more-menu .u2-sync-footer.u3-more-sync,
.header-actions #u2-header-menu.u3-polished-more-menu .u2-sync-footer.u3-more-sync{
  min-height:42px!important;
  padding:10px 12px 7px!important;
  margin:7px 2px 1px!important;
  width:calc(100% - 4px)!important;
  border:0!important;
  border-top:1px solid rgba(86,121,108,.2)!important;
  border-radius:0 0 12px 12px!important;
  color:inherit;
  opacity:.88;
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-sync .u2-sync-indicator{
  width:22px;height:22px;font-size:12px;
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-sync .u2-sync-copy strong{
  font-size:11px!important;font-weight:570!important;
}
.header-actions #u2-header-menu.u3-polished-more-menu .u3-more-sync .u2-sync-retry-label{
  color:#a15d2a;
}
@media(max-width:480px){.header-actions #u2-header-menu.u3-polished-more-menu{width:min(276px,calc(100vw - 24px))}}
@media(prefers-reduced-motion:reduce){.header-actions #u2-header-menu.u3-polished-more-menu{animation:none!important}}
