/* emoji-panel.css — the full emoji panel (see emoji-panel.js). Replaces the old fixed 8-column sticker grid. */
.sticker-picker.kc-emoji-panel { display: flex; flex-direction: column; gap: 0; grid-template-columns: none; height: min(46vh, 340px); max-height: none; overflow: hidden; padding: 0; }
.sticker-picker.kc-emoji-panel.is-hidden { display: none; }

.kc-ep-search { align-items: center; background: #f2f3f7; border-radius: 12px; display: flex; flex: 0 0 auto; gap: 8px; margin: 10px 12px 6px; padding: 0 12px; }
.kc-ep-search svg { fill: none; flex: 0 0 auto; height: 16px; stroke: #8a92a6; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 16px; }
.kc-ep-search-input { background: transparent; border: 0; color: inherit; flex: 1; font: inherit; font-size: 16px; /* 16px = no iOS zoom-on-focus */ min-width: 0; outline: none; padding: 9px 0; }
.kc-ep-search-input::placeholder { color: #98a0b2; }

.kc-ep-tabs { border-bottom: 1px solid #dce0eb; display: flex; flex: 0 0 auto; gap: 2px; overflow-x: auto; padding: 0 8px 4px; scrollbar-width: none; }
.kc-ep-tabs::-webkit-scrollbar { display: none; }
.kc-ep-tab { align-items: center; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; color: #8a92a6; cursor: pointer; display: flex; flex: 1 0 auto; height: 34px; justify-content: center; min-width: 38px; padding: 0; }
.kc-ep-tab svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 19px; }
.kc-ep-tab.is-active { border-bottom-color: #6a5cf0; color: #6a5cf0; }

.kc-ep-title { color: #8a92a6; flex: 0 0 auto; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 8px 14px 2px; text-transform: uppercase; }
.kc-ep-title:empty { display: none; }
.kc-ep-grid { -webkit-overflow-scrolling: touch; display: grid; flex: 1 1 auto; gap: 2px; grid-auto-rows: 42px; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 10px; touch-action: pan-y; }
.kc-ep-item { font-size: 26px; height: 42px; width: auto; }
.kc-ep-empty { color: #8a92a6; font-size: 12px; grid-column: 1 / -1; margin: 24px 0; text-align: center; }

body[data-theme="dark"] .kc-ep-search { background: rgba(255,255,255,.07); }
body[data-theme="dark"] .kc-ep-search svg { stroke: #8e98ad; }
body[data-theme="dark"] .kc-ep-tabs { border-bottom-color: rgba(255,255,255,.07); }
body[data-theme="dark"] .kc-ep-tab { color: #8e98ad; }
body[data-theme="dark"] .kc-ep-tab.is-active { border-bottom-color: #a89bff; color: #a89bff; }
body[data-theme="dark"] .kc-ep-title, body[data-theme="dark"] .kc-ep-empty { color: #8e98ad; }
