/* Shell-owned mount defaults. Theme tokens arrive with the ui-theme client
 * plugin before the loader roster activates. */

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(
    --dsw-font-family,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif
  );
  /* Grayscale antialiasing over subpixel rendering: WebKit/Blink and the
     Firefox macOS equivalent; other engines ignore both lines. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--dsw-alias-label-primary, #0f1115);
  background: var(--dsw-alias-bg-base, #fff);
  /* Supporting browsers insert CJK/Latin spacing in inherited prose. */
  text-autospace: normal;
}

code,
pre,
[data-diff],
[data-read],
[data-search],
[data-terminal] {
  /* Literal payloads retain source spacing and column alignment. */
  text-autospace: no-autospace;
}

/* Form controls don't inherit the body font (UA sheets pin their families —
   Chrome buttons fall back to Arial, textareas to monospace), so the app
   stack is re-applied to them explicitly, as upstream's global reset does. */
button,
input,
select,
textarea {
  font-family: inherit;
}
