/* Revision 12: shared type scale only. No widths, spacing, positioning or grid changes.
 * Same local system font stack as the approved homepage; no downloaded fonts.
 * Canvas artwork and homepage hero remain outside these UI selectors. */
html[data-lab-shell="nexus"]{
 --kale-ui-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
 --kale-type-caption:12px;--kale-type-control:13px;--kale-type-body:14px;
 --kale-type-section:16px;--kale-type-page:20px;
}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel){font-family:var(--kale-ui-font)!important;font-size:var(--kale-type-body);font-weight:400;-webkit-font-smoothing:antialiased}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is(button,input,textarea,select,label,h1,h2,h3,h4){font-family:var(--kale-ui-font)!important;letter-spacing:0}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is(button,select,label,[role=tab]){font-size:var(--kale-type-control)!important;font-weight:500}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is(input,textarea){font-size:var(--kale-type-body)!important;font-weight:400}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is([class~="text-sm"],[class~="text-base"],[class~="text-[14px]"]){font-size:var(--kale-type-body)!important}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is([class~="text-[13px]"],label){font-size:var(--kale-type-control)!important}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is(small,[class~="text-xs"],[class~="text-[10px]"],[class~="text-[11px]"],[class~="text-[12px]"]){font-size:var(--kale-type-caption)!important}
html[data-lab-shell="nexus"] :is(.image-workspace-theme>header,.app-market-workspace-root>header,.my-page-header) h1{font-size:var(--kale-type-page)!important;font-weight:600!important;letter-spacing:-.025em}
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is(h2,h3){font-size:var(--kale-type-section)!important;font-weight:600!important;letter-spacing:-.01em}
html[data-lab-shell="nexus"] :is(.image-workspace-theme,.app-market-workspace-root)>main>div:first-child :is(h2,h3){font-size:var(--kale-type-body)!important;font-weight:600!important;letter-spacing:0}
html[data-lab-shell="nexus"] :is(.canvas-card-title,.ka-message){font-size:var(--kale-type-body)!important}
html[data-lab-shell="nexus"] .canvas-card-title{font-weight:600!important}
html[data-lab-shell="nexus"] :is(.canvas-card-date,.canvas-section-count,.asset-library-modal__quota,.asset-library-modal__notice,.my-page-notice){font-size:var(--kale-type-caption)!important}
html[data-lab-shell="nexus"] :is(.canvas-group-label,.canvas-tag,.canvas-project-search){font-size:var(--kale-type-control)!important}
html[data-lab-shell="nexus"] .canvas-section-nav button{font-size:var(--kale-type-section)!important;font-weight:600!important}

/* Revision 13: native gallery and featured-template text omitted from revision 12.
 * Native px-named utility classes compile to rem; explicit UI tokens avoid the 20px-root multiplier.
 * Do not change document root font-size: native layout dimensions also use rem. */
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.canvas-list-page) :is([class~="text-[15px]"],[class~="text-[16px]"],[class~="text-lg"]){font-size:var(--kale-type-section)!important}
html[data-lab-shell="nexus"] .creation-gallery-page .image-creation-category-section h2{font-size:var(--kale-type-control)!important;font-weight:500!important;letter-spacing:0}
html[data-lab-shell="nexus"] .canvas-list-page .canvas-featured-name{font-size:var(--kale-type-body)!important;font-weight:600!important;letter-spacing:0}
html[data-lab-shell="nexus"] .canvas-list-page :is(.canvas-featured-playback-label,.canvas-featured-unlock-title,.canvas-featured-card-action){font-size:var(--kale-type-control)!important;font-weight:500!important}
html[data-lab-shell="nexus"] .canvas-list-page :is(.canvas-featured-publisher,.canvas-featured-chip,.canvas-featured-badge-cost,.canvas-featured-badge-official){font-size:var(--kale-type-caption)!important;font-weight:500!important}
html[data-lab-shell="nexus"] .canvas-list-page :is(.canvas-featured-publisher,.canvas-featured-chip,.canvas-featured-badge-cost,.canvas-featured-badge-official) *{font-size:inherit!important;font-weight:inherit!important}
/* Controls keep control size even when native text-xs/text-[11px] utilities occur on them. */
html[data-lab-shell="nexus"] :is(.xhs-workbench-overlay,.post-publish-overlay,.xhs-mode-picker,.xhs-mode-popover,.post-publish-music-modal,.creation-gallery-page,.app-market-workspace-root,.image-workspace-theme,.my-page-root,.canvas-list-page,.asset-library-modal,.settings-panel,.canvas-editor-topbar,.canvas-left-tools,.canvas-zoom-bar,.ka-panel) :is(button,select,label,[role=tab]){font-size:var(--kale-type-control)!important}
html[data-lab-shell="nexus"] .canvas-list-page .canvas-section-tab{font-size:var(--kale-type-control)!important;font-weight:500!important}

/* Revision 14: original desktop workbenches, shared type scale without layout overrides. */
html[data-lab-shell="nexus"] body.workbench-host{font-family:var(--kale-ui-font)!important;font-size:var(--kale-type-body);font-weight:400;-webkit-font-smoothing:antialiased}
html[data-lab-shell="nexus"] body.workbench-host :is(.xhs-workbench-header,.post-publish-header) h2{font-size:var(--kale-type-page)!important;font-weight:600!important;letter-spacing:-.025em}
html[data-lab-shell="nexus"] body.workbench-host :is(.xhs-workbench-section-head,.xhs-workbench-rewrite-head,.post-publish-section-head,.post-publish-saved-title){font-size:var(--kale-type-body)!important;font-weight:600!important}
html[data-lab-shell="nexus"] body.workbench-host :is(.xhs-workbench-kicker,.post-publish-kicker){font-size:var(--kale-type-caption)!important;font-weight:500!important;letter-spacing:0}
html[data-lab-shell="nexus"] body.workbench-host :is(.xhs-workbench-field,.post-publish-field)>span{font-size:var(--kale-type-control)!important;font-weight:500!important}
