/* emoji-fix.css — consistent native-emoji rendering (Android / iOS / Windows / macOS).
 * Loads LAST on every page. No emoji is replaced; the device's own emoji font is used.
 *
 * Root cause: emoji are drawn by whatever fallback font the OS picks. Those fonts have taller/
 * lower metrics and wider glyphs than the text font, which inflated line boxes (shifting
 * buttons, rows and dropdown items by 1–3px) and made emoji look oversized next to text.
 *
 * Fix: one emoji-only font face that maps to the system emoji font but with normalised
 * metrics, placed first in the site font stack. It only matches emoji code points, so all
 * normal text still uses the existing fonts. If no system emoji font is found by name, the
 * browser silently falls back to its default emoji font exactly as before. */
@font-face{
  font-family:"SS Emoji";
  src:local("Apple Color Emoji"),local("AppleColorEmoji"),local("Segoe UI Emoji"),local("SegoeUIEmoji"),
      local("Noto Color Emoji"),local("NotoColorEmoji"),local("Twemoji Mozilla"),local("EmojiOne Color");
  size-adjust:92%;
  ascent-override:88%;descent-override:22%;line-gap-override:0%;
  unicode-range:U+200D,U+20E3,U+FE0F,U+203C,U+2049,U+2122,U+2139,U+231A-231B,U+2328,U+23CF,U+23E9-23F3,U+23F8-23FA,
    U+24C2,U+25AA-25AB,U+25B6,U+25C0,U+25FB-25FE,U+2600-262F,U+2631-27BF,U+2934-2935,U+2B05-2B07,U+2B1B-2B1C,
    U+2B50,U+2B55,U+3030,U+303D,U+3297,U+3299,U+1F000-1FAFF;
}
:root{
  --ss-font:"SS Emoji","Inter",ui-sans-serif,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
html,body{font-family:var(--ss-font)!important}
button,input,select,textarea{font-family:inherit}

/* Long names with emoji wrap naturally instead of stretching flex/grid parents. */
.svc-dd-btn>*,.svc-dd-placeholder>*,.svc-dd-item>*,.svc-dd-row>*{min-width:0}
.svc-dd-name,.svc-dd-name-sel,.svc-dd-placeholder{overflow-wrap:anywhere;word-break:normal;line-height:1.35}
.svc-dd-btn .svc-dd-caret{flex-shrink:0}
