/* Emoji List — локальные стили */
.el { --cell: 40px; --efs: 26px; position: relative; }
.el.size-s { --cell: 32px; --efs: 20px; }
.el.size-l { --cell: 56px; --efs: 36px; }
.el-top { position: sticky; top: 64px; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: var(--r-card) var(--r-card) 0 0; padding: 14px 16px 0; }
.el-searchrow { display: flex; gap: 8px; align-items: center; }
.el-search { position: relative; flex: 1; min-width: 0; }
.el-search .search-input { padding-right: 40px; }
.el-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.el-x:hover { background: var(--canvas); color: var(--ink); }
.el-x[hidden] { display: none; }
.el-more { display: none; width: 44px; padding: 0; font-size: 20px; }
.el-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 0 0; font-size: 14px; }
.el-opts label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.el-opts .field { display: inline-flex; align-items: center; gap: 8px; }
.el-opts select { height: 36px; padding: 0 10px; font: 400 14px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.el-opts input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.el-opts .segmented { position: relative; }
.el-opts .segmented label { padding: 6px 12px; }
.el-tones { display: inline-flex; gap: 4px; position: relative; }
.el-tones label { position: relative; padding: 3px; border-radius: 50%; border: 2px solid transparent; }
.el-tones input { position: absolute; opacity: 0; pointer-events: none; }
.el-tones label:has(input:checked) { border-color: var(--blue); }
.el-tones label:has(input:focus-visible) { box-shadow: var(--focus); }
.tn { display: block; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.t0 { background: #FFCC22; } .t1 { background: #F7DECE; } .t2 { background: #F3D2A2; } .t3 { background: #D5AB88; } .t4 { background: #AF7E57; } .t5 { background: #7C533E; }
.el-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0; }
.el-chip { font: 500 13px var(--font); color: var(--ink); background: var(--canvas); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.el-chip:hover { border-color: var(--blue); color: var(--blue); }
.el-cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 12px; }
.el-cats::-webkit-scrollbar { display: none; }
.el-cats[hidden] { display: none; }
.el-cats a { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 10px; color: var(--muted); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.el-cats a:hover { color: var(--ink); text-decoration: none; }
.el-cats a[aria-current="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.el-cats a[hidden] { display: none; }
.el-cats a span { font-size: 18px; line-height: 1; }
.el-body { padding: 4px 16px 16px; min-height: 400px; }
.el-body .notice { margin: 12px 0 0; }
.el-count { margin: 12px 0 0; }
.eg { scroll-margin-top: 260px; }
.eg[hidden] { display: none; }
.eg-h { font-size: 15px; font-weight: 650; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.eg-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.eg-lazy { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.ec {
  width: var(--cell); height: var(--cell); padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: var(--efs)/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  display: grid; place-items: center; overflow: hidden; transition: background .1s, transform .1s;
}
.ec:hover { background: var(--blue-tint); }
.ec:focus-visible { box-shadow: var(--focus); background: var(--blue-tint); }
.ec:active { transform: scale(.92); }
.ec.unsupported { outline: 1px dashed var(--muted); outline-offset: -2px; opacity: .55; }
.el.hide-unsup .ec.unsupported { display: none; }
.esg { flex: none; width: 1px; height: calc(var(--cell) - 12px); align-self: center; border: 0; background: var(--border); margin: 0 5px; }
.el-link { font: 500 13px var(--font); color: var(--blue); background: none; border: 0; padding: 0; margin-left: auto; cursor: pointer; }
.el-link:hover { text-decoration: underline; }
.el-empty p { margin: 8px 0 12px; }
.el-more-res { margin-top: 10px; flex-basis: 100%; }
.el-bottom { position: sticky; bottom: 0; z-index: 5; }
.el-status { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--border); background: var(--surface); min-height: 56px; }
.es-e { font: 34px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; width: 40px; text-align: center; }
.es-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-hint { white-space: nowrap; }
.el-strip { display: flex; align-items: center; gap: 10px; padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--blue-tint); }
.el-strip[hidden] { display: none; }
.es-items { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.es-items button { flex: none; border: 0; background: none; padding: 2px; font: 26px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: pointer; border-radius: 6px; }
.es-items button:hover { background: var(--danger-tint); }
.es-actions { display: flex; gap: 6px; flex: none; }
.el-panel {
  position: fixed; z-index: 40; width: 380px; max-width: calc(100vw - 24px); max-height: calc(100vh - 100px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 12px 40px rgba(23, 32, 51, .18); padding: 18px;
}
.el-panel[hidden] { display: none; }
.ep-close { top: 22px; right: 10px; transform: none; }
.ep-head { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.ep-e { font: 56px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ep-head h3 { margin: 0 0 2px; font-size: 18px; }
.ep-tones { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.ep-tones[hidden] { display: none; }
.ep-tones button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: 28px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: pointer; }
.ep-tones button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); }
.ep-codes { margin: 14px 0 8px; }
.ep-codes > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border); }
.ep-codes dt { font-size: 13px; color: var(--muted); }
.ep-codes dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ep-codes code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.ep-kw { color: var(--muted); }
.el-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 12px; font-size: 15px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: el-toast .18s ease-out;
}
.el-toast[hidden] { display: none; }
.el-toast input { display: block; margin-top: 8px; width: 100%; font: 24px/1.2 var(--font); padding: 4px 8px; border-radius: 8px; border: 0; }
@keyframes el-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .el-toast { animation: none; } .ec { transition: none; } }
@media (max-width: 768px) {
  .el { --cell: 44px; --efs: 28px; }
  .el.size-s { --cell: 36px; --efs: 22px; }
  .el.size-m { --cell: 40px; --efs: 26px; }
  .el.size-l { --cell: 44px; --efs: 30px; }
  .el-top { top: 60px; padding: 10px 12px 0; }
  .el-more { display: inline-flex; }
  .el-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 8px 12px 0; position: relative; }
  .el-chips::-webkit-scrollbar { display: none; }
  .el-chip { flex: none; padding: 6px 14px; }
  .el-opts { display: none; padding: 10px 0 4px; }
  .el-opts.open { display: flex; }
  .el-cats { margin: 8px -12px 0; padding: 0 8px; }
  .el-cats a { padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; }
  .el-cats a b { display: none; }
  .el-cats a span { font-size: 22px; }
  .el-body { padding: 4px 12px 12px; }
  .eg-grid { gap: 2px; }
  .esg { margin: 0 3px; }
  .eg { scroll-margin-top: 220px; }
  .el-status { display: none; }
  .el-strip { padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .es-items { flex-basis: 100%; }
  .es-actions { width: 100%; }
  .es-actions .btn { flex: 1; }
  .el-panel { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .el-toast { bottom: 140px; }
}
