/* SW_CHAT_20261109 — новый чат-модуль: один файл, без каскада патчей.
   Принципы: плоские поверхности, 3 радиуса (6/10/14), без contain/will-change,
   один таймер на опрос, анимации только на открытии и кнопке. */

#swChatApp{
  position:fixed;right:16px;bottom:92px;z-index:2147483647;
  width:min(440px,34vw);height:min(60vh,560px);
  display:flex;flex-direction:column;gap:8px;box-sizing:border-box;
  padding:12px 14px;border-radius:16px;
  background:linear-gradient(180deg,rgba(12,21,34,.62),rgba(7,12,22,.54));
  border:1px solid rgba(255,206,120,.26);
  color:#e9f1fa;font:400 14px/1.45 "Sora",Manrope,system-ui,sans-serif;
  box-shadow:0 24px 64px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05),0 0 46px rgba(255,180,80,.07);
  backdrop-filter:blur(18px) saturate(1.12);
  -webkit-backdrop-filter:blur(18px) saturate(1.12);
  transition:border-color .12s ease,box-shadow .12s ease;
}
#swChatApp.is-collapsed{display:none}
#swChatApp.edge-hover{
  border-color:#ffe9bb;
  box-shadow:0 0 0 1px rgba(255,233,187,.45) inset,0 24px 70px rgba(0,0,0,.6),0 0 40px rgba(255,190,90,.28);
}

/* шапка */
.swc-head{display:flex;flex-direction:column;gap:8px;flex:0 0 auto}
.swc-row1{display:flex;align-items:center;gap:10px;min-width:0}
.swc-title{
  flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:700 13px/1.2 "Sora",Manrope,system-ui;letter-spacing:.05em;color:#ffe7b8;
}
.swc-nums{
  margin-left:auto;display:flex;align-items:center;gap:10px;flex:0 0 auto;
  font:600 10.5px/1 "Sora",Manrope,system-ui;color:#8ea1b5;white-space:nowrap;
}
.swc-nums b{color:#e9f1fa;font-weight:700}
.swc-nums i{width:5px;height:5px;border-radius:50%;background:#57f28a;display:inline-block;box-shadow:0 0 6px #57f28a}
.swc-tools{display:flex;align-items:center;gap:6px}
.swc-seg{display:flex;gap:4px;flex:0 0 auto}
.swc-btn{
  height:26px;padding:0 10px;border-radius:7px;cursor:pointer;
  border:1px solid rgba(255,255,255,.10);background:rgba(22,29,38,.55);color:#aebccb;
  font:600 11px/1 "Sora",Manrope,system-ui;transition:background .14s ease,color .14s ease,border-color .14s ease;
}
.swc-btn:hover{background:#1d2632;color:#eaf2fb}
.swc-btn.is-on{background:#1d2632;border-color:rgba(255,206,120,.45);color:#ffe7b8}
.swc-ico{width:26px;padding:0;display:grid;place-items:center;font-size:13px}
.swc-ico[data-close]:hover{border-color:rgba(255,120,90,.65);color:#ffd0c0;background:#241a18}

/* лента людей */
.swc-people{
  display:flex;align-items:center;gap:6px;flex:0 0 auto;
  padding:2px 0 8px;border-bottom:1px solid rgba(255,255,255,.06);
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
}
.swc-people::-webkit-scrollbar{height:0}
.swc-pp{
  flex:0 0 26px;width:26px;height:26px;padding:0;border-radius:50%;cursor:pointer;
  border:1px solid rgba(255,206,120,.32);background:#141b24;overflow:hidden;
  display:grid;place-items:center;transition:border-color .14s ease,transform .14s ease;
}
.swc-pp img{width:100%;height:100%;object-fit:cover;display:block}
.swc-pp span{font:700 11px/1 "Sora",Manrope,system-ui;color:#ffe0a8}
.swc-pp:hover{border-color:rgba(255,206,120,.9);transform:translateY(-1px)}

/* лента сообщений */
.swc-list{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  display:block;padding:8px 2px 4px;
}
.swc-list::-webkit-scrollbar{width:4px}
.swc-list::-webkit-scrollbar-thumb{background:rgba(255,206,120,.28);border-radius:2px}
.swc-msg{display:flex;gap:9px;align-items:flex-start;padding:7px 6px;margin:0;border-radius:8px}
.swc-msg + .swc-msg{border-top:1px solid rgba(255,255,255,.04)}
.swc-msg:hover{background:rgba(255,206,120,.04)}
.swc-msg .swc-av{
  flex:0 0 28px;width:28px;height:28px;border-radius:50%;object-fit:cover;display:block;
  border:1px solid rgba(255,206,120,.3);margin-top:2px;cursor:pointer;
}
.swc-msg .swc-av.ph{
  display:grid;place-items:center;background:#1a232e;
  font:700 12px/1 "Sora",Manrope,system-ui;color:#ffe0a8;
}
.swc-body{display:block;flex:1 1 auto;min-width:0}
.swc-meta{display:flex;align-items:baseline;gap:8px;margin:0 0 3px}
.swc-name{font:700 12.5px/1.25 "Sora",Manrope,system-ui;color:#ffdca2}
.swc-time{margin-left:auto;font:500 10px/1.2 "Sora",Manrope,system-ui;color:#6f8195;font-variant-numeric:tabular-nums}
.swc-text{display:block;font:400 14px/1.45 "Sora",Manrope,system-ui;color:#eaf1f9;white-space:normal;overflow-wrap:anywhere}
.swc-text.mine{color:#fff6e3}
.swc-quote{
  display:block;margin:0 0 4px;padding:4px 9px;border-left:2px solid rgba(255,206,120,.5);
  background:rgba(255,206,120,.06);border-radius:0 6px 6px 0;
  font:400 11.5px/1.4 "Sora",Manrope,system-ui;color:#a4b4c6;
}
.swc-quote b{color:#d3ba8c;font-weight:700}
.swc-msg.is-new{animation:swcIn .34s cubic-bezier(.16,1,.3,1) both}
@keyframes swcIn{from{opacity:.15;transform:translateY(5px)}to{opacity:1;transform:none}}
.swc-empty{color:#6f8195;font:500 12.5px/1.5 "Sora",Manrope,system-ui;text-align:center;padding:18px 8px}

/* ответ */
.swc-reply{
  display:none;align-items:center;gap:8px;flex:0 0 auto;
  padding:6px 8px;border-radius:8px;background:rgba(255,206,120,.07);
  border:1px solid rgba(255,206,120,.18);font:500 11.5px/1.3 "Sora",Manrope,system-ui;color:#b9c8d8;
}
.swc-reply.on{display:flex}
.swc-reply span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swc-reply button{width:22px;height:22px;padding:0;border-radius:6px;border:1px solid rgba(255,255,255,.12);background:#161d26;color:#aebccb;cursor:pointer}

/* ввод */
.swc-inputrow{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.swc-input{
  flex:1 1 auto;min-width:0;height:42px;box-sizing:border-box;padding:0 12px;
  border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(16,24,34,.55);color:#f2f7fd;
  font:400 14px/1.2 "Sora",Manrope,system-ui;outline:none;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.swc-input::placeholder{color:#7b8da1}
.swc-input:focus{border-color:rgba(255,206,120,.78);box-shadow:0 0 0 2px rgba(255,190,90,.18);caret-color:#ffcf78}
.swc-send{
  flex:0 0 auto;height:42px;min-width:96px;padding:0 16px;border-radius:10px;cursor:pointer;
  border:1px solid rgba(255,206,120,.42);background:linear-gradient(180deg,#241c10,#171a20);
  color:#ffe7b8;font:600 12.5px/1 "Sora",Manrope,system-ui;
}
.swc-send:hover{background:linear-gradient(180deg,#2e2413,#1c232b)}
.swc-send:disabled{opacity:.55;cursor:default}

/* имя внизу */
.swc-me{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding-top:6px;border-top:1px solid rgba(255,255,255,.06);height:38px;box-sizing:border-box}
.swc-me .swc-av{width:22px;height:22px;flex:0 0 22px;border-radius:50%;overflow:hidden;border:1px solid rgba(255,206,120,.3);background:#1a232e;display:grid;place-items:center;font:700 10px/1 "Sora",Manrope,system-ui;color:#ffe0a8}
.swc-me input{
  width:150px;height:24px;padding:0 8px;border-radius:6px;border:1px solid rgba(255,255,255,.12);
  background:#101822;color:#f2f7fd;font:500 11.5px/1 "Sora",Manrope,system-ui;outline:none;display:none;
}
.swc-me.editing input{display:block}
.swc-me [data-me-save]{display:none}
.swc-me.editing [data-me-save]{display:inline-flex;align-items:center;justify-content:center;color:#9dffd0;border-color:rgba(103,221,178,.45);background:rgba(103,221,178,.10)}
.swc-me button{
  height:24px;padding:0 9px;border-radius:6px;cursor:pointer;
  border:1px solid rgba(255,206,120,.35);background:#1a212b;color:#ffe0a8;
  font:600 10.5px/1 "Sora",Manrope,system-ui;
}
.swc-me .who{font:600 11.5px/1.2 "Sora",Manrope,system-ui;color:#c8d6e4;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ручка ресайза и кромки */
.swc-grip{
  position:absolute;right:3px;bottom:3px;width:22px;height:22px;cursor:nwse-resize;
  background:
    linear-gradient(135deg,transparent 46%,rgba(255,206,120,.55) 47%,rgba(255,206,120,.55) 53%,transparent 54%),
    linear-gradient(135deg,transparent 66%,rgba(255,206,120,.32) 67%,rgba(255,206,120,.32) 73%,transparent 74%);
  opacity:.75;touch-action:none;
}
.swc-grip:hover{opacity:1}
.swc-edge{position:absolute;z-index:5}
.swc-edge.n{top:0;left:10px;right:10px;height:7px;cursor:ns-resize}
.swc-edge.s{bottom:0;left:10px;right:10px;height:7px;cursor:ns-resize}
.swc-edge.w{left:0;top:10px;bottom:10px;width:7px;cursor:ew-resize}
.swc-edge.e{right:0;top:10px;bottom:10px;width:7px;cursor:ew-resize}
.swc-edge.nw,.swc-edge.ne,.swc-edge.sw,.swc-edge.se{width:12px;height:12px}
.swc-edge.nw{top:0;left:0;cursor:nwse-resize}
.swc-edge.ne{top:0;right:0;cursor:nesw-resize}
.swc-edge.sw{bottom:0;left:0;cursor:nesw-resize}
.swc-edge.se{bottom:0;right:0;cursor:nwse-resize}
.swc-edge::after{content:"";position:absolute;background:transparent;transition:background .12s ease}
.swc-edge.n::after,.swc-edge.s::after{left:0;right:0;height:2px;top:50%;transform:translateY(-50%)}
.swc-edge.w::after,.swc-edge.e::after{top:0;bottom:0;width:2px;left:50%;transform:translateX(-50%)}
#swChatApp.edge-hover .swc-edge::after{background:rgba(255,233,187,.9);box-shadow:0 0 12px rgba(255,206,120,.6)}

/* кнопка «открыть чат» */
#swChatStarter{
  position:fixed;right:16px;bottom:96px;z-index:2147483646;
  display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 18px 0 14px;
  border-radius:999px;cursor:pointer;border:1px solid rgba(255,206,120,.55);
  background:linear-gradient(180deg,#141c26,#0d141d);color:#ffe7b8;
  font:700 12.5px/1 "Sora",Manrope,system-ui;letter-spacing:.06em;
  box-shadow:0 14px 34px rgba(0,0,0,.55),0 0 24px rgba(255,186,74,.16);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;will-change:transform;
}
#swChatStarter[hidden]{display:none!important}
#swChatStarter:hover{border-color:rgba(255,232,180,.95);transform:translateY(-1px);box-shadow:0 18px 40px rgba(0,0,0,.6),0 0 34px rgba(255,186,74,.32)}
#swChatStarter .ic{font-size:17px;line-height:1}
#swChatStarter .bd{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;background:rgba(87,242,138,.10);border:1px solid rgba(87,242,138,.35);color:#9ff0bd;font:700 11px/1 "Sora",Manrope,system-ui}
#swChatStarter .bd i{width:5px;height:5px;border-radius:50%;background:#57f28a;box-shadow:0 0 6px #57f28a}

@keyframes swcDogShake{
  0%{transform:translate3d(0,0,0) rotate(0) scale(1)}
  8%{transform:translate3d(-5px,2px,0) rotate(-2.4deg) scale(1.02)}
  18%{transform:translate3d(5px,-2px,0) rotate(2.2deg) scale(1.015)}
  28%{transform:translate3d(-4px,1px,0) rotate(-1.7deg) scale(1.01)}
  40%{transform:translate3d(3px,-1px,0) rotate(1.2deg) scale(1.006)}
  54%{transform:translate3d(-2px,1px,0) rotate(-.8deg) scale(1.003)}
  70%{transform:translate3d(1px,0,0) rotate(.4deg) scale(1.001)}
  100%{transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes swcZoom{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
#swChatStarter.buzz{animation:swcDogShake .95s cubic-bezier(.36,.07,.19,.97) both}
#swChatApp.pop{animation:swcZoom .26s cubic-bezier(.16,1,.3,1) both}

/* оверлеи аватара и вопроса */
#swChatAvView{
  position:fixed;inset:0;z-index:2147483647;display:none;place-items:center;
  background:rgba(4,7,11,.72);backdrop-filter:blur(4px);
}
#swChatAvView.on{display:grid}
#swChatAvView .big{
  width:min(320px,64vw);height:min(320px,64vw);border-radius:50%;object-fit:cover;
  border:2px solid rgba(255,206,120,.75);background:#141b24;
  box-shadow:0 40px 120px rgba(0,0,0,.8);
}
#swChatAvView .big.ph{display:grid;place-items:center;font:700 96px/1 "Sora",Manrope,system-ui;color:#ffe0a8}
#swChatAvView .cap{margin-top:12px;padding:6px 12px;border-radius:8px;background:rgba(10,14,20,.85);border:1px solid rgba(255,206,120,.22);font:600 13px/1.2 "Sora",Manrope,system-ui;color:#ffe7b8}
#swChatAvView .up{display:block;margin-top:4px;font:600 9.5px/1.2 "Sora",Manrope,system-ui;color:#9ff0bd;letter-spacing:.1em}
#swChatAvView .x{position:absolute;top:18px;right:18px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,206,120,.35);background:#111823;color:#ffe7b8;font:600 18px/1 "Sora",Manrope,system-ui;cursor:pointer}
#swChatAsk{position:fixed;inset:0;z-index:2147483647;display:none;place-items:center;background:rgba(4,7,11,.62);backdrop-filter:blur(3px)}
#swChatAsk.on{display:grid}
#swChatAsk .card{width:min(340px,86vw);padding:18px 18px 14px;border-radius:14px;background:#0e141d;border:1px solid rgba(255,206,120,.34);box-shadow:0 30px 80px rgba(0,0,0,.7);text-align:center}
#swChatAsk .q{margin:0 0 6px;font:700 15px/1.3 "Sora",Manrope,system-ui;color:#ffe7b8}
#swChatAsk .s{margin:0 0 14px;font:400 12px/1.4 "Sora",Manrope,system-ui;color:#8ea1b5}
#swChatAsk .b{display:flex;gap:8px}
#swChatAsk button{flex:1;height:38px;border-radius:9px;border:1px solid rgba(255,206,120,.35);background:#161d26;color:#eaf2fb;font:600 12.5px/1 "Sora",Manrope,system-ui;cursor:pointer}
#swChatAsk button.yes{background:linear-gradient(180deg,#2b2110,#1b1a16);color:#ffe7b8}
#swChatToast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,10px);z-index:2147483647;padding:10px 16px;border-radius:10px;background:rgba(10,14,20,.95);border:1px solid rgba(255,206,120,.3);color:#ffe7b8;font:600 12.5px/1 "Sora",Manrope,system-ui;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}
#swChatToast.on{opacity:1;transform:translate(-50%,0)}

@media (max-width:820px){
  #swChatApp{left:8px;right:8px;bottom:8px;width:auto;height:auto;max-height:74svh;border-radius:16px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  #swChatApp .swc-list{min-height:120px;max-height:calc(74svh - 220px)}
  #swChatApp .swc-input{font-size:16px;height:46px}
  #swChatApp .swc-send{height:46px;min-width:76px}
  #swChatStarter{right:12px;bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){
  #swChatStarter.buzz,#swChatApp.pop,.swc-msg.is-new{animation:none!important}
}

/* SW_BELL_ICONS_20261109 — SVG-иконки звука: тонкая линия, 16px, текущий цвет */
#swChatApp .swc-ico svg{
  width:16px;height:16px;display:block;
  stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
#swChatApp .swc-ico[data-snd]{display:grid;place-items:center;width:28px}
#swChatApp .swc-ico[data-snd].is-on{color:#ffe7b8}
#swChatApp .swc-ico[data-snd]:not(.is-on){color:#8ea1b5}

/* SW_CHAT_HEAD_RIGHT_20261109 — счётчики у заголовка, органы управления справа */
#swChatApp .swc-row1{gap:10px}
#swChatApp .swc-nums{margin-left:2px;margin-right:0}
#swChatApp .swc-ctl{margin-left:auto;display:flex;align-items:center;gap:6px;flex:0 0 auto}
#swChatApp .swc-tools{justify-content:flex-start}
#swChatApp .swc-ctl .swc-ico{width:26px;padding:0;display:grid;place-items:center}

/* SW_EMOJI_PICK_FIX_20261109 — поле ввода не выпускает эмодзи за рамку */
#swChatApp .swc-input{line-height:1.15;overflow:hidden;text-overflow:ellipsis}
#swChatApp .swc-input::selection{background:rgba(255,206,120,.35)}

/* SW_CHAT_EXCHANGE_20261109 — красивый обмен картинками */
#swChatApp .swc-attach-wrap{display:block;margin:5px 0 2px}
#swChatApp .swc-attach{
  display:block;max-width:240px;max-height:240px;border-radius:10px;cursor:zoom-in;
  border:1px solid rgba(255,206,120,.28);box-shadow:0 10px 26px rgba(0,0,0,.45);
  transition:transform .16s ease,border-color .16s ease;
  background:#0d141c;object-fit:cover;
}
#swChatApp .swc-attach:hover{transform:translateY(-1px);border-color:rgba(255,206,120,.6)}
#swChatApp .swc-preview{
  display:none;position:relative;align-self:flex-start;margin:2px 0 6px;
  padding:6px;border-radius:12px;border:1px solid rgba(255,206,120,.3);
  background:rgba(16,22,30,.9);box-shadow:0 12px 30px rgba(0,0,0,.45);
}
#swChatApp .swc-preview.on{display:inline-flex}
#swChatApp .swc-preview img{display:block;width:64px;height:64px;border-radius:8px;object-fit:cover}
#swChatApp .swc-preview .x{
  position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
  background:#111823;border:1px solid rgba(255,120,90,.6);color:#ffd0c0;font:600 12px/1 "Sora",Manrope,system-ui;
}
#swChatApp .swc-preview .bar{
  position:absolute;left:6px;right:6px;bottom:3px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,rgba(255,206,120,.9),rgba(255,206,120,.2));
  animation:swcUp 1s linear infinite;display:none;
}
#swChatApp .swc-preview.is-busy .bar{display:block}
@keyframes swcUp{from{transform:translateX(-30%)}to{transform:translateX(30%)}}
#swChatApp.is-drop{outline:2px dashed rgba(255,206,120,.7);outline-offset:-6px;background:#0e151d}

/* SW_CHAT_DRAG_20261109 — шапка тянется мышью и пальцем */
#swChatApp .swc-row1{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
#swChatApp.is-dragging .swc-row1{cursor:grabbing}
#swChatApp.is-dragging{box-shadow:0 34px 90px rgba(0,0,0,.7),0 0 34px rgba(255,186,74,.22)}

/* ==========================================================================
   20261118_emoji_glass · стеклянная модалка смайлов + фирменные сердца
   ========================================================================== */
.swc-emoji-backdrop{
  position:fixed;inset:0;z-index:2147483000;
  background:radial-gradient(ellipse at 50% 70%, rgba(255,196,60,.08), transparent 55%), rgba(2,6,12,.34);
  -webkit-backdrop-filter:blur(6px) saturate(1.08);backdrop-filter:blur(6px) saturate(1.08);
  animation:swcEmojiVeil .24s ease both
}
.swc-emoji-glass{
  position:fixed;z-index:2147483001;width:min(356px,calc(100vw - 24px));box-sizing:border-box;
  padding:12px;border-radius:20px;overflow:auto;overscroll-behavior:contain;
  color:#f5f9ff;isolation:isolate;
  background:linear-gradient(155deg,rgba(22,34,54,.82),rgba(5,11,20,.94));
  border:1px solid rgba(255,224,150,.34);
  box-shadow:0 34px 90px rgba(0,0,0,.64),0 0 0 1px rgba(255,255,255,.05),
             inset 0 1px 0 rgba(255,255,255,.18),0 0 30px rgba(255,190,70,.10);
  -webkit-backdrop-filter:blur(24px) saturate(1.32);backdrop-filter:blur(24px) saturate(1.32);
  transform-origin:bottom right;
  animation:swcEmojiGlassIn .32s cubic-bezier(.16,1,.3,1) both
}
.swc-emoji-glass::before{
  content:"";position:absolute;left:8%;right:8%;top:-1px;height:1px;z-index:1;
  background:linear-gradient(90deg,transparent,rgba(255,235,170,.92),transparent);
  pointer-events:none
}
.swc-emoji-glass::after{
  content:"";position:absolute;left:-20%;right:-20%;top:-55%;height:72%;z-index:-1;
  background:radial-gradient(ellipse at 50% 50%, rgba(255,196,80,.16), transparent 68%);
  pointer-events:none
}
.swc-emoji-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:2px 2px 0}
.swc-emoji-kicker{
  grid-column:1 / -1;color:#ffd98e;font:900 8px/1 Inter,system-ui,Arial,sans-serif;
  letter-spacing:.2em;text-transform:uppercase;text-shadow:0 0 12px rgba(255,196,60,.22)
}
.swc-emoji-head b{font:900 18px/1.05 Manrope,system-ui,Arial,sans-serif;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.swc-emoji-close{
  grid-column:2;grid-row:2;width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.055);color:rgba(226,238,250,.8);font:400 19px/1 Arial,sans-serif;
  cursor:pointer;display:grid;place-items:center;transition:background .16s ease,color .16s ease,transform .16s ease
}
.swc-emoji-close:hover{background:rgba(255,255,255,.12);color:#fff;transform:rotate(6deg)}
.swc-hearts{
  display:grid;grid-template-columns:repeat(5,1fr);align-items:end;gap:4px;
  margin:10px 0 9px;padding:9px 6px 11px;border-radius:14px;
  border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.012));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)
}
.swc-heart-btn{
  appearance:none;border:0;background:none;padding:0;height:54px;width:100%;
  display:grid;place-items:end center;cursor:pointer;
  filter:drop-shadow(0 7px 12px rgba(255,30,70,.30));
  transition:transform .18s cubic-bezier(.16,1,.3,1),filter .18s ease
}
.swc-heart-btn svg{display:block;width:var(--hs,32px);height:var(--hs,32px);overflow:visible}
.swc-heart-btn:hover,.swc-heart-btn:focus-visible{transform:translateY(-3px) scale(1.07);filter:drop-shadow(0 10px 16px rgba(255,30,70,.42))}
.swc-heart-btn:focus-visible{outline:2px solid rgba(255,222,144,.85);outline-offset:3px;border-radius:10px}
.swc-heart-btn:active{transform:translateY(-1px) scale(1.02)}
.swcHeartEye{transform-box:fill-box;transform-origin:center;animation:swcHeartBlink 5.4s ease-in-out infinite}
.swcHeartPupil{transform-box:fill-box;transform-origin:center;animation:swcHeartLook 7.2s ease-in-out infinite}
.swc-heart-btn:nth-child(2) .swcHeartEye{animation-delay:-1.3s}
.swc-heart-btn:nth-child(3) .swcHeartEye{animation-delay:-2.6s}
.swc-heart-btn:nth-child(4) .swcHeartEye{animation-delay:-3.9s}
.swc-heart-btn:nth-child(5) .swcHeartEye{animation-delay:-5.2s}
.swc-heart-btn:nth-child(2) .swcHeartPupil{animation-delay:-1.7s}
.swc-heart-btn:nth-child(3) .swcHeartPupil{animation-delay:-3.1s}
.swc-heart-btn:nth-child(4) .swcHeartPupil{animation-delay:-4.5s}
.swc-heart-btn:nth-child(5) .swcHeartPupil{animation-delay:-5.9s}
@keyframes swcHeartBlink{0%,88%,94%,100%{transform:scaleY(1)}91%{transform:scaleY(.08)}}
@keyframes swcHeartLook{0%,18%{transform:translate(0,0)}30%{transform:translate(1.1px,-.4px)}45%{transform:translate(1.4px,.5px)}60%{transform:translate(-1.1px,.4px)}76%{transform:translate(-1.3px,-.2px)}100%{transform:translate(0,0)}}
.swc-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.swc-emoji-cell{
  appearance:none;width:100%;aspect-ratio:1;min-width:0;border:0;border-radius:10px;background:transparent;
  color:#fff;font:400 18px/1 "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",system-ui,sans-serif;
  cursor:pointer;display:grid;place-items:center;
  transition:background .14s ease,transform .14s ease
}
.swc-emoji-cell:hover,.swc-emoji-cell:focus-visible{background:rgba(255,255,255,.11);transform:translateY(-1px) scale(1.10);outline:none}
.swc-emoji-foot{
  margin:9px 2px 1px;color:rgba(210,226,244,.58);
  font:600 9.5px/1.35 Inter,system-ui,Arial,sans-serif;letter-spacing:.02em;text-align:center
}
@keyframes swcEmojiGlassIn{
  0%{opacity:0;transform:translateY(12px) scale(.94);filter:blur(10px)}
  100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
@keyframes swcEmojiVeil{from{opacity:0}to{opacity:1}}
@media(max-width:760px){
  .swc-emoji-glass{
    left:12px!important;right:12px!important;top:auto!important;bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;max-height:min(64vh,560px);padding:14px;border-radius:24px;transform-origin:bottom center
  }
  .swc-hearts{padding:10px 6px 12px;margin-top:12px}
  .swc-heart-btn{height:58px}
  .swc-emoji-grid{gap:5px}
  .swc-emoji-cell{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .swc-emoji-glass,.swc-emoji-backdrop,.swcHeartEye,.swcHeartPupil{animation:none!important}
  .swc-heart-btn,.swc-emoji-cell{transition:none!important}
}
