/* dibai admin overrides: make Unfold icons graceful on older browsers.
 *
 * Unfold uses Material Symbols via ligatures:
 *   <span class="material-symbols-outlined">dashboard</span>
 *
 * If the font fails to load (e.g. legacy/IE mode), the raw English ligature
 * text becomes visible and looks like "大块英文". We hide the ligature text
 * by default and show a minimal bullet fallback. When the font is confirmed
 * loaded, we restore the normal rendering.
 */

html:not(.ms-icons-ready) .material-symbols-outlined,
html:not(.ms-icons-ready) .material-symbols-rounded,
html:not(.ms-icons-ready) .material-symbols-sharp {
  font-size: 0 !important;
  line-height: 1 !important;
}

html:not(.ms-icons-ready) .material-symbols-outlined::before,
html:not(.ms-icons-ready) .material-symbols-rounded::before,
html:not(.ms-icons-ready) .material-symbols-sharp::before {
  content: "•";
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  opacity: 0.75;
}

html.ms-icons-ready .material-symbols-outlined,
html.ms-icons-ready .material-symbols-rounded,
html.ms-icons-ready .material-symbols-sharp {
  font-size: revert !important;
  line-height: revert !important;
}

html.ms-icons-ready .material-symbols-outlined::before,
html.ms-icons-ready .material-symbols-rounded::before,
html.ms-icons-ready .material-symbols-sharp::before {
  content: none !important;
}

/* Safety: even if something goes wrong, don't let ligature text blow up layout. */
.material-symbols-outlined,
.material-symbols-rounded,
.material-symbols-sharp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  max-width: 1.4em;
}
