/* Login-only subset first; business font faces are loaded by neo-fonts.js after entry. */
/* Source Han Sans 2.005, Adobe; SIL OFL 1.1. Only font-family is normalized.
 * Source: adobe-fonts/source-han-sans @ a4f7cf94edfb9d7ffbdfc4841de276358bd7e0f2
 * WOFF2 SHA256: f971e3bff46f76b49e1d5510556c2297c618ec4b491a295a4e741cdd38257799
 * License: /assets/fonts/LICENSE-source-han-sans.txt
 */
:root {
  --neo-ui-font: "Microsoft YaHei", "PingFang SC", sans-serif;
}
html.neo-fonts,
html.neo-fonts body,
html.neo-fonts body :where(div,span,p,section,article,aside,nav,header,footer,main,dialog,button,input,select,textarea,option,optgroup,label,legend,fieldset,summary,details,table,thead,tbody,tfoot,tr,th,td,caption,a,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,small,strong,b,em,i,time,output,blockquote,figcaption):not(:where(pre,pre *,code,code *,kbd,kbd *,samp,samp *,math,math *,svg,svg *,[data-neo-font-preserve],[data-neo-font-preserve] *,.neo-workbook-cell-format,.neo-workbook-cell-format *,.monaco-editor,.monaco-editor *,.cm-editor,.cm-editor *,.katex,.katex *,.fa,.fas,.far,.fab,.iconfont,.material-icons,.material-symbols-outlined)) {
  font-family: var(--neo-ui-font) !important;
}
/* Existing desktop update controls use open shadow roots. */
:host,
:host :where(div,span,p,section,header,footer,dialog,button,input,select,textarea,label,h1,h2,h3,small,strong,a,li) {
  font-family: var(--neo-ui-font, "Microsoft YaHei", "PingFang SC", sans-serif) !important;
}

/* Folder-menu dots use fixed geometry, independent of the UI font's glyph widths. */
html.neo-fonts #sidebar .folder-head > button[data-folder-menu] {
  font-size: 0 !important;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
  min-height: 24px;
  align-items: center;
  justify-content: center;
}
html.neo-fonts #sidebar .folder-head > button[data-folder-menu]::before {
  content: "";
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background:
    radial-gradient(circle at 2px 6px, currentColor 1.25px, transparent 1.5px),
    radial-gradient(circle at 6px 6px, currentColor 1.25px, transparent 1.5px),
    radial-gradient(circle at 10px 6px, currentColor 1.25px, transparent 1.5px);
  pointer-events: none;
}

/* Subset derived from the same font; names outside this set use system fallback. */
@font-face {font-family:"Neo Login Sans";src:url("/assets/fonts/neo-login-v2.005-c153d36811fb.woff2") format("woff2");font-style:normal;font-weight:250 900;font-display:swap;}
html.neo-fonts #touch-neo-auth { --neo-ui-font: "Neo Login Sans", "Microsoft YaHei", "PingFang SC", sans-serif; }
