/* Paket „Emoji“ – nutzt die Farben des Designs (CSS-Variablen), sonst neutrale Werte */
.bsemo{position:absolute;z-index:1000;width:352px;max-width:calc(100vw - 16px);height:400px;display:flex;flex-direction:column;
  background:var(--card,#fff);color:var(--text,#222);border:1px solid var(--line,#d5d9e0);border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,.22);overflow:hidden;font-size:14px;text-align:left}
.bsemo[hidden]{display:none}
.bsemo-top{padding:10px 10px 6px}
.bsemo-search{width:100%;box-sizing:border-box;padding:7px 12px;border:1px solid var(--line,#d5d9e0);border-radius:999px;background:var(--inset,#f4f5f8);color:inherit;font:inherit;outline:none}
.bsemo-search:focus{border-color:var(--acc,#3557e0);box-shadow:0 0 0 3px rgba(80,110,230,.18)}
.bsemo-tabs{display:flex;justify-content:space-between;padding:0 6px;border-bottom:1px solid var(--line,#e3e6eb)}
.bsemo-tab{flex:1;border:0!important;background:none!important;padding:5px 0 6px;font-size:18px;line-height:1;cursor:pointer;border-bottom:2px solid transparent!important;opacity:.55;filter:grayscale(.6);border-radius:0;box-shadow:none!important;min-width:0}
.bsemo-tab:hover,.bsemo-tab.on{opacity:1;filter:none}
.bsemo-tab.on{border-bottom-color:var(--acc,#3557e0)!important}
.bsemo-searching .bsemo-tab{opacity:.35}
.bsemo-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 6px 6px;position:relative}
.bsemo-h{position:sticky;top:0;z-index:1;background:var(--card,#fff);padding:8px 4px 4px;font-size:12px;font-weight:600;color:var(--dim,#6b7280)}
.bsemo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr))}
.bsemo-e{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0;width:100%;height:36px;font-size:24px;line-height:36px;text-align:center;cursor:pointer;border-radius:8px;color:inherit;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","BS Emoji Flags","Segoe UI Symbol",sans-serif;min-width:0;overflow:hidden}
.bsemo-e:hover,.bsemo-e:focus{background:var(--soft,#eef1fb)!important;outline:none}
.bsemo-e:focus-visible{box-shadow:inset 0 0 0 2px var(--acc,#3557e0)!important}
.bsemo-none,.bsemo-msg{grid-column:1/-1;display:block;padding:6px 4px 10px;color:var(--dim,#6b7280);font-size:13px}
.bsemo-msg{padding:24px 10px;text-align:center}
.bsemo-foot{display:flex;align-items:center;gap:8px;padding:6px 10px;border-top:1px solid var(--line,#e3e6eb);min-height:34px;box-sizing:border-box}
.bsemo-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--dim,#6b7280)}
.bsemo-tones{display:flex;gap:1px}
.bsemo-tone{border:0!important;background:none!important;box-shadow:none!important;padding:2px!important;margin:0;font-size:17px;line-height:1;cursor:pointer;border-radius:6px;opacity:.5;min-width:0}
.bsemo-tone:hover{opacity:.85}
.bsemo-tone.on{opacity:1;background:var(--soft,#eef1fb)!important}

/* Schaltflächen am Feld */
.ed-bar .bsemo-btn{font-size:16px;line-height:1}
.bsemo-row{text-align:right;margin:2px 0 4px}
.bsemo-plain{border:0!important;background:none!important;box-shadow:none!important;padding:2px 6px!important;font-size:18px;line-height:1;cursor:pointer;border-radius:8px;vertical-align:middle;filter:grayscale(.4);opacity:.8;min-width:0;width:auto!important}
.bsemo-plain:hover,.bsemo-plain[aria-expanded=true]{filter:none;opacity:1;background:var(--soft,#eef1fb)!important}

/* Beiträge, die nur aus 1–3 Emoji bestehen */
.bsemo-big{font-size:2.8em!important;line-height:1.25!important}

/* Schmale Bildschirme: als Leiste am unteren Rand */
@media (max-width:520px){
  .bsemo{position:fixed;left:0;bottom:0;top:auto!important;width:100%;max-width:none;height:min(380px,60vh);border-radius:16px 16px 0 0}
}
