/* =====================================================================
   FEDR theme — components.  SPEC M9.

   tokens.css is loaded before this file and holds every colour, size and
   duration.  Nothing here may contain a literal colour or name an --n-*
   primitive; use the semantic roles (M9 §3.3).

   Layout rules that were measured rather than derived keep their original
   comments — the header's one-row guarantee, the brand's width floor, the
   rail's clipping box, the inset underline.  Those were expensive to find.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Bootstrap bridge (M9 §3.5) — map Bootstrap's own variables FROM the
   tokens, so its components inherit the identity instead of being
   overridden one at a time.
   --------------------------------------------------------------------- */
:root {
  --bs-body-font-family: var(--font-ui);
  --bs-body-font-size: var(--t-16);
  --bs-body-line-height: var(--lh-ui);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--surface);
  --bs-emphasis-color: var(--text);
  --bs-secondary-color: var(--text-secondary);
  --bs-tertiary-color: var(--text-muted);
  --bs-secondary-bg: var(--surface-sunken);
  --bs-tertiary-bg: var(--surface-sunken);
  --bs-border-color: var(--line);
  --bs-border-color-translucent: var(--line);
  --bs-border-radius: var(--r-2);
  --bs-border-radius-sm: var(--r-1);
  --bs-border-radius-lg: var(--r-3);
  --bs-link-color: var(--link);
  --bs-link-hover-color: var(--link);
  --bs-primary: var(--fedr-accent);
  --bs-danger: var(--fedr-danger);
  --bs-success: var(--fedr-success);
  --bs-focus-ring-color: transparent;
}

/* ---------------------------------------------------------------------
   1. Base
   --------------------------------------------------------------------- */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { min-height: 100%; position: relative; color-scheme: light; }
[data-bs-theme="dark"] { color-scheme: dark; }

/* Offset for the fixed-top navbar. app.js refines this to the live header height;
   this is the fallback. One value at every width — the bar is one row at every
   width, so a taller narrow-screen fallback would only make the page jump on load. */
body {
  font-family: var(--font-ui);
  font-size: var(--t-16);
  line-height: var(--lh-ui);
  color: var(--text);
  background: var(--surface);
  padding-top: calc(var(--fedr-header-h) + var(--s-4));
  padding-bottom: 2.5em;
}
@media print { body { padding-top: 0 !important; } }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
/* NOT a global a:visited. At specificity (0,1,1) it outranks every single-class
   component rule, so one global declaration silently repaints any chip, tab or
   card that happens to be an <a> and happens to have been clicked. Visited is a
   property of a *result*, so it is declared only where results live (M9 §11). */
hr { border-color: var(--line); opacity: 1; }
legend { display: none; }   /* JSP parity: both #searchOptions and the home fieldset rely on this. */

/* Numbers that sit in a column or change in place must not jitter (M9 §4). */
.char-counter, .chat-thinking-elapsed, .source-index,
.fedr-cite, .fedr-preview-badge, #results-status, #result .info,
.cache-meta,
#facet-body .badge, #facet-body-mobile .badge { font-variant-numeric: tabular-nums; }

/* Focus (M9 §2, law 3). The ink ring carries the 3:1 the accent cannot; the
   accent halo behind it carries the brand. Both, always, in that order. */
#page-root *:focus-visible,
.navbar :focus-visible,
.modal :focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: var(--r-1);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--fedr-accent) 55%, transparent);
}
/* On the ink bar the ring has to invert: --text is ink, and an ink outline on an
   ink bar is no indicator at all. The accent halo alone would not carry 3:1
   there either (law 3 cuts both ways), so the outline becomes the bar's own
   text colour and the halo stays. */
.fedr-bar :focus-visible { outline-color: var(--bar-text); }

/* showView() focuses each view's root (tabindex=-1) so screen readers announce it.
   Those targets are not interactive, so suppress the visible ring. */
#page-root [tabindex="-1"]:focus, #page-root [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fedr-chat-log { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   2. Wordmark and icons (M9 §5, §6)
   --------------------------------------------------------------------- */
/* The mark is a <symbol> in index.html's sprite, used twice. currentColor does
   not resolve through <img> — an SVG referenced that way is an isolated
   document — so it must be <use>d, never src'd. */
.fedr-wordmark { display: block; height: auto; color: var(--bar-brand); fill: currentColor; }
.navbar-brand .fedr-wordmark { width: 104px; }
/* The lede -- wordmark over one line of text -- is the same in both modes.
   AI Mode used to set the mark at 150px and carry a heading as well, so the two
   landing screens disagreed about both size and structure. */
#home-view .fedr-wordmark,
.chat-welcome .fedr-wordmark { width: 260px; color: var(--fedr-accent); margin: 0 auto; }
.chat-welcome .fedr-wordmark { margin-bottom: var(--s-3); }

.ic { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none;
      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
.ic-sm { width: 16px; height: 16px; stroke-width: 1.7; vertical-align: -0.2em; }

/* ---------------------------------------------------------------------
   3. Buttons — three variants, and no more
   --------------------------------------------------------------------- */
.btn {
  --bs-btn-focus-box-shadow: none;
  font-family: var(--font-ui); font-weight: 500; border-radius: var(--r-2);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn-primary {
  --bs-btn-bg: var(--fedr-accent); --bs-btn-border-color: var(--fedr-accent);
  --bs-btn-color: var(--fedr-on-accent);
  --bs-btn-hover-bg: var(--fedr-accent-hover); --bs-btn-hover-border-color: var(--fedr-accent-hover);
  --bs-btn-hover-color: var(--fedr-on-accent);
  --bs-btn-active-bg: var(--fedr-accent-hover); --bs-btn-active-border-color: var(--fedr-accent-hover);
  --bs-btn-active-color: var(--fedr-on-accent);
  --bs-btn-disabled-bg: var(--surface-sunken); --bs-btn-disabled-border-color: var(--line);
  --bs-btn-disabled-color: var(--text-muted);
  font-weight: 600;
}
.btn-secondary, .btn-outline-secondary, .btn-light {
  --bs-btn-bg: transparent; --bs-btn-border-color: var(--line-control); --bs-btn-color: var(--text);
  --bs-btn-hover-bg: var(--surface-sunken); --bs-btn-hover-border-color: var(--line-control);
  --bs-btn-hover-color: var(--text);
  --bs-btn-active-bg: var(--surface-sunken); --bs-btn-active-border-color: var(--line-control);
  --bs-btn-active-color: var(--text);
  --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: var(--line);
  --bs-btn-disabled-color: var(--text-muted);
}
.btn-link { --bs-btn-color: var(--text-secondary); --bs-btn-hover-color: var(--text); text-decoration: none; }
.btn-danger {
  --bs-btn-bg: var(--fedr-danger); --bs-btn-border-color: var(--fedr-danger);
  --bs-btn-color: var(--fedr-on-danger);
  --bs-btn-hover-bg: var(--fedr-danger); --bs-btn-hover-border-color: var(--fedr-danger);
  --bs-btn-hover-color: var(--fedr-on-danger);
}
.btn-outline-danger { --bs-btn-color: var(--fedr-danger); --bs-btn-border-color: var(--fedr-danger);
  --bs-btn-hover-bg: var(--fedr-danger); --bs-btn-hover-color: var(--fedr-on-danger); }

/* ---------------------------------------------------------------------
   4. The bar
   --------------------------------------------------------------------- */
.navbar.fedr-bar {
  height: var(--fedr-header-h); min-height: var(--fedr-header-h); padding: 0;
  background: var(--bar-bg); color: var(--bar-text);
  border-bottom: 1px solid var(--bar-line);
}
/* The bar is chrome, and chrome spans the viewport -- in BOTH modes. It used to
   be capped at --fedr-page-max and centred in search mode, so its controls sat
   at the content column's right edge, while AI Mode had to be full-bleed (the
   rail starts at x=0). Switching modes therefore moved every control: 220px at
   1600, 140 at 1440, 60 at 1280, and a residual 4 below 1176, where the two
   modes merely disagreed about the gutter. Content stays centred; the bar does
   not follow it. One rule, one gutter, nothing moves. */
.fedr-bar > .container {
  height: 100%; max-width: none; margin-inline: 0; padding-inline: var(--s-4);
  display: flex; align-items: center; gap: var(--s-4);
}
.fedr-bar .navbar-brand { display: flex; align-items: center; padding: 0; margin: 0 var(--s-2) 0 0; flex: 0 0 auto; }

/* ---- header controls, at every width ----
   The bar is navbar-expand: it stays horizontal at every width instead of
   stacking, so the controls never have to be hidden.

   Two rules keep it to one row, and they hold at *every* width rather than only
   where the row happens to be tightest today. #header-nav is a .nav, which wraps
   its items by default -- a second row makes the bar twice as tall, and
   syncHeaderOffset then pushes the whole page down by the difference. And the
   search box's column class sets flex: 0 0 auto, so it claimed a fixed share of
   the row and could not yield to a nav that had grown; letting it shrink turns
   that share into a preference. Between them, no combination of brand, search
   box and controls can break the line. */
#header-nav { flex-wrap: nowrap; align-items: center; gap: 0.1rem; }
#search-form-wrap { flex-shrink: 1; min-width: 0; }

#header-nav .nav-link,
#header-nav .btn,
#header-nav .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 36px; padding: 0 0.7rem; border: 0; border-radius: var(--r-2);
  font-size: var(--t-14); font-weight: 500; color: var(--bar-text-muted);
  background: transparent; text-decoration: none;
  /* The nav does not wrap (above), but a *label* still can: the AI mode's
     label broke across two lines and took the bar to two rows with it, which
     syncHeaderOffset then charges to every page as top padding. */
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
#header-nav .nav-link:hover, #header-nav .btn:hover, #header-nav .dropdown-toggle:hover {
  color: var(--bar-text); background: var(--bar-hover);
}

/* ---- the mode switch: Suche | KI-Modus ----
   Two links, always both present, the active one marked -- a tab's worth of
   signal without a tab bar's chrome, which the header has no room for.

   An inset shadow rather than a border-bottom, because a border is laid out and
   a shadow is not: 3px of border on two of the four controls made the navbar
   59px instead of 56 and pushed every page down by the difference. The shadow
   paints in the padding the link already has.

   The colour is --bar-mark, not the accent directly (M9 §3.3): on the ink bar
   the accent carries 10:1 and may mark the tab alone; on a light bar it would
   carry 1.75 and ink takes over. The active link also goes semibold, so the
   mark is never the only signal. */
#header-nav .fedr-mode-link.is-active { color: var(--bar-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--bar-mark); }
#header-nav .fedr-mode-link:hover:not(.is-active) { box-shadow: inset 0 -2px 0 var(--bar-hover); }
/* A link marked as the page you are on does not navigate (router.js), so it must
   not offer a pointer that promises it will. */
#header-nav .fedr-mode-link[aria-current="page"] { cursor: default; }
/* The switch is a pair; a hairline separates it from the account controls. */
#chat-nav-item { margin-right: 0.35rem; padding-right: 0.5rem; border-right: 1px solid var(--bar-hover); }

/* The account control's initials disc. */
/* The scheme control is icon-only, so it carries no caret and no label; its
   accessible name carries the current setting instead (theme.js). */
#theme-controls .dropdown-item { display: flex; align-items: center; gap: var(--s-2); }
#theme-controls .dropdown-item .fedr-tick { margin-left: auto; visibility: hidden; color: var(--text-muted); }
#theme-controls .dropdown-item[aria-checked="true"] { font-weight: 600; }
#theme-controls .dropdown-item[aria-checked="true"] .fedr-tick { visibility: visible; }

/* The query field in the bar: a quiet inset that becomes a real field on focus. */
#search-form .form-control, #search-form .btn {
  height: 36px; border: 1px solid transparent; font-size: var(--t-14);
}
#search-form .form-control {
  background: var(--bar-hover); color: var(--bar-text); box-shadow: none;
}
#search-form .form-control::placeholder { color: var(--bar-text-muted); }
#search-form .form-control:focus {
  background: var(--surface); color: var(--text); border-color: var(--fedr-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fedr-accent) 45%, transparent);
}
#search-form .btn, #search-form .btn:hover {
  background: var(--bar-hover); color: var(--bar-text-muted); border-color: transparent;
}
#search-form .btn:hover { color: var(--bar-text); }
/* The suggest dropdown <ul> is the last child of the input-group, so Bootstrap
   strips #searchOptionsButton's rounded right corners. Restore them. */
#searchOptionsButton { border-top-right-radius: var(--r-2); border-bottom-right-radius: var(--r-2); }

/* Below lg the labels go and the icons carry the controls.
   lg, not md: at md Bootstrap's .container snaps to a fixed 720px at the very
   width the labels would come back, so demand jumped as supply dropped.
   Clipped rather than display:none, because the label is also the link's
   accessible name: hiding it outright would leave a link named by nothing but
   an aria-hidden icon. */
@media (max-width: 991.98px) {
  #header-nav .nav-link > span:not(.fedr-bar-avatar),
  #header-nav .dropdown-toggle > span:not(.fedr-bar-avatar) {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  #header-nav .nav-link, #header-nav .dropdown-toggle { padding-left: 0.45rem; padding-right: 0.45rem; }
}
/* Below md the column share is not worth defending: the search box takes what
   the brand and the controls leave, down to a floor. */
@media (max-width: 767.98px) {
  #search-form-wrap { flex: 1 1 auto; width: auto; min-width: 10rem; }
  #brand-link { flex: 0 1 auto; min-width: 0; }
  #brand-link .fedr-wordmark { max-width: 100%; }
}
/* Where that yielding ends. Everything but the brand has a floor and they add
   up -- re-measured on 2026-09-12 after the colour-scheme control made a fifth
   icon: 24px of container padding, the search box's 160px floor, 173px of
   icon-only controls (was 141 with four, 131 with Font Awesome's) and the
   brand's own 8px margin. So the 104px wordmark gets `width - 365`: 105px at
   470, 75 at 440, 35 at 400, and less than nothing at 360.

   A wordmark at 35px does not read as FEDR, it reads as a rendering fault, so
   below 470 it goes rather than degrades. That threshold is the fifth control's
   price, and it is paid on large phones, where the brand used to survive. Nothing is lost: the brand link's job
   is to lead back to "/", and the mode switch beside it always offers that as
   "Suche". !important because the brand carries .d-inline-flex, itself
   !important, which outranks an id selector without it. */
@media (max-width: 469.98px) {
  #brand-link { display: none !important; }
}

/* Suggest dropdowns (header #suggest-dropdown + home/advance .suggest-dropdown):
   the home view is text-center, so force left-aligned suggestions; give the <ul>
   an opaque background and a z-index above the search buttons. */
#suggest-dropdown, .suggest-dropdown {
  text-align: left; background: var(--surface-raised); z-index: 1056;
  border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; padding: 0;
  box-shadow: var(--shadow-2);
}
#suggest-dropdown .list-group-item, .suggest-dropdown .list-group-item {
  cursor: pointer; text-align: left; border: 0; font-size: var(--t-14);
  background: transparent; color: var(--text); padding: 0.45rem 0.7rem;
}
#suggest-dropdown .list-group-item.active, #suggest-dropdown .list-group-item:hover,
.suggest-dropdown .list-group-item.active, .suggest-dropdown .list-group-item:hover {
  background: var(--surface-sunken); color: var(--text);
}

/* ---------------------------------------------------------------------
   5. Search options drawer — the conversation rail, on the other side.

   It used to be a 500px panel painted ink, pinned to the top of the
   viewport and sliding over the fixed header at z-index 1040. It is the
   rail's surface and the rail's header height now, and it starts below
   the header instead of covering it.
   --------------------------------------------------------------------- */
#searchOptions { position: fixed; top: var(--fedr-header-h); right: 0; bottom: 0; z-index: 1035; }
#searchOptions .container {
  position: fixed; top: var(--fedr-header-h); bottom: 0;
  right: calc(-1 * var(--fedr-drawer-w));
  width: var(--fedr-drawer-w); max-width: 100%;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  background: var(--surface-rail); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transition: right var(--t-base) var(--ease);
}
#searchOptions.show .container { right: 0; }

/* Same height and padding as .fedr-conv-header, so the two drawers line up
   across the screen when both are open. */
.fedr-drawer-header {
  flex: 0 0 auto; display: flex; align-items: center; gap: var(--s-2);
  padding: 0.5rem 0.75rem 0.5rem var(--s-4);
}
.fedr-drawer-header h3 {
  flex: 1; min-width: 0; margin: 0;
  font-size: var(--t-14); font-weight: 600; color: var(--text);
}
.fedr-drawer-close {
  flex: 0 0 auto; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-2); background: transparent; color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.fedr-drawer-close:hover { background: var(--surface-raised); color: var(--text); }

.fedr-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s-2) var(--s-4) var(--s-4); }
.fedr-drawer-body fieldset { margin: 0 0 var(--s-4); }
/* The rail's group label, reused: these name a control rather than instruct. */
.fedr-drawer-body label {
  display: block; margin-bottom: 0.3rem;
  font-size: var(--t-11); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted);
}
.fedr-drawer-body select[multiple] { height: 7.5rem; padding: 0.25rem; }

.fedr-drawer-actions {
  flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line);
}
/* The link to the full form is not one of the two immediate actions, so it
   takes its own row rather than crowding them. */
.fedr-drawer-actions > :nth-child(3) { grid-column: 1 / -1; }
.fedr-drawer-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}

/* ---------------------------------------------------------------------
   6. Home — the four-second screen
   --------------------------------------------------------------------- */
/* Both ledes sit --fedr-lede-top below the header. Each subtracts what its own
   container already contributes -- the body's reading gap here, the chat log's
   top padding there -- so the two land on the same pixel instead of 16px apart. */
#home-view .searchFormBox { margin-top: calc(var(--fedr-lede-top) - var(--s-4)); margin-bottom: 4em; }
#home-view .mainLogo { margin-bottom: var(--s-3); }
#home-view .notification { font-size: var(--t-15); color: var(--text-muted); margin: var(--s-2) 0; }
#home-view .searchButtonBox { margin-top: var(--s-4); gap: var(--s-2); display: inline-flex; }
#home-view .searchButtonBox .btn { padding: 0.5rem 1.1rem; }
.fedr-tagline { color: var(--text-muted); font-size: var(--t-14); margin: 0 0 var(--s-6); }

/* One field, the icon inside it, a soft ring on focus. */
#home-view .position-relative:has(> #contentQuery) { display: block; }
#contentQuery {
  height: auto; padding: 0.7rem 1rem 0.7rem 2.6rem;
  font-size: var(--t-16); border-radius: var(--r-4);
  border: 1px solid var(--line-control); background: var(--surface-raised); color: var(--text);
  box-shadow: var(--shadow-1);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
#contentQuery::placeholder { color: var(--text-muted); }
#contentQuery:focus {
  border-color: var(--text); outline: none;
  box-shadow: var(--shadow-1), 0 0 0 4px color-mix(in srgb, var(--fedr-accent) 45%, transparent);
}
.fedr-home-field-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; z-index: 2;
}
#home-popular-words { margin-top: var(--s-5); font-size: var(--t-13); color: var(--text-muted); }
#home-popular-words a {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; margin: 0 0.15rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-13); color: var(--text-secondary); text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
#home-popular-words a:hover { background: var(--surface-sunken); border-color: var(--line-strong); color: var(--text); }
@media (max-width: 575.98px) {
  #home-view .fedr-wordmark,
  .chat-welcome .fedr-wordmark { width: 200px; }
  /* Phones give the lede less room, and both screens follow from here. This
     overrides the token rather than living beside it in tokens.css, because
     that file is also imported by doc/pipeline/document.css and WeasyPrint
     understands media *types* only -- a query with a feature in it is dropped
     with a warning on every render of every manual. A viewport rule is a
     screen concern, so it belongs in the stylesheet only screens load. */
  :root { --fedr-lede-top: 6vh; }
}

/* ---------------------------------------------------------------------
   7. Search results — conservative on purpose: the shape a search page has
   had for twenty years, rebuilt on the ramp and the scale.
   --------------------------------------------------------------------- */
/* The page max replaces Bootstrap's stepped widths, so below it the container is
   fluid and its padding is the only margin there is. --bs-gutter-x sets that
   padding and the column gutters together: at --s-6 the content edge is --s-4
   from the viewport, the bar's own gutter, so logo and results share one edge. */
#content-results { max-width: var(--fedr-page-max); --bs-gutter-x: var(--s-6); }
#results-status { font-size: var(--t-13); color: var(--text-muted); margin: 0 0 var(--s-5); }
#results-status strong { color: var(--text); font-weight: 600; }
#options-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
#options-bar > li { margin: 0; }
#options-bar .btn, #options-bar .dropdown-toggle {
  padding: 0.25rem 0.6rem; font-size: var(--t-13); color: var(--text-secondary);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
}
#options-bar .btn:hover { border-color: var(--line-strong); color: var(--text); background: transparent; }
#options-bar .badge { background: transparent !important; color: var(--text) !important; font-weight: 600; padding: 0 0 0 .2rem; }

/* A result is rules and space, not a card: the old .result-card gave twenty
   boxes a border, a shadow and a hover, and they competed with each other. */
/* padding-block, never padding: the list is also a grid column, and a
   horizontal reset here outranks the column's gutter while the row's negative
   margin stays -- which put every result flush against the viewport edge. */
#result ol { list-style: none; padding-block: 0; margin: 0; }
#result ol li { padding: var(--s-4) 0; margin: 0; border-bottom: 1px solid var(--line); }
#result ol li:first-child { padding-top: 0; }
#result ol li:last-child { border-bottom: 0; }
#result .title {
  font-size: var(--t-18); line-height: 1.35; font-weight: 500;
  margin: 0 0 0.2rem; letter-spacing: -0.004em;
}
#result .title a { color: var(--link); text-decoration: none; }
#result .title a:visited { color: var(--link-visited); }
#result .title a:hover { text-decoration: underline; }
#result .body { display: flex; align-items: flex-start; }
#result .description { font-size: var(--t-15); line-height: 1.6; color: var(--text-secondary); max-width: 44rem; }
/* The query-term highlight is an accent fill with ink on it — 10:1, and the one
   place the brand colour appears in a list of results. */
#result .description em, #result .title em {
  font-style: normal; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--fedr-accent) 32%, transparent);
  border-radius: 2px; padding: 0 0.12em;
}
#result .site { font-size: var(--t-13); color: var(--text-muted); margin-bottom: 0.35rem; }
#result .site cite { color: var(--text-muted); font-style: normal; word-break: break-all; }
#result .info { margin-top: 0.45rem; font-size: var(--t-12); color: var(--text-muted); }
#result .info a { color: var(--text-muted); text-decoration: none; }
#result .info a:hover { color: var(--text); text-decoration: underline; }
#result .more { display: none; }
#result .url-copy { color: var(--text-muted); }
#result .url-copied { color: var(--fedr-success); }
#result .favorited { display: none; }
#result .favorited .ic { color: var(--fedr-accent); }
#result .thumbnail { width: 100px; min-height: 30px; background-position: 50% 50%; background-repeat: no-repeat; }
.favorite-count { font-size: var(--t-12); color: var(--text-muted); margin-left: .2rem; vertical-align: middle; }
.copy-url-btn { color: var(--text-muted); line-height: 1; vertical-align: middle; }
.copy-url-btn:hover { color: var(--text); }
/* Phones: hide the dense info line, show the "more" link, clamp the description. */
@media (max-width: 575.98px) {
  #result .info { display: none; }
  #result .more { display: block; }
  #result .description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Facets: a quiet column of rows. No list-group borders, no pill badges — a
   right-aligned tabular figure says the same thing and adds no colour. */
/* .facet-item / .facet-group / .facet-count used to be styled here and were
   deleted on 2026-09-12: no JavaScript in the theme emits those class names.
   They were inherited from the pre-M9 stylesheet, where they were already dead.
   The sidebar is built by search.js as Bootstrap list-groups, below. */
#facet-body .list-group, #facet-body-mobile .list-group { border: 0; }
#facet-body .list-group-item, #facet-body-mobile .list-group-item {
  border: 0; padding: 0.3rem 0.45rem; font-size: var(--t-14);
  background: transparent; color: var(--text-secondary);
}
#facet-body .list-group-item.text-uppercase, #facet-body-mobile .list-group-item.text-uppercase {
  font-size: var(--t-11); font-weight: 600; letter-spacing: 0.09em;
  color: var(--text-muted); padding: var(--s-4) 0.45rem var(--s-1);
}
#facet-body .list-group-item a, #facet-body-mobile .list-group-item a { color: inherit; text-decoration: none; }
/* Only an entry is interactive. The group's title is a plain li in the same
   list, so hovering every .list-group-item lit the titles up as though they
   could be selected. The entries are the ones carrying a link. */
#facet-body .list-group-item:has(> a):hover,
#facet-body-mobile .list-group-item:has(> a):hover { background: var(--surface-sunken); color: var(--text); }
#facet-body .list-group-item.text-uppercase,
#facet-body-mobile .list-group-item.text-uppercase { cursor: default; user-select: none; }
/* Selected facet: a subtle bold plus a light background rather than Bootstrap's
   heavy blue, so the label stays readable (applied filters also show as chips). */
#facet-body .list-group-item.active, #facet-body-mobile .list-group-item.active {
  background: var(--surface-sunken); border-color: transparent; color: var(--text); font-weight: 600;
}
#facet-body .badge, #facet-body-mobile .badge {
  background: transparent !important; color: var(--text-muted) !important;
  font-weight: 400; font-size: var(--t-12); padding: 0;
}

.pagination { --bs-pagination-color: var(--text-secondary); --bs-pagination-bg: transparent;
  --bs-pagination-border-color: transparent; --bs-pagination-hover-bg: var(--surface-sunken);
  --bs-pagination-hover-color: var(--text); --bs-pagination-hover-border-color: transparent;
  --bs-pagination-focus-bg: var(--surface-sunken); --bs-pagination-focus-box-shadow: none;
  --bs-pagination-active-bg: var(--fedr-accent); --bs-pagination-active-color: var(--fedr-on-accent);
  --bs-pagination-active-border-color: var(--fedr-accent);
  --bs-pagination-border-radius: var(--r-2); --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-border-color: transparent; --bs-pagination-disabled-color: var(--text-muted);
  gap: 0.2rem;
}
#empty-state { color: var(--text-muted); }

/* Active filter chips */
#active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.active-chips-label, .related-queries-label { white-space: nowrap; }
.active-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface-sunken); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: var(--t-12); padding: .2rem .6rem;
}
.active-chip-remove { width: .65em; height: .65em; margin: 0; padding: 0; background-size: .65em; flex-shrink: 0; }
#related-queries { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
#related-content {
  border-left: 2px solid var(--fedr-accent); padding: .5rem .75rem;
  background: var(--surface-sunken); border-radius: 0 var(--r-2) var(--r-2) 0;
}
#current-filters { margin: 0; padding: 0; }

/* ---------------------------------------------------------------------
   8. The other views
   --------------------------------------------------------------------- */
#error-view { text-align: center; }
#error-view .error-detail { text-align: start; display: inline-block; }
.error-title { margin-top: var(--s-6); font-size: var(--t-26); font-weight: 600; letter-spacing: -0.014em; }
.error-body { color: var(--text-secondary); }
.error-detail {
  background: var(--surface-sunken); padding: var(--s-3) var(--s-4);
  border-left: 2px solid var(--line-strong); border-radius: 0 var(--r-2) var(--r-2) 0;
  font-size: var(--t-13);
}
.error-actions { margin: var(--s-5) 0; }

#profile-view form { max-width: 480px; }
/* One centred column, labels above their fields. The old 3-of-12 label plus
   5-of-12 field left four columns empty and put the submit button — centred
   across all twelve — to the right of every field it submits. */
#advance-view h2 { max-width: 40rem; margin: 0 auto var(--s-5);
  font-size: var(--t-26); font-weight: 600; letter-spacing: -0.014em; }
.advance-form { max-width: 40rem; margin: 0 auto; }
.advance-form .form-label { font-weight: 500; font-size: var(--t-14); margin-bottom: 0.3rem; }
.advance-checks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.advance-actions {
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line);
}
.advance-actions .btn { display: inline-flex; align-items: center; gap: 0.4rem; }

.help-section { margin-bottom: var(--s-6); }
.help-section h2 {
  font-size: var(--t-21); font-weight: 600; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line); padding-bottom: var(--s-2); margin-bottom: var(--s-3);
}
.help-section code, .cache-meta code {
  background: var(--surface-sunken); padding: 0.1rem 0.3rem;
  border-radius: var(--r-1); font-family: var(--font-mono); font-size: 0.9em;
}
/* Help is an overlay rather than a page (M9 §7), and the sections above are the ones it renders
   into the modal body unchanged. The only difference a modal makes is the last section's trailing
   margin: a page absorbs it in its own bottom padding, a scrollable modal body shows it as a gap
   below the last line. */
.fedr-help-modal .help-section:last-child { margin-bottom: 0; }

.cache-frame {
  width: 100%; height: 70vh; border: 1px solid var(--line);
  border-radius: var(--r-2); background: var(--surface);
}
.cache-meta { font-size: var(--t-14); color: var(--text-secondary); }
.cache-meta dt { font-weight: 600; color: var(--text); }

.form-control {
  border-color: var(--line-control); background: var(--surface-raised); color: var(--text);
  border-radius: var(--r-2); font-size: var(--t-14);
}
.form-control:focus { border-color: var(--text); }
/* Bootstrap's own focus shadow is replaced, not removed: zeroing it here used to
   win over the focus-visible rule above (equal specificity, later in the file)
   and quietly took the accent halo off every input in the theme. */
.form-control:focus:not(:focus-visible) { box-shadow: none; }
.form-control::placeholder { color: var(--text-muted); }

.modal-content { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-raised); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-title { font-size: var(--t-18); font-weight: 600; }
.dropdown-menu {
  --bs-dropdown-bg: var(--surface-raised); --bs-dropdown-border-color: var(--line);
  --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--surface-sunken);
  --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-border-radius: var(--r-2);
  --bs-dropdown-font-size: var(--t-14);
  box-shadow: var(--shadow-2);
}
.alert { border-radius: var(--r-2); font-size: var(--t-14); border-width: 1px; }
.offcanvas { background: var(--surface); color: var(--text); }
.offcanvas-header { border-bottom: 1px solid var(--line); }

.cursor-pointer { cursor: pointer; }
.home-search-input { max-width: 600px; }
.back-to-top { bottom: 1.5rem; right: 1.5rem; z-index: 1050; }
.back-to-top.is-hidden { display: none; }
/* The copy fallback's textarea (clipboard.js), used where navigator.clipboard does
   not exist. Pinned to the corner and invisible, but still focusable and
   selectable: display:none or visibility:hidden would make the copy impossible. */
.clipboard-fallback {
  position: fixed; top: 0; left: 0; width: 1px; height: 1px;
  padding: 0; border: 0; opacity: 0; pointer-events: none;
}

/* ---- the copyright line ----
   An absolutely positioned footer pinned to the bottom of the document, so it
   never floats mid-page on short views like the home page. A whisper in the
   bottom corner: small, plain grey, its link the same grey as the text. */
footer[role="contentinfo"] {
  position: absolute; right: 1rem; bottom: 0.2rem; width: auto;
  padding: 0; font-size: var(--t-12); text-align: right;
}
/* The line sits a constant 1rem from the viewport edge in every mode. It used to
   be a full-width band whose inner .container carried Bootstrap's centred
   max-width, so in search mode it stopped at the content column and in AI Mode,
   which is full-bleed, at the edge -- the same split the bar had. */
footer[role="contentinfo"] .container { max-width: none; width: auto; padding: 0; }
#footer-copyright { color: var(--text-muted); }
#footer-copyright a { color: inherit; text-decoration: none; }
#footer-copyright a:hover, #footer-copyright a:focus-visible { text-decoration: underline; }
/* The version line (M7 §3) is the same whisper, and it goes on a phone. At --t-12 the full line
   runs to about 410px, so below this it wraps to two lines -- and in AI Mode the footer is pinned
   over the composer, where a second line is in the way of the thing the page is for. The numbers
   are the least urgent text on the page; `fedr version` answers the same question on the server. */
@media (max-width: 479.98px) {
  #footer-versions { display: none; }
}

/* =====================================================================
   9. AI MODE — full-height chat layout (SPEC M2 F8/F10/F11/F14)
   ===================================================================== */

/* AI Mode owns the viewport: no page scroll, no reading gap, no back-to-top.
   The !important overrides the inline padding syncHeaderOffset() sets. */
body.chat-route { overflow: hidden; padding-top: var(--fedr-header-h) !important; padding-bottom: 0 !important; }
body.chat-route #back-to-top { display: none !important; }
/* The copyright is the one piece of page furniture AI Mode keeps. It cannot be
   laid out in the flow of a view exactly one viewport tall, so it is pinned to
   the corner the composer leaves free -- and made click-through, so it can never
   take a click meant for the composer. Its own link opts back in. */
body.chat-route > footer[role="contentinfo"] {
  position: fixed; pointer-events: none; z-index: 1;
}
body.chat-route #footer-copyright a { pointer-events: auto; }

/* The brand belongs over the conversation rail -- when there is a rail under it
   to belong over. `rail-expanded` says the rail is holding a column of its own,
   which is true only at lg and up and only while it is not collapsed; below lg
   it is a slide-over drawn on top of the content, and a header box centred over
   that would jump on every toggle. conversations.js owns the flag. */
body.chat-route.rail-expanded .navbar > .container { padding-left: var(--fedr-sidebar-w); }
body.chat-route.rail-expanded .navbar-brand {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: var(--fedr-sidebar-w); margin: 0;
  display: flex; align-items: center; justify-content: center;
}

.fedr-chat { position: relative; display: flex; height: calc(100dvh - var(--fedr-header-h)); overflow: hidden; }

/* Entering AI Mode from another mode: hold the rail closed for one frame so the
   transition has somewhere to move from (app.js removes the class on the next
   frame but one). Never set on a cold load -- M9 §14 rule 4. */
#chat-view.is-entering .fedr-chat-sidebar { transform: translateX(-100%); }
#chat-view.is-entering .fedr-chat-main { margin-left: 0; }

/* Leaving it: the section is pinned over the page while the rail slides away,
   then app.js hides it. Pinned because the incoming view is already rendered
   underneath, and two full-height layouts in the flow would push each other. */
#chat-view.is-leaving {
  position: fixed; inset: var(--fedr-header-h) 0 0 0; z-index: 5;
  pointer-events: none;
}
/* The message column is what fades; the rail is what the eye follows out, so it
   must not fade away in the middle of its own slide. Fading the whole view did
   exactly that -- at --t-fast the view was ~87% gone by 60ms, while the rail was
   still two thirds of the way across on --t-base -- which is why the rail read as
   jumping rather than leaving. It now slides against the view underneath, and at
   --t-fast, so it lands exactly when app.js hides the section (M9 §14 rule 2:
   leaving is quicker than arriving). */
#chat-view.is-leaving .fedr-chat-main { opacity: 0; transition: opacity var(--t-fast) var(--ease); }
#chat-view.is-leaving .fedr-chat-sidebar {
  transform: translateX(-100%);
  transition: transform var(--t-fast) var(--ease);
}

/* ---- conversation rail ---- */
/* The rail is absolutely positioned at EVERY width (M9 §14).
   It used to be a flex column at lg and up and an absolutely positioned overlay
   below, and `position` cannot be interpolated -- so crossing 992px snapped, and
   any transition declared there played and then jumped. Taking it out of the flow
   everywhere leaves exactly one difference across the breakpoint: whether
   .fedr-chat-main reserves space for it. That is a margin, and a margin animates.

   This is the theme's one sanctioned layout-property animation (§14 rule 3): the
   message column has to *reclaim* the width rather than have the rail slide over
   it, and no other rule here animates anything but transform and opacity. */
.fedr-chat-sidebar {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 20;
  width: var(--fedr-sidebar-w);
  border-right: 1px solid var(--line); background: var(--surface-rail);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(-100%);
  transition: transform var(--t-base) var(--ease);
}
/* Same vertical padding as .fedr-chat-topbar, and the same btn-sm controls: the
   rail's header is the topbar's header, so collapsing the rail must not change
   the height of the shelf its toggle sits on. */
.fedr-conv-header {
  padding: 0.5rem 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.fedr-conv-header .btn { font-size: var(--t-14); background: var(--surface-raised); }
/* The list owns the rail's remaining height rather than hugging its rows, and
   that is what keeps a row's dropdown usable: `overflow-y: auto` makes this a
   clipping box, so a list sized to one conversation clipped that conversation's
   menu a few pixels below the row, with no room to flip into either. */
.fedr-conv-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0.25rem 0.5rem var(--s-4); }
.fedr-conv-empty { padding: 0.5rem 0.75rem; color: var(--text-muted); font-size: var(--t-13); }
.fedr-conv-group {
  font-size: var(--t-11); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); padding: var(--s-4) 0.55rem var(--s-1);
}
.fedr-conv-row {
  position: relative; display: flex; align-items: center; gap: 0.25rem;
  border-radius: var(--r-2); padding: 0 0.25rem 0 0.3rem;
  transition: background var(--t-fast) var(--ease);
}
.fedr-conv-row:hover { background: var(--surface-raised); }
/* Active is ink-and-semibold first; the accent bar reinforces it (M9 §2, law 3). */
.fedr-conv-row.active { background: var(--surface-raised); }
.fedr-conv-row.active .fedr-conv-title { color: var(--text); font-weight: 600; }
/* The accent bar grows from the centre rather than blinking on: the conversation
   list is the one place in the UI where the selection moves under the pointer. */
.fedr-conv-row::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px; background: var(--fedr-accent);
  transform: scaleY(0); transition: transform var(--t-fast) var(--ease);
}
.fedr-conv-row.active::before { transform: scaleY(1); }
.fedr-conv-title {
  flex: 1; min-width: 0; border: 0; background: none; text-align: left;
  padding: 0.4rem 0.25rem; font-size: var(--t-14); color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-2);
}
.fedr-conv-menu-toggle { color: var(--text-muted); opacity: 0; text-decoration: none; padding: 0.2rem 0.35rem; }
.fedr-conv-row:hover .fedr-conv-menu-toggle,
.fedr-conv-row:focus-within .fedr-conv-menu-toggle { opacity: 1; }
.fedr-conv-rename { flex: 1; min-width: 0; }

/* ---- main column ---- */
.fedr-chat-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  transition: margin-left var(--t-base) var(--ease);
}
.fedr-chat-topbar { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); }

/* ---- putting the rail away, at any width ----
   At lg and up the rail is a column that starts visible and .sidebar-hidden
   collapses it; below lg it is an overlay that starts hidden and .sidebar-open
   reveals it. Both are now the same two declarations -- the rail's transform and
   the main column's margin -- so the states interpolate into each other and a
   resize across the breakpoint animates instead of snapping. */
@media (min-width: 992px) {
  .fedr-chat:not(.sidebar-hidden) .fedr-chat-sidebar { transform: none; }
  .fedr-chat:not(.sidebar-hidden) .fedr-chat-main { margin-left: var(--fedr-sidebar-w); }
  /* The rail carries its own toggle and its own "New chat", so the bar above the
     conversation is chrome for nothing -- until the rail is away, when it becomes
     the only way back to both. */
  .fedr-chat-topbar { display: none; }
  .fedr-chat.sidebar-hidden .fedr-chat-topbar { display: block; }
}
/* Below lg the rail is an overlay: its header toggle would go off screen with
   it, so the one in the topbar is the one that stays reachable. The shadow is
   here rather than on the rail itself, because a column does not cast one. */
@media (max-width: 991.98px) {
  .fedr-conv-header .fedr-rail-toggle { display: none; }
  .fedr-chat-sidebar { z-index: 1045; box-shadow: var(--shadow-2); }
  .fedr-chat.sidebar-open .fedr-chat-sidebar { transform: none; }
  .fedr-chat-log { padding-left: 0.75rem; padding-right: 0.75rem; }
  .chat-msg.user { max-width: 92%; }
}

.fedr-chat-log { flex: 1; overflow-y: auto; padding: var(--s-6) var(--s-4) 0; scroll-behavior: smooth; }
.fedr-chat-log > * { max-width: var(--fedr-chat-column); margin-left: auto; margin-right: auto; }

/* ---- turns ---- */
.chat-msg-wrap { display: flex; flex-direction: column; margin-bottom: var(--s-6); }
.chat-msg-wrap.user { align-items: flex-end; }
.chat-msg-wrap.assistant { align-items: stretch; }
.chat-msg { word-break: break-word; }
/* A user turn is a bubble; an answer is prose. Long answers read as documents,
   which is why every modern assistant drops the bubble on the assistant side. */
.chat-msg.user {
  max-width: 80%; padding: 0.6rem 0.9rem; font-size: var(--t-15); line-height: 1.55;
  background: var(--surface-sunken); color: var(--text);
  border-radius: var(--r-4) var(--r-4) var(--r-1) var(--r-4);
}
.chat-msg.assistant { font-family: var(--font-prose); font-size: var(--t-16); line-height: var(--lh-prose); }
/* An answer is a document inside a page that already has its own headings, so
   its levels are scaled to sit in a reading column rather than compete with the
   page. Headings stay in the UI face even when the body is the serif: the serif
   is for reading at length, and a sans heading is what separates the sections. */
.chat-msg.assistant h1 { font-family: var(--font-ui); font-size: var(--t-26); font-weight: 600;
  letter-spacing: -0.014em; line-height: var(--lh-tight); margin: var(--s-6) 0 var(--s-3); }
.chat-msg.assistant h2 { font-family: var(--font-ui); font-size: var(--t-21); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3; margin: var(--s-6) 0 var(--s-3);
  padding-top: var(--s-4); border-top: 1px solid var(--line); }
.chat-msg.assistant h3 { font-family: var(--font-ui); font-size: var(--t-16); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.chat-msg.assistant h4, .chat-msg.assistant h5, .chat-msg.assistant h6 {
  font-family: var(--font-ui); font-size: var(--t-15); font-weight: 600; margin: var(--s-4) 0 var(--s-1); }
.chat-msg.assistant > h1:first-child, .chat-msg.assistant > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.chat-msg.assistant > :last-child { margin-bottom: 0; }
.chat-msg.assistant p { margin: 0 0 var(--s-4); }
.chat-msg.assistant ul, .chat-msg.assistant ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
.chat-msg.assistant li { margin-bottom: 0.3rem; }
.chat-msg.assistant strong { font-weight: 600; }
.chat-msg.assistant pre {
  background: var(--surface-sunken); border: 1px solid var(--line);
  border-radius: var(--r-2); padding: var(--s-3); overflow-x: auto; font-size: var(--t-13);
}
.chat-msg.assistant code { font-family: var(--font-mono); font-size: 0.9em; }

/* A deep-research report is the one thing here read at length, so it is the one
   thing set in the serif (M9 §4). A chat answer stays in the sans. */
.chat-msg.assistant.is-report { font-family: var(--font-report); font-size: 1.0625rem; line-height: 1.72; }

.chat-bubble-actions {
  display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3);
  min-height: 1.5rem; opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.chat-msg-wrap:hover .chat-bubble-actions,
.chat-msg-wrap:focus-within .chat-bubble-actions { opacity: 1; }
.chat-copy-btn, .chat-report-actions .btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--t-13); color: var(--text-muted); line-height: 1; text-decoration: none;
}
.chat-copy-btn:hover, .chat-report-actions .btn:hover { color: var(--text); }
.chat-report-actions { display: inline-flex; align-items: center; gap: var(--s-4); }
.chat-report-body { max-height: none; }
/* The table of contents of a report with three or more sections (M8 §5.4). Chrome, so it is set in
   the interface's own face and not in the report's serif. */
.chat-report-toc {
  margin: var(--s-4) 0; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-sunken);
  font-family: var(--font-ui); font-size: var(--t-13);
}
.chat-report-toc-title { margin-bottom: var(--s-1); color: var(--text-muted); font-size: var(--t-11); font-weight: 600; letter-spacing: 0.02em; }
.chat-report-toc-list { margin: 0; padding: 0; list-style: none; }
.chat-report-toc-entry {
  display: flex; gap: var(--s-2); width: 100%; padding: 0.15rem 0; text-align: left;
  color: var(--text); font-size: inherit; text-decoration: none;
}
.chat-report-toc-entry:hover { text-decoration: underline; }
.chat-report-toc-number { flex-shrink: 0; min-width: 1.5rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* How long the report took (M13 3.3): read, not clicked, so it stays visible where the actions
   row fades in only on hover. */
.chat-report-footer { margin: var(--s-3) 0 0; font-size: var(--t-13); color: var(--text-muted); }

/* ---- agent activity ---- */
.chat-tool-call { margin: 0 0 var(--s-2); }
.chat-tool-details {
  font-size: var(--t-13); border-left: 1px solid var(--line);
  padding-left: var(--s-3); margin-left: 2px;
}
.chat-tool-summary {
  display: flex; align-items: center; gap: 0.45rem; cursor: pointer; list-style: none;
  color: var(--text-muted); padding: 0.22rem 0; transition: color var(--t-fast) var(--ease);
}
.chat-tool-summary::-webkit-details-marker { display: none; }
.chat-tool-summary:hover { color: var(--text); }
.chat-tool-summary .ic { color: var(--line-strong); }
.chat-tool-summary:hover .ic { color: var(--text-muted); }
.chat-tool-details[open] > .chat-tool-summary { color: var(--text-secondary); margin-bottom: var(--s-2); }

/* A tool call that has begun but not finished. The entry is replaced in place by
   its result, so this only styles a call that is genuinely still running --
   including one a re-attaching client picked up mid-flight. The label going ink
   is the primary signal; the accent dot reinforces it. */
.chat-tool-call.is-running > .chat-tool-details > .chat-tool-summary { color: var(--text); }
.chat-tool-call.is-running > .chat-tool-details > .chat-tool-summary::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--fedr-accent); margin-left: 0.4rem;
  animation: fedr-pulse 1.4s var(--ease) infinite;
}
@keyframes fedr-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* ---- deep research ----
   Five sub-agents searching at once are unreadable interleaved into the log and
   readable grouped under the question that asked for them, so a nested call is
   indented under its parent entry rather than added to the timeline. */
.chat-tool-children { margin: 0.35rem 0 0; padding-left: var(--s-4); }
.chat-tool-children .chat-tool-call { margin-bottom: 0.35rem; }
.chat-tool-children .chat-tool-call:last-child { margin-bottom: 0; }

/* The plan does not animate and does not tick items off: each investigation's
   own entry follows below as it starts, so the plan is already the checklist. */
.chat-plan {
  margin: var(--s-2) 0 var(--s-3); padding: var(--s-3) var(--s-4);
  background: var(--surface-sunken); border-radius: var(--r-3);
}
.chat-tool-call > .chat-plan { margin: 0.35rem 0 var(--s-2); }
.chat-plan-heading {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: var(--t-11); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); margin-bottom: var(--s-2);
}
.chat-plan-items { list-style: none; margin: 0; padding: 0; }
.chat-plan-items li {
  position: relative; padding-left: var(--s-4); margin-bottom: 0.3rem;
  font-size: var(--t-13); line-height: 1.5; color: var(--text-secondary);
}
.chat-plan-items li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px;
  background: var(--line-strong);
}

/* ---- sources ---- */
.chat-tool-details ul.list-unstyled { margin: 0; padding: 0; }
.source-card {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: 0.35rem 0.45rem; border-radius: var(--r-2); color: inherit; text-decoration: none;
}
.source-card:hover { background: var(--surface-sunken); }
.source-index {
  flex: 0 0 auto; min-width: 1.4rem; height: 1.15rem; padding: 0 0.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-1); background: var(--surface-sunken); border: 1px solid var(--line);
  color: var(--text-muted); font-size: var(--t-11); font-weight: 600;
}
.source-info { min-width: 0; }
.source-title { display: block; font-size: var(--t-13); font-weight: 500; color: var(--link); line-height: 1.4; word-break: break-word; }
.source-card:hover .source-title { text-decoration: underline; }
.source-snippet {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; font-size: var(--t-12); line-height: 1.45; color: var(--text-muted); margin-top: 0.1rem;
}
.source-meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; }
.source-type {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--t-11);
  color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.source-lang {
  font-size: var(--t-11); font-weight: 600; letter-spacing: 0.04em;
  padding: 0 0.3rem; border: 1px solid var(--line); border-radius: var(--r-1);
  background: transparent; color: var(--text-muted);
}
.source-explain { font-size: var(--t-12); color: var(--text-muted); text-decoration: none; }

/* ---- inline citations ----
   A citation sits inside a sentence, so it must not change the line box: raised
   a little, smaller, and never wrapped away from the word it follows.

   Quiet at rest and accent on interaction: citations are the product's trust
   story, but a page carrying forty yellow chips is not calm, so the brand
   appears where the reader touches them rather than everywhere at once. */
.fedr-cite {
  display: inline-block; vertical-align: super; margin-left: 0.12em; padding: 0 0.3em;
  border-radius: var(--r-1); font-family: var(--font-ui);
  font-size: 0.62em; line-height: 1.6; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  color: var(--text-muted); background: var(--surface-sunken); border: 1px solid var(--line);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
a.fedr-cite:hover, a.fedr-cite:focus {
  color: var(--fedr-on-accent); background: var(--fedr-accent);
  border-color: var(--fedr-accent); text-decoration: none;
}

/* The hover preview. One shared card, positioned in viewport coordinates against
   whichever marker is hovered or focused, and never interactive: pointer-events
   stay off so it can neither be hovered nor swallow a click underneath. */
.fedr-preview {
  position: fixed; z-index: 1080; width: min(21rem, calc(100vw - 2rem));
  padding: var(--s-3); background: var(--surface-raised);
  border: 1px solid var(--line); border-top: 2px solid var(--fedr-accent);
  border-radius: var(--r-2); box-shadow: var(--shadow-2);
  pointer-events: none; font-size: var(--t-13); line-height: 1.45;
  /* It follows a pointer sweeping across a paragraph, so it arrives rather than
     appears; citations.js toggles [hidden], and the rise is 3px (M9 §14.2). */
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.fedr-preview[hidden] {
  display: block !important; opacity: 0; transform: translateY(3px); pointer-events: none;
}
.fedr-preview-head { display: flex; align-items: baseline; gap: 0.4rem; }
.fedr-preview-badge {
  flex-shrink: 0; min-width: 1.25rem; padding: 0 0.25rem; border-radius: var(--r-1);
  text-align: center; font-size: var(--t-11); font-weight: 600;
  color: var(--text-muted); background: var(--surface-sunken); border: 1px solid var(--line);
}
.fedr-preview-title {
  font-weight: 600; color: var(--text); overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.fedr-preview-subtitle {
  margin-top: 0.15rem; color: var(--text-muted); font-size: var(--t-11);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* What the text under it is: a verified passage, or an extract (M12 §8, amended 2026-10-11). */
.fedr-preview-label {
  margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: var(--t-11); font-weight: 600; letter-spacing: 0.02em;
}
.fedr-preview-label + .fedr-preview-quote,
.fedr-preview-label + .fedr-preview-passage,
.fedr-preview-label ~ .fedr-preview-snippet { margin-top: var(--s-1); }
/* A verified passage. Not clamped: the theme cuts it around the quote, and a clamp would cut the
   quote itself, which is the one thing the card is for. */
.fedr-preview-passage { color: var(--text-secondary); font-size: var(--t-12); overflow-wrap: anywhere; }
.fedr-preview-mark {
  padding: 0.05em 0; border-radius: var(--r-1); color: var(--text);
  background: color-mix(in srgb, var(--fedr-accent) 28%, transparent);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* The interface speaking, not the document. */
.fedr-preview-note { margin-top: var(--s-2); color: var(--text-muted); font-size: var(--t-11); }
/* The quoted words themselves. Set apart from the passage below them by a rule on the leading
   edge, because the difference between "these words are in the document" and "this is roughly
   where they are" is the whole point of the card (M12 §8). */
.fedr-preview-quote {
  margin-top: var(--s-2); padding-left: var(--s-2);
  border-left: 2px solid var(--fedr-accent);
  color: var(--text); font-size: var(--t-12); font-style: italic; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
}
.fedr-preview-snippet {
  margin-top: var(--s-2); color: var(--text-secondary); font-size: var(--t-12); overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
}

/* ---- welcome + turn status ---- */
.chat-welcome {
  padding: calc(var(--fedr-lede-top) - var(--s-6)) var(--s-4) var(--s-6);
  color: var(--text-muted);
}

/* One line, however long the reasoning is: this is a status row, not a
   transcript. Guarded by :not([hidden]), because an explicit display would
   otherwise beat the hidden attribute and pin the row on screen for the life of
   the conversation. */
.chat-thinking {
  color: var(--text-secondary); font-size: var(--t-13); padding: 0 0 var(--s-3);
  transition: opacity var(--t-base) var(--ease);
}
.chat-thinking:not([hidden]) { display: flex; align-items: center; gap: 0.5rem; }
/* The spinner keeps its square: as a flex item it would otherwise give up width to
   a long label and turn as an ellipse. */
.chat-thinking > .spinner-border { flex: none; }
.chat-thinking-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Reasoning, when a provider streams it: the newest complete sentence, in the
   status row, replacing the generic label. Two lines rather than one, because a
   sentence is what makes it readable and a sentence does not fit one line at
   phone width. It is never added to the transcript, which is the same fact as
   its never being stored. */
.chat-thinking-label.is-reasoning {
  font-style: italic; opacity: 0.85; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
/* Each new sentence fades in, so a change reads as a new thought rather than a
   flicker. The reduced-motion rule at the top shortens it to nothing. */
.chat-thinking-label.is-fresh { animation: fedr-thought-in var(--t-base) var(--ease); }
@keyframes fedr-thought-in { from { opacity: 0; } }
/* The turn's elapsed time. Quiet enough to read as reassurance rather than as a
   countdown. It is aria-hidden: the label beside it is a live region, and a live
   region that announces digits every second is worse than none. */
.chat-thinking-elapsed { margin-left: auto; font-size: var(--t-12); color: var(--text-muted); }
.chat-thinking-elapsed:empty { display: none; }
.chat-error-banner { font-size: var(--t-14); }

/* A note about the turn rather than about the archive: a research turn that answered from the
   conversation and wrote no section. Quieter than an error, because the answer above it stands --
   it is the claim to be a *report* that is being withdrawn. Sized and coloured like the AI
   disclosure (M9 §7), which is the same register: something the reader must be able to read and
   must not be shouted at by.
   Only the vertical margins are set here. `.fedr-chat-log > *` centres every direct child in the
   reading column with `margin-left/right: auto`, and a `margin` shorthand silently resets those
   to 0 -- which put this note 139px to the left of the answer it qualifies, reading as a note
   about the log rather than about that turn. */
.chat-notice {
  margin-top: calc(-1 * var(--s-4)); margin-bottom: var(--s-6);
  font-size: var(--t-13); line-height: 1.5; color: var(--text-secondary);
  border-left: 2px solid var(--line); padding-left: var(--s-3);
}

/* ---------------------------------------------------------------------
   10. The composer (M9 §8)
   --------------------------------------------------------------------- */
.fedr-chat-composer { position: relative; padding: var(--s-2) var(--s-4) var(--s-5); background: var(--surface); }
/* A soft fade, so text scrolling under the composer does not collide with it. */
.fedr-chat-composer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--s-6); pointer-events: none;
  background: linear-gradient(to top, var(--surface), transparent);
}
.fedr-chat-composer-inner { max-width: var(--fedr-chat-column); margin: 0 auto; }

.fedr-composer-box {
  background: var(--surface-raised); border: 1px solid var(--line-control);
  border-radius: var(--r-4); box-shadow: var(--shadow-1);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
/* Focus lands on the card, not on the textarea inside it: a sharp 2px rectangle
   nested inside a 14px-radius card reads as two controls. The card's ring is 4px
   where the inner one was 2px, and the border going to --text stays the primary
   signal, so nothing is weakened (WCAG 2.4.11/2.4.13). */
#chat-input:focus, #chat-input:focus-visible { outline: none; box-shadow: none; }
.fedr-composer-box:focus-within {
  border-color: var(--text);
  box-shadow: var(--shadow-1), 0 0 0 4px color-mix(in srgb, var(--fedr-accent) 45%, transparent);
}
/* The conversation's attached documents, a band above the transcript (M11 §8).
   ---------------------------------------------------------------------------------------------
   Geometry is borrowed, not invented. Its inner edge is the log's own content edge, so the label
   starts exactly where a tool entry does; its height puts its centre on the conversation rail's
   first row, so the two read as one line across the page.

   NOTE ON TOKENS. The first version of this block used --space-*, --border, --radius-pill and
   --danger, none of which exist: this theme's scales are --s-*, --r-* and --line. CSS drops an
   invalid declaration silently, so the strip rendered with no padding at all and sat against the
   rail. Nothing warned. Check a token exists before using it -- `grep -- "--name:" tokens.css`. */
.fedr-attachment-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 3rem;
  padding: 0 var(--s-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
/* The band casts its own fade over whatever scrolls beneath it, so a bubble passing under it
   dissolves instead of being sliced at the hairline. It is inert at rest: the log's own top
   padding is deeper than the gradient, so nothing is washed out until something is scrolled. */
.fedr-attachment-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--s-5);
  pointer-events: none;
  background: linear-gradient(to bottom, var(--surface), transparent);
}
.fedr-attachment-strip-label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Scrolls sideways rather than wrapping: a conversation with a dozen documents must not push the
   answer down the page. */
.fedr-attachment-strip-items {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

/* Attachment chips: in the strip above, and in the composer while a turn is being written. */
.fedr-attachment-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 14rem;
  gap: var(--s-1);
  padding: 2px 4px 2px var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  line-height: 1;
}
.fedr-attachment-chip.is-pending { opacity: 0.6; }
.fedr-attachment-chip.is-error { border-color: var(--fedr-danger); color: var(--fedr-danger); }
/* The name shortens rather than the chip growing: the strip has to survive twelve documents and
   one called "Protokoll der Gesellschafterversammlung vom 14. Februar 2026.pdf". */
.fedr-attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
}
/* Below this the names cost more than they give, and the icon alone identifies the type. */
@media (max-width: 640px) {
  .fedr-attachment-name { display: none; }
  .fedr-attachment-chip { max-width: none; }
}
.fedr-attachment-open,
.fedr-attachment-remove {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-width: 0;
  border: 0;
  background: none;
  color: inherit;
  padding: 2px;
  border-radius: var(--r-1);
}
.fedr-attachment-open:hover:not(:disabled) { color: var(--text); background: var(--surface); }
.fedr-attachment-open:disabled { cursor: default; }
.fedr-attachment-remove:hover { color: var(--fedr-danger); }

/* The attachment modal renders the document as plain text, never as markup: it is a file the
   user chose, and treating it as markdown would hand injection a surface (M11 §11.6). */
.fedr-attachment-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin: 0;
}

/* The drop target, so the box will not have
   to be redesigned when it arrives. */
.fedr-composer-box.is-dropping {
  border-color: var(--fedr-accent); border-style: dashed;
  background: color-mix(in srgb, var(--fedr-accent) 8%, var(--surface-raised));
}
.fedr-composer-input {
  display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent;
  font-family: var(--font-ui); font-size: var(--t-15); line-height: 1.55; color: var(--text);
  padding: 0.8rem 0.9rem 0.35rem; max-height: 12.5rem; overflow-y: auto;
}
.fedr-composer-input::placeholder { color: var(--text-muted); }

.fedr-composer-bar { display: flex; align-items: center; gap: var(--s-2); padding: 0.35rem 0.45rem 0.45rem 0.55rem; }
.fedr-composer-bar-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.fedr-composer-attach {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-2); background: transparent; color: var(--text-muted);
}
.fedr-composer-attach {
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.fedr-composer-attach:hover:not(:disabled) { background: var(--surface-sunken); color: var(--text); }
.fedr-composer-attach:active:not(:disabled) { transform: scale(.92); }
.fedr-composer-attach:disabled { opacity: 0.4; cursor: not-allowed; }

/* The mode control. A segmented pair, not a dropdown: there are exactly two
   modes, the choice belongs to the next question, and a mode revealed only on
   focus is a mode nobody finds.

   The selected state is one thumb that slides between the two, not a background
   that blinks from one button to the other: the movement is the thing that says
   which way the choice went (M9 §14 rule 1). composer.js publishes the checked
   button's offset and width, because the two labels are different lengths.
   The thumb is out of flow, so animating its width reflows nothing. */
.fedr-mode-toggle {
  position: relative; display: inline-flex; padding: 2px;
  background: var(--surface-sunken); border-radius: var(--r-2);
}
.fedr-mode-toggle::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 0;
  width: var(--thumb-w, 0); transform: translateX(var(--thumb-x, 0));
  background: var(--surface-raised); border-radius: var(--r-1);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
/* Before composer.js has measured, there is no thumb to show rather than a
   zero-width one parked at the left edge. */
.fedr-mode-toggle:not([style*="--thumb-w"])::before { opacity: 0; }
.fedr-mode-toggle.is-instant::before { transition: none; }
.fedr-mode-toggle button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: 0; background: transparent; border-radius: var(--r-1);
  padding: 0.25rem 0.65rem; font-size: var(--t-13); font-weight: 500; color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}
.fedr-mode-toggle button:hover { color: var(--text); }
.fedr-mode-toggle button[aria-checked="true"] { color: var(--text); font-weight: 600; }
.fedr-mode-toggle button[aria-checked="true"] .ic { color: var(--fedr-accent-hover); }
[data-bs-theme="dark"] .fedr-mode-toggle button[aria-checked="true"] .ic { color: var(--fedr-accent); }

/* The AI Act Article 50 disclosure (SPEC M7 11.3, M9 7). Quiet by construction: the
   smallest type the theme has, muted, centred under the composer. It has to be
   legible rather than prominent -- it is read once, by someone deciding how much to
   trust an answer, and the Article asks that the interface say this, not that it
   insist on it. No animation: it is present from first paint and never changes, so
   there is nothing for a transition to explain (M9 14 rule 4). */
.fedr-ai-disclosure { margin: var(--s-2) 0 0; font-size: var(--t-12); line-height: 1.4;
  color: var(--text-muted); text-align: center; }

/* In a report it is a statement about the document rather than about the interface,
   so it sits with the prose: left-aligned under the title, italic like the same
   sentence in the downloaded file, and separated from the first section. */
.fedr-ai-disclosure-report { margin: 0 0 var(--s-4); text-align: left; font-style: italic; }

/* The hint answers a question one has exactly once: on focus, gone once there is
   text. The counter is noise until it matters, so it appears at 80% of the cap. */
/* It gives way rather than pushing the send button out of the box: in a narrow column -- a phone, or
   the Word taskpane (M14 §9) -- it is cut short instead. */
.fedr-composer-hint { font-size: var(--t-12); color: var(--text-muted); white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity var(--t-base) var(--ease); }
.fedr-composer-box:focus-within .fedr-composer-hint { opacity: 1; }
.fedr-composer-box.has-text .fedr-composer-hint { opacity: 0; }
.char-counter { white-space: nowrap; font-size: var(--t-12); color: var(--text-muted); display: none; }
.char-counter.warning { display: inline; }
.char-counter.danger { display: inline; color: var(--fedr-danger); font-weight: 600; }

/* Send: an accent disc with an ink glyph -- the one control that is wholly the
   brand colour, which works because ink on yellow is 10:1. Disabled it is a
   neutral disc, so "nothing typed yet" reads without colour. */
.fedr-composer-send {
  flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fedr-accent); color: var(--fedr-on-accent);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.fedr-composer-send:hover:not(:disabled) { background: var(--fedr-accent-hover); }
.fedr-composer-send:active:not(:disabled) { transform: scale(.94); }
.fedr-composer-send:disabled { background: var(--surface-sunken); color: var(--text-muted); cursor: not-allowed; }
.fedr-composer-send.is-stopping { background: var(--text); color: var(--surface); }
