/*
 * The house style.
 *
 * Every colour and every measurement in this file is a var() out of tokens.css, which is where
 * the design tokens are declared. There is no hex and no pixel figure below this line that is not
 * a token: the palette has to be re-cuttable in one file, and ThemeTokenTests fails the build if
 * one is typed here.
 *
 * The one exception is the Elevation block immediately below, and it is an exception with a
 * reason rather than a lapse. A shadow's COLOUR is a colour and lives in tokens.css with a dark
 * twin like everything else; its geometry - offset, blur, spread - and an easing curve are not a
 * value to be named but a rule to be written, and a rule belongs in a stylesheet. They are
 * declared once, here, composed out of the tokens, and nothing further down writes one by hand.
 *
 * Structured the way Layouts.xaml and Controls.xaml split on the XAML side - a control on its
 * own, then a control in a job. The class names follow the block__element--modifier shape the
 * old Blazor head used, because it survived a 1,300-line stylesheet there without collapsing.
 */

/* ==========================================================================
   Elevation, motion and glass

   Four levels, and they are a hierarchy rather than a set of choices: a thing
   is raised because it sits above what is behind it, so the level says where it
   is in the stack. Background -> surface -> raised -> floating -> modal.

   Every one is two shadows. A single large blur reads as a smudge; a tight
   near-opaque one to seat the edge plus a wide soft one for the ambience is
   what actually reads as height. All of them are the mark's navy, never grey.
   ========================================================================== */

:root {
    /*
     * A card, a toolbar - resting on the page rather than floating over it.
     *
     * Two shadows like the other three, which it was not: it carried a single 1px seat and no
     * ambience at all, against a block comment two lines above declaring that every level is a
     * pair. On a flat white card nobody noticed. Under a translucent one it reads as a sticker.
     */
    --elev-1: 0 1px 2px var(--pos-shadow-soft), 0 5px 16px var(--pos-shadow-soft);

    /* Raised: hovered cards, the sticky grid header, a pressed-open control. */
    --elev-2: 0 2px 4px var(--pos-shadow-soft), 0 14px 28px var(--pos-shadow-strong);

    /* Floating: dropdowns, lookup results, popovers, tooltips. */
    --elev-3: 0 2px 6px var(--pos-shadow-soft), 0 14px 38px var(--pos-shadow-medium);

    /* Modal: dialogs, the search palette. The only level that dims what is behind it. */
    --elev-4: 0 4px 12px var(--pos-shadow-medium), 0 24px 60px var(--pos-shadow-strong);

    /*
     * HOW BIG THE TEXT IS, as a ratio rather than a size.
     *
     * A client working an eight-hour shift said two hours of this gave him a headache, and the
     * measurement bore it out: the data tables - the one thing somebody reads all day - were the
     * SMALLEST readable text in the application at 12px, under body copy at 14. The ramp in
     * tokens.css was raised so a table cell is now 14, and this is what lets a till go further
     * or go back.
     *
     * Declared here rather than in tokens.css because it is a preference and not a measurement:
     * a reader sets it, where a token states a fact about the design. Every type size and the
     * heights type sits in are composed with it over there, so there is still exactly one place a
     * size is written down - and a test pins exactly which tokens scale, in both directions.
     *
     * ONLY TYPE AND ITS ROW HEIGHTS SCALE. Padding, radii, borders and icons are the shape of the
     * interface rather than the size of its text - scaling those as well would zoom the whole
     * application, which is what Windows' own display scaling already does better.
     */
    --text-scale: 1;

    /*
     * Glass. Saturation is lifted with the blur because blurring alone leaves what shows through
     * looking washed out and grey - the saturate() is most of why this reads as glass rather
     * than as fog. 14px, not 40: backdrop-filter is the most expensive thing on this page and a
     * till is not a workstation.
     */
    --glass-blur: saturate(170%) blur(14px);

    /*
     * THE GLOSSY SURFACE, AND IT IS NOT THE BLUR ABOVE. Two layers in one background, which is
     * the whole trick: the specular strip and the fill in a single property, so a card needs no
     * ::before, no position:relative and no overflow rule, and both clip to the border radius on
     * their own. A pseudo-element on every card would have been three more things to get wrong on
     * sixty screens.
     *
     * The strip falls over 36px rather than over a percentage of the height. The reference uses
     * 38%, which is right on tiles that are all one size and wrong here - the same rule has to
     * light a 60px KPI tile and a 600px grid frame, and a proportional strip would wash half of
     * the second one.
     *
     * No backdrop-filter anywhere near it. A card sits on the app ground, so there is nothing
     * behind it that blurring would change; what reads as glass is the fill picking the ground's
     * colour up, and that costs one paint.
     */
    --grad-glass:
        linear-gradient(180deg, var(--pos-glass-gloss) 0%, transparent var(--space-7)),
        linear-gradient(155deg, var(--pos-glass-top) 0%, var(--pos-glass-bottom) 100%);

    /*
     * The two edges, composed onto whatever elevation a surface already carries. Lit along the
     * top and shaded along the bottom, from the same top-left the whole palette is lit from - a
     * pane reads as glass by its edges, which is the finding the gate card is already built on.
     */
    --glass-edge: inset 0 1px 0 var(--pos-glass-sheen), inset 0 -1px 0 var(--pos-glass-shade);

    /*
     * The same top edge alone, for a surface that is already a saturated fill - a filled button,
     * a table header band. The shade half is invisible on navy and the lit half is most of what
     * makes a filled control look pressable rather than printed.
     */

    /*
     * The rail's own shade, cast only to the right.
     *
     * An elevation is four-sided and says "this floats". The rail is attached to three window
     * edges, so the only side that can honestly carry a shadow is the one with a page next to it.
     */
    --shadow-rail-edge: 3px 0 10px -4px var(--pos-shadow-soft);

    /*
     * ALL FOUR EDGES, for the two surfaces that are meant to read as a polished pane rather than
     * as a panel: the rail and the menu that opens out of it.
     *
     * The lit top edge is what sells any of this as glass; the two sides are what make it read as
     * a THICKNESS rather than a translucent rectangle - which is the finding the gate card is
     * already built on, applied to the two surfaces that sit above everything else all day. Light
     * arrives from the top left, so top and left catch it and bottom and right fall into shade,
     * the direction every gradient and every elevation in this palette is lit from.
     *
     * Composed here out of the tokens rather than named in tokens.css, because what is new is
     * only WHERE the existing sheen and shade are drawn. That is geometry rather than a value -
     * the same documented exception the elevations above are declared under.
     *
     * Not given to cards, tables or forms. Four lit edges on sixty surfaces would be a room full
     * of picture frames; on the two things that genuinely float it reads as polish.
     */
    --glass-edge-deep:
        inset 0 1px 0 var(--pos-glass-sheen),
        inset 1px 0 0 var(--pos-glass-sheen),
        inset 0 -1px 0 var(--pos-glass-shade),
        inset -1px 0 0 var(--pos-glass-shade);

    /*
     * Motion. A cashier rings up a hundred lines an hour and every one of these plays again, so
     * the budget is small on purpose: 90ms is felt rather than watched, and nothing that sits in
     * the counter path is allowed to be slower. Anything above 200ms belongs to something that
     * happens once, like a dialog opening.
     */
    --motion-instant: 90ms;
    --motion-fast: 140ms;
    --motion-base: 200ms;

    /* Decelerating, so a thing arrives rather than stopping dead. */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);

    /*
     * Gradients. THIS USED TO SAY "ONLY FIVE" AND LIST THEM, and the glass theme is what made a
     * count the wrong rule: --grad-glass above is a sixth, it is on every card in the application,
     * and it is exactly the thing the old paragraph forbade.
     *
     * The discipline it was protecting is intact and is what the rule is now. Every gradient here
     * is built from tokens that are already neighbours in the palette, so none introduces a colour
     * and none can drift from the flat fill it sits beside. A gradient is a way of LIGHTING a
     * surface, never a new hue. The moment one needs a third stop or a hand-picked stop colour it
     * has stopped being lighting and become decoration, and that is still ruled out.
     *
     * What has not changed: none of them goes on a data table or a dense form. A background
     * showing through costs exactly the readability the figures are there for, and a grid frame
     * takes the lit edges below without the fill for that reason.
     */

    /* THE PAGE GROUND IS FLAT, one colour. It carried three soft mint and aqua glows under the
       translucent cards, which suited a green-led palette; the palette is now a cool grey page
       with white cards and a dark green rail, and the glows are gone. Still written as a gradient
       of one colour rather than a bare colour, because the gate and the shell both read this as
       a background-image. */
    --grad-app: linear-gradient(180deg, var(--pos-bg) 0%, var(--pos-bg) 100%);

    /* THE RAIL IS DARK GREEN, SOLID, AND DARK IN BOTH THEMES. It was light glass, and the client
       found it hard to read and its borders hard to see against a light page. It lightens at the
       top left, where the light comes from everywhere else in this palette, and settles into the
       primary's near-black green below, which is what stops 900 pixels of one green reading as a painted
       bar. Two tokens, no third stop: a gradient here is lighting, not a new hue. */
    --grad-rail: linear-gradient(160deg, var(--pos-rail-top) 0%, var(--pos-rail-bottom) 70%);

    /* The current entry, tinted with the teal rather than filled with a shade. */

    /* The gate, lit from the top left the way the app ground is. The two screens in front of a
       session stand on it and nothing else does - it is the mark's own navy rather than the
       off-white the application proper is drawn on. */
    /*
     * THE GATE STANDS ON THE APPLICATION'S OWN GROUND. It used to have a navy one of its own, on
     * the argument that the front door may look like a front door - which was right while the
     * whole application was navy-led and became wrong the moment it was not. Signing in and then
     * arriving somewhere completely different reads as two programs, not as one.
     *
     * It is --grad-app itself rather than a copy, so the blooms behind the sign-in card are the
     * same three, in the same places, as the blooms behind the counter a second later.
     */
    --grad-gate: var(--grad-app);

    /* The two filled buttons, lit from above by about one step of the palette. This is the whole
       of the tactile allowance: enough that the surface has a direction, far short of the glossy
       lozenge a skeuomorphic button would be. */
    /*
     * THE ONE FILLED BUTTON, AND IT IS TEAL. The sample has exactly one, and this reverses the
     * rule that used to be recorded here - "teal is a highlight, never the lead" - which was
     * written when the fill was navy and the label was white. Teal cannot carry white (about
     * 2.3:1). It carries near-black green at 9:1, which is what makes it work as the lead: the
     * fill is loud and the LABEL is the readable part.
     *
     * 140deg like the sample, not 180: the light comes from the top left everywhere else in this
     * palette, and a vertical wash on a small control reads as a bevel rather than as lighting.
     */

    /*
     * The filled button, and it is green rather than teal now. Both names are kept because eighty
     * screens use one or the other and which they chose is still a statement about the screen,
     * not about the colour - so they resolve to the same fill and always have.
     *
     * Darker on hover, which is this palette's own convention and is also the safe direction: a
     * filled button that LIGHTENS on hover walks its own label toward the contrast floor.
     */
    --grad-primary: linear-gradient(140deg, var(--pos-primary-lit) 0%, var(--pos-primary) 100%);
    --grad-primary-hover: linear-gradient(140deg, var(--pos-primary-hover) 0%, var(--pos-primary-active) 100%);
    --glow-primary: 0 6px 18px var(--pos-primary-glow);

    /* Light coming off the control, in the fill's own hue - not the page's shadow navy, which is
       weight. The softer twin seats the current rail entry and a picked tile. */
    --glow-accent-soft: 0 4px 16px var(--pos-accent-glow-soft);

    /* The teal tint a current or picked thing wears: the sample's nav-fill. */
    --grad-accent-tint: linear-gradient(120deg, var(--pos-rail-active-fill) 0%, var(--pos-rail-active-fill-soft) 100%);
}

/*
 * Somebody who has asked the OS to stop animating things has asked this app too. Nothing here is
 * load-bearing - every transition below is feedback on a state that has already changed - so
 * they are switched off wholesale rather than shortened.
 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/*
 * Compact is roughly where the application stood before the ramp was raised, kept so a shop that
 * preferred the density can have it back; Large is for whoever asked for this in the first place.
 *
 * Set on the root element beside data-theme, from MainLayout's first render - the shell is
 * mounted once and draws the gate as well as the application, so the sign-in screen gets it too.
 * The preference is a file beside the server address that the page cannot read for itself, so
 * there is one frame at the default ramp while the window is still appearing.
 */
[data-text="compact"] { --text-scale: 0.88; }
[data-text="large"] { --text-scale: 1.14; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--pos-font), "Segoe UI", system-ui, sans-serif;
    font-size: var(--text-base);
    line-height: 1.45;
    color: var(--pos-text);
    background: var(--grad-app);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/*
 * The app is a window, not a document. Rubber-banding the whole shell to reveal a strip of
 * nothing under the rail reads as the app having come apart, and there is never anything down
 * there to see: every scroller in the app is an inner one.
 */
body { overflow: hidden; overscroll-behavior: none; }

/* A WebView is still a browser: selectable chrome makes a till look like a web page. */
body { user-select: none; -webkit-user-select: none; }
input, textarea, [contenteditable], .selectable { user-select: text; -webkit-user-select: text; }

/* ==========================================================================
   Type

   The eleven levels the app actually uses, written down. Every one is a size
   out of the generated scale plus a weight and a colour - there is no size
   here that is not a token, and no screen sets its own.

     Page title       h1 / .topbar__title           lg   650   -0.01em
     Section title    h2 / .section-heading          xl  650
     Card title       h3 / .card__title / .widget__title
                                                     lg  650
     Body                  (inherited)             base  400
     Secondary        .muted                         sm  400   text-muted
     Muted            .subtle                        sm  400   text-subtle
     Label            .field-label                   sm  600   text-muted
     Caption          .kpi__caption / .band__blurb   xs  400
     Table text       .grid__table                   sm  400
     Button text      .btn                         base  400 / 700 when filled
     Input text       .field__input                base  400

   Sizes stop at 2xl on a working screen. This is a business application and a
   28px heading is 28px not spent on rows; 3xl exists for the sign-in card and
   for a KPI figure, which are the two places a number is the whole point.
   ========================================================================== */

h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

/*
 * Figures line up wherever they are read in a column, whatever element holds them. Equal-width
 * digits are what is left of the readability that right alignment used to buy, now that every
 * column is left-aligned - and it costs nothing, because these faces carry the feature already.
 */
.grid__table, .widget__table, .kpi__value, .chart__total {
    font-variant-numeric: tabular-nums;
}

p { margin: 0; }

/*
 * Present to a screen reader, absent to everyone else. The clip-rect shape rather than
 * display:none or visibility:hidden, both of which take the element out of the accessibility
 * tree as well - which would defeat the point. Used where something visual carries meaning that
 * the markup otherwise leaves unsaid, such as a loading skeleton.
 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

a { color: var(--pos-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--pos-primary); color: var(--pos-on-brand); }

/*
 * Scrollbars. Left to the platform they are a light-grey browser artefact sitting against the
 * navy rail, which is the one place in the app it would be obvious this is a WebView.
 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--pos-border-strong);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--pos-text-subtle); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* The rail scrolls against its own dark ground and needs the opposite treatment. */
.rail ::-webkit-scrollbar-thumb,
.rail__flyout::-webkit-scrollbar-thumb { background-color: var(--pos-rail-scroll); background-clip: content-box; }
.rail ::-webkit-scrollbar-thumb:hover,
.rail__flyout::-webkit-scrollbar-thumb:hover { background-color: var(--pos-rail-nav-active); background-clip: content-box; }

/* ==========================================================================
   Booting, and the framework error bar
   ========================================================================== */

.boot {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-4);
    height: 100vh;
    background: var(--pos-bg);
    color: var(--pos-text-muted);
    font-size: var(--text-sm);
}

.boot__spinner {
    width: 26px;
    height: 26px;
    border: 2px solid var(--pos-border-strong);
    border-top-color: var(--pos-primary);
    border-radius: var(--radius-pill);
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--pos-danger);
    color: var(--pos-text-inverse);
    font-size: var(--text-sm);
}

#blazor-error-ui .reload { color: var(--pos-text-inverse); text-decoration: underline; }
#blazor-error-ui .dismiss { margin-left: auto; cursor: pointer; }

/* ==========================================================================
   Shell
   ========================================================================== */

/*
 * THE PANELS FLOAT, which is most of why the reference reads the way it does.
 *
 * The shell holds them apart and lets the ground show between and around them, so the blooms in
 * it are visible as themselves rather than only as a tint picked up through a translucent
 * surface. Flush panels meeting at a hairline is a denser and more conventional shell; this is
 * the one the mark was drawn for.
 *
 * The padding is paid for rather than added. .shell__page gave up its own - the outer margin is
 * this padding now - so the whole change costs the page ten vertical pixels rather than the
 * forty-odd it looks like it should. On the counter that matters and it is measured, not
 * assumed: see the New Sale figures in the commit message.
 */
/*
 * THE RAIL IS ATTACHED, NOT FLOATING, and the padding moved off the shell to do it.
 *
 * It used to sit as a card inset from all four window edges, which cost the shell's padding twice
 * over on the left - once outside the rail and once as the gap beside it - and left three strips
 * of ground doing nothing but framing a panel that is on screen permanently. A rail is furniture;
 * the reason a card floats is that it is one of several things on a page, and this is not.
 *
 * So the shell has no padding of its own and the rail is flush to the left, the top and the
 * bottom. The page keeps its own breathing room, applied to .shell__main instead - the content
 * still needs it, and it is now the only thing paying for it.
 */
.shell {
    display: grid;

    /*
     * AUTO, NOT var(--rail-width). The rail now sets its own width - see .rail below and
     * .rail--compact - so the first track simply follows whatever that turns out to be rather
     * than the two having to be kept in step by hand. Going compact is therefore entirely
     * the rail's own business: nothing here, and nothing in MainLayout, has to know it happened.
     */
    grid-template-columns: auto 1fr;
    height: 100vh;
    /* On a phone 100vh is the page with the browser's address bar RETRACTED, so out of full screen
       the foot of every screen sat behind the bar and could not be scrolled to. dvh follows it. */
    height: 100dvh;
    overflow: hidden;
}

.shell__main {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: var(--space-3);
    min-width: 0;
    overflow: hidden;

    /*
     * Two pixels, not fourteen. Asked for directly and it is right for a till: the only job this
     * has is to stop the page touching the window frame, and every pixel of it was a pixel not
     * showing a sale line. What separates content from its own edge is a card's padding, which is
     * still there.
     */
    padding: var(--shell-padding);
}

/*
 * The page host. PageHost on the XAML side gives the page an explicit height on every measure so
 * a * row always has a real figure to divide; in CSS min-height:0 on a grid row does the same
 * job, and it is what lets a page put a table in a 1fr row and have the table scroll rather than
 * the whole page.
 */
/* No padding of its own any more: the shell's padding IS the page's outer margin now, and
   keeping both would have double-inset every screen. */
.shell__page {
    min-height: 0;
    min-width: 0;
    overflow: auto;
}

/* ==========================================================================
   Navigation rail
   ========================================================================== */

.rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-3);
    background: var(--grad-rail);

    /*
     * ITS OWN WIDTH, so .shell's auto track can simply follow it - see the comment there.
     * .rail--compact below is the only other place this is set for the wide layout; the narrow
     * (drawer) media query sets its own, because there the rail is position: fixed and out of the
     * grid entirely.
     */
    width: var(--rail-width);

    /* Motion is feedback on a state that has already changed, the counter budget rather than the
       dialog one - collapsing is something somebody does many times a shift. */
    transition: width var(--motion-fast) var(--ease-out);

    /*
     * ATTACHED, so three of its edges are the window's edges.
     *
     * No radius and no border on the left, top or bottom - a rounded corner against the frame is
     * a card pretending the window is bigger than it is. The RIGHT border stays and is the only
     * thing separating the rail from the page, which is what it was always for.
     *
     * AND NO ELEVATION. This was the half that still read as floating after the corners went: an
     * elevation casts on all four sides, and a shadow along an edge that IS the window frame says
     * the panel is hovering in front of it. What is left is one soft shade to the right, which is
     * a real edge with a real page beside it, plus the lit top that reads as glass.
     */
    box-shadow: var(--shadow-rail-edge), inset 0 1px 0 var(--pos-rail-sheen);
    color: var(--pos-rail-text);
    border: 0;
    border-right: 1px solid var(--pos-rail-border);
    border-radius: 0;
    overflow: hidden;
}

/*
 * The Forsten mark, drawn inline by the BrandMark component. Sized by whatever holds it, never by
 * itself: the top bar wants one size and the gate another, and an SVG with a viewBox scales to
 * either without a second asset.
 */
.brand-mark { display: block; }

/*
 * THE HEAD OF THE RAIL: logo, the shop's name, and the menu button. Expanded they share one row,
 * the name taking what the logo and button leave; compact they stack, logo over button, and the
 * name goes.
 */
.rail__head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    padding: 0 0 var(--space-4);
}

.rail__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
    padding: var(--space-1) var(--space-1);
    border: 0;
    border-radius: var(--radius-lg);
    background: none;
    color: var(--pos-rail-text-strong);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* The mark sits on its own white plate. One of its three colours is near-black navy, which is also
   the rail's background, so on the rail itself a third of the logo simply is not there. The plate
   is a property of the SLOT rather than of what is in it, so a shop's own logo gets it too. */
.rail__plate {
    display: grid;
    place-items: center;
    width: var(--space-7);
    height: var(--space-7);
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--pos-mark-plate);

    /* A ring as well as a lift: on a dark rail the white plate's edge is the logo's frame. */
    box-shadow: 0 0 0 1px var(--pos-rail-plate-ring), var(--elev-1);
}

.rail__logo { width: var(--space-5); height: var(--space-5); flex-shrink: 0; object-fit: contain; }

.rail__name {
    min-width: 0;
    font-size: var(--text-base);
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-7);
    height: var(--space-7);
    flex-shrink: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: none;
    color: var(--pos-rail-text);
    cursor: pointer;
    transition: background var(--motion-instant) var(--ease-standard), color var(--motion-instant) var(--ease-standard);
}

.rail__toggle:hover {
    background: var(--pos-rail-bg-soft);
    color: var(--pos-rail-text-strong);
}


/*
 * flex: 0 1 auto, AND THE 1 IN THE MIDDLE IS THE WHOLE POINT.
 *
 * This was flex: 1, which is flex-grow 1 - and .rail__spacer below is also flex: 1. Two siblings
 * that both grow SPLIT the free space equally, so the menu was given exactly half the rail and
 * scrolled inside it while an identical half sat empty underneath. Measured at 900px: the nav
 * showed 323px of 733px of entries, and the spacer held 323px of nothing.
 *
 * Now it takes its content's height (grow 0), gives way only when there genuinely is not room
 * (shrink 1), and the spacer absorbs whatever is left over. min-height: 0 is what lets it shrink
 * below its content on a short window instead of pushing the foot off the bottom - that is the
 * case the overflow below is for, and it is now the ONLY case it is for.
 */
/*
 * The clock at the foot of the rail: the day, the time large in the mark's teal, the date. Pushed to
 * the bottom by its auto top margin; everything is a rail token, so it follows the rail's colours in
 * both themes. tabular-nums keeps the digits from shivering as the minute turns.
 */
.rail__clock {
    margin-top: auto;
    padding: var(--space-4) var(--space-2) var(--space-2);
    display: grid;
    justify-items: center;
    gap: var(--space-1);
    border-top: 1px solid var(--pos-rail-border);
    text-align: center;
    user-select: none;
}

.rail__clock-day,
.rail__clock-date {
    font-size: var(--text-base);
    color: var(--pos-rail-text);
}

.rail__clock-time {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--pos-rail-nav-active);
}

.rail__nav {
    flex: 0 1 auto;
    min-height: 0;

    /*
     * Still a scroller, deliberately, and it should now never be used. Eight rows fit on anything;
     * what keeps this here is the short-window case the comment above describes - the foot must
     * not be pushed off the bottom. It does not clip the flyout, which is fixed-positioned and
     * placed from outside the flow precisely so this cannot.
     */
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    align-content: start;
    gap: var(--space-1);
}

/*
 * A CHIP, not a full-bleed row with a strip down its side.
 *
 * The strip went with it. It existed because a flat row needed something to mark it; a chip that
 * carries its own fill, its own border and its own glow does not, and the sample marks its
 * current entry that way rather than with a rule. Three signals are still there - fill, border,
 * weight - and the glow is a fourth.
 */
.rail__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: none;
    color: var(--pos-rail-text);
    font: inherit;
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;

    transition:
        background var(--motion-instant) var(--ease-standard),
        color var(--motion-instant) var(--ease-standard),
        border-color var(--motion-fast) var(--ease-out);
}

/*
 * A hovered row picks up the same lit top edge the active one carries. Without it the hover was a
 * flat wash of tint - correct, and the one moment in the rail where nothing looked like glass.
 * The edge alone rather than the full four: a row is a facet of the pane, not a pane of its own.
 */
.rail__item:hover {
    background: var(--pos-rail-bg-soft);
    color: var(--pos-rail-text-strong);
    box-shadow: inset 0 1px 0 var(--pos-rail-sheen);
}

.rail__item:hover .icon { color: var(--pos-rail-text-strong); }

/* The page's focus ring is tuned for a light surface and would vanish on the dark rail. */
.rail__item:focus-visible,
.rail__toggle:focus-visible,
.rail__brand:focus-visible { outline: 1px solid var(--pos-rail-nav-active); outline-offset: 1px; }

/*
 * The current screen. Three signals at once - fill, strip and weight - because this is the answer
 * to "where am I" and it has to survive being glanced at rather than read. On a navy rail a
 * colour change alone is the first thing lost to a bright shop window behind the counter.
 */
.rail__item--active {
    background: linear-gradient(120deg, var(--pos-rail-nav-fill) 0%, var(--pos-rail-nav-fill-soft) 100%);
    color: var(--pos-rail-text-strong);
    border-color: var(--pos-rail-nav-line);
    font-weight: 600;
    box-shadow: inset 0 1px 0 var(--pos-rail-sheen);
}

.rail__item--active .icon { color: var(--pos-rail-nav-active); }

/* Icons are one step quieter than their labels, so the label leads; they brighten with the row. */
.rail__item .icon { flex-shrink: 0; color: var(--pos-rail-icon); }
.rail__item--active .icon { opacity: 1; }

/*
 * A menu row asked for ahead of the screen behind it existing - "Accounts" under Reports, today.
 * Shown rather than hidden, and dimmed and inert rather than a live link that goes nowhere: a
 * disabled <button> takes no click and no keyboard activation, and the tooltip says so. The same
 * "reserved, not yet built" reading Reports.razor's own report-tile--waiting already gives a tile,
 * read down to a rail row's own scale.
 */
.rail__item--waiting { opacity: 0.5; cursor: default; }
.rail__item--waiting:hover { background: none; box-shadow: none; color: var(--pos-rail-text); }

.rail__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   The group rows and their flyouts

   A group is a row; its screens are a panel that opens beside it. Flat, the catalogue is some
   fifty rows and the rail scrolled - which quietly turned "every screen is one click from every
   other screen" into "one click, once you have found it".
   ========================================================================== */

/*
 * The hover target is the row AND the panel, which is why they share a wrapper: leaving the row
 * for the panel must not read as leaving the menu. It has no box of its own - the row inside it
 * is still the thing being drawn.
 */
.rail__section { position: relative; display: grid; }

/*
 * The caret sits at the far end, so a row that opens something is distinguishable from a row that
 * goes somewhere - without having to be hovered to find out.
 *
 * It POINTS RIGHT AND STAYS THERE. A caret that swung down on opening would be the accordion
 * convention, and this is not one: nothing expands in place, a panel opens to the side, and the
 * rows below do not move. Saying "down" would describe a layout the rail does not have.
 *
 * The chevron rather than the external-link glyph, which is what IconNames.Open actually draws.
 */
.rail__caret {
    margin-left: auto;
    display: flex;
    opacity: 0.5;
    transform: rotate(-90deg);
    transition: opacity var(--motion-instant) var(--ease-standard);
}

/* Brightening is the whole of the open signal on the caret; the row's own fill carries the rest. */
.rail__item--group:hover .rail__caret,
.rail__item--open .rail__caret { opacity: 1; }

/* Held in the hover state while its menu is up, edge included - the mouse is over the panel by
   then, not the row, and a row that dropped back to flat while its own menu was open would read
   as the menu having come loose from it. */
.rail__item--open {
    background: var(--pos-rail-bg-soft);
    color: var(--pos-rail-text-strong);
    box-shadow: inset 0 1px 0 var(--pos-rail-sheen);
}

.rail__item--open .icon { color: var(--pos-rail-text-strong); }

/*
 * FIXED, and placed from pos.placeFlyout rather than laid out.
 *
 * The rail sits inside two `overflow: hidden` ancestors - .shell and .rail itself - so a panel
 * positioned inside the flow would be clipped at the rail's own edge, which is precisely the
 * edge it has to cross. The same seam and the same reason as the lookup list.
 */
.rail__flyout {
    position: fixed;

    /* Above a dialog's scrim would be wrong - navigation is not more important than the thing
       being confirmed - so it sits with the lookup list, over the page and under a dialog. */
    z-index: 200;

    min-width: 13rem;
    max-width: 20rem;
    overflow-y: auto;

    display: grid;
    align-content: start;
    gap: var(--space-1);
    padding: var(--space-2);

    border: 1px solid var(--pos-rail-flyout-border);
    border-radius: var(--radius-surface);

    /*
     * Solid, one step lighter than the rail it opens out of, so it reads as sitting in front of
     * it. It was glass while the rail was; a translucent panel over a dark rail and a light page
     * would show the page through its foot, and the menu is read at a glance.
     */
    background: var(--pos-rail-flyout);
    box-shadow: 0 12px 28px var(--pos-rail-flyout-shadow), inset 0 1px 0 var(--pos-rail-sheen);

    /* The rail's own ink, because this is the rail: the same rows, drawn somewhere else. */
    color: var(--pos-rail-text);
}

/*
 * HIDDEN UNTIL POS.PLACEFLYOUT HAS ACTUALLY MEASURED AND MOVED IT - this is the glitch fix.
 *
 * A `position: fixed` element with no left/top yet falls back to its STATIC position: the browser
 * computes where it would have sat as an ordinary block. Here that is stacked directly under the
 * group row that opened it, inside .rail__section, at the rail's own width - so for one render the
 * panel flashed into view sitting over the rail itself, before JS in OnAfterRenderAsync snapped it
 * to its real place beside the row. That flash was "something opens over the sidebar."
 *
 * visibility rather than display: none, because pos.placeFlyout still has to read offsetWidth and
 * offsetHeight to know where the real place IS - display: none would zero both. It also does not
 * reset the entrance animation below: a CSS animation keeps its own clock running while hidden by
 * visibility, it just is not painted, so revealing it a few milliseconds in (which is all the JS
 * round trip costs) still shows the rest of the fade rather than restarting it.
 */
.rail__flyout--placing { visibility: hidden; }

/*
 * The group's name, repeated at the head of its own panel.
 *
 * Not redundant. The panel is drawn away from the row that opened it and can be pushed up a long
 * way on a short window, so the row it belongs to is not always beside it - and a floating list
 * of seven screen names with nothing saying what they have in common is a menu somebody has to
 * work out.
 */
.rail__flyout-head {
    padding: var(--space-2) var(--space-3) var(--space-1);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--pos-rail-icon);
}

/* Motion is feedback on a state that has already changed, and this one repeats all day - so it is
   the counter budget rather than the dialog one, and it is off entirely under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .rail__flyout { animation: rail-flyout var(--motion-fast) var(--ease-out); }
}

@keyframes rail-flyout {
    from { opacity: 0; transform: translateX(calc(var(--space-2) * -1)); }
    to { opacity: 1; transform: none; }
}

/* Pushes About to the bottom of the panel, the way the sample does. */
/* Takes everything the menu does not, which is what puts About at the foot of the panel. It is
   the only growing child in the rail; a second one would halve the menu, which is what it did. */
.rail__spacer { flex: 1 1 auto; min-height: var(--space-4); }


/* ==========================================================================
   Compact rail - icon only, toggled by the hamburger at its own head.

   .rail--compact narrows the rail to --rail-width-compact (see .shell above for how the page
   beside it follows without being told) and hides every label, leaving the icons as the whole of
   the menu. Hovering one still opens its flyout exactly as it always did - pos.placeFlyout reads
   the row's own rectangle off the page, so it needs no idea the rail is narrower - which is what
   makes the flyout itself this mode's popover: the group's name and its screens, on a real hover,
   not a plain OS tooltip. A row with no group (Home) has no flyout to fall back
   on, so those carry a `title` instead - see the markup - which is the one place this mode still
   answers with a native tooltip rather than a panel of its own.

   Confined to widths where the rail is not already a drawer: shrinking an OVERLAY to icon-only
   is not a thing this rail does. The top bar's menu button flips this and the drawer together.
   ========================================================================== */
@media (min-width: 861px) {
    .rail--compact { width: var(--rail-width-compact); }

    .rail--compact .rail__name,
    .rail--compact .rail__label,
    .rail--compact .rail__caret {
        display: none;
    }

    /* Compact keeps the time and drops the words around it. */
    .rail--compact .rail__clock-day,
    .rail--compact .rail__clock-date { display: none; }
    .rail--compact .rail__clock-time { font-size: var(--text-base); }

    .rail--compact .rail__head {
        flex-direction: column;
        align-items: center;
    }

    .rail--compact .rail__brand {
        flex: none;
        padding: var(--space-1) 0;
    }

    .rail--compact .rail__item {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    /*
     * THE FLYOUT IS NEVER COMPACT. It floats beside the rail rather than inside it, so its own
     * rows are still .rail__item with a real .rail__label - and both are still descendants of
     * .rail in the DOM, which is what the broad hides above would otherwise catch too. These two
     * rules carry one more class each (three against two), so they win regardless of source order
     * and restore the ordinary row for anything actually inside the panel.
     */
    .rail--compact .rail__flyout .rail__item {
        justify-content: flex-start;
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .rail--compact .rail__flyout .rail__label {
        display: block;
    }
}


/* ==========================================================================
   Top bar

   Two things and no more, plus the branch this machine files into. Anything belonging to one
   screen belongs in that screen PageHeader.
   ========================================================================== */

.topbar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
    padding: var(--space-2) var(--space-2);

    /*
     * BARE, not a panel. It was glass with a rule under it; the reference sits its top bar
     * directly on the backdrop with nothing behind it, and that is what makes the head of the
     * screen read as open rather than as a second band stacked on the first.
     *
     * It also stops the bar competing with the rail beside it: two glass panels meeting at a
     * corner is one too many, and the rail is the one that has to be found without being looked
     * for. The controls in here carry their own surfaces.
     */

    /*
     * ABOVE THE PAGE'S OWN FURNITURE, which is what the user menu opening UNDER A TABLE HEADER was.
     * This bar is a stacking context of its own, so the menu's z-index of 210 only ever ranked it
     * inside the bar; against the page the whole bar competed at its own z-index. At 1 it tied with
     * every sticky table header (also 1) - and the page comes later in the document, so on a tie the
     * header paints over the menu hanging down out of the bar. Above the page's sticky headers and
     * floating panels, still below the rail's flyouts, lookup lists and dialogs.
     */
    z-index: 50;
}

/*
 * WHICH SCREEN THIS IS. It replaces the branch name and the signed-in line, both of which moved to
 * the rail - they are facts about the session and were sitting in the one strip that changes as
 * you move about.
 *
 * It takes the room they occupied (flex: 1), so the search and sign-out controls keep the far end
 * and the title has the whole middle for a long one - "Editing BR001-202608-0042" is a real title
 * on this screen.
 */
.topbar__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* It is focused after navigating, by FocusOnNavigate, and a focus ring on a heading nobody
   clicked reads as a fault. The ring belongs on things you operate. */
.topbar__title:focus { outline: none; }

/* ==========================================================================
   The user menu - the signed-in person, at the end of the top bar.

   Panel is absolutely placed straight under its trigger with no gap, so the pointer never crosses
   dead space on its way down and the hover that opened it is not lost. Closed it is not rendered
   at all (see UserMenu), which is what keeps it out of the page's scrollable width.
   ========================================================================== */
.usermenu { position: relative; flex-shrink: 0; z-index: 210; }

/* Under the menu, over the page: a press anywhere else is what closes it where there is no hover. */
.usermenu__scrim { position: fixed; inset: 0; z-index: 205; }

.usermenu__trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: var(--control-height);
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-lg);
    background: none;
    color: var(--pos-text);
    font: inherit;
    cursor: pointer;
}

.usermenu__trigger:hover,
.usermenu--open .usermenu__trigger { background: var(--pos-surface-hover); }

.usermenu__avatar {
    display: grid;
    place-items: center;
    width: var(--space-6);
    height: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--pos-primary);
    color: var(--pos-on-brand);
}

.usermenu__name { max-width: var(--menu-name-width); font-size: var(--text-sm); font-weight: 600; }

.usermenu__panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: var(--menu-width);
    display: grid;
    gap: var(--space-1);
    padding: var(--space-2);
    border: 1px solid var(--pos-glass-border);
    border-radius: var(--radius-surface);
    background: var(--pos-surface);
    box-shadow: var(--elev-3);
}

.usermenu__who {
    display: grid;
    gap: 1px;
    padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--pos-border);
}

.usermenu__who-name { font-size: var(--text-base); font-weight: 650; }
.usermenu__who-line { font-size: var(--text-xs); color: var(--pos-text-subtle); }

.usermenu__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--pos-text);
    font: inherit;
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
}

.usermenu__item:hover,
.usermenu__item:focus-visible { background: var(--pos-surface-hover); outline: none; }

/* Sign out last, with a rule above it: the one item that ends the session. */
.usermenu__item--end { margin-top: var(--space-1); border-top: 1px solid var(--pos-border); border-radius: 0 0 var(--radius) var(--radius); }

/* ==========================================================================
   The gate: the two screens in front of a session

   The server address and sign-in. Neither is a route - both are states the shell is in before
   there is a session to route with - so neither has the rail, the top bar or a breadcrumb.

   It is the front door and it is allowed to look like one. Everywhere else in this application is
   a tool somebody works in for eight hours and is quiet on purpose; this is looked at for the ten
   seconds it takes to sign in and is the whole of the first impression the software makes. So the
   mark's own navy, two glows, and one card of real glass standing on it.

   What it may not do is re-cut the controls. Everything inside the card is the ordinary field,
   button and banner - a front door with bespoke inputs is a front door that goes wrong the day the
   inputs change.
   ========================================================================== */

.gate {
    position: relative;
    display: grid;
    /* SAFE centring: centred while it fits and scrolling from the top once it does not. The body
       never scrolls (an application frame), so a card taller than a phone held sideways used to be
       clipped at both ends with no way to reach the button. dvh is the height WITHOUT the mobile
       browser's own bars. */
    align-content: safe center;
    justify-items: center;
    /* ONE column that is allowed to be narrower than its content. An auto track grows to the
       panel's 460px and a phone's 360px window then scrolls sideways, because the panel's
       max-width: 100% is a percentage of a track that is itself sized by the panel. */
    grid-template-columns: minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    padding: var(--space-6) var(--space-5);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--grad-gate);
}

@media (max-width: 560px) {
    .gate { padding: var(--space-4) var(--space-3); }
    .gate__panel { gap: var(--space-4); }
    .gate__card { padding: var(--space-4); gap: var(--space-4); }
    .gate__actions { grid-template-columns: minmax(0, 1fr); }
}

/*
 * The two glows that used to be here are gone with the navy. They were pools of teal and focus
 * blue laid over a dark ground to keep it from being a flat slab; the light ground carries three
 * blooms of its own and does that job already, so a second set on top of them would be four pools
 * fighting each other behind one card.
 */

/* Above the glows. Everything on the gate is one centred column. */
.gate__panel {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: var(--space-5);
    width: min(var(--dialog-compact), 100%);
    min-width: 0;
}

/* ---- The mark ---- */

.gate__mark { display: flex; align-items: center; gap: var(--space-3); }

/*
 * The monogram. Teal, because this is the one thing on either screen that is a mark rather than a
 * control, and the accent's whole job in this palette is to be what the eye lands on first. The
 * letter is taken off ProductInfo.Company in the markup; nothing here knows the name.
 */
/*
 * The gate's mark. This was a gradient tile with a letter centred in it, standing in for a logo
 * the WebView could not reach; it is the logo now.
 *
 * ON A PLATE, and that is a fact about the mark rather than a decoration - see .brand-mark--plate.
 * It keeps the tile's own elevation, because the mark sits on the gate's dark ground with nothing
 * else near it and a flat white square reads as a hole rather than as a card.
 */
.gate__logo {
    box-sizing: border-box;
    width: var(--gate-mark-size);
    height: var(--gate-mark-size);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: var(--pos-mark-plate);
    box-shadow: var(--elev-3);
}

.gate__names { display: grid; gap: 2px; }

.gate__wordmark {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--pos-text);
}

.gate__version { font-size: var(--text-xs); color: var(--pos-text-subtle); }

/* ---- The card ---- */

/*
 * The one piece of real glass in the application, and cut rather than frosted. It floats over a
 * gradient with nothing on it, so it can afford to be seen through in a way a lookup list over a
 * table of figures cannot - and everything typed into it sits in a solid white input, which is
 * where readability actually has to hold.
 */
.gate__card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    border: 1px solid var(--pos-border);
    border-radius: var(--radius-surface);
    /* The same glass every other surface in the application wears. It had a treatment of its own
       - 72% white over a doubled blur with the backdrop's brightness lifted before sampling -
       and every part of that existed to make white read as glass over NEAR-BLACK NAVY. Over the
       light ground it would simply blow out. */
    background: var(--grad-glass);

    /*
     * The floating elevation, and then the four edges of the pane drawn inside it.
     *
     * The lit top edge is what always sold this as glass; the rest is what makes it read as a
     * thickness rather than a translucent rectangle. Light arrives from the top left, so the top
     * and left edges catch it and the bottom and right fall into shade - the same direction every
     * gradient and every elevation in this palette is lit from. All of it costs four shadows on
     * one element, which is cheaper than a second surface stacked behind the card and cannot
     * drift out of alignment with it.
     */
    box-shadow:
        var(--elev-4),
        var(--glass-edge);
    animation: gate-in var(--motion-base) var(--ease-out);
}

/* Rises the last few pixels rather than appearing, exactly as a dialog does. */
@keyframes gate-in {
    from { opacity: 0; transform: translateY(10px) scale(0.99); }
    to { opacity: 1; transform: none; }
}

.gate__head { display: grid; gap: var(--space-1); }
.gate__title { font-size: var(--text-xl); font-weight: 700; }
.gate__lede { font-size: var(--text-sm); color: var(--pos-text-muted); }

.gate__form { display: grid; gap: var(--space-4); }

/*
 * Taller boxes than a screen inside the app uses. This is the one form somebody fills in without
 * having sat down first - usually standing at a machine they have just switched on.
 */
.gate__form .field__input { height: var(--control-height-lg); }

/* Two equal actions: Test and Save are both ways forward from the server screen. */
.gate__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* ---- Under the card ---- */

/*
 * A link button must not stretch. The form is a grid, so a child fills the column by default -
 * which drew "Change branch server" as a full-width button under the primary one, reading as a
 * second equal action rather than as the quiet way out it is.
 */
.gate__server { display: grid; justify-items: center; gap: var(--space-1); }

/*
 * Which server this till is on, under the way to change it. It is the first thing worth knowing
 * when sign-in will not go through, and this is the screen where somebody is already wondering.
 */
.gate__server-address {
    font-size: var(--text-xs);
    color: var(--pos-text-muted);
    text-align: center;
    overflow-wrap: anywhere;
}

/*
 * The developer's credit: on customer-facing documents and here, and the quietest thing on the
 * screen in both. It is a constant rather than a setting, so a client cannot blank it out.
 *
 * Off the rail's muted text rather than the page's, because it now stands on navy - the page
 * token would be dark ink on a dark ground.
 */
.gate__credit {
    font-size: var(--text-xs);
    color: var(--pos-text-subtle);
    text-align: center;
}
