/* Shared UI typography. Inter 4.001, SIL OFL-1.1; see /fonts/ui/inter/OFL.txt.
 * Language subsets load only when their glyphs are present. No remote font service.
 * Artwork, catalog previews, monospace values and decorative glyphs keep their fonts.
 */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/ui/inter/inter-cyrillic-ext-wght-normal-SP7Z6XGK.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/ui/inter/inter-cyrillic-wght-normal-DR6K5BQD.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/ui/inter/inter-latin-wght-normal-DIHYUR35.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --deslove-font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
    --deslove-weight-regular: 400;
    --deslove-weight-medium: 500;
    --deslove-weight-semibold: 600;
    --deslove-weight-bold: 700;
}

/* Loaded after page styles in the shared layouts: one choice on every platform.
 * Keep existing role sizes, leading and spacing, including the dense editor UI.
 */
body,
body.font-sans,
.font-sans,
.messages-workspace,
.ow-page,
.ow-page :is(button, input, textarea, select),
.aura-studio,
.aura-welcome {
    font-family: var(--deslove-font-ui);
}

/* Match the existing light-dialog rule without changing its palette or layout. */
html[data-theme="light"] #thought-author-modal {
    font-family: var(--deslove-font-ui);
}

/* Initials are UI text; the original component also marks its family important. */
.avatar-fallback {
    font-family: var(--deslove-font-ui) !important;
}

/* These are plain UI controls, not the live AuraCanvas input or font previews. */
#sketch-studio #aura-object-menu kbd {
    font-family: inherit;
}
#sketch-studio #aura-text-format textarea {
    font-family: var(--deslove-font-ui);
}

/* Align primary action labels; icon buttons and compact tools keep their roles. */
.aura-product .ap-button,
body .auth-submit {
    font-weight: var(--deslove-weight-semibold);
}
