/*
    Praxo design tokens.

    Lives in Praxo.Core (the shared UI library) rather than in the web host,
    because the licence-admin application planned in PLAN.md has to look like
    this one without copying a stylesheet. Served as
    _content/Praxo.Core/praxo-tokens.css and linked from App.razor through
    @Assets so the URL is fingerprinted.

    Two layers, in this order:
      1. --px-* : the application's own tokens. Markup and app.css use these.
      2. --dxds-*: DevExpress's documented public token layer, re-pointed at
         ours, so the component library and the application agree instead of
         being reconciled rule by rule.

    Why --dxds-* and not --dxbl-*: DevExpress documents --dxds-* as the public
    API and --dxbl-* as internal and free to change between versions. The
    Classic theme this application used before had no such layer, which is why
    its accent had to be swept across 162 hard-coded declarations.

    The accent itself is NOT set here. PraxoTheme calls
    SetCustomAccentColor("#13744A"), which generates the whole 17-step
    --dxds-primary-* scale from it. Overriding the scale here as well would
    mean maintaining seventeen shades by hand.
*/

/* --------------------------------------------------------------- Inter */

/*
    Self-hosted: the practice server may have no outbound internet, and a
    request to Google Fonts would also tell a third party when staff open the
    application. Two subsets — latin covers German, latin-ext covers the Polish
    and Czech names a German practice actually has on file.

    One variable font per subset carries every weight, so there is no
    separate @font-face per weight and no synthetic bolding.
*/
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    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;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02AF, U+0304-0311, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------------------------------------------------------- the tokens */

:root {
    /*
        Brand. These are the brand kit's own colours (Praxo-Brandkit,
        tokens.json), adopted on 25.10.2026 - the kit is the authority for
        colour now, and where this file departs from it the reason is written
        down beside the value.

            brand        #14452F  logo-forest; primary buttons, active
                                  navigation, headline accents. 10.0:1 on
                                  white, which matters because the green is a
                                  text and icon colour as well as a fill.
            brand-hover  #0C2E1F  the kit's hover/pressed state for brand
                                  surfaces
            pressed      #081F15  derived: Fluent needs a third step below
                                  hover, and the kit stops at hover

        The green before this was #0E5C3A (and #13744A before that). Same
        family, one notch deeper and slightly less saturated.

        These three are also the anchors in tools/gen-accent.py, which derives
        the 17-step Fluent scale from them. Change them in BOTH places and
        re-run the generator, or the components and the app disagree - a test
        pins the two together.
    */
    --px-primary: #1F6E55; /* reference look 05.11.2026; was #14452F */
    --px-primary-hover: #185A45; /* reference look 05.11.2026; was #0C2E1F */
    --px-primary-active: #134837; /* reference look 05.11.2026; was #081F15 */

    /* The kit's brand-soft, which is also step 20 of the generated ramp - the
       generator anchors the tint on it, so the soft wash and the component
       tints are one colour rather than two near-misses. The line is step 30. */
    --px-primary-soft: #DDF1E9; /* reference look 05.11.2026; was #E6F2EA */
    --px-primary-line: #A9DAC6; /* reference look 05.11.2026; was #D1E1D7 */

    /* Text and icons on a brand fill. The kit's on-brand; a token because the
       sidebar, the primary button and the badges all need it and #fff written
       four times says nothing about why. */
    --px-on-primary: #FFFFFF;

    /*
        Blattgrün, the leaf accent from the logo's rotated module.

        The kit is strict about it: a graphic accent only, never text on a
        light surface (2.2:1 on white). It is legible on a brand surface
        (4.9:1), which is the one place this application uses it - the active
        entry's icon in the sidebar. --px-accent-text is the kit's own green
        TEXT colour, and it is what --px-success now is.
    */
    --px-accent: #31AA84; /* reference look 05.11.2026; was #6CC24A */
    --px-accent-text: #1F6E55; /* reference look 05.11.2026; was #2F7A1F */
    /* The reference palette's yellow: graphic only (second chart series,
       warning dots), never text. */
    --px-yellow: #FFBD4C;

    /*
        Surfaces and text, all from the kit.

            surface        #F6F8F7  the page
            surface-raised #FFFFFF  cards, dialogs, tables, editors
            ink            #17221D  body text and headings
            ink-muted      #56655D  secondary text, timestamps (5.8:1)

        The page used to be #E2E9E6, a distinctly tinted panel. The kit's page
        is almost white, so a card is now separated from it by its edge and its
        shadow rather than by a change of tone - which is why --px-shadow-card
        below is the kit's value and not the old, fainter one.
    */
    --px-bg: #E4EDE8; /* reference look 05.11.2026; was #F6F8F7 */
    --px-surface: #FFFFFF;
    --px-text: #1B2623; /* reference look 05.11.2026; was #17221D */
    --px-muted: #4A5450; /* reference look 05.11.2026; was #56655D */

    /*
        Lines. The kit splits them by job, and so does this file:

            line        #DCE3DF  hairlines, table rules, card edges
            line-strong #8A9A92  the edge of an input or a checkbox, where
                                 3:1 against the surface is a requirement for
                                 a UI component and not a matter of taste

        That is the opposite division from the one this file had, where the
        strong value marked a fold (a dialog header, a sticky bar) and every
        field box took the light one. The folds keep the strong value too -
        they want a line that reads as an edge - and the editors are pointed
        at it through --dxds-color-border-neutral-default-rest below.
    */
    --px-border: #DDE3E0; /* reference look 05.11.2026; was #DCE3DF */
    --px-border-strong: #7F8B86; /* reference look 05.11.2026; was #8A9A92 */

    /*
        The outer edge of a surface on the page - card, KPI tile, panel,
        settings nav, a floating panel. The kit's line (#DCE3DF) is about
        1.2:1 against the near-white page, and the owner found the cards had
        "no visible borders" (28.10.2026). This sits between line and
        line-strong: visible as an edge, still not the hard field edge of an
        input. Hairlines inside a surface (table rules, field boxes) keep the
        light line.
    */
    --px-border-card: #C9D1CD; /* reference look 05.11.2026; was #C3CEC8 */

    /*
        The progress meter's own background - the track and the figures beside
        it share one surface, so this is both.

        A mid grey, on the kit's neutral axis, between line and line-strong.
        It is deliberately NOT the page colour: the page is nearly white now,
        so an unfilled bar drawn in it would read as no bar at all rather than
        as an empty one, which is exactly what "0 von 3" must not do.

        The fill stays --px-primary. The kit assigns the progress bar to
        accent, and that is the one place its advice is not followed: leaf on
        this track is 1.2:1, so the bar would all but vanish, where the brand
        green is 6.0:1. A measurement has to be readable before it is on
        brand. Nothing is drawn over the fill, so the figures keep their own
        pair (--px-text on this grey, 9.1:1), which the contrast test covers.
    */
    --px-meter-bg: #B6C0BA;

    /*
        A birthday on a Saturday or Sunday, when the practice is closed. A
        neutral on the brand's hue axis, a step darker than the page: enough
        to set the row apart from white, and nothing like the green wash that
        marks today and tomorrow. Muted text sits on it, so the pair is in the
        contrast test.
    */
    /*
        A Pause, in the calendar and on the dashboard: a light yellow, asked
        for by the owner (28.10.2026) so a gap in the day stands out from the
        treatments around it. Pale enough not to read as the warning colour;
        the line is the dashed edge of the calendar card and carries no text.
    */
    --px-break-bg: #FBEFC2;
    --px-break-line: #C9A227;
    --px-weekend-bg: #EAEFEC;

    /*
        The dashboard's week chart (08.11.2026): erschienen / geplant /
        ausgefallen. Run through the dataviz palette checks on white:
        lightness band, chroma floor, colour-blind and normal-vision
        separation all pass. The brand green itself reads too grey for a
        series (chroma 0.086 < 0.1), hence a deeper green of the same hue.
        Contrast against white is under 3:1 for the light two, so every bar
        carries its figure and the chart has a table for screen readers.
        Graphic only, never text.
    */
    --px-chart-attended: #08805A;
    --px-chart-planned: #56C79A;
    --px-chart-missed: #D97E22;

    /*
        The calendar palette (CalendarColors in Core): what a therapist's
        appointments and column header are drawn in. Every tone comes from
        the brand kit's two greens - Waldgrün #14452F and Blattgrün #6CC24A -
        and its neutrals, because the kit reserves red, orange and blue for
        states ("nur für Zustände, nie dekorativ"); the first palette broke
        that and was replaced on 28.10.2026 at the owner's request. bg is the
        lightest wash, fill an appointment, head the column header band, line
        a border that carries no text. The fills were first drawn so pale
        that the owner read them as grey ("no color"); they now sit clearly
        in green, still far above the 4.5:1 floor for --px-text. The fills
        are also spread as far apart in hue as the kit's greens allow - lime,
        green, teal, mint, olive, grey-green - because since 28.10.2026 they
        tell treatments apart inside one column (TreatmentColors), and six
        near-identical greens read as one colour. Text on bg, fill and head is in the
        contrast test.
    */
    --px-cal-forest-bg: #E6F2EA;
    --px-cal-forest-fill: #A3D0B2;
    --px-cal-forest-head: #8FC4A1;
    --px-cal-forest-line: #14452F;
    --px-cal-leaf-bg: #EDF7E8;
    --px-cal-leaf-fill: #CFE8A6;
    --px-cal-leaf-head: #A5D88C;
    --px-cal-leaf-line: #2F7A1F;
    --px-cal-pine-bg: #E3F0EC;
    --px-cal-pine-fill: #A2D3D3;
    --px-cal-pine-head: #8CC7B3;
    --px-cal-pine-line: #1D5C4A;
    --px-cal-mint-bg: #EAF6F1;
    --px-cal-mint-fill: #C3EAD9;
    --px-cal-mint-head: #98D6BA;
    --px-cal-mint-line: #2A7158;
    --px-cal-moss-bg: #F1F4E4;
    --px-cal-moss-fill: #E2DF9F;
    --px-cal-moss-head: #BFCD86;
    --px-cal-moss-line: #55661F;
    --px-cal-sage-bg: #EEF2EF;
    --px-cal-sage-fill: #CDD6D0;
    --px-cal-sage-head: #95BBA0;
    --px-cal-sage-line: #56655D;

    /*
        The bright half of the therapist palette, added 28.10.2026 at the
        owner's request: with six greens, colleagues side by side in the
        Mitarbeiter view were hard to tell apart. A considered departure from
        the kit, which keeps blue, red and orange for states - these are
        chosen by a person for their own column, never set by the software to
        mean something, and they colour column headers and internal entries
        only (treatments are filled by Heilmittel, from the greens). Kept as
        pastels so no fill reads as a warning, and every text pair is in the
        contrast test like the greens.
    */
    --px-cal-sky-bg: #E8F2FC;
    --px-cal-sky-fill: #B9D9F5;
    --px-cal-sky-head: #8EC0EC;
    --px-cal-sky-line: #1F5FA8;
    --px-cal-lavender-bg: #F0ECFA;
    --px-cal-lavender-fill: #D3C8F0;
    --px-cal-lavender-head: #B8A8E6;
    --px-cal-lavender-line: #5B3FA8;
    --px-cal-sun-bg: #FDF7DF;
    --px-cal-sun-fill: #F6E39A;
    --px-cal-sun-head: #EFD266;
    --px-cal-sun-line: #7A5C00;
    --px-cal-coral-bg: #FDEEEA;
    --px-cal-coral-fill: #F7C9BC;
    --px-cal-coral-head: #F2AA96;
    --px-cal-coral-line: #A3402A;
    --px-cal-berry-bg: #FBEDF3;
    --px-cal-berry-fill: #F2C6D8;
    --px-cal-berry-head: #E8A3BF;
    --px-cal-berry-line: #9C2F5E;
    --px-cal-turquoise-bg: #E6F6F6;
    --px-cal-turquoise-fill: #A9E0E0;
    --px-cal-turquoise-head: #7FCFCF;
    --px-cal-turquoise-line: #11706F;

    /*
        Status, all four from the kit. Danger, warning and info stay off-hue
        on purpose - a status must be distinguishable, not harmonious - and
        each soft/line pair is mixed from its own strong colour so none of
        them drifts.

        --px-success is the kit's accent-text: green text that is legible on a
        light surface, which neither the brand green's job nor the leaf's.
    */
    --px-danger: #B42318;
    /* The Hausbesuch house (owner, 15.11.2026: "filled, bright red"): graphic only, 4.3:1 on white; its word stays --px-danger. */
    --px-hb: #E5261C;
    --px-danger-soft: #FDEEEC; /* reference look 05.11.2026; was #FBEAE8 */
    --px-danger-line: #F6CBC6; /* reference look 05.11.2026; was #EFC0BB */
    --px-warning: #8F5B00; /* reference look 05.11.2026; was #975A16 */
    --px-warning-soft: #FFF5E0; /* reference look 05.11.2026; was #FDF3E4 */
    --px-warning-line: #FFE2A8; /* reference look 05.11.2026; was #F0D9AF */
    --px-success: #1F6E55; /* reference look 05.11.2026; was #2F7A1F */
    --px-success-soft: #DDF1E9; /* reference look 05.11.2026; was #EAF5E6 */
    --px-success-line: #A9DAC6; /* reference look 05.11.2026; was #C7E5BC */

    /* Neutral notes and links in running text. New with the kit; the
       application had been using the brand green for both, which spends the
       colour that means "action" on something that is only information. */
    --px-info: #1F5FA8;
    --px-info-soft: #E8F0FA;
    --px-info-line: #C3D8EF;

    /* A found-text mark stays yellow (hue 48) and off the palette on purpose -
       "this is the bit you searched for" is a convention, not brand colour. */
    --px-highlight: #FDF2C7;

    /* The focus ring, from the brand at low alpha. Written out rather than
       colour-mix() so it needs no fallback. The kit specifies a solid 2px
       ring in brand with 2px of page colour inside it; as a box-shadow wash
       this is the same idea with one declaration. */
    --px-focus-ring: rgba(49, 170, 132, 0.28); /* reference look 05.11.2026; was rgba(20, 69, 47, 0.22) */

    /*
        Geometry. The kit's radii are 4/8/12/24px; these are 2/3px, kept at
        the owner's decision of 25.10.2026 when the kit was adopted. Office
        software is square - 12px corners read as a consumer web app - and
        this is a considered departure, not an oversight.

        --px-radius-control is DEFINED here and pushed INTO the DevExpress
        tokens below, rather than read out of them. Reading Fluent's radius
        meant the components decided how square the application looked.
    */
    --px-radius-card: 12px; /* reference look 05.11.2026; was 3px */
    --px-radius-control: 8px; /* reference look 05.11.2026; was 2px */
    --px-radius-badge: 6px; /* reference look 05.11.2026; was 2px */

    /*
        Spacing, the kit's scale. Named by step rather than by role because the
        kit names them that way, and the usage it gives for each is the
        comment: 1 icon-to-text, 2 inside a badge, 3 a dense table row, 4
        between cards and form fields, 6 card padding and page margin, 8
        between sections of a page.
    */
    --px-space-1: 4px;
    --px-space-2: 8px;
    --px-space-3: 12px;
    --px-space-4: 16px;
    --px-space-6: 24px;
    --px-space-8: 32px;

    /*
        A card's inside and the gap between cards, from that scale. The kit
        puts card padding at space-6 (24px); this stays at space-4, because
        24px of padding on every card costs a row of data at 1024px and this
        is dense software by decision. The gap is the kit's space-4.
    */
    --px-card-padding: 20px; /* reference look 05.11.2026; was var(--px-space-4) */
    --px-card-gap: 16px; /* reference look 05.11.2026; was var(--px-space-4) */

    /* The inner padding of a dialog or drawer body. A token because the footer
       bar has to line up with the fields above it by exactly this much. */
    --px-dialog-pad: var(--px-space-6);

    /* The kit's two shadows. shadow-card lifts a card off the page -
       which it now has to do on its own, the page being nearly white -
       and shadow-overlay belongs to dialogs and drop-downs. */
    /*
        Surfaces the user works in - cards, tables, KPI tiles - lift off the
        page. Raised on 28.10.2026 at the owner's request ("more elevation
        to tables and things that should be in the users focus"): a near-
        white page needs the shadow to carry part of the separation.
    */
    --px-shadow-card: 0 1px 2px rgba(27, 38, 35, 0.08), 0 2px 6px rgba(27, 38, 35, 0.06); /* reference look 05.11.2026; was 0 1px 3px rgba(12, 46, 31, 0.12), 0 6px 18px rgba(12, 46, 31, 0.09) */
    --px-shadow-raised: 0 12px 32px rgba(36, 50, 46, 0.12); /* reference look 05.11.2026; was 0 8px 24px rgba(12, 46, 31, 0.16) */

    /* A bar pinned to an edge (the save bar, the error bar) casts a short
       shadow onto what scrolls under it: upward from the bottom edge,
       downward from under the page header. The error bar's is the
       stronger one, because it sits over content that is still live. */
    --px-shadow-bar-up: 0 -2px 8px rgba(12, 46, 31, 0.06);
    --px-shadow-bar-down: 0 2px 8px rgba(12, 46, 31, 0.06);
    --px-shadow-bar-alert: 0 -2px 8px rgba(12, 46, 31, 0.10);

    /* What dims the page behind something modal - the narrow-screen
       sidebar and the reconnect dialog. Brand-hover at 45 %, so the page
       darkens towards the brand rather than towards grey. */
    --px-scrim: rgba(12, 46, 31, 0.45);

    /* The shell. The sidebar carries the navigation, the header strip the
       search, the site and the user; both widths are read by app.css and by
       the sticky offsets of anything that has to clear the header. */
    --px-side-w: 248px; /* reference look 05.11.2026; was 232px */
    --px-side-w-narrow: 60px;
    --px-head-h: 64px; /* reference look 05.11.2026; was 56px */
    --px-row-h: 44px;
    --px-gutter: 24px; /* reference look 05.11.2026; was var(--px-space-6) */
    --px-content-max: 1680px;

    /*
        The sidebar surface IS the brand now: #14452F, logo-forest. The kit
        reserves that colour for the logo, the app icon and large brand
        surfaces, and a full-height navigation column is the one large brand
        surface this application has - which is also why the logo in it is the
        negative one, as the kit requires on forest.

        It was #17332A, a desaturated near-miss of the old brand green, chosen
        when the brand was lighter and a column of it would have shouted.

        That change costs the active entry its fill: it used to be the brand
        green on a darker surface, and the brand green is now the surface. It
        is the kit's brand-hover instead - the state the kit defines for a
        pressed brand surface - and the active entry's ICON carries the leaf
        accent, which is legible here (4.9:1 on forest) and nowhere else. So
        the current page is marked three times over: a darker row, a brighter
        label, a green icon. Still no edge stripe.

        The ink alphas are tokens rather than rgba() literals in app.css
        because each has to clear AA against this surface, and that is a
        number worth being able to check. Quiet labels: 0.62 -> 5.3:1.
    */
    --px-side-bg: #24322E; /* reference look 05.11.2026; was #14452F */
    --px-side-ink: #E4EAE7; /* reference look 05.11.2026; was rgba(255, 255, 255, 0.92) */
    --px-side-ink-quiet: #B8C4BF; /* reference look 05.11.2026; was rgba(255, 255, 255, 0.62) */
    --px-side-fill-hover: rgba(255, 255, 255, 0.07); /* reference look 05.11.2026; was rgba(255, 255, 255, 0.08) */
    --px-side-fill-active: #2E4A40; /* reference look 05.11.2026; was var(--px-primary-hover) */
    --px-side-accent: var(--px-accent);
    --px-side-rule: rgba(255, 255, 255, 0.12); /* reference look 05.11.2026; was rgba(255, 255, 255, 0.16) */

    /* Inter, with the theme's own system stack behind it so a failed font load
       degrades instead of falling back to Times. The kit's family, in its
       order. */
    --px-font: 'Inter', var(--dxds-font-family-system-sans-serif, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif);

    /*
        Type. The kit gives seven steps; these are those, plus two this
        application needs and the kit does not name.

            2xs  11px  ours: badges, the Ctrl+K hint, group labels. Below the
                       kit's smallest step, and kept - a status badge set at
                       12px is a different control.
            xs   12px  the kit's label (it sets those at 600)
            sm   13px  the kit's small: dense secondary text, header controls
            base 15px  the kit's body. It was 14px, which is where Fluent's
                       own base lands, so --dxds-font-size-base-md is
                       re-pointed below and the components follow.
            md   16px  ours: card and panel titles, between body and h3
            lg   18px  the kit's h3
            xl   22px  the kit's h2
            display 30px  the kit's h1 - KPI numbers, and nothing else. The
                       kit's display step is 40px, which is a marketing size;
                       a KPI tile in a dense grid is not that.
    */
    /* Muster 13 replica (prescription capture). The paper's red (#E30613)
       is 3.97:1 on its blue; this one is darkened to 4.96:1 and still reads
       as the form. Paper blue sampled from the printed sheet. */
    --px-m13-paper: #D6EBF8;
    --px-m13-red: #C4121C;
    --px-m13-box: #FFFFFF;
    /* The prescription's colour outside the form (detail page head and
       tile): the paper blue, and an ink on it for graphics, 6.0:1 on white. */
    --px-m13-ink: #2A6492;
    /* The Privat and BG sheets (14.11.2026): the Muster 13 boxes on their own
       paper, so a sheet is never taken for another. Privat: cool white with
       blue print, 8.4:1. BG: pale yellow with brown print, 6.7:1 (a green
       print would be read as the brand). Both clear 4.5:1 on the white box. */
    --px-sheet-private-paper: #F1F4F9;
    --px-sheet-private-print: #1D4E89;
    --px-sheet-accident-paper: #FBF3D6;
    --px-sheet-accident-print: #7A4A0C;
    /* Note and task cards (StickyNote, owner 17.11.2026: "like sticky notes",
       colours "automatic, varied" by id, no meaning). Pastel papers after the
       owner's reference; --px-text clears 9.9:1 and --px-muted 4.99:1 or more
       on each (StylesheetTests). */
    --px-note-yellow: #FFD98A;
    --px-note-coral: #FFC0A8;
    --px-note-lime: #E3EEA2;
    --px-note-lilac: #DCCDF7;
    --px-note-sky: #B3E5F5;
    --px-note-mint: #C2EAD3;

    --px-text-2xs: 0.6875rem;
    --px-text-xs: 0.75rem;
    --px-text-sm: 0.8125rem;
    --px-text-base: 0.875rem; /* reference look 05.11.2026; was 0.9375rem */
    --px-text-md: 1rem;
    --px-text-lg: 1.125rem;
    --px-text-xl: 1.5rem; /* reference look 05.11.2026; was 1.375rem */
    --px-text-display: 1.875rem;

    /* The kit's line heights for the two text steps that carry running text,
       as ratios so they survive a change of size: 22/15 and 18/13. */
    --px-leading-body: 1.44; /* reference look 05.11.2026; was 1.47 */
    --px-leading-small: 1.38;

    /* Three weights, because Inter is a variable font and a fourth would not
       earn its place. 500 exists for a label that must separate from body text
       without becoming a heading; the kit sets its label step at 600. */
    --px-weight-normal: 400;
    --px-weight-medium: 500;
    --px-weight-semibold: 600;
    --px-weight-bold: 700;

    /*
        Icon sizes. 20 is the size the sprite symbols are drawn at, so it is
        the only one that is pixel-exact; 16 and 18 are the same symbol scaled,
        which Fluent outline icons survive because the strokes are not hinted.
    */
    --px-icon-sm: 16px;
    --px-icon-md: 18px;
    --px-icon-lg: 20px;

    /*
        The logo lockup. The kit puts the primary logo in a software header at
        28px high, and the wordmark's cap size follows the mark at 0.70 of its
        height - the proportion the kit's own SVG is drawn at (font-size 46 in
        a 66-unit mark). Geometry, not type, which is why these are not steps
        of the type scale.
    */
    --px-logo-h: 28px;
    --px-logo-word: 20px;
}

/* ------------------------------------------- the theme, pointed at them */

/*
    The Fluent theme sets these on ".dxbl-theme-fluent-mode-light, :root" —
    specificity 0,1,0, the same as a bare :root. Equal specificity means load
    order decides, and App.razor links this file after the theme, so these win.
    Checked against the served theme CSS rather than assumed.
*/
:root,
.dxbl-theme-fluent-mode-light {
    --dxds-font-family-sans-serif: 'Inter', var(--dxds-font-family-system-sans-serif);

    /* The body size. Fluent declares --dxds-font-size-base-md as
       var(--dxds-font-size-140) (14px) on :root; the brand kit's body is
       15px, so without this line every grid cell and editor would stay at 14
       while the application's own surfaces moved to 15. */
    --dxds-font-size-base-md: var(--px-text-base);

    --dxds-color-content-neutral-default-rest: var(--px-text);
    --dxds-color-content-neutral-subdued-rest: var(--px-muted);
    /* The STRONG line, not the light one: this is the edge of an editor, and
       the kit puts field borders on line-strong because 3:1 against the
       surface is a requirement for a UI component rather than a matter of
       taste. Cards and table rules keep --px-border. */
    --dxds-color-border-neutral-default-rest: var(--px-border-strong);
    --dxds-color-surface-neutral-default-rest: var(--px-surface);

    --dxds-color-content-danger-default-rest: var(--px-danger);
    --dxds-color-content-warning-default-rest: var(--px-warning);
    --dxds-color-content-success-default-rest: var(--px-success);

    /*
        Corner radius, pushed into the component layer so a DevExpress editor,
        button, grid and popup are as square as the application's own surfaces.
        Without this the app went boxy and the components stayed rounded, which
        looks like a mistake rather than a decision.

        Fluent's scale: 40 is the control radius, 60/80 sit between, 120 is the
        card/popup end. Read off the served theme CSS, where they are declared
        on :root - so an override here at the same specificity wins on load
        order, and App.razor links this file after the theme.
    */
    --dxds-border-radius-40: var(--px-radius-control);
    --dxds-border-radius-60: var(--px-radius-control);
    --dxds-border-radius-80: var(--px-radius-card);
    --dxds-border-radius-120: var(--px-radius-card);
}

/* ------------------------------------------------------------- the page */

html {
    /* 16px base: the --px-text-* steps are in rem, so this is what makes
       --px-text-base land on 15px - and --dxds-font-size-base-md with it,
       since the theme block above points Fluent at the same token. */
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--px-font);
    font-size: var(--dxds-font-size-base-md, var(--px-text-base));
    /* The kit's body leading (22/15), not Fluent's 1.25rem - which is 20px,
       and 20px under a 15px body is tighter than the kit draws it. */
    line-height: var(--px-leading-body);
    color: var(--px-text);
    background-color: var(--px-bg);
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------- the icon */

/*
    The box an icon is drawn in. Glyph renders an <svg> that pulls one symbol
    out of a DevExpress sprite, so there is no mask and no background image
    here any more - the symbol paints itself with currentColor, and the colour
    comes from whatever the icon sits in.

    The size still has to be pinned: the sprite symbol scales into the viewport
    the <svg> gives it, and an <svg> with neither attributes nor CSS falls back
    to 300x150.
*/
.px-icon {
    display: inline-block;
    width: var(--px-icon-size, var(--px-icon-md));
    height: var(--px-icon-size, var(--px-icon-md));
    min-width: var(--px-icon-size, var(--px-icon-md));
    flex: none;
    vertical-align: -0.2em;
}

/*
    There are deliberately NO icon colour classes.

    A monochrome sprite symbol paints itself with currentColor, so an icon
    already takes the colour of whatever it sits in: white on the green
    sidebar, muted beside a header label, green inside a link button, grey in a
    grid cell. A set of .px-icon--quiet / --accent / --danger classes was
    written here and then removed, because not one of the 24 Glyph call sites
    needed one - every single one was already correct from context.

    Where an icon does need to be quieter than its label, colour the CONTEXT,
    not the icon: see the .px-bar-item rule in app.css, which sets the colour
    on the icon inside a header control rather than asking the markup to ask
    for it. That way the markup cannot get it wrong, and there is one place to
    change when the header changes.

    The one thing that does belong on the icon is its size, because that cannot
    be inherited.
*/

/*
    Tabular figures wherever numbers are read in a column — grids, KPI tiles,
    dates, quantities. Inter's proportional digits make a column of figures
    ragged, which is exactly wrong for remaining-units and deadline columns.
*/
.px-num,
.dxbl-grid,
.dxbl-grid td,
.px-kpi__value,
.px-tile__value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

/* --------------------------------------------------------- the logo */

/*
    BrandLogo. The modules and the wordmark take currentColor, so one drawing
    serves the primary logo (forest, on white) and the negative one (white, on
    the forest sidebar) - the context decides, as it does for an icon.

    The leaf module does not: the kit fixes logo-leaf, and a leaf that followed
    the context would be a recoloured logo.
*/
.px-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--px-space-2);
    color: currentColor;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
}

.px-brand__mark {
    display: block;
    height: var(--px-logo-h);
    width: calc(var(--px-logo-h) * 60 / 66);
    flex: none;
    fill: currentColor;
}

/* The one part of the logo with a colour of its own. */
.px-brand__leaf {
    fill: var(--px-accent);
}

/*
    The wordmark. Inter Bold at 0.70 of the mark's height, with the kit's
    tightened tracking (letter-spacing -1 at font-size 46 in the kit's own
    file, which is -0.022em).

    The accent bar under the first letters is the kit's, and it keeps its round
    ends: the logo is exempt from the square-corner rule, see BrandLogo.razor.
    The padding below the word is what the bar sits in, scaled from the kit's
    drawing (10 units below the baseline at 0.435 of its size).
*/
.px-brand__word {
    position: relative;
    padding-bottom: 5px;
    font-size: var(--px-logo-word);
    font-weight: var(--px-weight-bold);
    letter-spacing: -0.022em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-brand__word::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 0;
    width: 15px;
    height: 2px;
    border-radius: 1px;
    background: var(--px-accent);
}
