/* 2026-11-18 (Shu-only, her 甲 「照这样做」): 翎儿's own stickers (js/chat/my-stickers.js).
   Panel: the top section 「我的表情包」 in #emojiPanel, thumbnail + small label per picture.
   Composer: a small labelled chip per staged sticker. Bubble: inline ≈ four text lines tall; a message that is only
   stickers shows them at 珩's sticker size (.chat-sticker 280) with no bubble frame (the bubble also gets .att-only). */
.my-sticker-section{ grid-column:1 / -1; min-width:0; }
.my-sticker-section[hidden]{ display:none !important; }
.my-sticker-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:4px; padding:0 2px 6px; }
.emoji-panel .my-sticker-choice{
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:3px;
  min-width:0; min-height:0; padding:5px 2px 4px; border-radius:12px;
  font:11px/1.25 var(--font-en),var(--font-cn); color:var(--text-soft);
  -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; touch-action:manipulation;
}
.my-sticker-choice img{ display:block; width:52px; height:52px; object-fit:contain; border-radius:10px; pointer-events:none; }
.my-sticker-choice img[hidden]{ display:none; }
.my-sticker-choice span{ display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.my-sticker-note{ padding:2px 7px 8px; font:12px/1.45 var(--font-en),var(--font-cn); color:var(--text-soft); }

.composer-attachments .composer-att.composer-att-sticker{
  flex:0 0 60px; width:60px; height:78px; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.composer-att-sticker-pic{
  display:block; width:60px; height:60px; box-sizing:border-box; border-radius:12px; overflow:hidden;
  background:var(--field-bg); border:1px solid var(--field-line);
}
.composer-att-sticker-pic img{ display:block; width:100%; height:100%; object-fit:contain; }
.composer-att-sticker-label{
  display:block; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center;
  font:500 11px/1.3 system-ui,-apple-system,sans-serif; color:var(--text-soft);
}
.composer-att.composer-att-sticker .composer-att-remove{ top:3px; right:3px; width:20px; height:20px; font-size:15px; }
.composer-att.composer-att-sticker .composer-att-state{ bottom:20px; }

.bubble .my-sticker-inline{
  display:inline-block; width:auto; height:calc(var(--chat-line-height, 1.58) * 4em); max-width:100%;
  margin:0 .12em; vertical-align:bottom; object-fit:contain;
}
/* Same box as 珩's .chat-sticker (280), shrunk on a narrow phone the way his is inside his padded bubble. */
.bubble .my-sticker-solo{
  display:block; width:280px; height:auto; max-height:280px; object-fit:contain; margin:0 0 2px;
  max-width:calc(min(61vw, 506px) - 2 * clamp(13px, 1.65vw, 18px));
}
.bubble.my-sticker-only{ display:flex; flex-direction:column; align-items:flex-end; }
.bubble.my-sticker-only .txt{ display:flex; flex-direction:column; align-items:flex-end; }
