@charset "UTF-8";
/* The framework's site's styles (F124): the framework's rules and the two themes, and nothing of the site's own
   (FX162, Louis: "remove all custom css from .site we should just use the theme", "I need all custom css out
   immediately"). A name under web/ is the framework's Sass and one under theme- a theme's, each found through
   sasscompiler.json, so nothing is copied. The build makes wwwroot/css/app.css from this. */
/* The framework's colours: what a site with none of its own looks like. Black and white with metallic greys, set in Geist,
   the static site's Console theme. The only colours in it are a muted red for errors, an amber for warnings, the
   eval screens' green and blue (F128.1), which a tile may also wear as an accent with the red and the amber, and a
   purple (F127.1), the fifth accent, so each of a showroom's demos has its own. A site
   lists this first and its own colours after, so the same name set twice gives the site's. The names are Bootstrap's, and
   a --web- name where it has none; a site that sets some of them keeps these for the rest. */
:root {
  --bs-primary: #ffffff;
  --bs-primary-rgb: 255, 255, 255;
  --bs-danger: #d9675f;
  --bs-danger-rgb: 217, 103, 95;
  --bs-warning: #d4a72c;
  --bs-warning-rgb: 212, 167, 44;
  --bs-info: #7fa8e8;
  --bs-info-rgb: 127, 168, 232;
  --web-ok: #6cbf94;
  --web-ok-rgb: 108, 191, 148;
  --web-purple: #a98be0;
  --web-purple-rgb: 169, 139, 224;
  --bs-body-bg: #070708;
  --bs-body-bg-rgb: 7, 7, 8;
  --bs-secondary-bg: #0d0e10;
  --bs-secondary-bg-rgb: 13, 14, 16;
  --bs-tertiary-bg: #15171a;
  --bs-tertiary-bg-rgb: 21, 23, 26;
  --bs-success-text-emphasis: #c9ccd1;
  --web-success-text-rgb: 201, 204, 209;
  --web-menu-bg: #15171a;
  --web-menu-bg-rgb: 21, 23, 26;
  --web-overlay-rgb: 255, 255, 255;
  --web-shadow-rgb: 0, 0, 0;
  --web-failed-rgb: 217, 103, 95;
  --web-backdrop-rgb: 0, 0, 0;
  --web-hover-rgb: 127, 127, 127;
  --web-primary-deep: #c9ccd1;
  --bs-primary-bg-subtle: #1b1d21; /* a tint of what matters */
  --bs-primary-text-emphasis: #e6e8eb; /* what matters, as text */
  --bs-success: #c9ccd1; /* your messages */
  --web-success-deep: #9aa0a8;
  --bs-success-bg-subtle: #15171a;
  --web-sidebar-foot: #0d0e10; /* the sidebar's footer */
  --web-sidebar-foot-deep: #070708;
  --bs-link-color: #e6e8eb;
  /* The smaller steps the rules use. */
  --web-on-primary: #070708; /* text on an action or on your message */
  --web-bright: #ffffff; /* the brightest text on the dark */
  --web-soft-text: #c9ccd1;
  --web-settings-text: #c9ccd1;
  --web-error-text: #e8a39c;
  --web-photo-text: #333333; /* a caption on a photo's white mat */
  --web-border-hover: #3a3e45;
  --web-scrollbar: #2c2f35;
  --web-dialog-bg: #0d0e10;
  --web-code-number: #c9ccd1;
  --web-code-comment: #7c828a;
  --web-live-dot: #e6e8eb;
  --bs-emphasis-color: #ffffff; /* headings, what's lit */
  --bs-body-color: #e6e8eb;
  --bs-secondary-color: #9aa0a8;
  --bs-tertiary-color: #7c828a;
  --bs-border-color: #2c2f35;
  --web-code-bg: #15171a;
  --web-cta: linear-gradient(180deg, #ffffff 0%, #b9bec6 100%);
  --bs-box-shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --bs-box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .7);
  --web-glow: 0 0 0 4px rgba(var(--bs-primary-rgb), .12), 0 10px 30px -10px rgba(var(--bs-primary-rgb), .25);
  --bs-font-sans-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-monospace: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --web-ease: cubic-bezier(.2, .8, .2, 1);
  --web-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

/* The framework's surfaces (F151.1, ADR 0124): the names a theme sets beside the colours, since a colour can't say
   "glass". A theme gives each one a value for its dark style and its light one; a component reads the names and
   never names a theme. Each value here is today's look, so with no theme named nothing changes. A site lists this
   straight after the colours, and its own values after both, so the same name set twice gives the site's.

   A pane is a card or a panel: its fill, its edge (a border), its rim (an image drawn as its edge line), the light
   inside its corners, the shadow it throws, how it blurs what is behind it, and its corner. Today it is the panel
   colour in the shared frame's hairline and corner, with none of the rest. A pane that answers the pointer has a
   hover of its own (F151.4): how far it lifts, an edge and a shadow, both written as shadows, the card deck's today.
   A theme may bend what is behind a pane as real glass does (F151.6), in the pane under the pointer and the one
   picked or shown: how thick the glass is at its edge and how much higher its middle stands, in pixels. A wall of
   0 is no lens, as today. A panel's glass may be white or grey, as much of it as the panel says: the theme gives the
   two colours, today the page's colour and its third grey. The frost is how much the glass blurs what is behind its flat middle, in pixels, its
   edge left clear, 0 for none; the water is how far a pane switched to water ripples it instead, in pixels. A pane
   under the pointer may lean towards it: the tilt, in degrees across its width and
   its height, 0 for a pane that stays still, as today.
   A float is a pane over the page, such as a menu's list: the shadow it throws, the menu's today. A frosted float
   is one that stands over the page's words, such as the agent's answer: its body and its blur, a pane's today.
   A veil is a panel the stage shows through, such as the showroom's rail: its fill, its edge and its blur, the
   rail's today.
   An inset is a piece set into the page, such as the chat's card and a field (F151.4): its fill and its edge, the
   page's colour and the hairline today.
   A bar is the header and the footer: its fill, its edge and its blur, as the site's header has them today.
   A dock is the agent's bar at the page's foot (F151.6): its fill, its edge and its blur, a bar's today. What is
   sunk into it is where the words go: its fill, the shadow that sinks it and the one it has while it is typed in,
   an inset with a bright line when typed in today. A chip floats over the page: its fill, its edge and its blur, a
   pane's today.
   A press is the main button, its words, the second button's outline, and the shadow a button stands on, none
   today.
   The page is what lies behind everything (F151.6): lines drawn on it that stay still while it scrolls, and lights
   on a layer of their own behind the page's content. Today there are no lines, and the lights are the brand's
   colour from the top right, its second colour from the bottom left and a breath of the first in the middle.
   The mark is the agent's orb: its disc, its gloss and its letter, as the orb draws them today.
   You and the agent are each one's mark: the brightest words for you, the framework's purple for the agent.
   The violet is the brand's purple in five steps, light to dark; until a theme sets them, all five are the
   framework's one purple.
   The art is a drawing a theme may lay on a piece (F151.4), one name for each part and state, named for the
   drawing: a pane, the main button and the second, a field, a switch, the focus ring, a slider, a well, a tag, the
   live label, a switch's group, the header, the cut stone on a picked piece, and the mark three ways: as it
   stands alone, as the ball in the agent's bar, and as a letter of the site's name. A theme sets each to the address of
   a drawing or to none; the framework draws no glass, so each is none here. */
:root {
  --web-pane-fill: var(--bs-secondary-bg);
  --web-pane-edge: 1px solid var(--bs-border-color);
  --web-pane-rim: none;
  --web-pane-light: none;
  --web-pane-shadow: none;
  --web-pane-blur: none;
  --web-pane-radius: 12px;
  --web-pane-hover-lift: -3px;
  --web-pane-hover-edge: 0 0 0 1px rgba(var(--bs-primary-rgb), .45);
  --web-pane-hover-shadow: 0 24px 50px -24px rgba(var(--bs-primary-rgb), .45);
  --web-lens-wall: 0;
  --web-lens-rise: 0;
  --web-lens-frost: 0;
  --web-lens-water: 0;
  --web-glass-white: var(--bs-body-bg);
  --web-glass-grey: var(--bs-tertiary-bg);
  --web-tilt: 0;
  --web-float-shadow: 0 18px 40px -16px rgba(var(--web-shadow-rgb), .8);
  --web-frost-fill: var(--web-pane-fill);
  --web-frost-blur: var(--web-pane-blur);
  --web-veil-fill: rgba(var(--bs-body-bg-rgb), .55);
  --web-veil-edge: 1px solid rgba(var(--web-overlay-rgb), .1);
  --web-veil-blur: blur(10px);
  --web-inset-fill: var(--bs-body-bg);
  --web-inset-edge: 1px solid var(--bs-border-color);
  --web-bar-fill: rgba(var(--bs-body-bg-rgb), .86);
  --web-bar-edge: 1px solid var(--bs-border-color);
  --web-bar-blur: blur(12px);
  --web-press-fill: var(--web-cta);
  --web-press-ink: var(--web-on-primary);
  --web-press-edge: 1px solid var(--web-border-hover);
  --web-press-shadow: none;
  --web-dock-fill: var(--web-bar-fill);
  --web-dock-edge: var(--web-bar-edge);
  --web-dock-blur: var(--web-bar-blur);
  --web-sunk-fill: var(--web-inset-fill);
  --web-sunk-shadow: none;
  --web-sunk-lit: inset 0 0 0 1.5px rgba(var(--web-overlay-rgb), .85), 0 0 26px -6px rgba(var(--web-overlay-rgb), .6);
  --web-chip-fill: var(--web-pane-fill);
  --web-chip-edge: var(--web-pane-edge);
  --web-chip-blur: var(--web-pane-blur);
  --web-page-lines: none;
  --web-page-lights:
      radial-gradient(900px 600px at 78% -8%, rgba(var(--bs-primary-rgb), .13), transparent 62%),
      radial-gradient(800px 600px at 12% 108%, rgba(var(--web-success-text-rgb), .09), transparent 60%),
      radial-gradient(600px 500px at 50% 45%, rgba(var(--bs-primary-rgb), .04), transparent 70%);
  --web-wordmark-o: .76em;
  --web-press-hover-fill: var(--web-press-fill);
  --web-quiet-hover-fill: transparent;
  --web-quiet-hover-ink: var(--bs-body-color);
  --web-chip-hover-edge: var(--web-chip-edge);
  --web-icon-fill: var(--bs-secondary-bg);
  --web-icon-shadow: 0 6px 14px -8px rgba(var(--web-shadow-rgb), .35);
  --web-mark-fill:
      radial-gradient(circle at 32% 26%, var(--web-bright), var(--bs-secondary-color) 55%, var(--bs-tertiary-color));
  --web-mark-gloss: inset 0 -3px 8px rgba(var(--web-shadow-rgb), .25), 0 0 18px -4px rgba(var(--web-overlay-rgb), .6);
  --web-mark-ink: var(--web-on-primary);
  --web-you: var(--web-bright);
  --web-agent: var(--web-purple);
  --web-violet-0: var(--web-purple);
  --web-violet-1: var(--web-purple);
  --web-violet-2: var(--web-purple);
  --web-violet-3: var(--web-purple);
  --web-violet-4: var(--web-purple);
  --web-art-field-focus: none;
  --web-art-field-rest: none;
  --web-art-focus-pane: none;
  --web-art-focus-pill: none;
  --web-art-gem: none;
  --web-art-group: none;
  --web-art-knob: none;
  --web-art-mark: none;
  --web-art-mark-ball: none;
  --web-art-mark-o: none;
  --web-art-pane-hover: none;
  --web-art-pane-picked: none;
  --web-art-pane-rest: none;
  --web-art-pane-showing: none;
  --web-art-press-disabled: none;
  --web-art-press-hover: none;
  --web-art-press-pressed: none;
  --web-art-press-rest: none;
  --web-art-quiet-press-disabled: none;
  --web-art-quiet-press-hover: none;
  --web-art-quiet-press-picked: none;
  --web-art-quiet-press-pressed: none;
  --web-art-quiet-press-rest: none;
  --web-art-slider-fill: none;
  --web-art-slider-track: none;
  --web-art-status: none;
  --web-art-tag-agent: none;
  --web-art-tag-you: none;
  --web-art-tag: none;
  --web-art-toggle-off-disabled: none;
  --web-art-toggle-off: none;
  --web-art-toggle-on-disabled: none;
  --web-art-toggle-on: none;
  --web-art-well: none;
}

/* The surface tool (F151.4): one mixin for each kind of surface the mockups have, each drawing its piece from the
   names a theme sets and from nothing else, so a theme reaches every piece and a component never names a theme
   (ADR 0124). A pane is a card or a panel. A bar is the header, the footer or the agent's bar. A press is the main
   button, a quiet press the second one, and a chip a small thing to press that is not a button in a form. A tag is a
   label that sits on a piece, and a well is what is set into a pane.

   A surface is a drawing laid over its fill (Louis's pick A of three: a drawing is a value). The drawing is the
   theme's --web-art-{part}-{state}, stretched to the piece, since a drawing has no size of its own; a theme with no
   drawings sets them to none and the fill alone shows. A state is the same piece with its state's drawing: hover,
   pressed, off and picked. A pressed piece is also made a little smaller here, in every theme. Written where it's
   included: a tool writes no CSS of its own.

   The kinds are in files by what they are, in surface/: panes, presses, marks, lines and washes, and the
   conversation. This file
   hands them on under one name, so a sheet says surface.pane() whichever file holds it. */
/* How the surface tool lays a theme's drawing on a piece (F151.4): the parts every kind of surface shares. The
   tool's own files use these; a sheet includes a kind, never these. */
/* The drawing of one part and state, stretched over the piece, and what shows under it. */
/* How much smaller a piece is while it is pressed. */
/* Only a state's drawing, laid on a piece over whatever fill it has, so the piece keeps its own. */
/* The surface tool's panes (F151.4): what holds other things. A card or a panel, what is set into the page, a
   field, a bar, and what floats over the page, each with its states. */
/* A card or a panel: its fill and its drawing, its edge and corner, the shadow it throws and the blur behind it. A
   piece that has its own corner or look today passes it, and the theme's names stand in for the rest. */
/* A piece set into the page, such as the chat's card (Louis's pick C of three): a pane with the inset's fill and
   edge, see-through in glass as a pane is. */
/* A field of a form: set into the page as an inset is, with its own drawing at rest and in focus. */
/* Where the words go in the agent's bar (F151.6): set into the bar with the theme's fill and the shadow that
   sinks it, and no drawing of its own, since the bar it is in is the drawn piece. */
/* That place while it is typed in, said by what holds it: the shadow the theme gives it then. */
/* A pane that is typed in, such as the chat's box: its line in the brand's colour, a soft ring of it, the shadow
   of what floats, and the theme's focus drawing. */
/* A pane that answers the pointer, such as a card you open or a tile you pick: how far it lifts, its edge and its
   shadow while the pointer is on it are the theme's (Louis's pick A of three, with his change: no tool draws a ring).
   A theme with no hover edge or shadow sets a shadow that draws nothing, so the two always list. A piece that must
   stay where it is passes a lift of 0. */
/* A pane that is open, such as the card whose story shows: its edge in the brand's colour, and the picked drawing,
   and it wears the lens as a picked piece does. */
/* A pane that floats over the page, such as a menu's list or the way back up: a pane with the shadow a theme gives
   what floats. */
/* A pane that floats over the page's words, such as the agent's answer: a float with the theme's frosted body and
   blur, so what lies under it does not read through. */
/* A panel the stage shows through, such as the showroom's rail, its cues and a dock: a kind of its own, with its own
   fill, edge and blur, since on a site with no theme it is see-through where a pane is solid. A piece whose corner
   is its shape, a column, a pill or a circle, passes it. */
/* A flat part inside a piece, such as a window's title or one of its panes: one of the theme's colours, no edge and
   no drawing, since the piece it is in is the surface. */
/* The small plate an icon stands on in a card, such as a tile's (FX186): the theme's fill for it and the shadow it
   throws, white glass with a soft shadow in glass, the page's own colour with none in flat. */
/* A quiet box inside a piece, such as a hint under a chat: a faint wash with a faint line inside it. */
/* A slab in a colour the site names for it, such as the closing strip: solid, with no drawing, since its words are
   written for that colour. */
/* What is set into a pane, such as a small film or a tile. */
/* A piece the visitor picked: its picked drawing laid on it, written where the component says it is picked. It wears
   the lens while it stays picked, lit white from inside; a piece the agent is showing wears it lit violet. */
/* A piece the agent is showing: its showing drawing laid on it, written where the component says the agent lit it. */
/* The header or the footer: its fill, a hairline towards the page, and its blur, with no drawing in any theme,
   since a bar is the one thing that stays put and the glass belongs to what scrolls under it. A bar at the foot of
   the page passes top, so its hairline is on the page's side, and a bar that holds something fixed to the screen
   passes no blur, since a blur makes the bar the box such a thing is placed in. */
/* The agent's bar, which floats at the page's foot (F151.6): the theme's body, line and blur for it under a
   field's drawing, the shadow of what floats, and the focus drawing while something in it is typed in. */
/* Only a piece's colour, where the fill it also has as an image must stay. */
/* A dialog over the whole page: a deep shadow under it and a faint ring of the brand's colour round it. */
/* The surface tool's presses (F151.4): what a visitor presses, and the labels that sit on a piece. */
/* The main button: what the brand gives you to press, with its words, hover, pressed and off. */
/* A press that waits, as the design's send does: with nothing to press yet it stands drawn at rest, at full strength,
   never greyed, and only the pointer says it waits. */
/* The second button: an outline in the words' colour, with its hover, pressed and off. */
/* A chip: drawn as the second button, and picked when it says it is pressed. */
/* A chip that floats over the page, such as a question over the agent's bar (F151.6): the second button's drawing
   over the body a theme gives a chip, since it floats over anything and must stay readable, with the chip's own
   line and blur. */
/* A word in a rail of choices, such as a site's menu (FX162, Louis's pick C): quiet at rest, and under the pointer the
   quiet button's hover glass, over a light tint that is all a theme with no drawing shows. */
/* The pill that holds a switch's choices: a fill with a hairline drawn inside it, under its drawing. */
/* A label that sits on a piece. */
/* The label on a piece the visitor picked: in their colour, a faint wash of it inside a line of it. */
/* A press that must be seen, such as the button that opens the guide: a ring and a glow in the brand's colour, and
   the same swollen, for the top of its pulse. */
/* A light that crosses a press from side to side: a slanted band, see-through at both ends. */
/* A choice the visitor writes themselves: a dashed line round it where the others have a solid one. */
/* The surface tool's marks (F151.4): the agent's mark with its rings, and the small marks a piece wears, a
   marker, a badge, a line of progress or of the brand. */
/* A big heading's words (the design page's .chrome) in their strongest colour, solid, as plain text paints them, so
   their edges are as crisp as any text's (FX196). */
/* The agent's mark: the theme's drawing of it over its disc, with its gloss and the letter on it. A theme whose
   drawing holds the letter gives the letter no ink. */
/* The mark as the ball in the agent's bar, on a piece that is already the mark. */
/* The mark as a letter of the site's name, on a piece that is already the mark. */
/* A ring round the mark, in a colour: the quiet one it breathes with, the visitor's while it listens. */
/* The arc that goes round the mark while the agent thinks: a slice of a ring, cut out of a disc. */
/* The mark at the top of its pulse while the agent speaks: its gloss with a light round it. */
/* The mark made small, such as the dot beside the agent's name on its answer: its drawing over its disc, with no
   gloss. */
/* A small mark beside a label, such as the dot before a section's name, and the same mark lit for the one in view. */
/* A line that grows as something moves on, such as the one along the top as the page scrolls. */
/* A small disc that stands for someone or something, such as a profile's or a source's: the brand's colour run
   into its second one. */
/* A thin line of a piece's own colour along its top, as an accented tile has. */
/* A line in the brand's two colours, such as the one down the side of a specialist's work. */
/* The handle you drag to size a panel, while the pointer is on it: the brand's colour run deeper, and its glow. */
/* The spotlight the guide puts on a place: the rest of the page dimmed by a shadow as large as the screen, and no
   frame of its own (FX163, Louis: "the svg handles the state, now we have two"): the piece shown wears the theme's
   showing drawing itself. */
/* A place the agent is showing while its words stand beside it (FX162, FX163, the design page's "the agent, showing
   it"): only the page dimmed round it, as the design's. No ring and no drawing of its own (Louis: "take the purple
   ring out"): a piece wears the showing drawing on its own edge. */
/* The row you picked in a list, such as a file in a tree: a line of the brand's colour down its side, drawn inside
   the row so nothing moves. */
/* The surface tool's lines and washes (F151.4): the hairlines between parts, a piece's own line and ring, and
   the faint washes of a colour over a row or a small button. */
/* A hairline between two parts, on the side given: the edge a theme gives a bar. */
/* A hairline drawn as a block of its own, such as the line between two groups, as strong as given. */
/* A piece that is only its outline, such as a number in a ring: the second button's edge. */
/* The groove a line fills as something plays. */
/* A piece's own line: the hairline a theme draws between parts, so a small piece keeps a line in a theme whose
   panes have none, or a line in the colour, width and style given. */
/* The line of a piece taking a colour, as it does under the pointer or while it is switched on. */
/* A thick mark along one side of a piece, inside its edge, so with the edge in the same colour it reads as one bar:
   the item in view in a list of them, marked plainer than a hairline (F164.1, Louis: "a bigger marker for
   selected"). */
/* A ring round a piece, in a colour: round a disc so it stands off what is under it, or round a field in use. */
/* A row or a tile under the pointer, such as a link in a menu: a wash of the brand's colour, or of the colour and
   strength given. */
/* A wash of a piece's own ink over whatever it sits on, such as a small button in a window's head, which may be
   plain or in a business's colour. */
/* The shadow a piece throws in a colour, the brand's unless it names another: how far down, how soft, how far
   pulled in, and how strong. */
/* A piece raised a little off the page, and more under the pointer or when it is open. */
/* The brand's own glow round a piece that is typed in. */
/* The ring round whatever the keyboard is on, in the brand's colour unless another is given, clear of the piece. */
/* The page's colour fading out upward, behind what sits at the foot of a scrolling list. */
/* A fill written as an image, for a piece whose colour Bootstrap forces clear. */
/* A band of light across a press, for the sheet to slide from one side to the other. */
/* What is behind a piece, blurred. */
/* The depth of a piece that lies on the page: a shadow under it, how far down, how soft, how far pulled in and how
   strong; a line of light inside its top where it has one; and a closer shadow, as how far down, how soft and
   how strong. */
/* The colour of an outline a piece already has, such as the dashes round words that can be changed. */
/* The surface tool's conversation (F151.4): what a chat draws that nothing else does. What you said, the helper
   an agent hands work to, the line that says it is working, and the light and the links of an answer. */
/* What you said: a bubble in the second colour of the brand, run into its deeper shade, with a shadow under it. */
/* The same bubble's depth: a line of light inside its top and a darker shadow under it. */
/* The row you type in, while you type: its line toward the brand's colour, a soft ring of it and a shadow. */
/* The edge of a card whose helper is at work: the brand's colour going round it through the colours given, at
   the angle the card turns. */
/* A helper's square mark: the sidebar's dark foot run into its deeper shade, with a shadow under it. */
/* The words that say the agent is working: a band of light that the sheet moves along them. */
/* A soft light in the brand's colour where the pointer is, at the --mx and --my the page sets. */
/* A link's line in the brand's colour, no width at rest, for the sheet to grow under the pointer. */
/* A small helper's mark: the second colour of the brand run into its deeper shade. */
/* The page behind everything: the theme's lines over the page's own colour. Its lights are a layer of their own. */
/* The lights behind the page's content (F151.6): the theme's, on a layer of their own that fills the screen and
   holds still (Louis, 2026-11-16: the drifting lights held still), so nothing behind the glass is painted again
   while the page is open. What includes it says its content. */
/* The page behind as one piece, where something must stand in for it, such as the fade under the agent's bar: the
   lights over the page's own lines and colour, held to the screen as the page's are. */
/* The surface tool's controls (FX162): the design page's switch, slider, field, well, tags, status and focus ring
   ("Every control, cut from the same glass"), its rules taken as they stand, each drawing the theme's own name for it.
   A theme with no drawings shows the plain fill under each. */
/* A switch: its drawing on or off, and off-and-unusable. */
/* A slider's groove, the part filled up to its value, and its knob. */
/* A field a visitor types in: its drawing at rest, and in focus while it holds the caret. */
/* The agent's label: white words on its own drawing. */
/* A small pill that says what is happening, its live dot before the words. */
/* A live dot in the brand's colour with a soft ring, the stage flag's (FX206); its ring breathes out to nothing. */
/* The focus ring: its own drawing laid 7 pixels outside the piece, so it goes with any state. The piece holds it as its
   ::after while the keyboard is on it. */
/* The surface tool's films and shots (FX162): the design page's small screens that play what the agent does, the pill
   that names the tool it called, the beam along their rail, and the photographs fanned out in a row. Each is the
   design's rule as it stands, its colours read from the theme's names: a screen is dark in every style, its marks
   the ink a main button carries, and the accent is the theme's own. */
/* A small screen that plays something: dark, with a fine edge of its own marks. */
/* A shape on a film: a soft tile of the screen's marks. */
/* A line being drawn on a film: the marks' colour running into the theme's. */
/* A picked tile on a film, lifted and ringed in the theme's colour. */
/* A choice on a film, and the one that lights as it is pressed. */
/* What the agent called, as a pill: its name in the code face after a lit dot. */
/* The rail cards stand under, with a beam of the theme's colour running along it. */
/* A photograph's window in the fan, come out: it casts its shadow at one angle, down and to the right from a light at
   the top left, in three layers, close and dark, then wider and fainter, and glows in no colour (FX167, Louis: "an
   angled shadow not a glow"). The blurs stay modest, since a shadow is drawn once and moves with its window. Its
   caption fades up from dark. The window's own glass is its frame's. */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font: 14.5px/1.7 var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(var(--bs-primary-rgb), 0.25);
  color: var(--bs-emphasis-color);
}

:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

/* A button on any site is a pill drawn by the theme (FX162, Louis: "make this theme buttons, not our own css"): the
   main one the theme's press, the second one its quiet press, so a site names a class and writes no button. It lifts
   a little under the pointer (FX82). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--web-ease), box-shadow 0.3s, background 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* A button's focus is the theme's focus ring, drawn outside it (FX162, the design's "Focus"). */
.btn {
  position: relative;
}
.btn:focus-visible {
  outline: 0;
}
.btn:focus-visible::after {
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
  background: var(--web-art-focus-pill) center/100% 100% no-repeat, transparent;
}

.btn-fill, .btn-solid {
  border: 0;
  color: var(--web-press-ink);
  box-shadow: var(--web-press-shadow);
  background: var(--web-art-press-rest) center/100% 100% no-repeat, var(--web-press-fill);
}
.btn-fill:hover:not(:disabled), .btn-solid:hover:not(:disabled) {
  background: var(--web-art-press-hover) center/100% 100% no-repeat, var(--web-press-hover-fill);
}
.btn-fill:active:not(:disabled), .btn-solid:active:not(:disabled) {
  transform: scale(0.97);
  background: var(--web-art-press-pressed) center/100% 100% no-repeat, var(--web-press-fill);
}
.btn-fill:disabled, .btn-solid:disabled {
  cursor: default;
  background: var(--web-art-press-disabled) center/100% 100% no-repeat, var(--web-press-fill);
}

.btn-line, .btn-whatsapp, .btn-linkedin {
  border: var(--web-press-edge);
  color: var(--bs-body-color);
  box-shadow: var(--web-press-shadow);
  background: var(--web-art-quiet-press-rest) center/100% 100% no-repeat, transparent;
}
.btn-line:hover:not(:disabled), .btn-whatsapp:hover:not(:disabled), .btn-linkedin:hover:not(:disabled) {
  color: var(--web-quiet-hover-ink);
  background: var(--web-art-quiet-press-hover) center/100% 100% no-repeat, var(--web-quiet-hover-fill);
}
.btn-line:active:not(:disabled), .btn-whatsapp:active:not(:disabled), .btn-linkedin:active:not(:disabled) {
  transform: scale(0.97);
  background: var(--web-art-quiet-press-pressed) center/100% 100% no-repeat, transparent;
}
.btn-line:disabled, .btn-whatsapp:disabled, .btn-linkedin:disabled {
  cursor: default;
  background: var(--web-art-quiet-press-disabled) center/100% 100% no-repeat, transparent;
}

.btn-solid, .btn-small {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* A panel on any site is the theme's pane (FX162, Louis: "that should be in the theme"): its fill, edge and drawing.
   Under the pointer it is glass's lens that answers, bending what is behind it, never a lift of its own. */
.panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: var(--web-pane-edge);
  border-radius: var(--web-pane-radius);
  box-shadow: var(--web-pane-shadow);
  -webkit-backdrop-filter: var(--web-pane-blur);
  backdrop-filter: var(--web-pane-blur);
  --web-lens-piece: 1;
  background: var(--web-art-pane-rest) center/100% 100% no-repeat, var(--web-pane-light), var(--web-glass-tint, var(--web-pane-fill));
}
.panel:hover {
  background: var(--web-art-pane-hover) center/100% 100% no-repeat, var(--web-glass-tint, var(--web-pane-fill));
}

/* A panel's glass colour (FX163, Louis: "we should be able to give glass colors, transparent white etc."): the theme's
   white or grey, as much of it as the panel says, the rest see-through. The pane fills itself with it. */
[data-glass=white] {
  --web-glass-tint: color-mix(in srgb, var(--web-glass-white) var(--glass-amount, 0%), transparent);
}

[data-glass=grey] {
  --web-glass-tint: color-mix(in srgb, var(--web-glass-grey) var(--glass-amount, 0%), transparent);
}

/* A panel switched to show its reflection shows it under it, fading out, as the design's window and photos do (FX163,
   Louis: "all glass panels must have the reflection option"). */
[data-reflect] {
  -webkit-box-reflect: below 12px linear-gradient(transparent 68%, rgba(var(--web-shadow-rgb), 0.28));
}

/* A panel that tilts leans towards the pointer under it, as the design's cards (Louis: "yes a lens with a tilt"):
   the frame's tilt module sets the two angles from where the pointer is, as far as the theme's tilt allows. */
[data-tilt]:hover {
  transform: perspective(1100px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg));
  transition: transform 0.18s ease-out, box-shadow 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  [data-tilt]:hover {
    transform: none;
  }
}
/* A band's head, as the design draws a section (FX162): a small mono topic in the theme's colour, a large heading
   whose first words run in that colour, a summary at a reading width, and a quiet note after the content. */
.site {
  font-size: 17px;
  line-height: 1.6;
}

/* Its one column fills the band, so what it holds runs the width of the design's sections, not of its widest words
   (FX163, Louis: "make them longer"). */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px var(--site-gutter, 48px) 40px;
}

.topic {
  font: 500 13.5px/1 var(--bs-font-monospace);
  text-transform: lowercase;
  color: var(--bs-primary);
}

.band :is(h1, h2) {
  max-width: 16ch;
  margin: 0;
  padding-bottom: 0.08em;
  font-size: clamp(38px, 4.8vw, 74px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.chrome {
  color: var(--bs-emphasis-color);
}

.summary {
  margin: 0;
  max-width: 580px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--bs-secondary-color);
}

/* A site's page moves (F110, from the site, FX162): visible at rest, each block rises once as it enters and a heading
   unmasks; the frame's module adds .in. The rise is on translate, so a card's own hover transform still works. */
/* Each entrance holds its start while it waits and nothing once it ends, so the glass's lens sees the page (FX163). */
.site .reveal.in {
  animation: site-rise 0.7s var(--web-ease) backwards;
}

.site .reveal.in[data-delay="1"] {
  animation-delay: 0.1s;
}

.site .reveal.in[data-delay="2"] {
  animation-delay: 0.2s;
}

.site .reveal.in[data-delay="3"] {
  animation-delay: 0.3s;
}

.site :is(h1, h2).reveal.in {
  animation: site-unmask 0.9s var(--web-ease) backwards;
}

@keyframes site-rise {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
/* The unmask ends a little outside the heading's box, so a g's or a y's tail under the tight line isn't cut off. */
@keyframes site-unmask {
  from {
    clip-path: inset(-0.2em -0.2em 100% -0.2em);
    translate: 0 22px;
  }
  to {
    clip-path: inset(-0.2em -0.2em -0.3em -0.2em);
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site .reveal.in, .site :is(h1, h2).reveal.in {
    animation: none;
  }
}
.band-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--bs-tertiary-color);
}

.band-note a {
  color: var(--bs-secondary-color);
}

a {
  color: var(--bs-link-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--web-scrollbar) transparent;
}

/* What a pane says to the frame's lens (F151.6): 1 for a piece it may bend under the pointer, 2 for one picked, 3
   for one the agent shows, 0 for anything else. Registered so it is never handed down: a pane's words and buttons
   are not panes of their own. */
@property --web-lens-piece {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}
/* The tag a piece wears while the guide is on the page (FX163, the design's states), laid by the widget's piece
   watcher with the site's three words: under the pointer it offers to ask, once picked it says so, and while the
   agent shows the piece it turns the agent's colour with a dot that blinks. The state picks the words. */
:where([data-piece]:has(> .piece-tag)) {
  position: relative;
}

/* Every piece a visitor can ask about takes the hand under the pointer (Louis: "my mouse pointer must be a hand on these
   panels also"). */
[data-piece] {
  cursor: pointer;
}

.piece-tag {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font: 500 11.5px var(--bs-font-monospace);
  white-space: nowrap;
  color: var(--bs-emphasis-color);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.25s, transform 0.25s var(--web-ease);
  border: 1px solid color-mix(in srgb, var(--web-you) 30%, transparent);
  border-radius: 999px;
  background: var(--web-art-tag-you) center/100% 100% no-repeat, color-mix(in srgb, var(--web-you) 6%, transparent);
  border-radius: 8px;
}

.piece-tag::before {
  content: attr(data-ask);
}

:is([data-piece]:hover, [data-selected], [data-lit]) > .piece-tag {
  opacity: 1;
  transform: none;
}

[data-selected] > .piece-tag::before {
  content: attr(data-picked);
}

[data-lit] > .piece-tag {
  border-radius: 999px;
  color: var(--web-on-primary);
  background: var(--web-art-tag-agent) center/100% 100% no-repeat, var(--bs-primary);
  border-radius: 8px;
}

/* The piece the agent shows wears the theme's showing drawing on its own edge, over the dimmed page. */
[data-piece][data-lit] {
  --web-lens-piece: 3;
  background-image: var(--web-art-pane-showing);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

[data-lit] > .piece-tag::before {
  content: attr(data-shown);
}

[data-lit] > .piece-tag::after {
  content: "";
  order: -1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: web-blink 1s ease-in-out infinite;
}

@keyframes web-blink {
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-lit] > .piece-tag::after {
    animation: none;
  }
}
/* A quieter line of text, anywhere: a hint, a count, a date. */
.muted {
  color: var(--bs-secondary-color);
}

/* A page of slides settles on a section every time it scrolls (F118, Louis: "all of the page must scroll the same,
   middled and centered"): the browser rolls the nearest section into place under the header, each section saying
   where it lands (SiteShell), so no scroll stops between two. Only on a site's page laid out as slides. */
html:has(.layout-slides) {
  scroll-snap-type: y mandatory;
}

/* The spotlight the guide puts on an area it took the visitor to (F117, F118): one element the widget's module lays
   over the area, which dims the whole page around it through a shadow the size of the screen and rings the area in
   the accent, with a soft light behind the ring. It comes in as the page settles, holds, and goes over four seconds;
   it catches no pointer, so the page stays usable under it, and it sits under the site's corner so the guide's own
   words are never dimmed. A reduced-motion setting gets the dim and the ring without the fade. */
.area-spotlight {
  position: absolute;
  z-index: 9;
  pointer-events: none;
  border-radius: var(--bs-border-radius-xl);
  border-radius: var(--web-pane-radius);
  box-shadow: 0 0 0 200vmax rgba(var(--web-backdrop-rgb), 0.62);
  animation: area-spotlight 4s var(--web-ease) both;
}

@keyframes area-spotlight {
  0% {
    opacity: 0;
    scale: 1.04;
  }
  15% {
    opacity: 1;
    scale: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* A ring that would grow past the screen's edge (a demo's stage, as wide as the screen) comes in without growing. */
.area-spotlight.is-wide {
  animation-name: area-spotlight-wide;
}

@keyframes area-spotlight-wide {
  0% {
    opacity: 0;
  }
  15%, 70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .area-spotlight {
    animation: none;
  }
}
/* The ring a place keeps while the guide's caption stands beside it (F134.4): the spotlight's ring left on, quieter
   and with no dim, so the page stays as it is and the caption and its place read as one. The caption's module lays
   it over the place and takes it away with the caption. */
.caption-ring {
  position: absolute;
  z-index: 9;
  pointer-events: none;
  border-radius: var(--bs-border-radius-xl);
  border-radius: var(--web-pane-radius);
  box-shadow: 0 0 0 200vmax rgba(var(--web-backdrop-rgb), 0.62);
  opacity: 0;
  transition: opacity 0.4s;
}

.caption-ring.is-on {
  opacity: 1;
}

/* Glass, in the dark (F151.2, ADR 0124): the design page's dark values. Black is the base, white carries the words,
   and the purple is Ultraviolet. A pane is its drawing alone, which holds its rim and its lights: nothing is
   painted under it, nothing blurs the page seen through it, and it throws a shadow. The page behind is a picture
   of silk ribbons of light. A bar is a plain band with a hairline, and a press is its drawing with white
   words. The red, amber, blue and green of errors, warnings and the eval screens, the caption on a photo's
   mat and the hover grey are the framework's own, since the mockup does not show them. The faces and the easing are
   the mockup's, which are the framework's. A theme sets every name the framework sets; ThemeSheet holds it. */
/* The drawings a theme may lay on a piece (F151.4, Louis's pick A of three: a drawing is a value), one for each part
   and state, as the framework names them --web-art-{drawing}. Written once here, and each theme's sheet sets a value
   for every one: glass a drawing this project serves, flat none. */
/* Where a page finds this project's files, written from the site's root. A drawing is a value, and a browser reads
   its address from the sheet of the rule that uses the value: a component's rules are in its library's own sheet,
   under _content, so an address written from the site's css folder led nowhere from there. */
/* Every drawing named, each to the file of this theme and style. A browser keeps a drawing for an hour by its
   address, so the address carries the drawings' version, raised whenever one changes, and every browser fetches the
   new one (FX189). */
/* Every drawing named none: a theme that lays no drawing on any piece. */
/* Only the marks drawn, the mark, the bar's ball and the name's o, each to the file of this theme and style, and
   every other drawing none: a theme that lays nothing on its pieces but draws its own mark (FX181, flat). The
   drawings are kept by a browser for an hour by their address, so the address carries their version: a drawing that
   changes takes the next one, and every browser fetches it again. */
:root[data-theme=glass][data-style=dark] {
  --bs-primary: #6b4dff;
  --bs-primary-rgb: 107, 77, 255;
  --bs-danger: #d9675f;
  --bs-danger-rgb: 217, 103, 95;
  --bs-warning: #d4a72c;
  --bs-warning-rgb: 212, 167, 44;
  --bs-info: #7fa8e8;
  --bs-info-rgb: 127, 168, 232;
  --web-ok: #6cbf94;
  --web-ok-rgb: 108, 191, 148;
  --web-purple: #9282ff;
  --web-purple-rgb: 146, 130, 255;
  --bs-body-bg: #010103;
  --bs-body-bg-rgb: 1, 1, 3;
  --bs-secondary-bg: #101013;
  --bs-secondary-bg-rgb: 16, 16, 19;
  --bs-tertiary-bg: #19191e;
  --bs-tertiary-bg-rgb: 25, 25, 30;
  --bs-success-text-emphasis: #dcdce6;
  --web-success-text-rgb: 220, 220, 230;
  --web-menu-bg: #19191e;
  --web-menu-bg-rgb: 25, 25, 30;
  --web-overlay-rgb: 255, 255, 255;
  --web-shadow-rgb: 0, 0, 0;
  --web-failed-rgb: 217, 103, 95;
  --web-backdrop-rgb: 0, 0, 0;
  --web-hover-rgb: 127, 127, 127;
  --web-primary-deep: #3a22c4;
  --bs-primary-bg-subtle: #110a40;
  --bs-primary-text-emphasis: #e2dfff;
  --bs-success: #2a2a33;
  --web-success-deep: #19191e;
  --bs-success-bg-subtle: #19191e;
  --web-sidebar-foot: #101013;
  --web-sidebar-foot-deep: #050506;
  --bs-link-color: #f4f4f6;
  --web-on-primary: #ffffff;
  --web-bright: #ffffff;
  --web-soft-text: #dcdce6;
  --web-settings-text: #dcdce6;
  --web-error-text: #e8a39c;
  --web-photo-text: #333333;
  --web-border-hover: #3a3a44;
  --web-scrollbar: #24242b;
  --web-dialog-bg: #101013;
  --web-code-number: #dcdce6;
  --web-code-comment: #7c7c88;
  --web-live-dot: #9282ff;
  --bs-emphasis-color: #ffffff;
  --bs-body-color: #f4f4f6;
  --bs-secondary-color: #a3a3ad;
  --bs-tertiary-color: #7c7c88;
  --bs-border-color: #24242b;
  --web-code-bg: #19191e;
  --web-cta: #6b4dff;
  --bs-box-shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --bs-box-shadow: 0 24px 50px -24px #000;
  --web-glow: 0 0 0 4px rgba(107, 77, 255, .18), 0 10px 30px -10px rgba(107, 77, 255, .3);
  --bs-font-sans-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-monospace: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --web-ease: cubic-bezier(.2, .8, .2, 1);
  --web-spring: cubic-bezier(.34, 1.56, .64, 1);
  --web-pane-fill: transparent;
  --web-pane-edge: none;
  --web-pane-rim: none;
  --web-pane-light:
      radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .16), transparent 42%),
      radial-gradient(90% 60% at 100% 100%, rgba(146, 130, 255, .16), transparent 45%),
      linear-gradient(118deg, transparent 46%, rgba(255, 255, 255, .07) 50%, transparent 56%);
  --web-pane-shadow:
      0 3px 14px rgba(0, 0, 0, .5), 0 16px 30px -10px rgba(0, 0, 0, .75),
      inset 0 0 0 1px rgba(255, 255, 255, .35), inset 14px 16px 18px -14px rgba(255, 255, 255, .45),
      inset -16px -18px 22px -16px rgba(146, 130, 255, .55), inset 0 0 26px -10px rgba(146, 130, 255, .3);
  --web-pane-blur: brightness(1.18) saturate(1.4);
  --web-pane-radius: 22px;
  --web-pane-hover-lift: -3px;
  --web-pane-hover-edge: 0 0 transparent;
  --web-pane-hover-shadow: var(--web-pane-shadow);
  --web-lens-wall: 52;
  --web-lens-rise: 70;
  --web-lens-frost: 2;
  --web-lens-water: 16;
  --web-glass-white: #ffffff;
  --web-glass-grey: #24242b;
  --web-tilt: 7;
  --web-float-shadow: var(--web-pane-shadow);
  --web-frost-fill: rgba(22, 20, 32, .9);
  --web-frost-blur: none;
  --web-veil-fill: transparent;
  --web-veil-edge: none;
  --web-veil-blur: var(--web-pane-blur);
  --web-inset-fill: transparent;
  --web-inset-edge: none;
  --web-bar-fill: #120e26;
  --web-bar-edge: 1px solid rgba(255, 255, 255, .12);
  --web-bar-blur: none;
  --web-press-fill: transparent;
  --web-press-ink: #ffffff;
  --web-press-edge: 0 solid transparent;
  --web-press-shadow: 0 5px 9px -3px rgba(12, 6, 48, .45);
  --web-dock-fill: rgba(16, 12, 34, .55);
  --web-dock-edge: none;
  --web-dock-blur: saturate(1.4);
  --web-sunk-fill: rgba(0, 0, 0, .3);
  --web-sunk-shadow:
      inset 0 3px 7px -1px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0, 0, 0, .35),
      inset 0 -1px 0 rgba(255, 255, 255, .2), 0 1px 0 rgba(255, 255, 255, .1);
  --web-sunk-lit: var(--web-sunk-shadow);
  --web-chip-fill: rgba(34, 34, 44, .82);
  --web-chip-edge: 0 solid transparent;
  --web-chip-blur: saturate(1.4);
  --web-page-lines: none;
  --web-page-lights: url("/_content/louis-agent.web.themes/glass/dark/silk.webp?v=1") center / cover no-repeat;
  --web-wordmark-o: .76em;
  --web-press-hover-fill: var(--web-press-fill);
  --web-quiet-hover-fill: transparent;
  --web-quiet-hover-ink: var(--bs-body-color);
  --web-chip-hover-edge: var(--web-chip-edge);
  --web-icon-fill: var(--bs-secondary-bg);
  --web-icon-shadow: 0 6px 14px -8px rgba(var(--web-shadow-rgb), .35);
  --web-mark-fill: transparent;
  --web-mark-gloss: none;
  --web-mark-ink: transparent;
  --web-you: #ffffff;
  --web-agent: #9282ff;
  --web-violet-0: #e2dfff;
  --web-violet-1: #9282ff;
  --web-violet-2: #6b4dff;
  --web-violet-3: #3a22c4;
  --web-violet-4: #110a40;
  --web-art-field-focus: url("/_content/louis-agent.web.themes/glass/dark/field-focus.svg?v=1");
  --web-art-field-rest: url("/_content/louis-agent.web.themes/glass/dark/field-rest.svg?v=1");
  --web-art-focus-pane: url("/_content/louis-agent.web.themes/glass/dark/focus-pane.svg?v=1");
  --web-art-focus-pill: url("/_content/louis-agent.web.themes/glass/dark/focus-pill.svg?v=1");
  --web-art-gem: url("/_content/louis-agent.web.themes/glass/dark/gem.svg?v=1");
  --web-art-group: url("/_content/louis-agent.web.themes/glass/dark/group.svg?v=1");
  --web-art-knob: url("/_content/louis-agent.web.themes/glass/dark/knob.svg?v=1");
  --web-art-mark: url("/_content/louis-agent.web.themes/glass/dark/mark.svg?v=1");
  --web-art-mark-ball: url("/_content/louis-agent.web.themes/glass/dark/mark-ball.svg?v=1");
  --web-art-mark-o: url("/_content/louis-agent.web.themes/glass/dark/mark-o.svg?v=1");
  --web-art-pane-hover: url("/_content/louis-agent.web.themes/glass/dark/pane-hover.svg?v=1");
  --web-art-pane-picked: url("/_content/louis-agent.web.themes/glass/dark/pane-picked.svg?v=1");
  --web-art-pane-rest: url("/_content/louis-agent.web.themes/glass/dark/pane-rest.svg?v=1");
  --web-art-pane-showing: url("/_content/louis-agent.web.themes/glass/dark/pane-showing.svg?v=1");
  --web-art-press-disabled: url("/_content/louis-agent.web.themes/glass/dark/press-disabled.svg?v=1");
  --web-art-press-hover: url("/_content/louis-agent.web.themes/glass/dark/press-hover.svg?v=1");
  --web-art-press-pressed: url("/_content/louis-agent.web.themes/glass/dark/press-pressed.svg?v=1");
  --web-art-press-rest: url("/_content/louis-agent.web.themes/glass/dark/press-rest.svg?v=1");
  --web-art-quiet-press-disabled: url("/_content/louis-agent.web.themes/glass/dark/quiet-press-disabled.svg?v=1");
  --web-art-quiet-press-hover: url("/_content/louis-agent.web.themes/glass/dark/quiet-press-hover.svg?v=1");
  --web-art-quiet-press-picked: url("/_content/louis-agent.web.themes/glass/dark/quiet-press-picked.svg?v=1");
  --web-art-quiet-press-pressed: url("/_content/louis-agent.web.themes/glass/dark/quiet-press-pressed.svg?v=1");
  --web-art-quiet-press-rest: url("/_content/louis-agent.web.themes/glass/dark/quiet-press-rest.svg?v=1");
  --web-art-slider-fill: url("/_content/louis-agent.web.themes/glass/dark/slider-fill.svg?v=1");
  --web-art-slider-track: url("/_content/louis-agent.web.themes/glass/dark/slider-track.svg?v=1");
  --web-art-status: url("/_content/louis-agent.web.themes/glass/dark/status.svg?v=1");
  --web-art-tag-agent: url("/_content/louis-agent.web.themes/glass/dark/tag-agent.svg?v=1");
  --web-art-tag-you: url("/_content/louis-agent.web.themes/glass/dark/tag-you.svg?v=1");
  --web-art-tag: url("/_content/louis-agent.web.themes/glass/dark/tag.svg?v=1");
  --web-art-toggle-off-disabled: url("/_content/louis-agent.web.themes/glass/dark/toggle-off-disabled.svg?v=1");
  --web-art-toggle-off: url("/_content/louis-agent.web.themes/glass/dark/toggle-off.svg?v=1");
  --web-art-toggle-on-disabled: url("/_content/louis-agent.web.themes/glass/dark/toggle-on-disabled.svg?v=1");
  --web-art-toggle-on: url("/_content/louis-agent.web.themes/glass/dark/toggle-on.svg?v=1");
  --web-art-well: url("/_content/louis-agent.web.themes/glass/dark/well.svg?v=1");
  color-scheme: dark;
}

/* Glass, in the light (F151.2, ADR 0124): the design page's light values. White and black swap places and the
   purple stays: the words are black, a visitor's mark is black, and the page is a wash of the violet, mixed from
   its second step so it follows the purple and deep enough for a white rim to stand on. A pane is its drawing
   alone, which holds its rim and its lights: nothing is painted under it, nothing blurs the page seen through
   it, and it throws a soft shadow. The page behind is a picture of silk ribbons of light. A bar is white glass
   over a white edge, and a press is its drawing with white words. The red, amber, blue and green are deeper
   than the dark look's, so a demo's button holds white words and its icon stands out on the violet. The caption on a
   photo's mat and the hover grey are the framework's own, since the mockup does not show them, and the error words a
   darker red to read on white. The faces and the easing are the framework's. */
:root[data-theme=glass][data-style=light] {
  --bs-primary: #6b4dff;
  --bs-primary-rgb: 107, 77, 255;
  --bs-danger: #c23b31;
  --bs-danger-rgb: 194, 59, 49;
  --bs-warning: #8a6200;
  --bs-warning-rgb: 138, 98, 0;
  --bs-info: #2563c9;
  --bs-info-rgb: 37, 99, 201;
  --web-ok: #1d7a4c;
  --web-ok-rgb: 29, 122, 76;
  --web-purple: #6b4dff;
  --web-purple-rgb: 107, 77, 255;
  --bs-body-bg: rgb(76.9176470588%, 73.5294117647%, 100%);
  --bs-body-bg-rgb: 196.14, 187.5, 255;
  --bs-secondary-bg: #ffffff;
  --bs-secondary-bg-rgb: 255, 255, 255;
  --bs-tertiary-bg: #ffffff;
  --bs-tertiary-bg-rgb: 255, 255, 255;
  --bs-success-text-emphasis: #3a3650;
  --web-success-text-rgb: 58, 54, 80;
  --web-menu-bg: #ffffff;
  --web-menu-bg-rgb: 255, 255, 255;
  --web-overlay-rgb: 30, 16, 90;
  --web-shadow-rgb: 30, 16, 100;
  --web-failed-rgb: 217, 103, 95;
  --web-backdrop-rgb: 238, 238, 245;
  --web-hover-rgb: 127, 127, 127;
  --web-primary-deep: #3a22c4;
  --bs-primary-bg-subtle: rgb(92.4549019608%, 90.9254901961%, 100%);
  --bs-primary-text-emphasis: #3a22c4;
  --bs-success: #0b0b0e;
  --web-success-deep: #000000;
  --bs-success-bg-subtle: rgb(93.1607843137%, 92.1568627451%, 100%);
  --web-sidebar-foot: #ffffff;
  --web-sidebar-foot-deep: rgb(76.9176470588%, 73.5294117647%, 100%);
  --bs-link-color: #0b0b0e;
  --web-on-primary: #ffffff;
  --web-bright: #0b0b0e;
  --web-soft-text: #3a3650;
  --web-settings-text: #3a3650;
  --web-error-text: #b3413a;
  --web-photo-text: #333333;
  --web-border-hover: #a9a2d6;
  --web-scrollbar: #c3bde6;
  --web-dialog-bg: #ffffff;
  --web-code-number: #3a3650;
  --web-code-comment: #6c6c7a;
  --web-live-dot: #6b4dff;
  --bs-emphasis-color: #0b0b0e;
  --bs-body-color: #0b0b0e;
  --bs-secondary-color: #37324e;
  --bs-tertiary-color: #6c6c7a;
  --bs-border-color: rgba(30, 16, 90, .2);
  --web-code-bg: rgb(93.1607843137%, 92.1568627451%, 100%);
  --web-cta: #6b4dff;
  --bs-box-shadow-sm: 0 2px 5px rgba(30, 16, 90, .12);
  --bs-box-shadow: 0 24px 50px -22px rgba(30, 16, 100, .55);
  --web-glow: 0 0 0 4px rgba(107, 77, 255, .18), 0 10px 30px -10px rgba(107, 77, 255, .3);
  --bs-font-sans-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-monospace: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --web-ease: cubic-bezier(.2, .8, .2, 1);
  --web-spring: cubic-bezier(.34, 1.56, .64, 1);
  --web-pane-fill: transparent;
  --web-pane-edge: none;
  --web-pane-rim: none;
  --web-pane-light:
      radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .28), transparent 42%),
      radial-gradient(90% 60% at 100% 100%, rgba(226, 223, 255, .18), transparent 45%),
      linear-gradient(118deg, transparent 46%, rgba(255, 255, 255, .1) 50%, transparent 56%);
  --web-pane-shadow:
      0 14px 22px -14px rgba(22, 12, 70, .55),
      inset 0 0 0 1px rgba(255, 255, 255, .55), inset 14px 16px 18px -14px rgba(255, 255, 255, .75),
      inset -16px -18px 22px -16px rgba(107, 77, 255, .45), inset 0 0 26px -10px rgba(146, 130, 255, .35);
  --web-pane-blur: saturate(1.5);
  --web-pane-radius: 22px;
  --web-pane-hover-lift: -3px;
  --web-pane-hover-edge: 0 0 transparent;
  --web-pane-hover-shadow: var(--web-pane-shadow);
  --web-lens-wall: 52;
  --web-lens-rise: 70;
  --web-lens-frost: 2;
  --web-lens-water: 16;
  --web-glass-white: #ffffff;
  --web-glass-grey: #8a8a98;
  --web-tilt: 7;
  --web-float-shadow: var(--web-pane-shadow);
  --web-frost-fill: rgba(204, 203, 218, .9);
  --web-frost-blur: none;
  --web-veil-fill: transparent;
  --web-veil-edge: none;
  --web-veil-blur: var(--web-pane-blur);
  --web-inset-fill: transparent;
  --web-inset-edge: none;
  --web-bar-fill: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56));
  --web-bar-edge: 1px solid rgba(255, 255, 255, .9);
  --web-bar-blur: none;
  --web-press-fill: transparent;
  --web-press-ink: #ffffff;
  --web-press-edge: 0 solid transparent;
  --web-press-shadow: 0 5px 9px -3px rgba(12, 6, 48, .45);
  --web-dock-fill: rgba(246, 244, 255, .8);
  --web-dock-edge: none;
  --web-dock-blur: saturate(1.4);
  --web-sunk-fill: rgba(24, 12, 80, .07);
  --web-sunk-shadow:
      inset 0 3px 6px -1px rgba(22, 12, 70, .42), inset 0 0 0 1px rgba(22, 12, 70, .1),
      inset 0 -1.5px 0 rgba(255, 255, 255, .85), 0 1.5px 0 rgba(255, 255, 255, .45);
  --web-sunk-lit: var(--web-sunk-shadow);
  --web-chip-fill: rgba(255, 255, 255, .82);
  --web-chip-edge: 0 solid transparent;
  --web-chip-blur: saturate(1.4);
  --web-page-lines: none;
  --web-page-lights: url("/_content/louis-agent.web.themes/glass/light/silk.webp?v=1") center / cover no-repeat;
  --web-wordmark-o: .76em;
  --web-press-hover-fill: var(--web-press-fill);
  --web-quiet-hover-fill: transparent;
  --web-quiet-hover-ink: var(--bs-body-color);
  --web-chip-hover-edge: var(--web-chip-edge);
  --web-icon-fill: var(--bs-secondary-bg);
  --web-icon-shadow: 0 6px 14px -8px rgba(var(--web-shadow-rgb), .35);
  --web-mark-fill: transparent;
  --web-mark-gloss: none;
  --web-mark-ink: transparent;
  --web-you: #0b0b0e;
  --web-agent: #6b4dff;
  --web-violet-0: #e2dfff;
  --web-violet-1: #9282ff;
  --web-violet-2: #6b4dff;
  --web-violet-3: #3a22c4;
  --web-violet-4: #110a40;
  --web-art-field-focus: url("/_content/louis-agent.web.themes/glass/light/field-focus.svg?v=1");
  --web-art-field-rest: url("/_content/louis-agent.web.themes/glass/light/field-rest.svg?v=1");
  --web-art-focus-pane: url("/_content/louis-agent.web.themes/glass/light/focus-pane.svg?v=1");
  --web-art-focus-pill: url("/_content/louis-agent.web.themes/glass/light/focus-pill.svg?v=1");
  --web-art-gem: url("/_content/louis-agent.web.themes/glass/light/gem.svg?v=1");
  --web-art-group: url("/_content/louis-agent.web.themes/glass/light/group.svg?v=1");
  --web-art-knob: url("/_content/louis-agent.web.themes/glass/light/knob.svg?v=1");
  --web-art-mark: url("/_content/louis-agent.web.themes/glass/light/mark.svg?v=1");
  --web-art-mark-ball: url("/_content/louis-agent.web.themes/glass/light/mark-ball.svg?v=1");
  --web-art-mark-o: url("/_content/louis-agent.web.themes/glass/light/mark-o.svg?v=1");
  --web-art-pane-hover: url("/_content/louis-agent.web.themes/glass/light/pane-hover.svg?v=1");
  --web-art-pane-picked: url("/_content/louis-agent.web.themes/glass/light/pane-picked.svg?v=1");
  --web-art-pane-rest: url("/_content/louis-agent.web.themes/glass/light/pane-rest.svg?v=1");
  --web-art-pane-showing: url("/_content/louis-agent.web.themes/glass/light/pane-showing.svg?v=1");
  --web-art-press-disabled: url("/_content/louis-agent.web.themes/glass/light/press-disabled.svg?v=1");
  --web-art-press-hover: url("/_content/louis-agent.web.themes/glass/light/press-hover.svg?v=1");
  --web-art-press-pressed: url("/_content/louis-agent.web.themes/glass/light/press-pressed.svg?v=1");
  --web-art-press-rest: url("/_content/louis-agent.web.themes/glass/light/press-rest.svg?v=1");
  --web-art-quiet-press-disabled: url("/_content/louis-agent.web.themes/glass/light/quiet-press-disabled.svg?v=1");
  --web-art-quiet-press-hover: url("/_content/louis-agent.web.themes/glass/light/quiet-press-hover.svg?v=1");
  --web-art-quiet-press-picked: url("/_content/louis-agent.web.themes/glass/light/quiet-press-picked.svg?v=1");
  --web-art-quiet-press-pressed: url("/_content/louis-agent.web.themes/glass/light/quiet-press-pressed.svg?v=1");
  --web-art-quiet-press-rest: url("/_content/louis-agent.web.themes/glass/light/quiet-press-rest.svg?v=1");
  --web-art-slider-fill: url("/_content/louis-agent.web.themes/glass/light/slider-fill.svg?v=1");
  --web-art-slider-track: url("/_content/louis-agent.web.themes/glass/light/slider-track.svg?v=1");
  --web-art-status: url("/_content/louis-agent.web.themes/glass/light/status.svg?v=1");
  --web-art-tag-agent: url("/_content/louis-agent.web.themes/glass/light/tag-agent.svg?v=1");
  --web-art-tag-you: url("/_content/louis-agent.web.themes/glass/light/tag-you.svg?v=1");
  --web-art-tag: url("/_content/louis-agent.web.themes/glass/light/tag.svg?v=1");
  --web-art-toggle-off-disabled: url("/_content/louis-agent.web.themes/glass/light/toggle-off-disabled.svg?v=1");
  --web-art-toggle-off: url("/_content/louis-agent.web.themes/glass/light/toggle-off.svg?v=1");
  --web-art-toggle-on-disabled: url("/_content/louis-agent.web.themes/glass/light/toggle-on-disabled.svg?v=1");
  --web-art-toggle-on: url("/_content/louis-agent.web.themes/glass/light/toggle-on.svg?v=1");
  --web-art-well: url("/_content/louis-agent.web.themes/glass/light/well.svg?v=1");
  color-scheme: light;
}

/* Flat, in the dark (F151.2, ADR 0124): the flat mockup's dark values, under "Finish two: flat". Every surface is one
   solid colour with a hairline round it: no gradient, no shadow, no blur, anywhere. The page is black, a pane a
   near-black grey, the words white, the purple Ultraviolet. A press is solid violet with white words, and the second
   a white outline. The mark is a flat violet disc with the brand's white l, stepped. The red, amber, blue and green, the caption on a
   photo's mat and the hover grey are the framework's own, and the faces and the easing the framework's. */
:root[data-theme=flat][data-style=dark] {
  --bs-primary: #6b4dff;
  --bs-primary-rgb: 107, 77, 255;
  --bs-danger: #d9675f;
  --bs-danger-rgb: 217, 103, 95;
  --bs-warning: #d4a72c;
  --bs-warning-rgb: 212, 167, 44;
  --bs-info: #7fa8e8;
  --bs-info-rgb: 127, 168, 232;
  --web-ok: #6cbf94;
  --web-ok-rgb: 108, 191, 148;
  --web-purple: #9282ff;
  --web-purple-rgb: 146, 130, 255;
  --bs-body-bg: #0c0c0e;
  --bs-body-bg-rgb: 12, 12, 14;
  --bs-secondary-bg: #141418;
  --bs-secondary-bg-rgb: 20, 20, 24;
  --bs-tertiary-bg: #1a1a1f;
  --bs-tertiary-bg-rgb: 26, 26, 31;
  --bs-success-text-emphasis: #dcdce6;
  --web-success-text-rgb: 220, 220, 230;
  --web-menu-bg: #1a1a1f;
  --web-menu-bg-rgb: 26, 26, 31;
  --web-overlay-rgb: 255, 255, 255;
  --web-shadow-rgb: 0, 0, 0;
  --web-failed-rgb: 217, 103, 95;
  --web-backdrop-rgb: 0, 0, 0;
  --web-hover-rgb: 127, 127, 127;
  --web-primary-deep: #3a22c4;
  --bs-primary-bg-subtle: #110a40;
  --bs-primary-text-emphasis: #e2dfff;
  --bs-success: #2b2b33;
  --web-success-deep: #1a1a1f;
  --bs-success-bg-subtle: #1a1a1f;
  --web-sidebar-foot: #141418;
  --web-sidebar-foot-deep: #000000;
  --bs-link-color: #f4f4f6;
  --web-on-primary: #ffffff;
  --web-bright: #ffffff;
  --web-soft-text: #c9c9d1;
  --web-settings-text: #c9c9d1;
  --web-error-text: #e8a39c;
  --web-photo-text: #333333;
  --web-border-hover: #55555f;
  --web-scrollbar: #2b2b33;
  --web-dialog-bg: #141418;
  --web-code-number: #c9c9d1;
  --web-code-comment: #7c7c88;
  --web-live-dot: #9282ff;
  --bs-emphasis-color: #ffffff;
  --bs-body-color: #f4f4f6;
  --bs-secondary-color: #a3a3ad;
  --bs-tertiary-color: #7c7c88;
  --bs-border-color: #2b2b33;
  --web-code-bg: #1a1a1f;
  --web-cta: #6b4dff;
  --bs-box-shadow-sm: none;
  --bs-box-shadow: none;
  --web-glow: 0 0 0 2px #6b4dff;
  --bs-font-sans-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-monospace: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --web-ease: cubic-bezier(.2, .8, .2, 1);
  --web-spring: cubic-bezier(.34, 1.56, .64, 1);
  --web-pane-fill: #141418;
  --web-pane-edge: none;
  --web-pane-rim: none;
  --web-pane-light: none;
  --web-pane-shadow: inset 0 0 0 1px #2b2b33;
  --web-pane-blur: none;
  --web-pane-radius: 22px;
  --web-pane-hover-lift: 0px;
  --web-pane-hover-edge: inset 0 0 0 1px #55555f;
  --web-pane-hover-shadow: 0 0 transparent;
  --web-lens-wall: 0;
  --web-lens-rise: 0;
  --web-lens-frost: 0;
  --web-lens-water: 0;
  --web-glass-white: var(--bs-body-bg);
  --web-glass-grey: var(--bs-tertiary-bg);
  --web-tilt: 0;
  --web-float-shadow: inset 0 0 0 1px #2b2b33;
  --web-frost-fill: var(--web-pane-fill);
  --web-frost-blur: var(--web-pane-blur);
  --web-veil-fill: var(--web-pane-fill);
  --web-veil-edge: 1px solid #2b2b33;
  --web-veil-blur: none;
  --web-inset-fill: #0c0c0e;
  --web-inset-edge: 1px solid #2b2b33;
  --web-bar-fill: #0c0c0e;
  --web-bar-edge: 1px solid #2b2b33;
  --web-bar-blur: none;
  --web-press-fill: #6b4dff;
  --web-press-ink: #ffffff;
  --web-press-edge: 1.5px solid #ffffff;
  --web-press-shadow: none;
  --web-dock-fill: var(--web-bar-fill);
  --web-dock-edge: var(--web-bar-edge);
  --web-dock-blur: var(--web-bar-blur);
  --web-sunk-fill: var(--web-inset-fill);
  --web-sunk-shadow: none;
  --web-sunk-lit: inset 0 0 0 1.5px rgba(var(--web-overlay-rgb), .85);
  --web-chip-fill: #1a1a1f;
  --web-chip-edge: 1px solid #2b2b33;
  --web-chip-blur: var(--web-pane-blur);
  --web-page-lines: none;
  --web-page-lights: none;
  --web-wordmark-o: .5em;
  --web-press-hover-fill: #9282ff;
  --web-quiet-hover-fill: #ffffff;
  --web-quiet-hover-ink: #0c0c0e;
  --web-chip-hover-edge: 1px solid #ffffff;
  --web-icon-fill: #0c0c0e;
  --web-icon-shadow: none;
  --web-mark-fill: transparent;
  --web-mark-gloss: none;
  --web-mark-ink: transparent;
  --web-you: #ffffff;
  --web-agent: #9282ff;
  --web-violet-0: #e2dfff;
  --web-violet-1: #9282ff;
  --web-violet-2: #6b4dff;
  --web-violet-3: #3a22c4;
  --web-violet-4: #110a40;
  --web-art-field-focus: none;
  --web-art-field-rest: none;
  --web-art-focus-pane: none;
  --web-art-focus-pill: none;
  --web-art-gem: none;
  --web-art-group: none;
  --web-art-knob: none;
  --web-art-mark: none;
  --web-art-mark-ball: none;
  --web-art-mark-o: none;
  --web-art-pane-hover: none;
  --web-art-pane-picked: none;
  --web-art-pane-rest: none;
  --web-art-pane-showing: none;
  --web-art-press-disabled: none;
  --web-art-press-hover: none;
  --web-art-press-pressed: none;
  --web-art-press-rest: none;
  --web-art-quiet-press-disabled: none;
  --web-art-quiet-press-hover: none;
  --web-art-quiet-press-picked: none;
  --web-art-quiet-press-pressed: none;
  --web-art-quiet-press-rest: none;
  --web-art-slider-fill: none;
  --web-art-slider-track: none;
  --web-art-status: none;
  --web-art-tag-agent: none;
  --web-art-tag-you: none;
  --web-art-tag: none;
  --web-art-toggle-off-disabled: none;
  --web-art-toggle-off: none;
  --web-art-toggle-on-disabled: none;
  --web-art-toggle-on: none;
  --web-art-well: none;
  --web-art-mark: url("/_content/louis-agent.web.themes/flat/dark/mark.svg?v=3");
  --web-art-mark-ball: url("/_content/louis-agent.web.themes/flat/dark/mark-ball.svg?v=3");
  --web-art-mark-o: url("/_content/louis-agent.web.themes/flat/dark/mark-o.svg?v=3");
  color-scheme: dark;
}

/* Flat, in the light (F151.2, ADR 0124): the flat mockup's light values, under "Flat, in the light". Louis: "if the
   background goes white the cards must go darker". So the page is white and a pane a solid grey, clearly darker than
   it, with a firmer grey line round it. Black words, a black visitor, and the same solid violet for what you press;
   the second button a black outline. Still no shading anywhere. The red, amber, blue and green are deeper than the
   dark look's, so a demo's button holds white words and its icon stands out on white. The caption on a photo's mat
   and the hover grey are the framework's own, the error words a darker red to read on white, and the faces and the
   easing the framework's. */
/* The values, as a set a piece can wear on its own: the page wears them under its theme and style, below, and a
   piece that keeps one look whatever the page wears, such as a picture of someone's website, includes them and
   sets its own colours over them. */
:root[data-theme=flat][data-style=light] {
  --bs-primary: #6b4dff;
  --bs-primary-rgb: 107, 77, 255;
  --bs-danger: #c23b31;
  --bs-danger-rgb: 194, 59, 49;
  --bs-warning: #8a6200;
  --bs-warning-rgb: 138, 98, 0;
  --bs-info: #2563c9;
  --bs-info-rgb: 37, 99, 201;
  --web-ok: #1d7a4c;
  --web-ok-rgb: 29, 122, 76;
  --web-purple: #6b4dff;
  --web-purple-rgb: 107, 77, 255;
  --bs-body-bg: #f7f7f8;
  --bs-body-bg-rgb: 247, 247, 248;
  --bs-secondary-bg: #dcdee8;
  --bs-secondary-bg-rgb: 220, 222, 232;
  --bs-tertiary-bg: #cdd0dc;
  --bs-tertiary-bg-rgb: 205, 208, 220;
  --bs-success-text-emphasis: #3c3c50;
  --web-success-text-rgb: 60, 60, 80;
  --web-menu-bg: #cdd0dc;
  --web-menu-bg-rgb: 205, 208, 220;
  --web-overlay-rgb: 11, 11, 14;
  --web-shadow-rgb: 11, 11, 14;
  --web-failed-rgb: 217, 103, 95;
  --web-backdrop-rgb: 255, 255, 255;
  --web-hover-rgb: 127, 127, 127;
  --web-primary-deep: #3a22c4;
  --bs-primary-bg-subtle: #e2dfff;
  --bs-primary-text-emphasis: #3a22c4;
  --bs-success: #0b0b0e;
  --web-success-deep: #000000;
  --bs-success-bg-subtle: #dcdee8;
  --web-sidebar-foot: #dcdee8;
  --web-sidebar-foot-deep: #cdd0dc;
  --bs-link-color: #0b0b0e;
  --web-on-primary: #ffffff;
  --web-bright: #0b0b0e;
  --web-soft-text: #3c3c50;
  --web-settings-text: #3c3c50;
  --web-error-text: #b3413a;
  --web-photo-text: #333333;
  --web-border-hover: #5d6072;
  --web-scrollbar: #a7aaba;
  --web-dialog-bg: #ffffff;
  --web-code-number: #3c3c50;
  --web-code-comment: #6c6c7a;
  --web-live-dot: #6b4dff;
  --bs-emphasis-color: #0b0b0e;
  --bs-body-color: #0b0b0e;
  --bs-secondary-color: #44444f;
  --bs-tertiary-color: #6c6c7a;
  --bs-border-color: #a7aaba;
  --web-code-bg: #dcdee8;
  --web-cta: #6b4dff;
  --bs-box-shadow-sm: none;
  --bs-box-shadow: none;
  --web-glow: 0 0 0 2px #6b4dff;
  --bs-font-sans-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-monospace: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --web-ease: cubic-bezier(.2, .8, .2, 1);
  --web-spring: cubic-bezier(.34, 1.56, .64, 1);
  --web-pane-fill: #dcdee8;
  --web-pane-edge: none;
  --web-pane-rim: none;
  --web-pane-light: none;
  --web-pane-shadow: inset 0 0 0 1px #a7aaba;
  --web-pane-blur: none;
  --web-pane-radius: 22px;
  --web-pane-hover-lift: 0px;
  --web-pane-hover-edge: inset 0 0 0 1px #5d6072;
  --web-pane-hover-shadow: 0 0 transparent;
  --web-lens-wall: 0;
  --web-lens-rise: 0;
  --web-lens-frost: 0;
  --web-lens-water: 0;
  --web-glass-white: var(--bs-body-bg);
  --web-glass-grey: var(--bs-tertiary-bg);
  --web-tilt: 0;
  --web-float-shadow: inset 0 0 0 1px #a7aaba;
  --web-frost-fill: var(--web-pane-fill);
  --web-frost-blur: var(--web-pane-blur);
  --web-veil-fill: var(--web-pane-fill);
  --web-veil-edge: 1px solid #a7aaba;
  --web-veil-blur: none;
  --web-inset-fill: #f7f7f8;
  --web-inset-edge: 1px solid #a7aaba;
  --web-bar-fill: #f7f7f8;
  --web-bar-edge: 1px solid #a7aaba;
  --web-bar-blur: none;
  --web-press-fill: #6b4dff;
  --web-press-ink: #ffffff;
  --web-press-edge: 1.5px solid #0b0b0e;
  --web-press-shadow: none;
  --web-dock-fill: var(--web-bar-fill);
  --web-dock-edge: var(--web-bar-edge);
  --web-dock-blur: var(--web-bar-blur);
  --web-sunk-fill: var(--web-inset-fill);
  --web-sunk-shadow: none;
  --web-sunk-lit: inset 0 0 0 1.5px rgba(var(--web-overlay-rgb), .85);
  --web-chip-fill: var(--web-pane-fill);
  --web-chip-edge: 1px solid #a7aaba;
  --web-chip-blur: var(--web-pane-blur);
  --web-page-lines: none;
  --web-page-lights: none;
  --web-wordmark-o: .5em;
  --web-press-hover-fill: #9282ff;
  --web-quiet-hover-fill: #0b0b0e;
  --web-quiet-hover-ink: #f7f7f8;
  --web-chip-hover-edge: 1px solid #0b0b0e;
  --web-icon-fill: #f7f7f8;
  --web-icon-shadow: none;
  --web-mark-fill: transparent;
  --web-mark-gloss: none;
  --web-mark-ink: transparent;
  --web-you: #0b0b0e;
  --web-agent: #6b4dff;
  --web-violet-0: #e2dfff;
  --web-violet-1: #9282ff;
  --web-violet-2: #6b4dff;
  --web-violet-3: #3a22c4;
  --web-violet-4: #110a40;
  --web-art-field-focus: none;
  --web-art-field-rest: none;
  --web-art-focus-pane: none;
  --web-art-focus-pill: none;
  --web-art-gem: none;
  --web-art-group: none;
  --web-art-knob: none;
  --web-art-mark: none;
  --web-art-mark-ball: none;
  --web-art-mark-o: none;
  --web-art-pane-hover: none;
  --web-art-pane-picked: none;
  --web-art-pane-rest: none;
  --web-art-pane-showing: none;
  --web-art-press-disabled: none;
  --web-art-press-hover: none;
  --web-art-press-pressed: none;
  --web-art-press-rest: none;
  --web-art-quiet-press-disabled: none;
  --web-art-quiet-press-hover: none;
  --web-art-quiet-press-picked: none;
  --web-art-quiet-press-pressed: none;
  --web-art-quiet-press-rest: none;
  --web-art-slider-fill: none;
  --web-art-slider-track: none;
  --web-art-status: none;
  --web-art-tag-agent: none;
  --web-art-tag-you: none;
  --web-art-tag: none;
  --web-art-toggle-off-disabled: none;
  --web-art-toggle-off: none;
  --web-art-toggle-on-disabled: none;
  --web-art-toggle-on: none;
  --web-art-well: none;
  --web-art-mark: url("/_content/louis-agent.web.themes/flat/light/mark.svg?v=3");
  --web-art-mark-ball: url("/_content/louis-agent.web.themes/flat/light/mark-ball.svg?v=3");
  --web-art-mark-o: url("/_content/louis-agent.web.themes/flat/light/mark-o.svg?v=3");
  color-scheme: light;
}

/* The sign-in providers' own colours (FX67), from their brand guidelines: Google's dark theme, Microsoft's dark theme,
   LinkedIn's blue. A provider's button must look like the provider's, so these are not the site's colours and a site
   doesn't set them; they sit apart from _colours.scss, which holds only the site's own greys. */
:root {
  --web-google-bg: #131314;
  --web-google-stroke: #8e918f;
  --web-google-text: #e3e3e3;
  --web-microsoft-bg: #2f2f2f;
  --web-microsoft-text: #ffffff;
  --web-linkedin-bg: #0a66c2;
  --web-linkedin-text: #ffffff;
}

/* Loading and errors */
.loading {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--bs-emphasis-color);
}

.loading img {
  animation: rise 0.6s var(--web-ease) both;
}

.loading-mark {
  border-radius: 18px;
  animation: source-beat 1.1s ease-in-out infinite;
}

.loading-pct {
  font: 600 13px var(--bs-font-monospace);
  color: var(--bs-secondary-color);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}

.loading-pct::after {
  content: var(--blazor-load-percentage-text, "0%");
}

#blazor-error-ui {
  display: none;
  position: fixed;
  inset: auto 16px 16px 16px;
  padding: 12px 18px;
  background: var(--bs-secondary-bg);
  border: var(--web-bar-edge);
  border-left: 4px solid var(--bs-primary);
  border-radius: 12px;
  box-shadow: var(--bs-box-shadow);
  z-index: 10;
}

#blazor-error-ui .dismiss {
  float: right;
  cursor: pointer;
}

/* Layout */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w, 280px) 8px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  transition: grid-template-columns 0.35s var(--web-ease);
}

.resizing .app {
  transition: none;
}

.resizing, .resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.sidebar {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border-right: var(--web-bar-edge);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  gap: 14px;
  min-height: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.6px;
  color: var(--bs-emphasis-color);
  padding: 2px 8px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
}

.sidebar-top .icon {
  color: var(--bs-secondary-color);
  width: 32px;
  height: 32px;
  place-items: center;
}

.sidebar-top .icon:hover {
  background: rgba(var(--web-overlay-rgb), 0.08);
  color: var(--bs-emphasis-color);
}

.new-chat {
  position: relative;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--web-on-primary);
  text-align: left;
  background: var(--web-cta);
  background-size: 200% 100%;
  background-position: 0% 0;
  box-shadow: 0 6px 16px -8px rgba(var(--bs-primary-rgb), 0.7);
  transition: transform 0.25s var(--web-spring), box-shadow 0.25s var(--web-ease), background-position 0.6s var(--web-ease);
}

.new-chat::before {
  content: "+";
  margin-right: 8px;
  font-weight: 700;
}

.new-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(var(--bs-primary-rgb), 0.85);
  background-position: 100% 0;
}

.new-chat:active {
  transform: translateY(0) scale(0.98);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  margin: 0 -4px;
  padding: 0 4px;
}

.chat-item {
  display: flex;
  align-items: center;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s var(--web-ease);
}

.chat-item a {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  color: var(--bs-body-color);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.chat-item:hover {
  background: rgba(var(--web-overlay-rgb), 0.05);
}

.chat-item.active {
  background: var(--bs-secondary-bg);
  box-shadow: var(--bs-box-shadow-sm);
}

.chat-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--bs-primary);
}

.chat-item.active a {
  color: var(--bs-emphasis-color);
  font-weight: 600;
}

.chat-item .icon {
  opacity: 0;
  transition: opacity 0.15s;
  color: var(--bs-secondary-color);
}

.chat-item:hover .icon {
  opacity: 1;
}

.sidebar-settings {
  color: var(--web-settings-text);
  font-size: 13px;
}

.sidebar-settings summary {
  cursor: pointer;
  color: var(--web-soft-text);
  list-style: none;
  padding: 4px 8px;
  border-radius: 8px;
}

.sidebar-settings summary::before {
  content: "⚙  ";
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 8px 0;
  color: var(--web-soft-text);
}

.settings input, .settings select {
  background: rgba(var(--web-overlay-rgb), 0.08);
  border: 1px solid rgba(var(--web-overlay-rgb), 0.18);
  color: var(--web-bright);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* The picker's arrow a little in from the edge: the browser draws it at the end of the content box (FX65). */
.settings select {
  padding-right: 16px;
}

.settings input:focus, .settings select:focus {
  outline: 0;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

/* A picker's open list on the menu's colour: the browser's own white under the page's bright text hid the options (FX65). */
.settings select option {
  color: var(--bs-emphasis-color);
  background: var(--web-menu-bg);
}

.icon {
  background: none;
  border: 0;
  color: var(--bs-secondary-color);
  font-size: 16px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.icon:hover {
  background: rgba(var(--web-hover-rgb), 0.14);
  color: var(--bs-emphasis-color);
}

.sidebar .icon:hover {
  color: var(--bs-emphasis-color);
}

/* Conversation */
.conversation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  background: var(--bs-body-bg);
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 44px) clamp(14px, 3.5vw, 32px) 16px;
  scroll-behavior: smooth;
}

.messages > * {
  max-width: 800px;
  margin: 0 auto;
}

/* Empty state: a charcoal headline over a faint orange pulse, and suggestions to start with. */
.empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.empty h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 10px;
  line-height: 1.1;
  color: var(--bs-emphasis-color);
}

.empty h1 .w {
  display: inline-block;
  animation: word 0.7s var(--web-ease) both;
  animation-delay: calc(0.1s + var(--i) * 80ms);
}

.conversation > .messages {
  position: relative;
  z-index: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* The ways in, shared by the packs' views and the sites: a fade, a slide, a soft blink (from the admin's screens, CL58). */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink-soft {
  50% {
    opacity: 0.55;
  }
}
/* A page's header, on the admin's pages and the chat's panels alike: the title and its line on the left, the
   actions on the right. */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--bs-emphasis-color);
  margin: 0;
}

.page-head p {
  margin: 4px 0 0;
  color: var(--bs-secondary-color);
}

.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* The cards and the table the admin's pages, the studio and a pack's screen are built from (from the admin's
   shell, CL58): parts many components draw and override, so they stay global. */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  align-items: start;
}

.card-p {
  background: var(--bs-secondary-bg);
  border: var(--web-bar-edge);
  border-radius: var(--bs-border-radius-xl);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rise 0.4s var(--web-ease) both;
}

.card-p > p {
  margin: 0;
}

/* A card that holds a modal doesn't rise in: its filled transform animation would trap the modal inside it (F31). */
.card-p.holds-modal {
  animation: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--bs-emphasis-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bs-tertiary-color);
  padding: 6px 10px;
  border-bottom: var(--web-bar-edge);
}

.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(var(--web-overlay-rgb), 0.05);
  vertical-align: top;
}

.admin-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.admin-table tbody tr:hover {
  background: rgba(var(--web-overlay-rgb), 0.04);
}

.admin-table tbody tr.selected {
  background: var(--bs-primary-bg-subtle);
}

.admin-table code {
  font-size: 12.5px;
}

/* Turns */
.turn {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
  animation: rise 0.45s var(--web-ease) both;
}

.user-message {
  align-self: flex-end;
  max-width: 78%;
  color: var(--web-on-primary);
  border-radius: 20px 20px 6px 20px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--bs-success), var(--web-success-deep));
  box-shadow: 0 8px 22px -10px rgba(var(--web-shadow-rgb), 0.7);
}

.user-text {
  white-space: pre-wrap;
}

.user-message .chip {
  background: rgba(var(--web-overlay-rgb), 0.16);
  border-color: rgba(var(--web-overlay-rgb), 0.25);
  color: var(--web-on-primary);
}

.assistant-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 13px;
  background: var(--bs-secondary-bg);
  border: var(--web-bar-edge);
  border-radius: 999px;
  padding: 3px 11px;
}

/* Thinking and tools: quiet until opened */
.thinking summary, .tool summary {
  cursor: pointer;
  color: var(--bs-secondary-color);
  font-size: 13px;
  list-style: none;
  user-select: none;
}

.thinking summary::-webkit-details-marker, .tool summary::-webkit-details-marker {
  display: none;
}

.thinking summary, .thinking-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  transition: background 0.2s;
}

.thinking summary:hover {
  background: var(--bs-primary-bg-subtle);
}

/* The label alone, when a chat hides its work (F128.1): the same pill, nothing to open. */
.thinking-label {
  color: var(--bs-secondary-color);
  font-size: 13px;
  user-select: none;
}

.thinking summary::before, .thinking-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-bg-subtle);
}

.thinking[open] > summary {
  color: var(--bs-emphasis-color);
}

.tool {
  border: var(--web-bar-edge);
  border-radius: 12px;
  background: var(--bs-secondary-bg);
  padding: 9px 13px;
  box-shadow: var(--bs-box-shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool:hover {
  border-color: var(--web-border-hover);
  box-shadow: var(--bs-box-shadow);
}

.tool.failed .tool-status {
  color: var(--bs-danger);
}

.tool-name {
  font-weight: 600;
  color: var(--bs-emphasis-color);
  margin-right: 6px;
}

.tool pre {
  font-family: var(--bs-font-monospace);
  font-size: 12px;
  background: var(--web-code-bg);
  border-radius: 10px;
  padding: 9px 11px;
  overflow-x: auto;
  max-height: 280px;
  white-space: pre-wrap;
  margin: 4px 0 0;
}

/* Delegation card (F5): who's doing the work, with what, and the work itself, live. While it runs, its border is a
   rotating blue-to-orange ring and the avatar pulses. */
.delegation {
  position: relative;
  background: var(--bs-secondary-bg);
  border-radius: 18px;
  padding: 14px 18px;
  border: var(--web-bar-edge);
  box-shadow: var(--bs-box-shadow);
  animation: rise 0.45s var(--web-ease) both;
}

.delegation.running {
  border-color: transparent;
  background: linear-gradient(var(--bs-secondary-bg), var(--bs-secondary-bg)) padding-box, conic-gradient(from var(--angle), var(--bs-primary), var(--bs-success-text-emphasis), var(--bs-success), var(--bs-primary)) border-box;
  animation: rise 0.45s var(--web-ease) both, spin 2.6s linear infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}
.delegation.failed {
  border-color: rgba(var(--web-failed-rgb), 0.45);
}

.delegation-head {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.delegation-head::-webkit-details-marker {
  display: none;
}

.delegation-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--bs-primary);
  font-weight: 800;
  font-size: 16px;
  flex: none;
  background: linear-gradient(135deg, var(--web-sidebar-foot), var(--web-sidebar-foot-deep));
  box-shadow: 0 6px 16px -6px rgba(var(--web-shadow-rgb), 0.6);
}

.delegation.running .delegation-avatar {
  animation: ring 1.8s var(--web-ease) infinite;
}

@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(var(--bs-primary-rgb), 0);
  }
}
.delegation-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.delegation-agent {
  font-size: 14px;
  color: var(--bs-secondary-color);
}

.delegation-agent strong {
  color: var(--bs-emphasis-color);
  font-weight: 700;
}

.delegation-toolsets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.toolset-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--bs-success-bg-subtle);
  color: var(--bs-link-color);
  border-radius: 999px;
  padding: 2px 9px;
}

.delegation-status {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.delegation-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.delegation.running .delegation-status {
  background: var(--bs-primary-bg-subtle);
  color: var(--web-primary-deep);
}

.delegation.running .delegation-status::before {
  animation: blink 1s ease-in-out infinite;
}

.delegation.failed .delegation-status {
  background: rgba(var(--bs-danger-rgb), 0.14);
  color: var(--bs-danger);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
/* Answer text */
.markdown {
  color: var(--bs-body-color);
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown > :last-child {
  margin-bottom: 0;
}

/* A line between paragraphs, said here so a site's own reset of p can't flatten an answer (FX84). */
.markdown p {
  margin: 0 0 10px;
}

.markdown h1, .markdown h2, .markdown h3 {
  color: var(--bs-emphasis-color);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 22px 0 8px;
}

.markdown strong {
  color: var(--bs-emphasis-color);
}

.markdown code {
  font-family: var(--bs-font-monospace);
  font-size: 13px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  border-radius: 6px;
  padding: 1px 6px;
}

.markdown pre {
  background: var(--web-code-bg);
  border: var(--web-bar-edge);
  border-radius: 14px;
  padding: 14px 16px;
  overflow-x: auto;
}

.markdown pre code {
  background: none;
  color: var(--bs-body-color);
  padding: 0;
  font-size: 13px;
}

.markdown blockquote {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--bs-success-text-emphasis);
  color: var(--bs-secondary-color);
}

.markdown td img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 8px;
  background: var(--bs-white);
}

/* A product's photo beside its name (F34, Louis: "the text must not go underneath"): the cell keeps a lane for the photo, so a long name wraps beside it. */
/* Louis: "a min padding around the pics", then bigger, three times: 104 px, a cell tall enough for 10 px above and below. */
.markdown td:has(> img) {
  position: relative;
  padding-left: 128px;
  height: 124px;
}

.markdown img[data-original] {
  cursor: zoom-in;
}

/* The recipe's photo (FX24, Louis: "a fixed size to fit in our chat screen", "some rounded corners"): one fixed box, cropped to fit and never stretched, so a tall or a wide photo takes the same room; the product photos in a list's cells keep their own size above. */
.markdown img:not(td img) {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin: 10px 0;
  background: var(--bs-border-color);
}

.photo-dialog {
  padding: 16px;
  border: var(--web-bar-edge);
  border-radius: 18px;
  background: var(--bs-white);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  cursor: zoom-out;
  animation: fade 0.2s both;
}

.photo-dialog::backdrop {
  background: rgba(var(--bs-black-rgb), 0.7);
}

.photo-dialog img {
  display: block;
  width: min(560px, 100vw - 64px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.photo-dialog p {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--web-photo-text);
}

.markdown td:has(> img) > img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 104px;
  height: 104px;
  margin-right: 0;
}

.markdown table {
  border-collapse: separate;
  border-spacing: 0;
  border: var(--web-bar-edge);
  border-radius: 12px;
  overflow: hidden;
}

.markdown th {
  background: var(--web-code-bg);
  color: var(--bs-emphasis-color);
  font-weight: 600;
}

.markdown th, .markdown td {
  border-bottom: var(--web-bar-edge);
  padding: 8px 12px;
  text-align: left;
}

.markdown li::marker {
  color: var(--bs-primary);
}

/* Status lines */
.working, .delegation-waiting {
  color: var(--bs-secondary-color);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.working {
  background: linear-gradient(90deg, var(--bs-secondary-color) 0%, var(--bs-emphasis-color) 50%, var(--bs-secondary-color) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* F34, Louis: "maybe some small loader icon left of it". Its own colours: the label's text is clipped to its gradient. */
.working .spinner {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(var(--web-overlay-rgb), 0.14);
  border-top-color: var(--bs-primary);
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
.stopped {
  color: var(--bs-secondary-color);
  font-size: 13px;
  font-style: italic;
}

.error {
  color: var(--web-error-text);
  background: rgba(var(--bs-danger-rgb), 0.1);
  border: 1px solid rgba(var(--bs-danger-rgb), 0.3);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 14px;
}

.usage {
  font-size: 12px;
  color: var(--bs-tertiary-color);
  font-variant-numeric: tabular-nums;
}

.notice {
  max-width: 800px;
  margin: 0 auto 10px;
  background: var(--bs-primary-bg-subtle);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.35);
  border-radius: 12px;
  padding: 9px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: rise 0.3s var(--web-ease) both;
}

/* Composer: frosted glass with a glowing focus ring */
.composer {
  padding: 10px clamp(12px, 3.5vw, 32px) clamp(14px, 2.5vw, 26px);
  background: linear-gradient(to top, rgba(var(--bs-body-bg-rgb), 1) 60%, rgba(var(--bs-body-bg-rgb), 0));
}

.composer > * {
  max-width: 800px;
  margin: 0 auto;
}

.composer .attachments {
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(var(--bs-secondary-bg-rgb), 0.9);
  backdrop-filter: blur(14px);
  border: var(--web-bar-edge);
  border-radius: 22px;
  padding: 9px 9px 9px 12px;
  box-shadow: var(--bs-box-shadow);
  transition: border-color 0.25s var(--web-ease), box-shadow 0.25s var(--web-ease);
}

.input-row:focus-within {
  border-color: rgba(var(--bs-primary-rgb), 0.6);
  box-shadow: var(--web-glow);
}

.input-row textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  font: inherit;
  color: var(--bs-emphasis-color);
  background: none;
  padding: 7px 2px;
  max-height: 240px;
}

.input-row textarea::placeholder {
  color: var(--bs-tertiary-color);
}

.attach {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bs-secondary-color);
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--web-spring);
}

.attach:hover {
  background: var(--bs-primary-bg-subtle);
  color: var(--web-primary-deep);
  transform: rotate(90deg);
}

.attach input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.send, .stop {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: var(--web-on-primary);
  transition: transform 0.25s var(--web-spring), box-shadow 0.25s var(--web-ease), opacity 0.2s;
}

.send {
  background: var(--web-cta);
  background-size: 200% 100%;
  box-shadow: 0 8px 18px -6px rgba(var(--bs-primary-rgb), 0.8);
}

.send:not(:disabled):hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 24px -8px rgba(var(--bs-primary-rgb), 0.9);
}

.send:not(:disabled):active {
  transform: scale(0.94);
}

.stop {
  background: var(--web-sidebar-foot);
  font-size: 12px;
  animation: ring 1.8s var(--web-ease) infinite;
}

/* Code highlighting (highlight.js) */
.hljs-comment, .hljs-quote {
  color: var(--web-code-comment);
  font-style: italic;
}

.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-built_in {
  color: var(--bs-success-text-emphasis);
  font-weight: 600;
}

.hljs-string, .hljs-attr, .hljs-symbol, .hljs-bullet, .hljs-addition {
  color: var(--bs-primary-text-emphasis);
}

.hljs-number, .hljs-regexp, .hljs-variable, .hljs-template-variable {
  color: var(--web-code-number);
}

.hljs-title, .hljs-title.class_, .hljs-title.function_, .hljs-section, .hljs-type, .hljs-name {
  color: var(--bs-link-color);
}

.hljs-meta, .hljs-property, .hljs-params {
  color: var(--bs-secondary-color);
}

.hljs-deletion {
  color: var(--bs-danger);
}

/* Narrow screens: the sidebar stacks on top */
@media (max-width: 600px) {
  .user-message {
    max-width: 90%;
  }
}
/* Less motion when the system asks, unless the user switched the animations on in the sidebar's settings (F24:
   data-motion="on" on <html>, remembered in this browser). */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion=on]) :is(*, *::before, *::after) {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.delegation-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.12);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
  transition: transform 0.45s var(--web-spring), background 0.3s, color 0.3s, border-color 0.3s;
}

.delegation-chevron::before {
  content: "+";
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
}

.delegation[open] .delegation-chevron {
  transform: rotate(135deg);
  background: var(--web-cta);
  border-color: transparent;
  color: var(--web-on-primary);
  box-shadow: 0 8px 18px -8px rgba(var(--bs-primary-rgb), 0.9);
}

.delegation-head:hover .delegation-chevron {
  background: rgba(var(--bs-primary-rgb), 0.2);
}

.delegation[open] .delegation-head:hover .delegation-chevron {
  background: var(--web-cta);
}

/* The card, its task and its work open and close with a height transition where the browser can animate a details
   element's content (F24); elsewhere they pop as before. */
:root {
  interpolate-size: allow-keywords;
}

.delegation::details-content, .delegation-task::details-content, .delegation-work::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.45s var(--web-ease), content-visibility 0.45s allow-discrete;
}

.delegation[open]::details-content, .delegation-task[open]::details-content, .delegation-work[open]::details-content {
  height: auto;
}

.delegation:not([open]) {
  box-shadow: var(--bs-box-shadow-sm);
}

.delegation:not([open]):hover {
  box-shadow: var(--bs-box-shadow);
}

/* ---- Responsive layout and depth ---- */
/* On a wide screen the sidebar is a plain column beside the chat. */
@media (min-width: 992px) {
  .sidebar {
    position: relative;
    z-index: 3;
    overflow: hidden;
  }
}
/* The resize handle: invisible until hovered, then an orange grip. */
.resizer {
  position: relative;
  cursor: col-resize;
  z-index: 4;
  background: transparent;
  touch-action: none;
}

.resizer::after {
  content: "";
  position: absolute;
  inset: 0 3px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s var(--web-ease);
}

.resizer:hover::after, .resizing .resizer::after {
  background: linear-gradient(var(--bs-primary), var(--web-primary-deep));
  box-shadow: 0 0 12px rgba(var(--bs-primary-rgb), 0.6);
}

/* Hidden sidebar: it folds away, and a floating tab brings it back. */
.sidebar-hidden .app {
  grid-template-columns: 0 0 minmax(0, 1fr);
}

.sidebar-hidden .sidebar {
  visibility: hidden;
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
}

.sidebar-tab {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  place-items: center;
  color: var(--bs-emphasis-color);
  background: var(--bs-secondary-bg);
  border: var(--web-bar-edge);
  box-shadow: var(--bs-box-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.25s var(--web-ease), transform 0.3s var(--web-spring);
}

.sidebar-hidden .sidebar-tab {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.sidebar-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(var(--bs-primary-rgb), 0.55);
}

/* More depth: layered, tinted shadows that lift on hover. */
.user-message {
  box-shadow: 0 1px 0 rgba(var(--web-overlay-rgb), 0.12) inset, 0 12px 28px -12px rgba(var(--web-shadow-rgb), 0.75), 0 2px 6px rgba(var(--web-shadow-rgb), 0.15);
}

.delegation {
  box-shadow: 0 1px 0 rgba(var(--web-overlay-rgb), 0.05) inset, 0 14px 34px -14px rgba(var(--web-shadow-rgb), 0.28), 0 3px 8px rgba(var(--web-shadow-rgb), 0.06);
  transition: box-shadow 0.3s var(--web-ease), transform 0.3s var(--web-ease);
}

.delegation:not([open]):hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(var(--web-overlay-rgb), 0.05) inset, 0 18px 40px -14px rgba(var(--web-shadow-rgb), 0.34), 0 4px 10px rgba(var(--web-shadow-rgb), 0.08);
}

.tool:hover, .suggestion:hover {
  box-shadow: 0 16px 34px -14px rgba(var(--web-shadow-rgb), 0.3), 0 3px 8px rgba(var(--web-shadow-rgb), 0.06);
}

.input-row {
  box-shadow: 0 1px 0 rgba(var(--web-overlay-rgb), 0.05) inset, 0 18px 40px -18px rgba(var(--web-shadow-rgb), 0.35), 0 4px 12px rgba(var(--web-shadow-rgb), 0.06);
}

.markdown pre {
  box-shadow: 0 1px 0 rgba(var(--web-overlay-rgb), 0.05) inset, 0 8px 20px -14px rgba(var(--web-shadow-rgb), 0.25);
}

/* Below Bootstrap's lg breakpoint: a frosted top bar, and the sidebar slides in as an offcanvas. */
.topbar {
  display: none;
}

@media (max-width: 991.98px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sidebar-hidden .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(var(--bs-tertiary-bg-rgb), 0.86);
    backdrop-filter: blur(14px);
    color: var(--bs-emphasis-color);
    position: sticky;
    top: 0;
    z-index: 6;
    border-bottom: var(--web-bar-edge);
  }
  .topbar .brand {
    padding: 0;
  }
  .topbar .icon {
    color: var(--bs-body-color);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 18px;
  }
  .topbar .icon:hover {
    background: rgba(var(--web-overlay-rgb), 0.08);
    color: var(--bs-emphasis-color);
  }
  .sidebar.offcanvas-lg {
    --bs-offcanvas-width: min(320px, 86vw);
    --bs-offcanvas-transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    border-right: 0;
  }
  .sidebar-hidden .sidebar {
    visibility: visible;
  }
}
@media (min-width: 992px) {
  /* At lg Bootstrap makes the offcanvas a plain element again; keep it a full-height column. */
  .sidebar.offcanvas-lg {
    display: flex;
    flex-direction: column;
    visibility: visible;
  }
}
/* Spotlight: cards carry a soft orange light where the mouse is (--mx/--my set by js/chat.js). */
.suggestion, .delegation, .tool {
  position: relative;
  isolation: isolate;
}

.suggestion::after, .delegation::after, .tool::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--bs-primary-rgb), 0.14), transparent 60%);
  transition: opacity 0.3s var(--web-ease);
}

.suggestion:hover::after, .delegation:hover::after, .tool:hover::after {
  opacity: 1;
}

/* Sidebar: items slide a little and show an orange marker; New chat gets a light sweep. */
.chat-item {
  transition: background 0.2s var(--web-ease), transform 0.25s var(--web-spring);
}

.chat-item:hover {
  transform: translateX(3px);
}

.chat-item:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2px;
  border-radius: 2px;
  background: rgba(var(--bs-primary-rgb), 0.7);
}

.chat-item .icon:hover {
  background: rgba(var(--bs-danger-rgb), 0.18);
  color: var(--bs-danger);
}

.new-chat {
  overflow: hidden;
}

.new-chat::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(var(--web-overlay-rgb), 0.45), transparent);
}

.new-chat:hover::after {
  transition: transform 0.7s var(--web-ease);
  transform: translateX(120%) skewX(-20deg);
}

/* Messages */
.user-message {
  transition: transform 0.25s var(--web-spring), box-shadow 0.25s var(--web-ease);
}

.user-message:hover {
  transform: translateY(-1px);
}

.markdown a {
  color: var(--bs-success-text-emphasis);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--bs-primary), var(--bs-primary)) 0 100%/0 2px no-repeat;
  transition: background-size 0.3s var(--web-ease), color 0.2s;
}

.markdown a:hover {
  background-size: 100% 2px;
  color: var(--bs-emphasis-color);
}

.markdown tr {
  transition: background 0.15s;
}

.markdown tbody tr:hover {
  background: var(--bs-primary-bg-subtle);
}

.markdown pre {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.markdown pre:hover {
  border-color: var(--web-border-hover);
}

.thinking summary {
  transition: background 0.2s, color 0.2s;
}

.thinking summary:hover {
  color: var(--bs-emphasis-color);
}

/* Delegation cards and tools */
.delegation:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}

.delegation-head:hover .delegation-chevron {
  transform: scale(1.08);
}

.delegation[open] .delegation-head:hover .delegation-chevron {
  transform: rotate(135deg) scale(1.08);
}

.delegation[open] .delegation-head:hover .delegation-chevron {
  transform: rotate(90deg) translateX(2px);
}

.toolset-chip {
  transition: transform 0.2s var(--web-spring), background 0.2s, color 0.2s;
}

.toolset-chip:hover {
  transform: translateY(-1px);
  background: var(--bs-success);
  color: var(--web-on-primary);
}

.tool {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--web-ease);
}

.tool:hover {
  transform: translateX(2px);
  border-left-color: var(--bs-primary);
}

/* Composer: the send button breathes once there's something to send. */
.input-row:hover {
  border-color: var(--web-border-hover);
}

.send:not(:disabled) {
  animation: breathe 2.4s var(--web-ease) infinite;
}

@keyframes breathe {
  0%, 100% {
    box-shadow: 0 8px 18px -6px rgba(var(--bs-primary-rgb), 0.8);
  }
  50% {
    box-shadow: 0 8px 26px -4px rgba(var(--bs-primary-rgb), 1);
  }
}
/* The pulse and the suggestions fit any width: no sideways scroll, and full-width cards on a phone. */
.messages {
  overflow-x: hidden;
}

/* A faint paper grain over the soft background, so large areas never look flat or digital (fixed, under everything). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* What is right for a screen and wrong for paper (FX154). The grain is a layer fixed to the window, which is drawn
   again on every printed sheet, margins and all, and blends with what is under it, so the browser turned each page
   into a picture: a grey cast and a file of many megabytes. And a page that says it is dark has its sheet painted
   with the browser's own dark canvas, which no background rule reaches: the margins printed black. Paper is light. */
@media print {
  body::before, body::after {
    display: none;
  }
  :root {
    color-scheme: light;
  }
}
.app {
  position: relative;
  z-index: 1;
}

.conversation {
  background: transparent;
}

/* A gradient, not a colour: at lg Bootstrap sets an offcanvas's background-color to transparent !important. */
.sidebar {
  background-image: linear-gradient(color-mix(in srgb, var(--bs-tertiary-bg) 94%, transparent), color-mix(in srgb, var(--bs-tertiary-bg) 94%, transparent));
}

/* Type: balanced headline lines, no lone last words in answers, figures that line up. */
.empty h1 {
  text-wrap: balance;
  letter-spacing: -1.6px;
  font-weight: 800;
}

.markdown p, .markdown li {
  text-wrap: pretty;
}

.markdown {
  font-variant-numeric: tabular-nums;
}

/* Hairlines, not borders: a touch of charcoal mixed into the background, and an inner light on raised surfaces. */
.suggestion, .tool, .delegation, .input-row, .markdown pre, .chip {
  border-color: color-mix(in srgb, var(--bs-emphasis-color) 10%, var(--bs-body-bg));
}

/* The sidebar: a small label over the chats, as in a well-made app. */
.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bs-tertiary-color);
  padding: 6px 12px 0;
}

/* Focus is always visible, in orange, and never a browser default. */
:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bs-primary) 70%, transparent);
  outline-offset: 3px;
}

.input-row:focus-within {
  border-color: color-mix(in srgb, var(--bs-primary) 55%, var(--bs-body-bg));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 12%, transparent), 0 18px 40px -18px rgba(var(--web-shadow-rgb), 0.3);
}

/* Scrolling never shifts the layout. */
.messages, .chat-list {
  scrollbar-gutter: stable;
}

/* The tagline under the logo in the sidebar. */
.brand-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* A brand of a mark and a name keeps them on one line, the tagline under them (F144). */
.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--bs-secondary-color);
  text-wrap: balance;
  animation: rise 0.7s 0.9s var(--web-ease) both;
}

/* ---- The page behind everything (F20, F151.6): the theme's lines on the page, held still while it scrolls, and
   the theme's lights on a layer under all the page holds, so the sidebar, the chat and the composer's fade all sit
   over the same light, which holds still. ---- */
body {
  background: var(--web-page-lines), var(--bs-body-bg);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--web-page-lights);
}

/* On a site that switches it on, the lights drift and breathe slowly (FX163, Louis: "can we make the background
   move?", "the lines can it be a switch"); moved as one layer, so only its place changes, never its picture. */
body:has(.site.page-moves)::after {
  inset: -6%;
  animation: web-page-drift 40s ease-in-out infinite alternate;
}

@keyframes web-page-drift {
  from {
    transform: translate(-2%, -1%) scale(1);
  }
  to {
    transform: translate(2%, 1.5%) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.site.page-moves)::after {
    animation: none;
  }
}
.conversation {
  background: transparent;
}

.composer {
  background: linear-gradient(to top, rgba(var(--bs-body-bg-rgb), 0.92) 55%, rgba(var(--bs-body-bg-rgb), 0));
}

.user-message {
  box-shadow: 0 1px 0 rgba(var(--web-overlay-rgb), 0.08) inset, 0 12px 28px -12px rgba(var(--bs-black-rgb), 0.7);
}

.new-chat {
  box-shadow: 0 8px 22px -8px rgba(var(--bs-primary-rgb), 0.6);
}

.tagline {
  color: var(--bs-secondary-color);
}

/* ---- The three panels (F20): sidebar, chat, Werk. From xl (1200px) the Werk panel is a fourth column that folds away
   (.work-hidden); below it, a Bootstrap offcanvas that slides in from the right (out of the grid, so nothing moves). ---- */
@media (min-width: 1200px) {
  .app {
    grid-template-columns: var(--sidebar-w, 280px) 8px minmax(0, 1fr) var(--work-w, 330px);
  }
  .sidebar-hidden .app {
    grid-template-columns: 0 0 minmax(0, 1fr) var(--work-w, 330px);
  }
  .work-hidden .app {
    grid-template-columns: var(--sidebar-w, 280px) 8px minmax(0, 1fr) 0;
  }
  .sidebar-hidden.work-hidden .app {
    grid-template-columns: 0 0 minmax(0, 1fr) 0;
  }
  .work.offcanvas-xl {
    display: flex;
    flex-direction: column;
    visibility: visible;
  }
  /* Its column is 0 wide when folded, so its border would stick out by 1px and give the whole page scrollbars. */
  .work-hidden .work {
    visibility: hidden;
    border: 0;
  }
}
.work {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--bs-body-color);
  border-left: var(--web-bar-edge);
  /* A gradient, not a colour: Bootstrap makes an offcanvas's background-color transparent at its breakpoint. */
  background-image: linear-gradient(color-mix(in srgb, var(--bs-tertiary-bg) 88%, transparent), color-mix(in srgb, var(--bs-tertiary-bg) 88%, transparent));
}

@media (max-width: 1199.98px) {
  .work.offcanvas-xl {
    --bs-offcanvas-width: min(360px, 90vw);
    --bs-offcanvas-transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    background-color: var(--bs-tertiary-bg);
  }
}
.work-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 12px 20px;
  border-bottom: var(--web-bar-edge);
}

.work-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--bs-emphasis-color);
}

.work-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--bs-primary-text-emphasis);
  background: var(--bs-primary-bg-subtle);
  border-radius: 999px;
  padding: 1px 8px;
}

.work-head .icon {
  margin-left: auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--bs-secondary-color);
}

.work-head .icon + .icon {
  margin-left: 0;
}

.work-head .icon:hover {
  background: rgba(var(--web-overlay-rgb), 0.08);
  color: var(--bs-emphasis-color);
}

.work-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-gutter: stable;
}

.work-item {
  background: var(--bs-secondary-bg);
  border: var(--web-bar-edge);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rise 0.4s var(--web-ease) both;
}

.work-item.running {
  border: 1px solid transparent;
  background: linear-gradient(var(--bs-secondary-bg), var(--bs-secondary-bg)) padding-box, conic-gradient(from var(--angle), var(--bs-primary), var(--bs-success-text-emphasis), var(--bs-primary)) border-box;
  animation: rise 0.4s var(--web-ease) both, spin 2.6s linear infinite;
}

.work-item.running .work-avatar {
  animation: ring 1.8s var(--web-ease) infinite;
}

.work-status {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
}

.work-item.running .work-status {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
}

.work-item.failed .work-status {
  background: rgba(var(--bs-danger-rgb), 0.14);
  color: var(--bs-danger);
}

.work-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.work-steps::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--bs-primary), var(--bs-success-text-emphasis));
  opacity: 0.45;
}

.work-step {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  min-width: 0;
  animation: rise 0.3s var(--web-ease) both;
}

.work-step-mark {
  font-weight: 700;
  color: var(--bs-success-text-emphasis);
  width: 12px;
  flex: none;
}

.work-step.waiting, .work-step.waiting .work-step-mark {
  color: var(--bs-primary-text-emphasis);
}

.work-step.failed .work-step-mark {
  color: var(--bs-danger);
}

.work-step-name {
  font-weight: 600;
  color: var(--bs-emphasis-color);
  flex: none;
}

.work-step-args {
  font-family: var(--bs-font-monospace);
  font-size: 11px;
  color: var(--bs-tertiary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* F30 step 6b: a minion the specialist handed a page to, nested under its step. */
.work-step.minion {
  align-items: flex-start;
}

.work-steps.nested {
  padding-left: 10px;
  margin-top: 2px;
}

.work-steps.nested::before {
  opacity: 0.25;
}

.toolset-chip.model {
  background: var(--bs-primary-bg-subtle, var(--bs-success-bg-subtle));
  color: var(--bs-primary-text-emphasis, var(--bs-link-color));
}

.delegation.minion {
  margin-left: 12px;
}

.delegation.minion .delegation-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
  background: linear-gradient(135deg, var(--bs-success), var(--bs-success-text-emphasis));
  color: var(--web-on-primary);
}

/* Below lg the Werk tab sits over the chat's top right: the messages start under it. */
@media (max-width: 991.98px) {
  .messages {
    padding-top: 64px;
  }
}
/* ---- The sidebar's contents (F20 step 4). ---- */
/* A line icon in the text colour: .ic plus one of the .i-* icons (their --icon). */
.ic {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}

.side-search kbd, .search-dialog kbd, .site-search-button kbd {
  margin-left: auto;
  font: 600 11px var(--bs-font-sans-serif);
  color: var(--bs-tertiary-color);
  background: rgba(var(--web-overlay-rgb), 0.06);
  border: var(--web-bar-edge);
  border-radius: 6px;
  padding: 1px 6px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--bs-body-color);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.side-link:hover {
  background: rgba(var(--web-overlay-rgb), 0.06);
  color: var(--bs-emphasis-color);
}

.side-link .ic {
  color: var(--bs-secondary-color);
}

.side-link:hover .ic {
  color: var(--bs-primary);
}

.sidebar-label {
  padding-top: 14px;
}

.sidebar-label-row .icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 16px;
  color: var(--bs-secondary-color);
}

.chat-item .item-menu {
  opacity: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--bs-secondary-color);
}

.chat-item:hover .item-menu, .chat-item.active .item-menu, .item-menu[aria-expanded=true] {
  opacity: 1;
}

.chat-item .item-menu:hover {
  background: rgba(var(--web-overlay-rgb), 0.08);
  color: var(--bs-emphasis-color);
}

/* The chat menus (Bootstrap dropdowns), in the theme. */
.sidebar .dropdown-menu {
  --bs-dropdown-bg: var(--web-menu-bg);
  --bs-dropdown-border-color: var(--bs-border-color);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: rgba(var(--web-overlay-rgb), .07);
  --bs-dropdown-link-hover-color: var(--bs-emphasis-color);
  --bs-dropdown-link-active-bg: rgba(var(--bs-primary-rgb), .2);
  --bs-dropdown-divider-bg: var(--bs-border-color);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(var(--bs-black-rgb), 0.7);
  font-size: 14px;
  min-width: 210px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 7px 10px;
}

.dropdown-item .ic {
  color: var(--bs-secondary-color);
}

.dropdown-item:hover .ic {
  color: var(--bs-primary);
}

.dropdown-item.danger, .dropdown-item.danger .ic {
  color: var(--bs-danger);
}

/* The footer: a profile card, then the settings. */
.side-footer {
  margin: 0 -14px -16px;
  background: var(--web-sidebar-foot);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--web-on-primary);
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-success-text-emphasis));
  flex: none;
}

.profile-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.profile-who strong {
  color: var(--bs-emphasis-color);
  font-size: 14px;
}

.profile-who small {
  color: var(--bs-secondary-color);
  font-size: 11.5px;
}

/* The chat search (Components/ChatSearch.razor). */
.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(var(--web-backdrop-rgb), 0.6);
  backdrop-filter: blur(4px);
  animation: fade 0.2s ease both;
}

.search-dialog {
  position: fixed;
  z-index: 1051;
  top: min(14vh, 120px);
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 100vw - 32px);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  border-radius: 18px;
  overflow: hidden;
  background: var(--web-dialog-bg);
  border: var(--web-bar-edge);
  box-shadow: 0 30px 80px -20px rgba(var(--bs-black-rgb), 0.8), 0 0 0 1px rgba(var(--bs-primary-rgb), 0.08);
  animation: pop 0.25s var(--web-spring) both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.98);
  }
}
.search-result .ic {
  color: var(--bs-secondary-color);
}

.search-result.selected {
  background: rgba(var(--bs-primary-rgb), 0.12);
}

.search-result.selected .ic {
  color: var(--bs-primary);
}

/* What a search window holds, the chat's and a site's (F164.2): the box, the results, the foot. */
.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: var(--web-bar-edge);
  color: var(--bs-secondary-color);
}

.search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--bs-emphasis-color);
}

.search-input input::placeholder {
  color: var(--bs-tertiary-color);
}

.search-results {
  overflow-y: auto;
  padding: 8px;
}

.search-group {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bs-tertiary-color);
  padding: 8px 10px 4px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  color: var(--bs-body-color);
}

.search-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.search-text strong {
  color: var(--bs-emphasis-color);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-text small {
  color: var(--bs-secondary-color);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-tag {
  font-size: 11px;
  color: var(--bs-secondary-color);
  background: rgba(var(--web-overlay-rgb), 0.06);
  border-radius: 999px;
  padding: 1px 8px;
}

.search-none {
  padding: 24px;
  text-align: center;
  color: var(--bs-secondary-color);
}

.search-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-top: var(--web-bar-edge);
  font-size: 12px;
  color: var(--bs-tertiary-color);
}

.search-foot kbd {
  margin: 0;
}

.i-compass {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m15.5 8.5-2 5-5 2 2-5z'/></svg>");
}

.i-sparkle {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v4M12 17v4M3 12h4M17 12h4M6.5 6.5l2.5 2.5M15 15l2.5 2.5M6.5 17.5 9 15M15 9l2.5-2.5'/></svg>");
}

.i-folder {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h6l2 2h10v11H3z'/></svg>");
}

.i-archive {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h18v5H3zM5 9v11h14V9M10 13h4'/></svg>");
}

/* A magnifier: every search box and button, the chat's and a site's (F164.2). */
.i-search {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 21 21'/></svg>");
}

.i-chat {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H9l-5 4z'/></svg>");
}

/* A page: the packs' screens in the admin's sidebar (F144), and any site's page that lists one. */
.i-file {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h8l5 5v13H6z'/><path d='M14 3v5h5M9 13h7M9 17h7'/></svg>");
}

/* The admin's home (F144): a house. */
.i-home {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 11 12 4l9 7M5 10v10h14V10M10 20v-6h4v6'/></svg>");
}

.chat-title.muted {
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.chat-heading .item-menu {
  opacity: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--bs-secondary-color);
}

.chat-heading .item-menu:hover {
  background: rgba(var(--web-overlay-rgb), 0.08);
  color: var(--bs-emphasis-color);
}

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-body-color);
  background: rgba(var(--web-overlay-rgb), 0.04);
  border: var(--web-bar-edge);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.header-button:hover, .header-button[aria-expanded=true] {
  color: var(--bs-emphasis-color);
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  background: rgba(var(--web-overlay-rgb), 0.07);
}

.header-button .ic {
  color: var(--bs-primary);
}

.pill-plus {
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
  color: var(--web-on-primary);
  background: var(--web-cta);
  box-shadow: 0 8px 20px -10px rgba(var(--bs-primary-rgb), 0.8);
}

.pill-plus:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(var(--bs-primary-rgb), 0.95);
}

.dropdown-item.active, .dropdown-item:active {
  background: rgba(var(--bs-primary-rgb), 0.14);
  color: var(--bs-emphasis-color);
}

.dropdown-item.active .ic {
  color: var(--bs-primary);
}

/* Every menu in the app, in the theme (the sidebar's rule, for the top bar too). */
.app .dropdown-menu {
  --bs-dropdown-bg: var(--web-menu-bg);
  --bs-dropdown-border-color: var(--bs-border-color);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: rgba(var(--web-overlay-rgb), .07);
  --bs-dropdown-link-hover-color: var(--bs-emphasis-color);
  --bs-dropdown-link-active-bg: rgba(var(--bs-primary-rgb), .2);
  --bs-dropdown-divider-bg: var(--bs-border-color);
  --bs-dropdown-header-color: var(--bs-tertiary-color);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(var(--bs-black-rgb), 0.7);
  font-size: 14px;
  min-width: 210px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .messages {
    padding-top: clamp(20px, 4vw, 44px);
  }
}
.toast-pill .ic {
  color: var(--bs-primary);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.96);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
}
.i-check {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>");
}

.i-user {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/></svg>");
}

.locate-button .ic {
  color: var(--bs-primary);
}

/* The message box in the middle of an empty chat, at a width of its own. */
.composer-centred {
  width: min(680px, 100%);
  padding: 6px 0 0;
  background: none;
  animation: rise 0.6s 0.1s var(--web-ease) both;
}

.composer-centred > * {
  max-width: none;
}

.tool-button .ic {
  width: 17px;
  height: 17px;
}

.tool-button-label .ic {
  color: var(--bs-primary);
}

.composer .send, .composer .stop {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.dropup .dropdown-menu {
  margin-bottom: 8px !important;
}

.app .composer .dropdown-menu {
  --bs-dropdown-bg: var(--web-menu-bg);
  --bs-dropdown-border-color: var(--bs-border-color);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: rgba(var(--web-overlay-rgb), .07);
  --bs-dropdown-link-hover-color: var(--bs-emphasis-color);
}

@media (max-width: 600px) {
  .tool-button-label {
    font-size: 0;
    gap: 0;
  }
  .tool-button-label .ic {
    margin: 0;
  }
  .model-button {
    font-size: 12px;
  }
}
/* The composer's icons. */
.i-plus {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>");
}

/* ---- Message actions and sources (F20 step 7). ---- */
.message-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: -6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.turn:hover .message-actions, .message-actions:focus-within, .turn:last-child .message-actions {
  opacity: 1;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  min-width: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--bs-secondary-color);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.action:hover {
  background: rgba(var(--web-overlay-rgb), 0.07);
  color: var(--bs-emphasis-color);
}

.action .ic {
  width: 15px;
  height: 15px;
}

.i-refresh {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12a8 8 0 1 1-2.3-5.7L20 8M20 3v5h-5'/></svg>");
}

.side-link.active {
  background: rgba(var(--web-overlay-rgb), 0.07);
  color: var(--bs-emphasis-color);
}

.side-link.active .ic {
  color: var(--bs-primary);
}

.usage-meter .ic {
  color: var(--bs-primary);
}

.about {
  max-width: 640px;
  margin: 0 auto 22px !important;
  text-wrap: balance;
}

/* The faces a mocked business's brand may wear (F127.2, Louis's pick: self-host the fonts), the framework's own files
   (wwwroot/fonts/showroom, each family beside its SIL Open Font License): the Latin subset of each, variable in
   weight. A browser fetches a face only when a page wears it, so they load on the demo pages alone, and no third party
   sees a visitor. Each shows its fallback until it has loaded (font-display: swap). The paths are from where a site's
   CSS ends up, wwwroot/css/app.css, to the framework's static files. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/cormorant-garamond/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/cormorant-garamond/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/jost/jost.woff2") format("woff2");
}
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/gloock/gloock.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/lora/lora.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/lora/lora-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/josefin-sans/josefin-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/bodoni-moda/bodoni-moda.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../_content/louis-agent.web/fonts/showroom/hanken-grotesk/hanken-grotesk.woff2") format("woff2");
}
/* The colours of a page on paper (the PaperSheet component, with web/paper/sheet): black and near black on white,
   since a light grey doesn't survive a printer. They are values, so they sit here beside the theme's names, and are
   for paper only, and only for a page that holds a sheet. They are set on the page's root, whose background is what
   a sheet's margins are painted with: set lower down, the margins printed dark around a white page. A theme sets its
   colours under the page's theme and style, which weighs more than the root alone, so the second selector weighs as
   much again and these still win on paper whatever look the page is in. */
@media print {
  :root:has(.paper-sheet),
  :root[data-theme][data-style]:has(.paper-sheet) {
    --bs-body-bg: #fff;
    --bs-body-color: #111;
    --bs-emphasis-color: #000;
    --bs-secondary-color: #1c1f23;
    --bs-tertiary-color: #2a2e33;
    --bs-border-color: #6b7079;
    --bs-secondary-bg: #fff;
    --bs-tertiary-bg: #fff;
    --web-ok: #0f5c26;
    background: #fff;
    color: #111;
  }
  body:has(.paper-sheet) {
    background: #fff;
    color: #111;
  }
}
/* A page that prints as itself (the PaperSheet component): "Save as PDF" is the browser's print dialog, and these
   rules set such a page for A4, in the page's own desktop layout, in ink dark enough to print, every link a QR code.
   Here is what belongs to the whole sheet: its size and footer, its colours, the site's frame left off, and the
   bands and words every page shares. Each control's own layout on paper sits beside it. All of it is for paper
   only, and only for a page that holds a sheet. A site lists this among its styles. */
/* The sheet. The page's own footer, its number, stands where the browser would print its date, title and address. */
@page paper {
  size: A4;
  margin: 13mm 14mm 15mm;
  @top-left {
    content: "";
  }
  @top-center {
    content: "";
  }
  @top-right {
    content: "";
  }
  @bottom-left {
    content: "";
  }
  @bottom-right {
    content: counter(page) " of " counter(pages);
    font: 8pt system-ui, "Segoe UI", sans-serif;
    color: var(--bs-tertiary-color);
  }
}
@media print {
  /* The page's colours on paper, black on white, are values, so they are in settings/_paper.scss beside the
     theme's names. */
  body:has(.paper-sheet)::before,
  body:has(.paper-sheet)::after {
    display: none;
  }
  /* What is the site's frame and not the page, and every button, since paper can't press one. */
  body:has(.paper-sheet) .site-header,
  body:has(.paper-sheet) .site-footer,
  body:has(.paper-sheet) .site-index,
  body:has(.paper-sheet) .site-progress,
  body:has(.paper-sheet) .site-up,
  body:has(.paper-sheet) .site-corner,
  body:has(.paper-sheet) .chat-widget,
  body:has(.paper-sheet) .guide-button,
  .paper-sheet .btn,
  .paper-sheet .band-pager {
    display: none !important;
  }
  /* The frame's column, without its width, its room or its entrance, which would print half faded. */
  body:has(.paper-sheet) .site,
  body:has(.paper-sheet) .site-main {
    display: block;
    min-height: 0;
    max-width: none;
    padding: 0;
    background: none;
    animation: none;
    opacity: 1;
    translate: none;
  }
  .paper-sheet {
    page: paper;
    font-size: 10.15pt;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* Nothing rises or fades in on paper: what would enter is simply there. */
  .paper-sheet * {
    animation: none !important;
    transition: none !important;
  }
  /* The big words are plain black on paper. */
  .paper-sheet .chrome {
    margin-bottom: 0;
    padding-bottom: 0;
    background: none;
    color: var(--bs-emphasis-color);
    -webkit-text-fill-color: var(--bs-emphasis-color);
  }
  /* A band takes the room its words need, with a rule over it. */
  .paper-sheet .band {
    display: grid;
    gap: 3mm;
    min-height: 0;
    max-width: none;
    margin-top: 7mm;
    padding: 5mm 0 0;
    border-top: 1px solid var(--bs-border-color);
  }
  .paper-sheet .band:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  /* A topic stays on the sheet of the heading under it, never alone at the foot of the one before. */
  .paper-sheet .topic {
    font-size: 7.75pt;
    font-weight: 600;
    color: var(--bs-tertiary-color);
    break-after: avoid;
  }
  .paper-sheet .band h2 {
    max-width: none;
    font-size: 16.75pt;
    line-height: 1.15;
    break-after: avoid;
  }
  .paper-sheet h3 {
    break-after: avoid;
  }
  .paper-sheet .summary {
    max-width: none;
    font-size: 10.35pt;
    line-height: 1.5;
    color: var(--bs-body-color);
  }
  .paper-sheet a {
    color: inherit;
    text-decoration: none;
  }
}
