.tt-bar{display:flex;flex-wrap:wrap;gap:2px;align-items:center;margin-bottom:4px;position:relative}
.tt-btn{min-width:32px;height:32px;padding:0 8px;border:1px solid var(--border-default,#e5e7eb);border-radius:8px;background:var(--surface,#fff);color:inherit;font-size:14px;line-height:1;cursor:pointer}
.tt-btn:hover,.tt-btn[aria-expanded="true"]{background:var(--surface-muted,#f3f4f6)}
.tt-btn:focus-visible{outline:2px solid #3b5bdb;outline-offset:1px}
.tt-pop{position:absolute;z-index:60;top:36px;left:0;width:min(340px,calc(100vw - 32px));background:var(--surface,#fff);border:1px solid var(--border-default,#e5e7eb);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.15);padding:8px}
.tt-pop[hidden]{display:none}
.tt-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border-default,#e5e7eb);padding-bottom:6px;margin-bottom:6px;overflow-x:auto}
.tt-tab{border:0;background:none;font-size:18px;padding:4px 6px;border-radius:6px;cursor:pointer}
.tt-tab[aria-selected="true"]{background:var(--surface-muted,#f3f4f6)}
.tt-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;max-height:220px;overflow-y:auto}
.tt-emoji{border:0;background:none;font-size:22px;height:36px;border-radius:6px;cursor:pointer}
.tt-emoji:hover{background:var(--surface-muted,#f3f4f6)}
.tt-hint{font-size:12px;opacity:.7;margin-left:4px}
.ib-compose .tt-bar{margin:0 0 4px}
