.rv-sticker-sheet{width:min(540px,94vw);max-height:82dvh;border:1px solid #fff9;padding:18px;border-radius:28px;background:#fffffff0;backdrop-filter:blur(28px);color:#222;box-shadow:0 15px 70px #0002}.rv-sticker-sheet::backdrop{background:#0003;backdrop-filter:blur(5px)}.rv-sticker-sheet header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.rv-sticker-sheet h2{font-size:17px;margin:0}.rv-sticker-sheet button{font:inherit;border:0;cursor:pointer;background:transparent;color:inherit}.rv-sticker-sheet header button{border-radius:50%;background:#f2f2f7;width:30px;height:30px;font-size:24px;line-height:1}.rv-sticker-sheet>input{width:100%;box-sizing:border-box;padding:12px 16px;border:1px solid #e5e5ea;border-radius:22px;background:#f8f8fa;font:inherit;font-size:14px;outline:0}.rv-sticker-tabs{display:flex;gap:8px;overflow:auto;margin:14px 0;padding-bottom:4px}.rv-sticker-tabs button{white-space:nowrap;border:1px solid #eee;border-radius:22px;padding:8px 14px;font-size:12px;color:#777}.rv-sticker-tabs button[data-active=true]{background:#e9e9f1;color:#444}.rv-sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:52dvh;overflow:auto;padding:2px}.rv-sticker-grid>button{min-width:0;padding:6px;border:1px solid #eee;border-radius:18px;background:#fff}.rv-sticker-grid img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px;display:block}.rv-sticker-grid small{display:block;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:7px 2px 3px;color:#777}.rv-sticker-grid>p{grid-column:1/-1;font-size:13px;color:#888;line-height:1.6}.rv-role-checks{display:flex;flex-direction:column;gap:10px;padding:12px 16px}.rv-role-checks label{font-size:13px;display:flex;gap:10px}.rv-sticker-import{width:100%;border:0;background:#f6f6f9;padding:12px;border-radius:14px;font:13px/1.7 system-ui;resize:vertical}

.rv-sticker-toolbar{display:flex;gap:14px;align-items:center;margin:16px 0}.rv-sticker-toolbar button,.rv-category-head button,#stickerFileImport button{border:0;background:transparent;color:#007aff;font:inherit;font-size:14px;padding:10px 0;cursor:pointer}.rv-sticker-toolbar #bulkDelete{margin-left:auto;color:#ff3b30}.rv-sticker-toolbar button:disabled{opacity:.4}.rv-category{background:#fff;border-radius:20px;padding:16px;margin:16px 0}.rv-category-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.rv-category-head h2{font-size:15px;font-weight:600;margin:0;overflow-wrap:anywhere}.rv-category-head button{white-space:nowrap}.rv-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rv-category-sticker{min-width:0;border:1px solid transparent;background:#f8f8fa;border-radius:14px;padding:8px;cursor:pointer}.rv-category-sticker img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:10px}.rv-category-sticker span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:12px/1.5 system-ui;color:#777;margin-top:8px}.rv-category-sticker[data-selected=true]{border-color:#007aff;background:#eaf3ff}#stickerFileImport{margin:4px 0 12px}

.rv-reaction-link{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-radius:18px;padding:18px 16px;margin:14px 0;color:#1c1c1e;text-decoration:none}.rv-reaction-link strong{font-size:15px}.rv-reaction-link span{font-size:12px;color:#007aff}.rv-reaction-editor{padding:16px;border-radius:18px;background:#fff;margin:16px 0}.rv-reaction-editor h2{font-size:16px;margin:0 0 12px}.rv-reaction-editor label,#reactionEditDialog label{display:block;font-size:13px;color:#62626a;margin:12px 0}.rv-reaction-editor input,.rv-reaction-editor textarea,#reactionEditDialog input,#reactionEditDialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #e5e5ea;border-radius:11px;background:#fafafa;color:#1c1c1e;resize:vertical}.rv-reaction-editor #addReactions{width:100%;border:0;border-radius:12px;background:#007aff;color:#fff;padding:12px}.rv-reaction-editor p,#reactionEditStatus{font-size:12px;color:#74747a}.rv-reaction-library-grid{display:flex;flex-wrap:wrap;gap:8px}.rv-reaction-library-item{max-width:100%;border:1px solid #e8e8ed;border-radius:14px;background:#f8f8fa;padding:9px 12px;color:#1c1c1e;font-size:19px;line-height:1.4;overflow-wrap:anywhere;white-space:normal}.rv-reaction-sheet{width:min(560px,94vw);max-height:78dvh;border:0;border-radius:24px;padding:16px;background:#fffffff2;box-shadow:0 15px 65px #0003}.rv-reaction-sheet::backdrop{background:#0005}.rv-reaction-sheet header{display:flex;align-items:center;justify-content:space-between}.rv-reaction-sheet h2{font-size:17px;margin:0}.rv-reaction-sheet header button{font-size:25px;border:0;background:transparent}.rv-reaction-tabs{display:flex;gap:7px;overflow-x:auto;margin:14px 0}.rv-reaction-tabs button{white-space:nowrap;border:1px solid #e5e5ea;border-radius:16px;background:#fff;padding:8px 12px;color:#5c5c64}.rv-reaction-tabs button[data-active=true]{background:#e9e9f1;color:#222}.rv-reaction-grid{display:flex;flex-wrap:wrap;gap:9px;max-height:50dvh;overflow-y:auto}.rv-reaction-grid button{max-width:100%;padding:9px 11px;border:1px solid #e7e7eb;border-radius:14px;background:#fff;font-size:20px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;color:#222}.rv-reaction-grid p{color:#777;font-size:13px}

body.reaction-page .ios-header{display:grid;grid-template-columns:minmax(90px,1fr) auto minmax(90px,1fr);gap:8px}
body.reaction-page .ios-header>a{justify-self:start;white-space:nowrap}
body.reaction-page .ios-header h1{justify-self:center;text-align:center;white-space:nowrap;font-size:19px}
body.reaction-page .ios-header>button{justify-self:end;white-space:nowrap}
.rv-reaction-manage{display:flex;align-items:center;gap:10px;margin:14px 2px 0}
.rv-reaction-manage[hidden]{display:none}
.rv-reaction-manage button{border:0;background:#fff;border-radius:12px;color:#007aff;padding:9px 12px;font-size:13px}
.rv-reaction-manage span{flex:1;text-align:center;color:#74747b;font-size:12px}
.rv-reaction-manage #deleteSelectedReactions{color:#d84848}
.rv-reaction-manage button:disabled{opacity:.4}
.rv-reaction-library-item.selected{border-color:#697bb0;background:#ecf0fc;box-shadow:inset 0 0 0 1px #697bb0}
.rv-reaction-library-item.kaomoji{font-size:15px;letter-spacing:-.1px}
.rv-reaction-sheet>input{display:block;width:100%;box-sizing:border-box;margin:14px 0 2px;padding:10px 13px;border:0;border-radius:12px;background:#f0f0f4;color:#27272a;outline:none;font-size:14px}
.rv-reaction-grid{max-height:47dvh;gap:7px}
.rv-reaction-grid button{min-width:45px;min-height:43px;padding:7px;border-radius:11px;font-size:23px}
.rv-reaction-grid button.kaomoji{font-size:15px;padding:8px 10px}
.rv-reaction-more{width:100%;margin-top:10px;padding:11px;border:0;border-radius:11px;background:#f1f2f7;color:#677bb0;font-size:13px}
.rv-reaction-more[hidden]{display:none}

/* Inline chat panel follows the composer, leaving the transcript visible. */
.rv-composer-sticker-panel[hidden]{display:none!important;}
.rv-composer-sticker-panel{min-width:0;margin-bottom:10px;max-height:min(42dvh,340px);overflow:hidden;}
.rv-composer-sticker-panel .rv-sticker-dock{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:100%;height:min(40dvh,320px);max-height:320px;margin:0;padding:12px;border-radius:20px;box-shadow:none;}
.rv-sticker-dock header{flex:0 0 auto;margin-bottom:8px;}
.rv-sticker-dock>input{flex:0 0 auto;padding:8px 12px;}
.rv-sticker-dock .rv-sticker-tabs{flex:0 0 auto;margin:8px 0;max-width:100%;overflow-x:auto;}
.rv-sticker-dock .rv-sticker-grid{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 0 6px;}
.rv-sticker-dock .rv-sticker-grid img{max-height:64px;object-fit:contain;}

/* Sticker catalogue and category detail */
.sticker-library-page{background:#f5f5f5;min-height:100dvh}
.sticker-library-page [hidden]{display:none!important}
.sticker-library-page .sticker-nav{top:0;z-index:10;background:#f5f5f5;backdrop-filter:none;-webkit-backdrop-filter:none;padding:var(--rv-native-safe-top,env(safe-area-inset-top,0px)) 16px 0;min-height:calc(40px + var(--rv-native-safe-top,env(safe-area-inset-top,0px)))}
.sticker-nav-actions{display:flex;align-items:center;gap:16px;margin-left:auto}
.sticker-library-page .sticker-nav a,.sticker-library-page .sticker-nav button{white-space:nowrap;font-size:14px;padding:8px 0;color:#394059}
.sticker-library-page .sticker-library{width:min(100%,680px);max-width:680px;margin:0 auto;padding:4px 14px calc(28px + var(--rv-native-safe-bottom,env(safe-area-inset-bottom,0px)))}
.sticker-library h1{font-size:30px;line-height:1.2;letter-spacing:-.03em;margin:0 7px 10px;overflow-wrap:anywhere}
.sticker-search{display:flex;align-items:center;gap:9px;padding:0 14px;border-radius:22px;background:#e8e8e8;color:#666}
.sticker-search svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
.sticker-search input{min-width:0;width:100%;height:45px;border:0;background:transparent;color:#212126}
.sticker-search:focus-within{outline:2px solid #6984a6;outline-offset:2px}
.sticker-search input:focus{outline:none}
.sticker-directory-meta{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;margin:7px 4px 3px;color:#626268;font-size:13px}
.sticker-directory-meta p,#stickerFileImport{margin:0}
.sticker-library #stickerFileImport button{font-size:13px;color:#394059}
#stickerCategoryTabs{display:flex;gap:8px;overflow-x:auto;padding:3px 0 7px;margin:0 0 5px}
#stickerCategoryTabs button{flex:none;min-height:38px;border:0;border-radius:13px;background:white;color:#555;padding:7px 12px;font-size:14px;white-space:nowrap}
#stickerCategoryTabs button[aria-pressed=true]{background:#e0e0e0;color:#171719;font-weight:650}
.sticker-category-row{display:flex;width:100%;min-height:66px;align-items:center;justify-content:space-between;text-align:start;gap:12px;border:0;border-radius:16px;background:#fff;color:#202024;padding:13px 16px;margin:0 0 10px}
.sticker-category-row strong{font-size:17px;overflow-wrap:anywhere}
.sticker-category-row span{white-space:nowrap;color:#69696e;font-size:13px}
.sticker-library .rv-sticker-toolbar{margin:0 0 10px}
.sticker-library-page .rv-role-checks label{align-items:center;text-align:left;overflow-wrap:anywhere}
.sticker-library-page .rv-role-checks label input{width:auto;margin:0;flex:none}
