/* 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; } /* macOS desktop (the Electron preload sets data-platform): the window's sidebar vibrancy shows only through a transparent page background. */ html[data-platform='darwin'], html[data-platform='darwin'] body { background: transparent; } /* The transparent window disables backdrop-filter: Chromium composites it against the root surface, which vibrancy leaves transparent, so the blur in --dsw-menu-backdrop-filter renders as nothing and half-opaque menu fills let underlying text bleed through. Compensate with near-opaque fills on the same design-platform hues (light 248 249 250 / dark 48 49 54). */ html[data-platform='darwin'] body { --dsw-specific-menu: rgba(248, 249, 250, 0.94); } html[data-platform='darwin'] body[data-ds-dark-theme] { --dsw-specific-menu: rgba(48, 49, 54, 0.94); } /* macOS desktop: the app frame publishes window drag bands, and Electron composes app-regions from geometry, not hit testing — a surface covering a band would otherwise drag the window instead of receiving clicks. Every overlay portals to document.body beside #root, so one rule subtracts them all; drag surfaces all live inside #root. */ html[data-platform='darwin'] body > :not(#root) { -webkit-app-region: no-drag; } /* Inside #root, interactive controls and raised surfaces (dialogs, menus) subtract themselves from any drag band they overlap, wherever they render. Electron composes app-regions from geometry in document order, so this works only because the bands are declared before all content (AppFrame's first child; the sidebar rows that precede the column's overlay slots) — a drag rule on a content container would override every overlay mounted earlier in the DOM. One selector on the native elements, ARIA roles, and tabindexed custom widgets replaces per-component no-drag opt-outs. */ html[data-platform='darwin'] :is( button, a, input, select, textarea, summary, [contenteditable='true'], [tabindex], [role='dialog'], [role='alertdialog'], [role='menu'], [role='listbox'], [role='tooltip'], [role='button'], [role='link'], [role='tab'], [role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'], [role='option'], [role='checkbox'], [role='radio'], [role='switch'], [role='slider'], [role='combobox'], [role='textbox'] ) { -webkit-app-region: no-drag; } 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; }