/*
 * The console of the Aquillus Hub - only what the shared ui-kit (/ui/aquillus.css) does not already provide.
 * Colours, type sizes, radii and motion come from the kit's custom properties; the page opts into the kit's look
 * "Wabe" (<html data-aq-look="wabe">, see the head of aquillus.css), so the console is a sibling of the desk's
 * web UI: the navigation in the brand's Dark Teal (a teal bar at the bottom of a phone), Poppins, graphite
 * surfaces that follow the kit, small hexagons as status marks.
 *
 * The console is built like a well-made settings app: one title per page, content in grouped lists and plain
 * tables over the full width in two to four columns. Groups carry a title above the surface and an optional
 * footnote below; nothing sits in a box inside another box.
 *
 * Colour is spent on meaning only:
 *   - Light Sea Green (--aq-fill) is what can be operated or is switched on: the primary button, a switch, a chosen
 *     filter, the progress of something that runs. As text and thin marks the accent is --aq-signal.
 *   - Green, amber, red and grey (the kit's ok, warn, bad, off) say how something is. A state never wears the
 *     brand colour, and red and green here mean "problem" and "in order", never "on air" and "preview".
 *   - Figures are drawn in --aqc-data, an ink with a little of the navigation's hue: a chart is neither a control
 *     nor a status. Status tones appear in a chart only where a part of it is a status (online, failed).
 *
 * Motion follows the kit (see "motion" there): it shows a change or answers the pointer and never holds anything
 * back. Pages cross-fade with a short slide (View Transitions, only the page content takes part), the highlight
 * of the current page glides, sheets grow from what opened them, groups open on the kit's spring, rows travel to
 * their new place when a table is sorted. Still not part of it: glow, decorative gradients, endless loops,
 * borders around everything, coloured side stripes, all-caps labels.
 */

:root {
  --aqc-rail-width: 252px;
  --aqc-tabs: 0px;   /* height of the bottom bar where there is one (phones) */
  /* the kit's spring curve (--aq-spring lives on body.aq; the page transition is drawn on the root) */
  --aqc-spring: linear(0, 0.0512 4%, 0.1628 8%, 0.2936 12%, 0.4219 16%, 0.5372 20%, 0.6575 25%, 0.7513 30%, 0.8222 35%, 0.8743 40%, 0.912 45%, 0.9389 50%, 0.9711 60%, 0.9866 70%, 0.9939 80%, 0.9972 90%, 1);
}
body.aq {
  /* what a figure is drawn in: the principal series, context beside it, the quiet remainder */
  --aqc-data: color-mix(in srgb, var(--aq-text) 66%, var(--aq-nav, var(--aq-petrol)));
  --aqc-data-2: color-mix(in srgb, var(--aq-muted) 62%, transparent);
  --aqc-data-3: color-mix(in srgb, var(--aq-muted) 30%, transparent);
  min-height: 100vh; min-height: 100dvh;
}
/* On white the same ink would be nearly black: it is taken back a little. (Twice, as the kit states its light values:
   for a forced light theme and for the light system theme.) */
:root[data-theme="light"] body.aq { --aqc-data: color-mix(in srgb, color-mix(in srgb, var(--aq-text) 60%, var(--aq-nav, var(--aq-petrol))) 78%, var(--aq-deck)); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body.aq { --aqc-data: color-mix(in srgb, color-mix(in srgb, var(--aq-text) 60%, var(--aq-nav, var(--aq-petrol))) 78%, var(--aq-deck)); }
}
html { scrollbar-gutter: stable; }
.aq [hidden] { display: none !important; }

.aqc-boot { padding: 20vh 20px; text-align: center; color: var(--aq-muted); }
.aqc-boot strong { display: block; color: var(--aq-text); font: 600 var(--aq-fs-lg)/1.3 var(--aq-font-legend); margin-bottom: 6px; }
.aq .aqc-boot, .aqc-boot p { margin: 0 auto; max-width: none; }

/* A whole page jumping between dark and light is hard on the eyes: theme.js sets this class for a moment. */
html.aqc-theming, html.aqc-theming *, html.aqc-theming *::before, html.aqc-theming *::after {
  transition: background-color 280ms linear, color 280ms linear, box-shadow 280ms linear, fill 280ms linear, stroke 280ms linear !important;
}

/* The kit's controls, where the console needs them a little different. */
.aq a.aq-btn { color: var(--aq-text); }
.aq a.aq-btn.primary { color: var(--aq-on-fill); }
.aq a.aq-btn.quiet { color: var(--aq-signal); }
.aq-input:disabled, .aq-select:disabled, .aq-textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.aq-switch:disabled { opacity: 0.45; cursor: not-allowed; }
/* Red text on the grey control fill misses AA in the dark theme: a destructive text button sits on the surface. */
.aq-btn.danger:not(.solid) { color: var(--aq-red); background: transparent; }
.aq-btn.danger:not(.solid):hover, .aq-btn.danger:not(.solid):active { background: color-mix(in srgb, var(--aq-red) 12%, transparent); }
/* A surface of the console's own lifts its controls one step, as the kit's groups do. */
:is(.aqc-stats, .aqc-channels, .aqc-card) { --aq-rail: var(--aq-rail-up); --aq-rail-2: var(--aq-rail-up-2); --aq-cell: var(--aq-cell-up); }

/* ---------- frame ---------- */
.aqc-skip {
  position: fixed; left: 12px; top: 12px; z-index: 60; transform: translateY(-160%); padding: 10px 14px; border: 0; border-radius: var(--aq-r);
  background: var(--aq-fill); color: var(--aq-on-fill); font: 600 var(--aq-fs-sm)/1.2 var(--aq-font); cursor: pointer;
}
.aqc-skip:focus-visible { transform: none; outline-color: var(--aq-text); }
.aqc-app { grid-template-columns: var(--aqc-rail-width) minmax(0, 1fr); }
.aq-main:focus, .aq-main:focus-visible { outline: none; }
.aq-main { padding: 30px 40px 88px; }
/*
 * The grid rules of every page (staff and portal):
 *   - A page uses the width it gets, up to 2240 px; only running text keeps its reading measure (68ch).
 *   - Groups sit in columns placed by layout() in lib.js: below 720 px of page width one column, from 720 two,
 *     from 1200 three, from 1800 four. What the person came for is in the first column, secondary material
 *     beside it, the record and the technical detail in the last.
 *   - Tables take the whole width and show more columns the wider they are (container queries on the table).
 *   - Figures that lead a page sit in one row of stat tiles above the columns.
 */
.aqc-page { max-width: 2240px; }
.aqc-narrow { max-width: 1180px; }
@media (min-width: 1800px) { .aq-main { padding: 34px 48px 96px; } }

/* The sidebar: Dark Teal in both themes (the kit's .aq-nav under the look "Wabe"). */
.aqc-sidebar { padding: 14px 10px 16px; gap: 2px; }
.aqc-sidebar :focus-visible, .aqc-tabbar :focus-visible { outline-color: #ffffff; }
.aqc-brand {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px 22px;
  font: 600 var(--aq-fs-lg)/1.2 var(--aq-font-legend); letter-spacing: -0.014em;
}
.aq .aqc-sidebar a.aqc-brand, .aq .aqc-sidebar a.aqc-brand:hover, .aq .aqc-sidebar a.aqc-brand:active { color: var(--aq-nav-text-on); background: none; text-decoration: none; }
.aqc-brand > span:last-child { min-width: 0; }
.aqc-brand small { display: block; margin-top: 1px; font: 400 var(--aq-fs-xs)/1.35 var(--aq-font); letter-spacing: 0.004em; color: var(--aq-nav-text); }
/* A long company name stays on two lines. */
.aqc-brand small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* The Aquillus mark, in the brand's Light Sea Green (the kit carries the drawing; the colour is set here). */
.aqc-logo {
  display: block; width: 32px; height: 32px; flex: none; background: var(--aq-fill);
  -webkit-mask: url("/ui/aquillus-mark.svg") center / contain no-repeat; mask: url("/ui/aquillus-mark.svg") center / contain no-repeat;
}
.aqc-sidebar a[data-section] { gap: 11px; padding: 6px 12px; min-height: 40px; }
.aqc-sidebar a[data-section] svg { width: 18px; height: 18px; }
.aqc-sidebar a[data-section] { transition: background-color var(--aq-t-press) linear, color var(--aq-t-press) linear; }
.aqc-nav-title { margin: 18px 12px 6px; font-size: var(--aq-fs-xs); font-weight: 500; letter-spacing: 0.004em; color: var(--aq-nav-text); }
/* The highlight of the current page: one mark that glides to the page that is opened (main.js). It lies behind
   the entries; where there is no mark (yet), the entry carries the highlight itself. */
.aqc-nav-mark { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 12px; background: var(--aq-nav-on); pointer-events: none; }
.aq [data-mark] > .aqc-nav-mark:not([hidden]) ~ a[aria-current="page"], [data-mark] > .aqc-nav-mark:not([hidden]) ~ button[data-current] { background: transparent; }

.aqc-account { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; }
.aqc-who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; min-width: 0; }
.aqc-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--aq-rail-2); color: var(--aq-text); font: 600 var(--aq-fs-xs)/1 var(--aq-font); letter-spacing: 0.02em;
}
.aqc-sidebar .aqc-avatar { background: var(--aq-nav-on); color: var(--aq-nav-text-on); }
.aqc-who-text { min-width: 0; line-height: 1.3; }
.aqc-who-text strong { display: block; font-size: var(--aq-fs-sm); font-weight: 600; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqc-who-text small { display: block; font-size: var(--aq-fs-xs); color: var(--aq-nav-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqc-account .aqc-theme { display: flex; margin: 0 4px 8px; }
.aqc-theme > button { flex: 1; padding: 4px 6px; font-size: var(--aq-fs-xs); }
/* the kit's segmented control, on teal */
.aqc-sidebar .aq-seg { background: rgba(0, 0, 0, 0.2); }
.aqc-sidebar .aq-seg > button { color: var(--aq-nav-text); }
.aqc-sidebar .aq-seg > button[aria-pressed="true"] { color: var(--aq-nav-text-on); box-shadow: none; }
.aqc-sidebar .aq-seg:not([data-thumb]) > button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.18); }
.aqc-sidebar .aq-seg-thumb { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.aqc-nav-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--aq-nav-text); font: 500 var(--aq-fs-sm)/1.2 var(--aq-font); letter-spacing: 0; text-align: left; cursor: pointer;
  transition: background-color var(--aq-t-press) linear, color var(--aq-t-press) linear;
}
.aqc-nav-btn svg { flex: none; }
.aqc-nav-btn:hover { background: var(--aq-nav-hover); color: var(--aq-nav-text-on); }
.aqc-nav-btn:active { background: var(--aq-nav-on); color: var(--aq-nav-text-on); }

/* The phone's bar at the bottom: four places and "Mehr", on the same Dark Teal. */
.aqc-tabbar { display: none; }

@media (max-width: 860px) {
  :root { --aqc-tabs: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .aqc-app { grid-template-columns: minmax(0, 1fr); }
  .aqc-sidebar { display: none; }
  .aq-main { padding: 20px 16px calc(var(--aqc-tabs) + 40px); }
  .aqc-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right));
    background: var(--aq-nav);
  }
  .aqc-tabbar > a, .aqc-tabbar > button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 50px; padding: 5px 2px 4px;
    border: 0; border-radius: 14px; background: none; color: var(--aq-nav-text); cursor: pointer;
    font: 500 0.6875rem/1.2 var(--aq-font); letter-spacing: 0.004em; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: background-color var(--aq-t-press) linear, color var(--aq-t-press) linear;
  }
  .aq .aqc-tabbar > a { color: var(--aq-nav-text); }
  .aq .aqc-tabbar > a:hover { text-decoration: none; }
  .aqc-tabbar svg { transition: transform var(--aq-t) var(--aq-ease); }
  .aqc-tabbar > a:active svg, .aqc-tabbar > button:active svg { transform: scale(0.9); transition-duration: var(--aq-t-press); }
  .aq .aqc-tabbar > a:active, .aq .aqc-tabbar > a[aria-current="page"], .aqc-tabbar > button:active, .aqc-tabbar > button[data-current] { background: var(--aq-nav-on); color: var(--aq-nav-text-on); }
  .aqc-tabbar .aqc-nav-mark { border-radius: 14px; }
  .aqc-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* what floats at the bottom moves above the bar */
  .aq-toasts { bottom: calc(var(--aqc-tabs) + 14px); }
}

/* ---------- going from one page to another ----------
 * The content cross-fades with a short slide (turn() in main.js). Only the page content takes part - the
 * navigation stays live - and the pointer goes through what is animating. What floats over the page content
 * takes part by name and is shown as it is right now, not as a picture of before and after: so the highlight
 * that glides in the navigation and a toast that leaves keep moving. */
:root { view-transition-name: none; }
.aq-main { view-transition-name: aqc-page; }
.aqc-sidebar, .aqc-login-brand { view-transition-name: aqc-rail; }
.aqc-tabbar { view-transition-name: aqc-tabs; }
.aqc-login-side { view-transition-name: aqc-entry; }
.aq-toasts { view-transition-name: aqc-toasts; }
::view-transition { pointer-events: none; }
::view-transition-group(aqc-page) { animation: none; }
::view-transition-old(aqc-page), ::view-transition-old(aqc-entry) { animation: aqc-page-out 110ms linear both; }
::view-transition-new(aqc-page), ::view-transition-new(aqc-entry) { animation: aqc-page-in 280ms var(--aqc-spring) both; }
/* A page that was scrolled is not shown leaving: its picture would stand at the top of the new page. */
:root.aqc-scrolled::view-transition-old(aqc-page) { display: none; }
:root:not(.aqc-arriving)::view-transition-group(aqc-rail), ::view-transition-group(aqc-tabs), ::view-transition-group(aqc-toasts) { animation: none; }
:root:not(.aqc-arriving)::view-transition-old(aqc-rail), :root:not(.aqc-arriving)::view-transition-old(aqc-tabs), ::view-transition-old(aqc-toasts) { display: none; }
:root:not(.aqc-arriving)::view-transition-new(aqc-rail), :root:not(.aqc-arriving)::view-transition-new(aqc-tabs), ::view-transition-new(aqc-toasts) { animation: none; }
@keyframes aqc-page-out { to { opacity: 0; } }
@keyframes aqc-page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes aqc-fade-in { from { opacity: 0; } }
/* Signing in and out, the one arrival that is staged: the brand panel of the sign-in page becomes the sidebar
   (and the sidebar the brand panel again). The panel itself changes its size on the spring; what stands on it
   is not stretched, it cross-fades. On a phone the brand is a band at the top that leaves, and the bar at the
   bottom comes up. */
:root.aqc-arriving::view-transition-group(aqc-rail) { animation-duration: 460ms; animation-timing-function: var(--aqc-spring); z-index: 1; }
:root.aqc-arriving::view-transition-old(aqc-rail), :root.aqc-arriving::view-transition-new(aqc-rail) { width: 100%; height: 100%; object-fit: none; object-position: left top; mix-blend-mode: normal; }
:root.aqc-arriving::view-transition-old(aqc-rail) { animation: aqc-page-out 150ms linear both; }
:root.aqc-arriving::view-transition-new(aqc-rail) { animation: aqc-fade-in 240ms linear 90ms both; }
:root.aqc-arriving::view-transition-new(aqc-tabs) { animation: aqc-tabs-in 420ms var(--aqc-spring) both; }
:root.aqc-arriving::view-transition-old(aqc-tabs) { animation: aqc-tabs-out 200ms ease-in both; }
@keyframes aqc-tabs-in { from { transform: translateY(100%); } }
@keyframes aqc-tabs-out { to { transform: translateY(100%); } }
@media (min-width: 861px) {
  :root.aqc-arriving::view-transition-group(aqc-rail) { background: var(--aq-nav); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation-duration: 0.01ms !important; }
  ::view-transition-old(*) { animation: none !important; display: none; }
  ::view-transition-new(*) { animation: aqc-fade-in 120ms linear both !important; }
}

/* ---------- page head ---------- */
.aqc-head { margin: 0 0 28px; }
.aqc-back {
  display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px -8px; padding: 4px 10px 4px 4px; border-radius: 10px;
  font-weight: 500; transition: background-color var(--aq-t-press) linear;
}
.aq .aqc-back:hover { text-decoration: none; background: color-mix(in srgb, var(--aq-signal) 10%, transparent); }
.aq .aqc-back:active { background: color-mix(in srgb, var(--aq-signal) 18%, transparent); }
.aqc-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.aqc-head-text { flex: 1 1 380px; min-width: 0; }
.aq .aqc-title { font: 600 var(--aq-fs-2xl)/1.16 var(--aq-font-legend); letter-spacing: -0.024em; overflow-wrap: anywhere; }
.aqc-head-meta { margin-top: 10px; font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aq .aqc-sub { margin-top: 6px; color: var(--aq-muted); font-size: var(--aq-fs-lg); line-height: 1.4; letter-spacing: -0.008em; max-width: 72ch; }
.aq .aqc-lead { margin-top: 6px; font-size: var(--aq-fs-lg); line-height: 1.4; letter-spacing: -0.008em; }
.aqc-lead + .aqc-head-meta { margin-top: 8px; }
.aqc-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aqc-banner { margin: -6px 0 28px; }

@media (max-width: 600px) {
  .aq .aqc-title { font-size: var(--aq-fs-xl); letter-spacing: -0.02em; }
  .aq .aqc-sub, .aq .aqc-lead { font-size: var(--aq-fs); letter-spacing: 0; }
  .aqc-head { margin-bottom: 22px; }
  .aqc-head-text { flex-basis: 100%; }
}

/* ---------- groups and rows ---------- */
.aqc-group { margin: 0 0 30px; min-width: 0; }
.aqc-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 10px; min-height: 22px; }
.aq .aqc-group-head h2 { margin: 0 0 0 2px; font: 600 var(--aq-fs-lg)/1.3 var(--aq-font-legend); letter-spacing: -0.012em; color: var(--aq-text); }
.aqc-group-head .aq-btn { margin: 0 0 -4px; }
.aq .aq-group-foot { margin: 8px 2px 0; line-height: 1.5; }
.aq h3.aq-group-title { font: 500 var(--aq-fs-sm)/1.35 var(--aq-font); letter-spacing: 0; color: var(--aq-muted); margin: 0 0 8px 16px; }
.aqc-after { margin-top: 12px; }
.aqc-before { margin-bottom: 12px; }
.aqc-pad { padding: 20px; }

.aqc-row { min-height: 48px; padding: 10px 16px; }
.aqc-row.aqc-top { align-items: flex-start; }
.aqc-row > .aq-item-label { font-size: var(--aq-fs); line-height: 1.4; overflow-wrap: anywhere; }
.aqc-row > .aq-item-label small { margin-top: 2px; font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-row > .aq-item-value { margin-left: auto; max-width: 62%; overflow-wrap: anywhere; font-variant-numeric: normal; }
.aqc-row-stack .aqc-stacked { display: block; margin-top: 4px; color: var(--aq-text); text-align: left; }
.aqc-chevron { display: flex; flex: none; margin-right: -4px; color: var(--aq-faint); }
.aq a.aqc-row, .aq button.aqc-row { transition: background-color var(--aq-t-press) linear; }
.aq a.aqc-row:hover, .aq button.aqc-row:hover { background: color-mix(in srgb, var(--aq-text) 4%, transparent); }
.aq a.aqc-row:active, .aq button.aqc-row:active { background: color-mix(in srgb, var(--aq-text) 9%, transparent); }
.aq a.aqc-row { color: var(--aq-text); }
/* A row that takes the focus shows its ring inside the list: the list clips what lies outside it. */
.aq a.aq-item:focus-visible, .aq button.aq-item:focus-visible, .aqc-fold-toggle:focus-visible, .aq .aq-item.aqc-choice:has(:focus-visible) { outline-offset: -3px; border-radius: 12px; }
.aqc-action > .aq-item-label { color: var(--aq-signal); font-weight: 500; }
.aqc-action.danger > .aq-item-label { color: var(--aq-red); }
.aqc-link-label { color: var(--aq-signal); font-weight: 500; }
.aqc-row-icon { display: flex; flex: none; color: var(--aq-muted); }
.aqc-row-icon.accent { color: var(--aq-signal); }
.aqc-lead-dot { margin-top: 6px; }
.aqc-sub-line { display: block; color: var(--aq-text); margin-bottom: 2px; }
.aqc-text-row > .aq-item-label { white-space: pre-wrap; }
.aqc-feed-row > .aq-item-label { font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-feed-row > .aq-item-label small { font-size: var(--aq-fs-xs); }

.aqc-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
.aqc-columns.single { grid-template-columns: minmax(0, 1fr); }
.aqc-columns.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aqc-column { min-width: 0; }
@media (max-width: 1100px) {
  .aqc-columns, .aqc-columns.even { grid-template-columns: minmax(0, 1fr); }
  .aqc-columns.reflow { display: flex; flex-direction: column; align-items: stretch; }
  .aqc-columns.reflow > .aqc-column { display: contents; }
  .aqc-o1 { order: 1; } .aqc-o2 { order: 2; } .aqc-o3 { order: 3; } .aqc-o4 { order: 4; } .aqc-o5 { order: 5; } .aqc-o6 { order: 6; } .aqc-o7 { order: 7; }
  .aqc-o8 { order: 8; } .aqc-o9 { order: 9; } .aqc-o10 { order: 10; }
}

/* ---------- small pieces ---------- */
/* Badge text a fifth of the way towards the text colour: the kit's tints reach only about 4:1 at this size,
   this keeps the hue and passes WCAG AA (4.5:1) in both themes. */
.aq .aq-badge { color: color-mix(in srgb, var(--aq-muted) 62%, var(--aq-text)); }
.aq .aq-badge.ok { color: color-mix(in srgb, var(--aq-green) 80%, var(--aq-text)); }
.aq .aq-badge.warn { color: color-mix(in srgb, var(--aq-amber) 80%, var(--aq-text)); }
.aq .aq-badge.bad { color: color-mix(in srgb, var(--aq-red) 80%, var(--aq-text)); }
.aq .aq-badge.accent { color: color-mix(in srgb, var(--aq-signal) 80%, var(--aq-text)); }
.aqc-filter-row .aq-input::placeholder { color: var(--aq-muted); }
.aqc-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.aqc-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
/* A badge in a cell hugs its text: children keep their own width instead of stretching. */
.aqc-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.aqc-cell > small { color: var(--aq-muted); font-size: var(--aq-fs-xs); letter-spacing: 0.004em; }
.aqc-code { font-family: var(--aq-font-mono); font-size: 0.9em; letter-spacing: 0; overflow-wrap: anywhere; }
.aqc-hash { word-break: break-all; }
/* The typeface has no tabular figures; columns of numbers are set right-aligned instead. */
.aqc-num { white-space: nowrap; }
.aqc-ver { white-space: nowrap; }
.aqc-nowrap { white-space: nowrap; }
.aqc-end, .aq-table th.aqc-end, .aq-table td.aqc-end { text-align: right; }
.aqc-strong { font-weight: 600; }
.aq a.aqc-strong { color: var(--aq-text); }
.aqc-you { margin-left: 8px; padding: 1px 7px; border-radius: 7px; background: var(--aq-rail); color: color-mix(in srgb, var(--aq-muted) 62%, var(--aq-text)); font-size: var(--aq-fs-xs); font-weight: 500; vertical-align: 1px; }
.aqc-scopes { display: flex; flex-wrap: wrap; gap: 4px; }
.aqc-scopes .aq-badge { font-family: var(--aq-font-mono); font-size: 0.6875rem; color: var(--aq-text); }
.aqc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aqc-clip { display: block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqc-loading { padding: 28px 4px; color: var(--aq-muted); }
.aqc-result { transition: opacity 120ms linear; }
.aqc-result[aria-busy="true"] { opacity: 0.55; }
.aqc-more-row { display: flex; justify-content: center; margin-top: 16px; }
.aq-empty .aqc-empty-text { margin: 0 auto; max-width: 52ch; }
.aqc-empty-action { margin-top: 18px; }
.aqc-page:has(.aqc-first-run) .aqc-head-actions, .aqc-page:has(.aqc-first-run) .aqc-filters, .aqc-page:has(.aqc-first-run) .aqc-list-head,
.aqc-page:has(.aqc-first-run-keep-filters) .aqc-head-actions { display: none; }
.aqc-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.aqc-note-text { flex: 1 1 320px; min-width: 0; }
.aqc-note-text strong { font-weight: 600; }
/* A numbered step: the number stands in a cell of the honeycomb (cellMark() of the kit). */
.aqc-step { --aq-cell-w: 27px; margin-top: -2px; color: var(--aq-text); }
.aqc-step > .aq-cell-no { font: 600 var(--aq-fs-xs)/1 var(--aq-font); letter-spacing: 0; }
.aqc-step-row { align-items: flex-start; gap: 14px; padding: 14px 16px; }
.aqc-step-body { flex: 1; min-width: 0; padding-top: 1px; }
.aqc-step-body p { max-width: 64ch; }
.aqc-step-body > p + p, .aqc-step-body > .aqc-copy + p { margin-top: 8px; }

/* ---------- channels: Dev, Beta, Stable side by side ---------- */
.aqc-channels {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--aq-deck); border-radius: var(--aq-r-lg); box-shadow: 0 0 0 1px var(--aq-edge); overflow: hidden;
}
.aqc-channel { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px 18px; color: var(--aq-text); }
/* The version is the point of a channel cell; where the cells get narrow it gets a size smaller rather than breaking at its hyphen. */
.aqc-channels { container: aqcchannels / inline-size; }
@container aqcchannels (max-width: 1100px) { .aqc-channel-version { font-size: var(--aq-fs-lg); line-height: 1.3; } }
.aqc-channel + .aqc-channel::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--aq-hairline); }
.aq a.aqc-channel { color: var(--aq-text); text-decoration: none; transition: background-color var(--aq-t-press) linear; }
.aq a.aqc-channel:hover { background: color-mix(in srgb, var(--aq-text) 4%, transparent); }
.aq a.aqc-channel:active { background: color-mix(in srgb, var(--aq-text) 9%, transparent); }
.aqc-channel-name { display: flex; align-items: center; gap: 8px; font-size: var(--aq-fs-sm); font-weight: 500; letter-spacing: 0; color: var(--aq-muted); }
/* the channel's mark is a status mark: a small hexagon, as everywhere */
.aqc-channel-dot { width: 9px; height: 10px; flex: none; background: var(--aq-faint); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.aqc-channel[data-channel="beta"] .aqc-channel-dot { background: var(--aq-amber-fill); }
.aqc-channel[data-channel="stable"] .aqc-channel-dot { background: var(--aq-green-fill); }
.aqc-channel-here { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--aq-signal); }
.aqc-channel-version { margin-top: 2px; font: 600 var(--aq-fs-xl)/1.25 var(--aq-font-legend); letter-spacing: -0.018em; overflow-wrap: anywhere; }
.aqc-channel-version.none { font-size: var(--aq-fs-lg); line-height: 1.5; color: var(--aq-muted); font-weight: 500; letter-spacing: -0.008em; }
.aqc-channel-note { font-size: var(--aq-fs-sm); line-height: 1.45; letter-spacing: 0; color: var(--aq-muted); }
.aqc-channel .aq-btn { align-self: flex-start; margin-top: 12px; }
.aqc-channel.current { background: color-mix(in srgb, var(--aq-signal) 9%, var(--aq-deck)); }
.aqc-channel.current .aqc-channel-name { color: var(--aq-text); }
.aqc-channel.current + .aqc-channel::before, .aqc-channel:has(+ .current)::after { opacity: 0; }
.aqc-channel.muted { color: var(--aq-muted); }

@media (max-width: 700px) {
  .aqc-channels { grid-template-columns: minmax(0, 1fr); }
  .aqc-channel { padding: 14px 16px 16px; }
  .aqc-channel + .aqc-channel::before { left: 16px; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
}

/* ---------- figures and bars ---------- */
.aqc-fleet { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 16px 18px; }
.aqc-fleet-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.aqc-stat { font: 600 var(--aq-fs-2xl)/1.1 var(--aq-font-legend); letter-spacing: -0.026em; }
.aqc-fleet-of { color: var(--aq-muted); }
.aqc-bar { display: flex; flex: 1; min-width: 40px; height: 6px; border-radius: 3px; background: var(--aq-rail-2); overflow: hidden; }
.aqc-bar.large { flex: none; height: 8px; border-radius: 4px; }
.aqc-bar > i { display: block; height: 100%; width: var(--w, 0%); transition: width var(--aq-t-sheet) var(--aq-ease); }
.aqc-bar-on { background: var(--aq-green); }
.aqc-bar-off { background: var(--aqc-data-2); }
.aqc-bar-row { gap: 16px; }
.aqc-bar-version { width: 112px; flex: none; font-weight: 500; overflow-wrap: anywhere; }
.aqc-bar-count { width: 76px; flex: none; text-align: right; line-height: 1.25; }
.aqc-bar-count small { display: block; color: var(--aq-muted); font-size: var(--aq-fs-xs); }
.aq a.aqc-bar-row { color: var(--aq-text); }

/* ---------- tables: a desk table, and a grouped list on a phone ---------- */
.aqc-table .aq-table { font-size: 0.8125rem; }
.aqc-table .aq-table th { padding: 10px 16px; }
.aqc-table .aq-table td { padding: 11px 16px; }
.aqc-table .aq-table tbody tr[data-href] { transition: background-color var(--aq-t-press) linear; }
.aqc-table .aq-table tbody tr:focus-visible { outline-offset: -3px; }
.aqc-sort {
  display: inline-flex; align-items: center; gap: 5px; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 8px;
  background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; transition: background-color var(--aq-t-press) linear;
}
.aqc-sort:hover { color: var(--aq-text); background: color-mix(in srgb, var(--aq-text) 6%, transparent); }
.aqc-sort:active { background: color-mix(in srgb, var(--aq-text) 12%, transparent); }
.aqc-sort-mark { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: transform var(--aq-t) var(--aq-ease), opacity 120ms linear; }
th[aria-sort="ascending"] .aqc-sort-mark { opacity: 1; transform: rotate(-135deg) translate(-1px, -1px); }
th[aria-sort="descending"] .aqc-sort-mark { opacity: 1; }
th[aria-sort="ascending"] .aqc-sort, th[aria-sort="descending"] .aqc-sort { color: var(--aq-text); }
.aqc-phone-list { display: none; }
.aqc-phone-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; }
.aqc-phone-row > .aq-item-label small { display: flex; flex-wrap: wrap; gap: 0 4px; }
.aqc-list-head { display: flex; align-items: center; min-height: 20px; margin: 0 2px 8px; }
.aqc-filter-count { font-size: var(--aq-fs-sm); color: var(--aq-muted); letter-spacing: 0; }

/* A table decides by its own width, not the window's: the same table in a narrow column shows fewer columns,
   and below 600 px it becomes a grouped list. wide-only from 760 px, roomy-only from 1000 px, xl-only from 1400 px. */
.aqc-table { container: aqctable / inline-size; }
.aqc-xl-only { display: none; }
@container aqctable (min-width: 1400px) { .aq-table .aqc-xl-only { display: table-cell; } }
@container aqctable (max-width: 1000px) { .aqc-roomy-only { display: none; } }
@container aqctable (max-width: 760px) { .aqc-wide-only { display: none; } }
@container aqctable (max-width: 600px) {
  .aqc-desk-table { display: none; }
  .aqc-phone-list { display: block; }
}

/* ---------- filters ---------- */
.aqc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 16px; }
.aqc-search { position: relative; flex: 1 1 300px; max-width: 400px; }
.aqc-search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--aq-muted); pointer-events: none; }
.aqc-search > .aq-input { padding-left: 36px; }
.aqc-search > .aq-input::-webkit-search-cancel-button { cursor: pointer; }
.aqc-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.aqc-filter-row .aq-select, .aqc-filter-row .aq-input {
  width: auto; min-height: 32px; padding: 4px 30px 4px 12px; border-radius: 10px; font-size: var(--aq-fs-sm); letter-spacing: 0;
}
.aqc-filter-row .aq-input { padding-right: 12px; }
/* A long customer name in the list of options must not stretch the control across the row. */
.aqc-filter-row .aq-select { max-width: 260px; text-overflow: ellipsis; }
.aqc-filter-row .aqc-version-filter { width: 112px; }
/* A filter that is set is switched on: it carries the accent. */
.aqc-filter-row .aq-select[data-set], .aqc-filter-row .aq-input[data-set] {
  background-color: color-mix(in srgb, var(--aq-signal) 16%, var(--aq-deck)); color: var(--aq-text); font-weight: 500;
}
.aqc-chip { display: inline-flex; align-items: center; gap: 2px; padding-left: 12px; border-radius: 10px; background: var(--aq-rail); font-size: var(--aq-fs-sm); letter-spacing: 0; }

@media (max-width: 700px) {
  .aqc-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .aqc-search { max-width: none; flex-basis: auto; }
  /* The filters wrap onto further lines; nothing scrolls sideways. */
  .aqc-filter-row { gap: 8px 6px; }
  .aqc-filter-row .aq-select, .aqc-filter-row .aq-input { max-width: 100%; }
}

/* ---------- forms ---------- */
.aqc-form { display: flex; flex-direction: column; gap: 16px; }
.aqc-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.aqc-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.aqc-group-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.aqc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.aqc-toggle-text { flex: 1; min-width: 0; line-height: 1.4; }
.aqc-toggle-text small { display: block; margin-top: 3px; font-size: var(--aq-fs-sm); letter-spacing: 0; color: var(--aq-muted); line-height: 1.45; }
.aqc-toggle-row { padding: 12px 16px; }
.aqc-toggle-row > .aqc-toggle { flex: 1; }
.aqc-field-row { gap: 10px; cursor: text; }
.aqc-field-row .aqc-number { width: 112px; flex: none; text-align: right; }
.aqc-check-row { gap: 12px; cursor: pointer; }
.aqc-check-row input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--aq-fill); }
.aqc-check-row small { color: var(--aq-muted); }
.aqc-seg-fill { display: flex; }
.aqc-seg-fill > button { flex: 1; }
.aqc-caption { font-size: var(--aq-fs-sm); letter-spacing: 0; color: var(--aq-muted); }
.aqc-file-input { padding: 6px 8px; }
.aqc-file-input::file-selector-button {
  margin-right: 12px; padding: 4px 12px; border: 0; border-radius: 10px; background: var(--aq-deck); color: var(--aq-text);
  font: 500 var(--aq-fs-sm)/1.3 var(--aq-font); cursor: pointer;
}
@media (max-width: 600px) { .aqc-form-pair { grid-template-columns: minmax(0, 1fr); } }

/* Surfaces inside a sheet sit one step back from it. */
.aqc-sheet .aq-list, .aqc-inset-list { background: color-mix(in srgb, var(--aq-rail) 55%, var(--aq-deck)); box-shadow: none; }
.aqc-sheet .aqc-toggle { padding: 2px 0; }

/* ---------- code, copy, release notes ---------- */
.aqc-copy { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.aq .aqc-copy pre {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: var(--aq-r); background: color-mix(in srgb, var(--aq-rail) 70%, var(--aq-deck));
  font-size: 0.78rem; line-height: 1.5; white-space: pre; overflow-x: auto;
}
.aq .aqc-copy.wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.aqc-copy-btn { flex: none; }
.aq .aqc-pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 56vh; background: color-mix(in srgb, var(--aq-rail) 70%, var(--aq-deck)); font-size: 0.8rem; }
.aqc-notes { line-height: 1.5; }
.aqc-notes ul { margin: 0; padding-left: 20px; }
.aqc-notes li + li { margin-top: 3px; }
.aq .aqc-notes h3 { font-size: var(--aq-fs); }
.aqc-preview { padding: 14px 16px; border-radius: var(--aq-r); background: color-mix(in srgb, var(--aq-rail) 60%, var(--aq-deck)); font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-preview > .aq-stack { gap: 8px; }

/* ---------- upload ---------- */
.aqc-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; border-radius: var(--aq-r-lg); text-align: center;
  background: color-mix(in srgb, var(--aq-rail) 55%, var(--aq-deck)); outline: 1.5px dashed color-mix(in srgb, var(--aq-muted) 55%, transparent); outline-offset: -1.5px;
  transition: background-color var(--aq-t) var(--aq-ease), outline-color var(--aq-t) linear;
}
.aqc-drop[data-over="true"] { outline-color: var(--aq-signal); background: color-mix(in srgb, var(--aq-signal) 10%, var(--aq-deck)); }
.aqc-drop strong { font: 600 var(--aq-fs-lg)/1.3 var(--aq-font-legend); letter-spacing: -0.012em; }
.aqc-drop > .aq-muted { max-width: 44ch; font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-drop > .aq-btn { margin-top: 6px; }
.aqc-drop-icon { display: flex; color: var(--aq-muted); margin-bottom: 2px; }
.aqc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.aqc-drop-file, .aqc-sheet-file { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--aq-r-lg); background: color-mix(in srgb, var(--aq-rail) 55%, var(--aq-deck)); }
.aqc-drop-file-icon { display: flex; color: var(--aq-signal); }
.aqc-drop-file-text, .aqc-sheet-file-text { flex: 1; min-width: 0; line-height: 1.35; }
.aqc-drop-file-text strong, .aqc-sheet-file-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.aqc-drop-file-text small, .aqc-sheet-file-text small { display: block; color: var(--aq-muted); font-size: var(--aq-fs-xs); }
.aqc-progress { display: flex; flex-direction: column; gap: 10px; }
.aqc-progress-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--aq-fs-sm); letter-spacing: 0; color: var(--aq-muted); }
/* A package dragged over the releases page: the whole page is the target. */
.aqc-page { position: relative; }
.aqc-page[data-over="true"]::after {
  content: "Loslassen, um das Paket hochzuladen"; position: fixed; inset: 16px 16px 16px calc(var(--aqc-rail-width) + 16px); z-index: 40; pointer-events: none;
  display: grid; place-items: center; border-radius: var(--aq-r-xl); outline: 2px dashed var(--aq-signal); outline-offset: -2px;
  background: color-mix(in srgb, var(--aq-signal) 12%, var(--aq-ink)); color: var(--aq-signal); font: 600 var(--aq-fs-lg)/1.3 var(--aq-font-legend);
}
@media (max-width: 860px) { .aqc-page[data-over="true"]::after { left: 16px; bottom: calc(var(--aqc-tabs) + 16px); } }

/* ---------- sheets ----------
 * The kit's sheet under the look "Wabe": it grows from the control that opened it and leaves towards it; on a
 * phone it comes up from the bottom edge, with the kit's grip at its top to pull it down by. */
.aqc-sheet.wide { width: min(780px, calc(100vw - 28px)); }
.aqc-sheet > header { position: relative; }
.aqc-sheet > header h2 { overflow-wrap: anywhere; }
.aqc-sheet-sub { margin-top: 4px; color: var(--aq-muted); }
.aqc-sheet > .body { padding-top: 16px; max-height: calc(100dvh - 190px); }
.aqc-sheet > .body > p { line-height: 1.5; }
.aqc-sheet > footer { align-items: center; }
.aqc-sheet > footer .aqc-start { margin-right: auto; }
.aqc-more { display: flex; flex-direction: column; gap: 20px; }
.aqc-more .aqc-theme > button { padding: 4px 10px; }

@media (max-width: 600px) {
  dialog.aq-dialog.aqc-sheet.wide { width: 100%; }
  .aqc-sheet > header { padding: 16px 20px 0; cursor: grab; }
  .aqc-sheet > .body { padding: 14px 20px 8px; max-height: none; }
  .aqc-sheet > footer { padding: 12px 20px 20px; }
  .aqc-sheet > footer .aq-btn { flex: 1 1 0; min-height: 44px; }
  .aqc-sheet > footer .aqc-start { flex: 0 0 auto; }
}

/* ---------- sign in ----------
 * The brand on Dark Teal beside the form; on a narrow screen it is a band above it. The page arrives once:
 * mark, name and line one after the other, then the form. */
.aqc-login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); }
.aqc-login-brand {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 48px clamp(32px, 5vw, 72px);
  background: var(--aq-nav); color: var(--aq-nav-text-on);
}
.aqc-login-brand .aqc-logo { width: 68px; height: 58px; margin-bottom: 18px; }
.aq .aqc-login-name { margin: 0; font: 600 var(--aq-fs-3xl)/1.12 var(--aq-font-legend); letter-spacing: -0.028em; color: var(--aq-nav-text-on); }
.aq .aqc-login-claim { margin: 0; max-width: 34ch; color: var(--aq-nav-text); }
.aqc-login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; min-width: 0; padding: 40px 16px; }
.aqc-login-box { width: min(400px, 100%); display: flex; flex-direction: column; }
.aqc-login-box > .aq-note { width: 100%; margin-bottom: 18px; text-align: left; }
.aqc-login-form { width: 100%; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.aqc-login-form .aq-btn { width: 100%; margin-top: 6px; }
.aqc-login-form .aq-input { min-height: 44px; }
.aqc-login-foot { display: flex; align-items: center; gap: 12px; font-size: var(--aq-fs-sm); }
.aqc-login-brand > * { animation: aqc-arrive 460ms var(--aq-spring) both; }
.aqc-login-brand > :nth-child(2) { animation-delay: 50ms; }
.aqc-login-brand > :nth-child(3) { animation-delay: 100ms; }
.aqc-login-box { animation: aqc-arrive 480ms var(--aq-spring) 140ms both; }
.aqc-login-foot { animation: aqc-fade-in 300ms linear 320ms both; }
@keyframes aqc-arrive { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 860px) {
  .aqc-login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .aqc-login-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 16px; padding: 28px 24px 24px; }
  .aqc-login-brand .aqc-logo { grid-row: span 2; width: 48px; height: 42px; margin: 0; }
  .aq .aqc-login-name { font-size: var(--aq-fs-2xl); }
  .aqc-login-side { justify-content: flex-start; padding: 32px 16px 40px; }
}

/* ---------- one-time links ---------- */
.aq .aqc-login-title { font: 600 var(--aq-fs-xl)/1.25 var(--aq-font-legend); letter-spacing: -0.018em; text-align: center; }
.aq .aqc-login-sub { margin: 6px auto 22px; color: var(--aq-muted); text-align: center; }
.aq .aqc-link-text { margin: 0 auto 18px; max-width: 40ch; text-align: center; line-height: 1.5; }
.aqc-link-box > .aqc-link-text { width: 100%; }
.aqc-link-box > .aqc-loading { text-align: center; }
.aqc-link-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; margin-top: 4px; }
.aq .aqc-link-foot { margin: 18px auto 0; font-size: var(--aq-fs-sm); letter-spacing: 0; line-height: 1.5; text-align: center; }
.aqc-login-form .aqc-readonly { color: var(--aq-muted); background: color-mix(in srgb, var(--aq-rail) 55%, var(--aq-ink)); cursor: default; }
.aqc-login-box h1:focus { outline: none; }

/* ---------- small additions ---------- */
.aqc-badges { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.aqc-cell .aqc-badges, td .aqc-badges { justify-content: flex-start; }
.aqc-row-badges { display: flex; justify-content: flex-start; margin-top: 6px; }
.aqc-link-button { padding: 0; border: 0; background: none; color: var(--aq-signal); font: inherit; letter-spacing: inherit; cursor: pointer; }
.aqc-link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.aqc-disabled > .aq-item-label { color: var(--aq-muted); }
.aq .aqc-group-intro { margin: -2px 2px 12px; font-size: var(--aq-fs-sm); letter-spacing: 0; color: var(--aq-muted); line-height: 1.5; }
.aqc-pre-line { white-space: pre-line; }
.aqc-sub-block { display: block; }
.aqc-quote { font-style: normal; }

/* ---------- utilisation: four small charts on one surface ---------- */
.aqc-group-head .aqc-range { margin-bottom: -2px; }
.aqc-range > button { min-height: 26px; padding: 3px 10px; font-size: var(--aq-fs-xs); }
.aqc-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--aq-hairline); }
.aqc-metric { min-width: 0; padding: 14px 16px 12px; background: var(--aq-deck); }
.aqc-metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.aqc-metric-label { font-size: var(--aq-fs-sm); font-weight: 500; letter-spacing: 0; color: var(--aq-muted); }
.aqc-metric-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 2px 0 8px; }
.aqc-metric-value { font: 600 var(--aq-fs-xl)/1.2 var(--aq-font-legend); letter-spacing: -0.018em; }
.aqc-metric-now.stale .aqc-metric-value { color: var(--aq-muted); }
.aqc-metric-detail { font-size: var(--aq-fs-xs); letter-spacing: 0.004em; color: var(--aq-muted); }
.aq .aqc-metric-sub { margin-top: 4px; font-size: var(--aq-fs-xs); letter-spacing: 0.004em; color: var(--aq-muted); }
.aqc-chart { position: relative; min-height: 132px; }
.aqc-chart-svg { display: block; overflow: visible; touch-action: pan-y; border-radius: 8px; }
.aqc-chart-svg:focus-visible { outline: 2.5px solid var(--aq-focus); outline-offset: 3px; }
.aqc-chart-grid { stroke: var(--aq-hairline); stroke-width: 1; shape-rendering: crispEdges; }
.aqc-chart-tick { stroke: color-mix(in srgb, var(--aq-muted) 40%, transparent); stroke-width: 1; shape-rendering: crispEdges; }
/* labels are anchored at their end or their middle, so figures of differing width do not jitter */
.aqc-chart-axis { fill: var(--aq-muted); font: 500 11px/1 var(--aq-font); letter-spacing: 0; }
.aqc-chart-line { fill: none; stroke: var(--aqc-data); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.aqc-chart-area { fill: color-mix(in srgb, var(--aqc-data) 11%, transparent); stroke: none; }
.aqc-chart-dot { fill: var(--aqc-data); stroke: var(--aq-deck); stroke-width: 2; }
.aqc-chart-dot.ok { fill: var(--aq-green); }
.aqc-chart-dot.warn { fill: var(--aq-amber); }
.aqc-chart-dot.bad { fill: var(--aq-red); }
.aqc-chart-dot.neutral { fill: color-mix(in srgb, var(--aq-muted) 80%, var(--aq-deck)); }
.aqc-chart-dot.faint { fill: color-mix(in srgb, var(--aq-muted) 45%, var(--aq-deck)); }
.aqc-chart-empty { fill: var(--aq-muted); font: 500 var(--aq-fs-xs)/1 var(--aq-font); }
.aqc-chart-cross { stroke: color-mix(in srgb, var(--aq-text) 40%, transparent); stroke-width: 1; shape-rendering: crispEdges; pointer-events: none; }
.aqc-chart-marker { fill: var(--aq-text); stroke: var(--aq-deck); stroke-width: 2; pointer-events: none; }
.aqc-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); z-index: 5; pointer-events: none; white-space: nowrap;
  display: flex; flex-direction: column; gap: 1px; padding: 7px 11px; border-radius: 12px;
  background: var(--aq-rail-up, var(--aq-deck)); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--aq-hairline);
  font-size: var(--aq-fs-xs); letter-spacing: 0; line-height: 1.4;
}
.aqc-tip strong { font-size: var(--aq-fs-sm); font-weight: 600; }
.aqc-tip span, .aqc-tip small { color: var(--aq-muted); font-size: var(--aq-fs-xs); }
/* the digit slots of a value (charts.js) are part of that value */
.aqc-tip .aq-digit { color: inherit; font-size: inherit; }
@media (max-width: 600px) { .aqc-metrics { grid-template-columns: minmax(0, 1fr); } }

/* ---------- requests to a desk ---------- */
.aqc-command-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-weight: 600; }
.aqc-command > .aq-item-label > small { margin-top: 4px; }
/* The way back sits beside the request only while the four steps keep room for their labels; otherwise below it. */
.aqc-command { flex-wrap: wrap; }
.aqc-command > .aq-item-label { flex: 1 1 300px; }
.aqc-command > .aq-btn { flex: none; }
.aqc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 2px; padding: 0; list-style: none; }
.aqc-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: var(--aq-fs-xs); letter-spacing: 0.004em; color: var(--aq-muted); }
/* A line runs from each step to the next; the part already travelled is solid. The marks are hexagons: filled
   when the step is done, hollow where the request stands now. */
.aqc-steps li::before { content: ""; position: absolute; left: 13px; right: -4px; top: 5px; height: 2px; border-radius: 1px; background: var(--aq-rail-2); transition: background-color 200ms linear; }
.aqc-steps li:last-child::before { display: none; }
.aqc-steps li[data-step="done"]::before { background: var(--aq-signal); }
.aqc-steps-dot, .aqc-timeline-dot { position: relative; flex: none; width: 11px; height: 12px; background: var(--aq-rail-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background-color 200ms linear; }
.aqc-steps-dot::after, .aqc-timeline-dot::after { content: ""; position: absolute; inset: 2.5px; background: var(--aq-deck); clip-path: inherit; opacity: 0; }
.aqc-steps li[data-step="done"] .aqc-steps-dot { background: var(--aq-signal); }
.aqc-steps li[data-step="current"] .aqc-steps-dot { background: var(--aq-signal); }
.aqc-steps li[data-step="current"] .aqc-steps-dot::after { opacity: 1; }
.aqc-steps li[data-step="current"] { color: var(--aq-text); font-weight: 600; }
.aqc-steps li span { overflow-wrap: normal; }
@media (max-width: 600px) {
  /* On a phone the way back sits under the request, so its steps get the whole width. */
  .aqc-command { flex-wrap: wrap; }
  .aqc-command > .aq-item-label { flex-basis: 100%; }
  .aqc-command > .aq-btn { margin: -4px 0 0 -11px; }
}
.aqc-offer + .aqc-offer { margin-top: 12px; }
.aqc-offer-notes { display: block; padding: 4px 16px 14px; }
.aqc-offer-notes::before { display: none; }
.aqc-offer-notes .aqc-notes { font-size: var(--aq-fs-sm); letter-spacing: 0; color: var(--aq-text); }
.aq .aqc-offer-notes .aqc-notes h3 { font-size: var(--aq-fs-sm); }
.aqc-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.aqc-fieldset > legend { margin: 0 0 6px; padding: 0; font-size: var(--aq-fs-sm); font-weight: 500; letter-spacing: 0; color: var(--aq-muted); }
.aqc-choice { align-items: flex-start; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background-color var(--aq-t) var(--aq-ease); }
.aqc-choice input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--aq-fill); }
.aqc-choice strong { display: block; font-weight: 600; }
.aqc-choice small { display: block; margin-top: 2px; line-height: 1.45; }
.aqc-choice:active { background: color-mix(in srgb, var(--aq-text) 6%, transparent); transition-duration: var(--aq-t-press); }
.aqc-choice:has(input:checked) { background: color-mix(in srgb, var(--aq-signal) 12%, transparent); }
.aqc-request .aq-item-label small { line-height: 1.45; }

/* ---------- updates of the portal ---------- */
.aqc-release-head { gap: 16px; }
.aqc-release-name { font: 600 var(--aq-fs-lg)/1.3 var(--aq-font-legend); letter-spacing: -0.012em; }
.aqc-release-share { flex: none; text-align: right; line-height: 1.3; }
.aqc-release-share strong { display: block; font-weight: 600; }
.aqc-release-share small { display: block; color: var(--aq-muted); font-size: var(--aq-fs-xs); }
.aqc-release-parts { min-height: 40px; color: var(--aq-muted); }
@media (max-width: 600px) {
  .aqc-release-head { flex-wrap: wrap; }
  .aqc-release-share { text-align: left; }
  .aqc-show { display: flex; }
  .aqc-show > button { flex: 1 1 auto; padding-left: 8px; padding-right: 8px; }
}

/* ---------- columns (layout() in lib.js) ---------- */
.aqc-layout { display: grid; grid-template-columns: var(--aqc-cols, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.aqc-layout[data-cols="4"] { gap: 0 36px; }
.aqc-col { min-width: 0; }
.aqc-span { margin-bottom: 32px; }

/* ---------- folding groups ---------- */
.aqc-foldable > .aqc-group-head { align-items: center; }
.aq .aqc-foldable .aqc-group-head h2 { flex: 1; min-width: 0; margin-left: -6px; }
.aqc-fold-toggle {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 2px 8px; width: 100%; padding: 4px 8px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--aq-t-press) linear;
}
.aqc-fold-toggle:hover { background: color-mix(in srgb, var(--aq-text) 5%, transparent); }
.aqc-fold-toggle:active { background: color-mix(in srgb, var(--aq-text) 10%, transparent); }
.aqc-fold-chevron { display: inline-flex; align-self: center; margin: 0 2px 0 -4px; color: var(--aq-muted); transform: rotate(0deg); transition: transform var(--aq-t) var(--aq-ease); }
.aqc-foldable[data-open] > .aqc-group-head .aqc-fold-chevron, .aqc-disclosure[data-open] > .aqc-fold-toggle .aqc-fold-chevron { transform: rotate(90deg); }
.aqc-fold-summary { font: 400 var(--aq-fs-sm)/1.4 var(--aq-font); letter-spacing: 0; color: var(--aq-muted); min-width: 0; }
.aqc-foldable[data-open] > .aqc-group-head .aqc-fold-summary { display: none; }
/* The body grows from nothing to its height and back on the kit's spring; a second click turns it round from
   wherever it is. (A height is animated here because the page below has to move.) */
.aqc-fold { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 380ms var(--aq-ease), opacity 200ms linear; }
.aqc-foldable[data-open] > .aqc-fold { grid-template-rows: 1fr; opacity: 1; }
.aqc-fold-inner { min-width: 0; min-height: 0; overflow: hidden; }
.aqc-foldable[data-open] > .aqc-fold:not([data-moving]) > .aqc-fold-inner { overflow: visible; }
.aqc-foldable:not([data-open]) { margin-bottom: 20px; }
/* Where the group is narrow (a phone, a side column) the summary of a closed group gets its own line under the title. */
.aqc-foldable { container: aqcgroup / inline-size; }
@container aqcgroup (max-width: 460px) { .aqc-foldable > .aqc-group-head .aqc-fold-summary { grid-column: 1 / -1; } }
.aqc-disclosure > .aqc-fold-toggle { grid-template-columns: auto minmax(0, 1fr); }

/* An inline disclosure inside a surface (release notes, a release of the portal). */
.aqc-disclosure > .aqc-fold-toggle { padding: 12px 16px; border-radius: 0; }

/* ---------- stat tiles ---------- */
.aqc-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 0 0 30px;
  background: var(--aq-deck); border-radius: var(--aq-r-lg); box-shadow: 0 0 0 1px var(--aq-edge); overflow: hidden;
}
/* Hairlines on the left and top of every tile; those of the first column and row fall outside and are clipped. */
.aqc-stat-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 18px 18px; margin: 0 0 0 -1px;
  border: 0; background: var(--aq-deck); color: var(--aq-text); font: inherit; text-align: left; text-decoration: none;
  box-shadow: inset 1px 0 0 var(--aq-hairline), inset 0 1px 0 var(--aq-hairline); margin-top: -1px;
}
.aq a.aqc-stat-tile, button.aqc-stat-tile { color: var(--aq-text); cursor: pointer; transition: background-color var(--aq-t-press) linear; }
.aq a.aqc-stat-tile:hover, button.aqc-stat-tile:hover { text-decoration: none; background: color-mix(in srgb, var(--aq-text) 3%, var(--aq-deck)); }
.aq a.aqc-stat-tile:active, button.aqc-stat-tile:active { background: color-mix(in srgb, var(--aq-text) 7%, var(--aq-deck)); }
.aq a.aqc-stat-tile:focus-visible, button.aqc-stat-tile:focus-visible { outline-offset: -3px; border-radius: var(--aq-r-lg); }
.aqc-stat-label { font-size: var(--aq-fs-sm); font-weight: 500; letter-spacing: 0; color: var(--aq-muted); }
.aqc-stat-value { font: 600 1.875rem/1.15 var(--aq-font-legend); letter-spacing: -0.028em; }
.aqc-stat-sub { font-size: var(--aq-fs-xs); letter-spacing: 0.004em; line-height: 1.4; color: var(--aq-muted); }
.aqc-stat-tile .aqc-parts-figure, .aqc-stat-tile .aqc-meter, .aqc-stat-tile .aqc-parts { flex: none; margin-top: 10px; }
.aqc-stat-tile.warn .aqc-stat-value { color: color-mix(in srgb, var(--aq-amber) 85%, var(--aq-text)); }
.aqc-stat-tile.bad .aqc-stat-value { color: color-mix(in srgb, var(--aq-red) 85%, var(--aq-text)); }
@media (max-width: 600px) {
  .aqc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
  .aqc-stat-tile { padding: 12px 14px 14px; }
  .aqc-stat-value { font-size: var(--aq-fs-2xl); }
}

/* ---------- chart primitives (charts.js) ---------- */
/* Tones: a figure is drawn in the data ink ("accent" in charts.js: what the chart is about), its context in grey;
   a part that is a status takes the kit's status colour as a mark (the text tones, which keep 3:1 against the
   surface in both themes). */
.aqc-part, .aqc-swatch, .aqc-meter-fill { background: var(--aqc-data-2); }
.aqc-part.ok, .aqc-swatch.ok, .aqc-meter-fill.ok { background: var(--aq-green); }
.aqc-part.accent, .aqc-swatch.accent, .aqc-meter-fill.accent { background: var(--aqc-data); }
.aqc-part.warn, .aqc-swatch.warn, .aqc-meter-fill.warn { background: var(--aq-amber); }
.aqc-part.bad, .aqc-swatch.bad, .aqc-meter-fill.bad { background: var(--aq-red); }
.aqc-part.faint, .aqc-swatch.faint, .aqc-meter-fill.faint { background: var(--aqc-data-3); }

.aqc-meter { position: relative; display: block; flex: 1; min-width: 40px; height: 6px; border-radius: 3px; background: var(--aq-rail-2); overflow: hidden; }
.aqc-meter.small { flex: none; width: 44px; height: 5px; }
.aqc-meter.none { background: color-mix(in srgb, var(--aq-rail-2) 50%, transparent); }
.aqc-meter-fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; transition: width var(--aq-t-sheet) var(--aq-ease); }
.aqc-inline-meter { display: inline-flex; align-items: center; gap: 8px; }
.aqc-meters { display: flex; flex-direction: column; gap: 10px; }
.aqc-meters.compact { gap: 6px; }
.aqc-meter-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-meters.compact .aqc-meter-row { grid-template-columns: 80px minmax(0, 1fr) 48px; font-size: var(--aq-fs-xs); }
.aqc-meter-name { color: var(--aq-muted); }
.aqc-meter-value { text-align: right; white-space: nowrap; }
.aqc-meter-value.warn { color: color-mix(in srgb, var(--aq-amber) 85%, var(--aq-text)); font-weight: 600; }
.aqc-meters.stale .aqc-meter-fill { opacity: 0.45; }
.aq-list > .aqc-meters { padding: 14px 16px; }

/* One whole in parts: blocks with a 2 px gap in the surface colour, no outlines. */
.aqc-parts { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: transparent; }
.aqc-parts.empty { background: var(--aq-rail-2); }
.aqc-parts > .aqc-part { display: block; flex: var(--g) 1 0%; min-width: 3px; }
.aqc-parts.tall { height: 28px; border-radius: 8px; }
.aqc-parts.tall > .aqc-part { position: relative; border-radius: 2px; }
.aqc-parts.tall > .aqc-part:first-child { border-radius: 8px 2px 2px 8px; }
.aqc-parts.tall > .aqc-part:last-child { border-radius: 2px 8px 8px 2px; }
.aqc-parts.tall > .aqc-part:only-child { border-radius: 8px; }
.aqc-parts.tall > .aqc-part > span { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font: 600 var(--aq-fs-xs)/1 var(--aq-font); color: var(--aq-text); letter-spacing: 0; white-space: nowrap; }
/* The figure inside a block takes the ink that reads on that fill: dark on the bright fills of the dark theme. */
.aqc-parts.tall > .aqc-part.ok > span { color: var(--aq-on-green); }
.aqc-parts.tall > .aqc-part.accent > span { color: var(--aq-ink); }
.aqc-parts.tall > .aqc-part.warn > span { color: var(--aq-on-amber); }
.aqc-parts.tall > .aqc-part.bad > span { color: var(--aq-on-red); }
.aqc-parts-figure { display: flex; flex-direction: column; gap: 10px; }
.aqc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-legend li, .aqc-legend a { display: inline-flex; align-items: center; gap: 6px; color: var(--aq-text); }
.aq .aqc-legend a:hover { text-decoration: none; }
.aq .aqc-legend a:hover .aqc-legend-label { text-decoration: underline; text-underline-offset: 3px; }
.aqc-legend .aqc-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.aqc-legend-label { color: var(--aq-muted); }
.aqc-legend strong { font-weight: 600; }

/* Bars on one scale, one per row. */
.aqc-barlist-row { gap: 14px; min-height: 48px; padding: 10px 16px; }
.aq a.aqc-barlist-row { color: var(--aq-text); transition: background-color var(--aq-t-press) linear; }
.aq a.aqc-barlist-row:hover { text-decoration: none; background: color-mix(in srgb, var(--aq-text) 4%, transparent); }
.aq a.aqc-barlist-row:active { background: color-mix(in srgb, var(--aq-text) 9%, transparent); }
.aqc-barlist-label { flex: 0 0 auto; width: clamp(112px, 34%, 240px); font-weight: 500; overflow-wrap: break-word; line-height: 1.3; }
/* In a narrow column a name beside its bar would break in the middle of a word: there the name gets a line of its own. */
.aqc-barlist { container-type: inline-size; }
@container (max-width: 460px) {
  .aqc-barlist-row { flex-wrap: wrap; row-gap: 6px; }
  .aqc-barlist-label { flex: 1 1 100%; width: auto; }
}
.aqc-barlist-bar { display: flex; flex: 1; gap: 2px; min-width: 40px; height: 8px; }
.aqc-barlist-bar > .aqc-part { display: block; flex: none; height: 100%; width: calc(var(--w) - 2px); min-width: 3px; }
.aqc-barlist-bar > .aqc-part:first-child { border-radius: 4px 0 0 4px; }
.aqc-barlist-bar > .aqc-part:last-child { border-radius: 0 4px 4px 0; }
.aqc-barlist-bar > .aqc-part:only-child { border-radius: 4px; }
.aqc-barlist-value { flex: none; min-width: 64px; max-width: 148px; text-align: right; line-height: 1.3; }
.aqc-barlist-value strong { display: block; font-weight: 600; }
.aqc-barlist-value small { display: block; color: var(--aq-muted); font-size: var(--aq-fs-xs); }

/* A sparkline: a line in the data ink, the newest value as a dot. */
.aqc-spark { display: block; overflow: visible; }
.aqc-spark-base { stroke: var(--aq-hairline); stroke-width: 1; shape-rendering: crispEdges; }
.aqc-spark-line { fill: none; stroke: var(--aqc-data); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.aqc-spark-dot { fill: var(--aqc-data); stroke: var(--aq-deck); stroke-width: 1.5; }
.aqc-spark-holder { display: inline-flex; min-height: 28px; align-items: center; }

/* ---------- quick looks (peek.js) ---------- */
.aqc-peek { display: flex; flex-direction: column; gap: 18px; }
.aqc-peek-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-peek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 22px; align-items: start; }
.aq .aqc-peek h3.aq-group-title { margin-left: 4px; }
.aqc-peek .aq-list > .aqc-meters { padding: 14px 16px; }
.aqc-peek-meters { padding: 14px 16px; }

/* ---------- the record of one request ---------- */
.aqc-timeline { margin: 0; padding: 0; list-style: none; }
.aqc-timeline-step { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.aqc-timeline-step::before { content: ""; position: absolute; left: 4.5px; top: 16px; bottom: -2px; width: 2px; border-radius: 1px; background: var(--aq-rail-2); }
.aqc-timeline-step:last-child { padding-bottom: 4px; }
.aqc-timeline-step:last-child::before { display: none; }
.aqc-timeline-step[data-state="done"]::before { background: var(--aq-signal); }
.aqc-timeline-dot { margin-top: 4px; }
.aqc-timeline-step[data-state="done"] .aqc-timeline-dot { background: var(--aq-signal); }
.aqc-timeline-step[data-state="current"] .aqc-timeline-dot { background: var(--aq-signal); }
.aqc-timeline-step[data-state="current"] .aqc-timeline-dot::after { opacity: 1; }
.aqc-timeline-step[data-state="end"] .aqc-timeline-dot { background: var(--aq-muted); }
.aqc-timeline-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.4; }
.aqc-timeline-text strong { font-weight: 600; }
.aqc-timeline-text small { color: var(--aq-muted); font-size: var(--aq-fs-xs); }
.aqc-timeline-text span { font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-timeline-step[data-state="todo"] .aqc-timeline-text { color: var(--aq-muted); }
.aqc-command-open { font-weight: 600; text-align: left; color: var(--aq-text); }
.aqc-command-open:hover { color: var(--aq-signal); text-decoration: none; }

/* Release notes: a few lines in place, the rest in a sheet. (The mask only lets the last line run out.) */
.aqc-notes-clamp { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.aqc-offer-notes .aqc-notes-more { align-self: flex-start; margin: 6px 0 0 -11px; }
.aqc-offer-notes { flex-direction: column; align-items: stretch; }
.aqc-notes-sheet { font-size: var(--aq-fs); }

/* ---------- desk cards of the portal ---------- */
.aqc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.aqc-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 16px 14px; border: 0; border-radius: var(--aq-r-lg);
  background: var(--aq-deck); box-shadow: 0 0 0 1px var(--aq-edge); color: var(--aq-text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--aq-t-press) linear, transform var(--aq-t) var(--aq-ease);
}
.aqc-card:hover { background: color-mix(in srgb, var(--aq-text) 2.5%, var(--aq-deck)); }
.aqc-card:active { transform: scale(0.985); transition-duration: var(--aq-t-press); }
.aqc-card-head { display: flex; align-items: flex-start; gap: 10px; }
.aqc-card-head .aq-dot { margin-top: 7px; }
.aqc-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aqc-card-title strong { font: 600 var(--aq-fs-lg)/1.3 var(--aq-font-legend); letter-spacing: -0.012em; overflow-wrap: anywhere; }
.aqc-card-title small { color: var(--aq-muted); font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-card-marks { display: flex; flex-wrap: wrap; gap: 4px 6px; min-height: 22px; }
.aqc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--aq-hairline); font-size: var(--aq-fs-xs); letter-spacing: 0.004em; color: var(--aq-muted); }
.aqc-card-foot > span { white-space: nowrap; }
.aqc-card-foot > .aqc-inline { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.aqc-card-empty { font-size: var(--aq-fs-sm); color: var(--aq-muted); }

/* Figures inside a surface: a small title, the chart, its legend. */
.aqc-figure-stack { display: flex; flex-direction: column; gap: 22px; }
.aqc-figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aq .aqc-figure-title { margin: 0; font: 500 var(--aq-fs-sm)/1.35 var(--aq-font); letter-spacing: 0; color: var(--aq-muted); }
.aqc-figure-lead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.aqc-figure .aq-list.aqc-barlist { background: transparent; box-shadow: none; border-radius: 0; margin: 0 -16px -6px; }
.aqc-list-head .aqc-list-share { display: block; width: 120px; margin-left: 14px; }

/* The releases of the portal: one surface each, the head opens the rest. */
.aqc-release-list { display: flex; flex-direction: column; gap: 14px; }
.aqc-release .aqc-fold-toggle { align-items: center; padding: 14px 16px; }
.aqc-release .aqc-release-head { display: flex; align-items: center; flex: 1; min-width: 0; gap: 16px; }
.aqc-release .aqc-release-head > .aq-item-label { flex: 1; min-width: 0; }
.aqc-release .aqc-release-head small { display: block; margin-top: 2px; color: var(--aq-muted); font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-release-body { display: flex; flex-direction: column; gap: 20px; padding: 4px 16px 18px 40px; }
.aq .aqc-release-parts { min-height: 0; margin: 0; font-size: var(--aq-fs-sm); letter-spacing: 0; color: var(--aq-muted); }
.aqc-card-open { font: inherit; letter-spacing: inherit; color: var(--aq-text); text-align: left; }
.aqc-card-open:hover { color: var(--aq-signal); text-decoration: none; }
@media (max-width: 600px) { .aqc-release-body { padding-left: 16px; } .aqc-release .aqc-release-head { flex-wrap: wrap; } }

/* A list row with a thin bar inside (customers at a glance). */
.aqc-mini-parts { width: 100%; max-width: 220px; }
.aqc-cell-figure { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }

@media (prefers-contrast: more) {
  .aqc-channels, .aqc-stats, .aqc-card { box-shadow: 0 0 0 1px var(--aq-hairline); }
  .aqc-nav-btn, .aqc-tabbar > a, .aqc-tabbar > button { color: rgba(255, 255, 255, 0.9); }
}

/* ---------- lines and columns over time (charts.js) ---------- */
/* The plot takes the width of its column, never the width of a chart drawn earlier at another size. */
.aqc-chart-plot { position: relative; contain: inline-size; min-width: 0; }
.aqc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke: color-mix(in srgb, var(--aq-muted) 80%, var(--aq-deck)); }
.aqc-line.ok { stroke: var(--aq-green); }
.aqc-line.accent { stroke: var(--aqc-data); }
.aqc-line.warn { stroke: var(--aq-amber); }
.aqc-line.bad { stroke: var(--aq-red); }
.aqc-line.faint { stroke: color-mix(in srgb, var(--aq-muted) 45%, var(--aq-deck)); stroke-width: 1.5; }
.aqc-line-key { display: inline-block; flex: none; width: 14px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--aq-muted) 80%, var(--aq-deck)); }
.aqc-line-key.ok { background: var(--aq-green); }
.aqc-line-key.accent { background: var(--aqc-data); }
.aqc-line-key.warn { background: var(--aq-amber); }
.aqc-line-key.bad { background: var(--aq-red); }
.aqc-line-key.faint { background: color-mix(in srgb, var(--aq-muted) 45%, var(--aq-deck)); }
.aqc-legend-lines { margin-bottom: 8px; }
.aqc-chart-end { fill: var(--aq-text); font: 600 11px/1 var(--aq-font); letter-spacing: 0; }
.aqc-column-part { fill: var(--aqc-data-2); }
.aqc-column-part.ok { fill: var(--aq-green); }
.aqc-column-part.accent { fill: var(--aqc-data); }
.aqc-column-part.warn { fill: var(--aq-amber); }
.aqc-column-part.bad { fill: var(--aq-red); }
.aqc-column-part.faint { fill: var(--aqc-data-3); }
.aqc-column-hit { fill: transparent; cursor: default; }
.aqc-column-part { transition: opacity 120ms linear; }
.aqc-chart-svg:has(.aqc-column.hover) .aqc-column:not(.hover) .aqc-column-part { opacity: 0.45; }
.aqc-tip-row { display: inline-flex; align-items: center; gap: 6px; }
.aqc-tip .aqc-tip-row strong { color: var(--aq-text); }
.aqc-tip .aqc-tip-row .aqc-swatch { width: 8px; height: 8px; border-radius: 2px; }

/* The answer a chart gives, in words above it. */
.aq .aqc-figure-answer { margin: 0; font-size: var(--aq-fs-sm); letter-spacing: 0; line-height: 1.5; color: var(--aq-muted); }
.aq .aqc-figure-answer.strong { font: 600 var(--aq-fs)/1.45 var(--aq-font); color: var(--aq-text); }
.aqc-figure-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 28px; }
.aqc-select-small { min-height: 30px; padding-top: 3px; padding-bottom: 3px; border-radius: 10px; font-size: var(--aq-fs-sm); }
.aqc-group-head .aqc-select-small { margin-bottom: -4px; width: auto; }

/* Reasons as links into the filtered device list. */
.aqc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.aqc-chip-link { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 10px; background: var(--aq-rail); color: var(--aq-text); font-size: var(--aq-fs-sm); letter-spacing: 0; transition: background-color var(--aq-t-press) linear; }
.aq a.aqc-chip-link { color: var(--aq-text); }
.aq a.aqc-chip-link:hover { text-decoration: none; background: var(--aq-rail-2); }
.aq a.aqc-chip-link:active { background: color-mix(in srgb, var(--aq-text) 12%, var(--aq-rail-2)); }
.aqc-chip-set { display: inline-flex; align-items: center; gap: 6px; }

/* Products in the field: one opening row each. */
.aqc-product-list .aqc-disclosure + .aqc-disclosure { border-top: 1px solid var(--aq-hairline); }
.aqc-product-row { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.aqc-product-row > .aqc-cell { flex: 1; min-width: 0; }
.aqc-product-row > .aqc-mini-parts { flex: none; width: clamp(64px, 22%, 160px); }
.aqc-disclosure-body { padding: 4px 16px 18px 40px; }
@media (max-width: 600px) { .aqc-disclosure-body { padding-left: 16px; } }

/* Choosing several: a search, a list that scrolls on its own, how many are chosen. */
.aqc-picker { display: flex; flex-direction: column; gap: 8px; }
.aqc-picker-list { max-height: min(320px, 42vh); overflow-y: auto; overscroll-behavior: contain; }
.aqc-picker-list .aqc-check-row { padding: 10px 16px; }
.aqc-picker-list .aqc-check-row small { display: block; margin-top: 1px; font-size: var(--aq-fs-xs); }
.aqc-picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.aqc-audience-pick { margin-top: 10px; }

/* What a change of audience would do, before it is made. */
.aqc-effect-figures { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.aqc-effect-figures > div { display: flex; flex-direction: column; gap: 4px; }
.aqc-effect-figures small { color: var(--aq-muted); font-size: var(--aq-fs-sm); letter-spacing: 0; }
.aqc-stat.warn { color: color-mix(in srgb, var(--aq-amber) 85%, var(--aq-text)); }
.aqc-stat.bad { color: color-mix(in srgb, var(--aq-red) 85%, var(--aq-text)); }
.aqc-effects { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.aqc-row-icon.warn { color: color-mix(in srgb, var(--aq-amber) 85%, var(--aq-text)); }

/* ---------- Fertigung: the first-start password and the label ---------- */
.aqc-password { display: inline-block; min-height: 1.5em; }
.aqc-password-shown { font-size: var(--aq-fs-lg); font-weight: 600; letter-spacing: 0.04em; color: var(--aq-text); user-select: all; }

/* The label is paper: white with black type in both themes, and nothing on it is grey - a label printer has no
   grey. Its size is given in millimetres (--aqc-label-w, --aqc-label-h, set by the page) and its type follows that
   size, so what the stage shows enlarged (the page sets a zoom that fits the stage) is what comes out of the printer. */
.aqc-label-stage { display: flex; justify-content: safe center; align-items: center; padding: 40px 20px; overflow: auto; background: color-mix(in srgb, var(--aq-rail) 55%, var(--aq-deck)); }
.aqc-label {
  container-type: size; box-sizing: border-box; flex: none;
  width: var(--aqc-label-w, 62mm); height: var(--aqc-label-h, 29mm);
  background: #fff; color: #000; border-radius: 1mm; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
  font-family: var(--aq-font); letter-spacing: 0; overflow: hidden;
}
.aqc-label-inner { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 7cqh; padding: 6cqh 4.5cqw; }
.aqc-label-name { font-weight: 600; font-size: min(12.5cqh, 6cqw); line-height: 1.15; }
.aq .aqc-label dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3.4cqh 3cqw; align-items: baseline; font-size: min(8.2cqh, 3.7cqw); line-height: 1.25; }
.aq .aqc-label dt { margin: 0; font-weight: 400; color: #000; }
.aq .aqc-label dd { margin: 0; font-weight: 600; color: #000; overflow-wrap: anywhere; }
.aq .aqc-label dd.aqc-label-password { font-size: 1.18em; letter-spacing: 0.03em; }

/* Printing the label page prints the label and nothing else: at the top left of the sheet, in its own size, so a
   label printer with that paper fills the label exactly. Other pages of the console print as they always did. */
@media print {
  @page { margin: 0; }
  body:has(.aqc-label) { background: #fff; }
  body:has(.aqc-label) :is(.aqc-sidebar, .aqc-tabbar, .aqc-skip, .aq-toasts, .aqc-no-print, .aqc-group-head, .aq-group-foot, dialog),
  body:has(.aqc-label) .aqc-group:not(:has(.aqc-label)), body:has(.aqc-label) .aqc-col:not(:has(.aqc-label)) { display: none !important; }
  body:has(.aqc-label) :is(.aq-app, .aq-main, .aqc-page, .aqc-layout, .aqc-col, .aqc-group, .aqc-label-stage) {
    display: block; margin: 0; padding: 0; min-height: 0; max-width: none; background: none; box-shadow: none; border-radius: 0; overflow: visible;
  }
  body:has(.aqc-label) .aqc-label { zoom: 1 !important; border-radius: 0; box-shadow: none; }
}
