/* Rodnie Motion 2 */
.motion2-open{width:40px;height:40px;flex:0 0 40px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);display:grid;place-items:center}
.motion2-open svg{width:22px;height:22px}
.motion2-picker{position:fixed;z-index:14000;max-height:min(610px,70vh);background:#fff;color:#17201d;border:1px solid #dbe6e1;border-radius:22px;box-shadow:0 24px 80px rgba(0,0,0,.28);overflow:hidden;display:flex;flex-direction:column}
.dark .motion2-picker{background:#101916;color:#eef7f3;border-color:#2b3b35}
.m2-head{display:flex;align-items:center;padding:10px 12px 6px;gap:8px}.m2-tabs{display:flex;gap:5px;flex:1}.m2-tabs button,.m2-head>[data-close]{border:0;background:transparent;color:inherit;border-radius:10px;padding:8px 11px}.m2-tabs button.on{background:var(--soft);color:var(--a);font-weight:700}.m2-head>[data-close]{font-size:21px}
.m2-search{margin:0 12px 8px;border:1px solid var(--line);background:var(--bg);border-radius:13px;padding:0 10px;display:flex;align-items:center;gap:7px}.m2-search svg{width:17px;height:17px;fill:none;stroke:var(--muted);stroke-width:1.8}.m2-search input{border:0;outline:0;background:transparent;color:var(--ink);width:100%;padding:10px 0}
.m2-body{overflow:auto;min-height:260px}.m2-groups{display:flex;gap:4px;padding:2px 10px 8px;position:sticky;top:0;background:inherit;z-index:2}.m2-groups button{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:7px 10px}.m2-groups button.on{background:var(--soft);color:var(--a)}
.m2-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;padding:8px 10px 14px}.m2-emoji-grid button{aspect-ratio:1;border:0;border-radius:12px;background:transparent;padding:4px}.m2-emoji-grid button:hover{background:var(--soft);transform:scale(1.08)}.m2-emoji-grid img{width:100%;height:100%;object-fit:contain}
.m2-pack-strip{display:flex;gap:6px;padding:6px 10px;border-bottom:1px solid var(--line);overflow:auto}.m2-pack-strip button{width:42px;height:42px;border:0;border-radius:11px;background:var(--soft);padding:3px;flex:0 0 auto}.m2-pack-strip img{width:100%;height:100%;object-fit:contain}
.m2-sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:10px}.m2-sticker-grid button{aspect-ratio:1;border:0;border-radius:15px;background:transparent;padding:4px}.m2-sticker-grid button:hover{background:var(--soft)}.m2-sticker-grid img{width:100%;height:100%;object-fit:contain}
.m2-pack-market{display:grid;gap:10px;padding:10px}.m2-pack-market article{border:1px solid var(--line);border-radius:17px;padding:11px}.m2-pack-title{display:flex;gap:10px;align-items:center}.m2-pack-title>div{flex:1}.m2-pack-title b,.m2-pack-title small{display:block}.m2-pack-title small{color:var(--muted);font-size:10px;margin-top:2px}.m2-pack-title button{border:0;border-radius:10px;padding:8px 10px;background:var(--a);color:#fff}.m2-pack-title button.installed{background:var(--soft);color:var(--ink)}.m2-preview{display:flex;height:62px;gap:2px;margin:8px 0}.m2-preview img{width:58px;height:58px;object-fit:contain}.m2-pack-market p{margin:4px 0 0;color:var(--muted);font-size:11px}.m2-empty{grid-column:1/-1;padding:30px;text-align:center;color:var(--muted)}
.motion2-sticker{width:min(220px,48vw);height:min(220px,48vw);object-fit:contain;display:block;margin:-4px}.motion2-emoji{width:92px;height:92px;object-fit:contain;display:block}
.motion2-effect{pointer-events:none;position:fixed;inset:0;z-index:15000;overflow:hidden}.motion2-effect i{position:absolute;left:50%;top:55%;font-style:normal;font-size:28px;animation:m2burst .85s cubic-bezier(.18,.8,.35,1) both;animation-delay:calc(var(--i)*25ms);color:var(--a)}.motion2-effect.hearts i{color:#ff416c}.motion2-effect.fire i{color:#ff8a30}.motion2-effect.confetti i:nth-child(2n){color:#8e5cff}.motion2-effect.confetti i:nth-child(3n){color:#ffbf2f}
@keyframes m2burst{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}25%{opacity:1}100%{transform:translate(calc(-50% + (var(--i) - 2)*70px),calc(-50% - 120px - var(--i)*12px)) rotate(calc((var(--i) - 2)*35deg)) scale(1.35);opacity:0}}
@media(max-width:760px){.motion2-picker{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-height:72vh;border-radius:22px 22px 0 0}.m2-emoji-grid{grid-template-columns:repeat(7,1fr)}.m2-sticker-grid{grid-template-columns:repeat(4,1fr)}}

/* Rodnie Motion3 performance/layout */
.motion2-picker{max-width:calc(100vw - 20px)!important;overflow:hidden!important}
.m2-body{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;contain:layout paint}
.m2-groups{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.m2-groups::-webkit-scrollbar{display:none}
.m2-groups button{flex:0 0 42px;width:42px;height:38px;padding:5px!important;display:grid;place-items:center}
.m2-groups button img{width:28px;height:28px;object-fit:contain}
.m2-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;overflow:hidden!important;width:100%;box-sizing:border-box}
.m2-emoji-grid button{min-width:0!important;width:100%;max-width:62px;justify-self:center;overflow:hidden;contain:content}
.m2-emoji-grid img{display:block!important;width:48px!important;height:48px!important;max-width:100%!important;margin:auto;object-fit:contain!important}
.m2-more{display:block;margin:4px auto 14px;border:1px solid var(--line);border-radius:12px;padding:9px 14px;background:var(--soft);color:var(--ink)}
.m2-sticker-grid{overflow-x:hidden!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.m2-sticker-grid button{min-width:0;contain:content}
.m2-preview-sticker{width:22px;height:22px;object-fit:contain;vertical-align:middle;flex:0 0 22px}
.m2-preview-icon{width:16px;height:16px;flex:0 0 16px;vertical-align:-3px;color:var(--a);margin-right:3px}
.preview:has(.m2-preview-sticker),.preview:has(.m2-preview-icon){display:flex!important;align-items:center;gap:3px}
.composebox [data-picker] svg{width:22px;height:22px;display:block}
@media(max-width:760px){.m2-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.m2-emoji-grid img{width:44px!important;height:44px!important}}