/* QxSuite Admin — GENERATED by tools/build-qx-doors.mjs: sites/qxsuite/v5/assets/css/qxsuite.css, whole, then the door's own few rules. Do not hand-edit. */
/* QxSuite — the whole look of the platform site.
 *
 * SIBLING FILE: sites/qxstrategy/v5/assets/css/qxstrategy.css. The two sites are the same skeleton with a
 * different focus ("Different tools. A stronger ecosystem." is on the brand sheet), so every rule below the
 * token block is shared word for word and a change here is a change there. Only :root differs: blue here,
 * green there.
 *
 * EVERY COLOUR IS HERE. tools/build-qx-platform.mjs writes structure and words only — the palette ratchet counts
 * hex under tools/ — so the brand is declared once, in this file, and referred to by token. That includes the
 * gradient stops of the mark: assets/svg/brand/mark.svg names no colour and takes its stops from here.
 *
 * The brand, from mood-board/qx (2026-09-22): near-black ground, a two-tone gradient mark, a light sans wordmark
 * with the product word in regular weight, a spaced-out strapline in the accent, and three words under a rule.
 * PHONE FIRST — the mock-up is a phone as well as a laptop, so every rule starts at a phone and widens.
 */

:root {
  --qxp-bg: #070a10;            /* the ground */
  --qxp-bg-2: #0b1018;          /* panels and the bar */
  --qxp-bg-3: #111826;          /* a panel that has to lift off the one behind it */
  --qxp-ink: #eef1f8;           /* headings and the wordmark */
  --qxp-body: #a8b2c6;          /* running text */
  --qxp-muted: #6d7891;         /* captions, notes, the small print */
  --qxp-hi: #6f9dff;            /* the accent, light end: the strapline and the mark's first stop */
  --qxp-mid: #2f62e0;           /* the accent, middle: buttons and rules */
  --qxp-low: #16307f;           /* the accent, dark end: the mark's tail */
  --qxp-down: #e0654f;          /* the other direction — a step that did not pass, and nothing else */
  --qxp-line: rgba(238, 241, 248, .10);
  --qxp-line-2: rgba(238, 241, 248, .18);
  --qxp-glow: rgba(111, 157, 255, .16);
  --qxp-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 48px rgba(0, 0, 0, .45);
  --qxp-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --qxp-wide: 1140px;
}

/* .qxp-wrap is width:100% with side padding; without border-box the padding is added to the width and the whole
 * page scrolls sideways on a phone, which is where this design starts. */
*, *::before, *::after { box-sizing: border-box; }

body {
  /* The engine's blocks.css sets body { padding: 2rem }, which frames a dark site in a light border. The bar
   * runs to the edge of the glass here, as it does in the drawing. */
  margin: 0;
  padding: 0;
  background: var(--qxp-bg);
  color: var(--qxp-body);
  font: 16px/1.6 var(--qxp-ui);
  -webkit-font-smoothing: antialiased;
}

.qxp-wrap { width: 100%; max-width: var(--qxp-wide); margin: 0 auto; padding: 0 18px; }

a { color: var(--qxp-hi); }
:focus-visible { outline: 2px solid var(--qxp-hi); outline-offset: 3px; border-radius: 4px; }

/* ── the mark ───────────────────────────────────────────────────────────────
 * mark.svg carries no colour: its three gradient stops are classed and coloured here, which is how one drawing
 * is green on this site and blue on QxSuite. */
.qxp-stop-a { stop-color: var(--qxp-hi); }
.qxp-stop-b { stop-color: var(--qxp-mid); }
.qxp-stop-c { stop-color: var(--qxp-low); }
.qxp-mark { display: block; width: 100%; height: 100%; }

/* EVERY SVG HOLDER IS A BLOCK, in one rule so a new one cannot slip through.
 * The builder wraps each drawing in a <span>, and a span is inline: width and height do nothing to it, so the
 * svg inside at width:100% resolves against the nearest block instead. That put a 108px mark at 900px and a
 * 24px module icon at card width. Both looked fine in the bar and the sister card — a flex or grid item is
 * blockified for free — which is exactly how the bug hid on two pages out of five. */
.qxp-brand-mark, .qxp-hero-mark, .qxp-sister-mark, .qxp-foot-mark, .qxp-card-icon { display: block; }

/* ── the bar ────────────────────────────────────────────────────────────────*/
.qxp-top { position: sticky; top: 0; z-index: 20; background: var(--qxp-bg-2);
  border-bottom: 1px solid var(--qxp-line); }
.qxp-top-inner { display: flex; align-items: center; gap: 14px; max-width: var(--qxp-wide); margin: 0 auto;
  padding: 11px 18px; }
.qxp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--qxp-ink); }
.qxp-brand-mark { width: 26px; height: 26px; flex: none; }
.qxp-brand-word { font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.qxp-brand-word b { font-weight: 700; }
.qxp-brand-word span { font-weight: 300; }
.qxp-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.qxp-nav a { display: inline-block; padding: 7px 10px; border-radius: 7px; font-size: 14px;
  color: var(--qxp-body); text-decoration: none; }
.qxp-nav a:hover, .qxp-nav a:focus-visible { color: var(--qxp-ink); background: var(--qxp-bg-3); }

/* ── the hero, as the brand sheet lays it out ───────────────────────────────
 * mark, name, strapline in spaced accent caps, a short rule, then the three words. */
.qxp-hero { padding: 46px 0 34px; background:
  radial-gradient(70% 60% at 50% 0%, var(--qxp-glow), transparent 70%); }
.qxp-hero-mark { width: 86px; height: 86px; margin: 0 auto 18px; }
.qxp-hero-head { margin: 0; text-align: center; color: var(--qxp-ink); font-size: 40px; line-height: 1.04;
  letter-spacing: -.02em; font-weight: 300; }
.qxp-hero-head b { font-weight: 700; }
.qxp-strap { margin: 12px 0 0; text-align: center; color: var(--qxp-hi); font-size: 12px; font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase; }
.qxp-hero-rule { width: 64px; height: 1px; margin: 22px auto; background: var(--qxp-line-2); }
.qxp-values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 18px; color: var(--qxp-muted); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.qxp-values li:not(:last-child)::after { content: "/"; margin-left: 18px; color: var(--qxp-line-2); }
.qxp-hero-lede { margin: 26px auto 0; max-width: 640px; text-align: center; font-size: 17px;
  color: var(--qxp-body); }
.qxp-hero-acts { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.qxp-btn { display: inline-block; padding: 11px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  text-decoration: none; background: var(--qxp-mid); color: var(--qxp-bg); border: 1px solid transparent; }
.qxp-btn:hover, .qxp-btn:focus-visible { background: var(--qxp-hi); }
.qxp-btn-quiet { background: transparent; color: var(--qxp-ink); border-color: var(--qxp-line-2); }
.qxp-btn-quiet:hover, .qxp-btn-quiet:focus-visible { background: var(--qxp-bg-3); color: var(--qxp-ink); }

/* ── a section of the page ──────────────────────────────────────────────────*/
.qxp-section { padding: 42px 0; border-top: 1px solid var(--qxp-line); }
.qxp-section-quiet { background: var(--qxp-bg-2); }
.qxp-eyebrow { margin: 0 0 10px; color: var(--qxp-hi); font-size: 11px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; }
.qxp-head { margin: 0; color: var(--qxp-ink); font-size: 27px; line-height: 1.2; letter-spacing: -.015em;
  font-weight: 400; text-wrap: balance; }
.qxp-head-rule { width: 46px; height: 2px; margin: 14px 0 0;
  background: linear-gradient(90deg, var(--qxp-hi), var(--qxp-low)); }
.qxp-lede { margin: 16px 0 0; max-width: 62ch; font-size: 17px; }
.qxp-prose { max-width: 62ch; }
.qxp-prose p { margin: 0 0 14px; }
.qxp-prose p:last-child { margin-bottom: 0; }

/* ── the modules, one panel each ────────────────────────────────────────────*/
.qxp-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: 1fr; }
.qxp-card { background: var(--qxp-bg-2); border: 1px solid var(--qxp-line); border-radius: 12px; padding: 16px; }
.qxp-card-icon { width: 24px; height: 24px; color: var(--qxp-hi); }
.qxp-card-icon svg { width: 100%; height: 100%; display: block; }
.qxp-card-name { margin: 12px 0 6px; color: var(--qxp-ink); font-size: 16px; font-weight: 600; }
.qxp-card-text { margin: 0; font-size: 14.5px; color: var(--qxp-body); }

/* ── the drawn workspace, in the devices the mock-up shows it in ────────────
 * The second board in mood-board/qx presents each platform twice: a laptop labelled Desktop and a phone
 * labelled Mobile, side by side. That is the presentation here — the frames are CSS, the screens are the
 * drawings in assets/svg/scene, so nothing is a screenshot and nothing carries a figure. */
.qxp-devices { margin: 26px 0 0; display: grid; gap: 26px; align-items: end; }
.qxp-device-label { margin: 0 0 10px; color: var(--qxp-muted); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; }

/* The laptop: a thin bezel round the screen, then the lid line and the base lip under it. */
.qxp-laptop { padding: 0 14px; }
.qxp-laptop-lid { background: var(--qxp-bg-3); border: 1px solid var(--qxp-line-2); border-radius: 12px 12px 4px 4px;
  padding: 10px 10px 12px; box-shadow: var(--qxp-shadow); }
.qxp-laptop-base { height: 10px; width: calc(100% + 28px); margin-left: -14px; border-radius: 0 0 10px 10px;
  background: var(--qxp-bg-3); border: 1px solid var(--qxp-line-2); border-top: 0; }
.qxp-laptop-base::after { content: ""; display: block; width: 16%; height: 3px; margin: 0 auto;
  border-radius: 0 0 3px 3px; background: var(--qxp-line-2); }

/* The phone: a thicker bezel, a deeper radius and the notch along the top. */
.qxp-phone-body { max-width: 240px; margin: 0 auto; background: var(--qxp-bg-3);
  border: 1px solid var(--qxp-line-2); border-radius: 26px; padding: 9px; box-shadow: var(--qxp-shadow);
  position: relative; }
.qxp-phone-body::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 13px; border-radius: 0 0 9px 9px; background: var(--qxp-bg); z-index: 1; }

.qxp-scene { display: block; width: 100%; height: auto; border-radius: 6px; }
.qxp-phone-body .qxp-scene { border-radius: 18px; }
.qxp-frame-cap { margin: 16px 2px 2px; color: var(--qxp-muted); font-size: 12.5px; }
.qxp-scene-win { fill: var(--qxp-bg-3); stroke: var(--qxp-line-2); }
.qxp-scene-line { stroke: var(--qxp-line); fill: none; }
.qxp-scene-grid { stroke: var(--qxp-line); fill: none; stroke-dasharray: 3 6; }
.qxp-scene-chip { fill: var(--qxp-line-2); }
.qxp-scene-chip2 { fill: var(--qxp-line); }
.qxp-scene-rail { fill: var(--qxp-line); }
.qxp-scene-on { fill: var(--qxp-mid); }
.qxp-scene-row { stroke: var(--qxp-line-2); fill: none; }
.qxp-scene-row2 { stroke: var(--qxp-line); fill: none; }
.qxp-up { fill: var(--qxp-hi); }
.qxp-up-line { stroke: var(--qxp-hi); fill: none; }
.qxp-down { fill: var(--qxp-down); }
.qxp-down-line { stroke: var(--qxp-down); fill: none; }
.qxp-node { fill: var(--qxp-bg-2); stroke: var(--qxp-line-2); }
.qxp-node-on { stroke: var(--qxp-mid); }
.qxp-node-dot { fill: var(--qxp-mid); }
.qxp-tile { fill: var(--qxp-bg-2); stroke: var(--qxp-line); }
.qxp-flow { stroke: var(--qxp-line-2); fill: none; }
.qxp-flow-head { fill: var(--qxp-line-2); stroke: none; }

/* ── the honest note ────────────────────────────────────────────────────────
 * Every page carries one. The platform is being built; the site says so rather than implying otherwise. */
.qxp-note { margin: 26px 0 0; border-left: 2px solid var(--qxp-mid); padding: 2px 0 2px 14px; }
.qxp-note-head { display: block; color: var(--qxp-ink); font-size: 14px; font-weight: 600; }
.qxp-note-text { margin: 6px 0 0; font-size: 14.5px; color: var(--qxp-muted); }

/* ── the other platform ─────────────────────────────────────────────────────*/
.qxp-sister { display: block; margin: 24px 0 0; text-decoration: none; background: var(--qxp-bg-3);
  border: 1px solid var(--qxp-line); border-radius: 12px; padding: 18px; }
.qxp-sister:hover, .qxp-sister:focus-visible { border-color: var(--qxp-line-2); }
.qxp-sister-mark { width: 34px; height: 34px; }
/* The sister card points at the OTHER platform, whose accent is not this one's. Painting its mark in this
 * site's green (or blue) would be recolouring somebody else's brand, so it takes the monochrome lockup the
 * brand sheet provides. */
.qxp-sister-mark .qxp-stop-a, .qxp-sister-mark .qxp-stop-b { stop-color: var(--qxp-ink); }
.qxp-sister-mark .qxp-stop-c { stop-color: var(--qxp-muted); }
.qxp-sister-name { margin: 12px 0 4px; color: var(--qxp-ink); font-size: 18px; font-weight: 600; }
.qxp-sister-text { margin: 0; color: var(--qxp-body); font-size: 14.5px; }
.qxp-sister-go { display: inline-block; margin: 10px 0 0; color: var(--qxp-hi); font-size: 14px;
  font-weight: 600; }

/* ── steps, for the approach page ───────────────────────────────────────────*/
.qxp-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.qxp-step { background: var(--qxp-bg-2); border: 1px solid var(--qxp-line); border-radius: 12px; padding: 18px; }
.qxp-step-n { color: var(--qxp-hi); font-size: 12px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; }
.qxp-step-name { margin: 8px 0 8px; color: var(--qxp-ink); font-size: 20px; font-weight: 500; }
.qxp-step-text { margin: 0; font-size: 15.5px; }

/* ── the footer ─────────────────────────────────────────────────────────────*/
.qxp-foot { border-top: 1px solid var(--qxp-line); background: var(--qxp-bg-2); padding: 30px 0 38px;
  margin-top: 8px; }
.qxp-foot-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.qxp-foot-mark { width: 22px; height: 22px; flex: none; }
.qxp-foot-word { color: var(--qxp-ink); font-size: 15px; }
.qxp-foot-word b { font-weight: 700; }
.qxp-foot-word span { font-weight: 300; }
.qxp-foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.qxp-foot-links a { padding: 6px 8px; border-radius: 6px; color: var(--qxp-body); font-size: 14px;
  text-decoration: none; }
.qxp-foot-links a:hover, .qxp-foot-links a:focus-visible { color: var(--qxp-ink); background: var(--qxp-bg-3); }
.qxp-foot-rule { height: 1px; margin: 22px 0; background: var(--qxp-line); }
.qxp-foot-small { margin: 0; color: var(--qxp-muted); font-size: 13px; max-width: 72ch; }
.qxp-foot-small + .qxp-foot-small { margin-top: 10px; }
.qxp-umbrella { margin: 14px 0 0; color: var(--qxp-muted); font-size: 12px; }
/* The logotype keeps its own casing; only the line after it is set in spaced caps, as on the brand sheet.
 * text-transform over the whole string turned "Qx" into "QX", which is somebody else's brand. */
.qxp-umbrella b { color: var(--qxp-body); font-weight: 700; }
.qxp-umbrella span { margin-left: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* ── wider than a phone ─────────────────────────────────────────────────────*/
@media (min-width: 620px) {
  .qxp-hero { padding: 64px 0 46px; }
  .qxp-hero-mark { width: 124px; height: 124px; }
  .qxp-hero-head { font-size: 56px; }
  .qxp-head { font-size: 32px; }
  .qxp-grid { grid-template-columns: 1fr 1fr; }
  .qxp-steps { grid-template-columns: repeat(3, 1fr); }
  .qxp-sister { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px; }
  .qxp-sister-name { margin-top: 0; }
}
@media (min-width: 900px) {
  .qxp-section { padding: 58px 0; }
  .qxp-hero-head { font-size: 66px; }
  .qxp-grid { grid-template-columns: repeat(4, 1fr); }
  .qxp-hero-mark { width: 140px; height: 140px; }
  .qxp-devices { grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; }
  .qxp-frame { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── THE DOOR — GENERATED by tools/build-qx-doors.mjs and appended to the parent's stylesheet. ──
   Only what a door has and the public site has not: its name beside the wordmark, and the
   parent's clothes for the ENGINE's sign-in form (auth.login) and account menu
   (auth.account-menu). Every colour is the parent's token. */
.qxd-tag { margin-left: 2px; padding: 2px 8px; border: 1px solid var(--qxp-line-2); border-radius: 999px;
  color: var(--qxp-hi); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.qxp-top .qx-link.qxp-brand { min-height: 44px; }
/* The bar's row is a block of its own here (a V5 container inside a V5 container), so it is told
   to take the width the parent's bar has: the brand at one end, the account at the other. */
.qxp-top > .qxp-top-inner { width: 100%; }
.qxp-brand .qx-html-content { display: block; }
.qxp-brand .qx-html-content.qxp-brand-mark { line-height: 0; }

/* the account menu, where the parent's nav is */
.qxp-nav .auth-whoami-name { margin: 0; color: var(--qxp-muted); font-size: 13px; max-width: 34vw; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.qxp-nav .auth-logout, .qxp-nav .qx-link.auth-signin-link, .qxp-nav .qx-link.qxd-public { display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px; border-radius: 9px; font: inherit; font-size: 14px; text-decoration: none; color: var(--qxp-body); }
.qxp-nav .auth-logout { border: 1px solid var(--qxp-line-2); background: transparent; color: var(--qxp-ink); cursor: pointer; }
.qxp-nav .auth-logout:hover, .qxp-nav .auth-logout:focus-visible,
.qxp-nav .qx-link.auth-signin-link:hover, .qxp-nav .qx-link.qxd-public:hover { background: var(--qxp-bg-3); color: var(--qxp-ink); }
/* A phone has room for the mark, the name and the way out. Who is signed in is said on the page. */
@media (max-width: 640px) {
  .qxp-nav .auth-whoami-name, .qxp-nav .qx-link.qxd-public { display: none; }
}

/* the panel a door's page is, and the sign-in form in it */
.qxd-panel { max-width: 27rem; margin: 0 auto; padding: 46px 18px 64px; }
.qxd-small { margin: 18px 0 0; color: var(--qxp-muted); font-size: 13px; }
.qxd-panel .auth-login, .qxd-panel .auth-register, .qxd-panel .auth-recovery { margin: 26px 0 0; }
.qxd-panel .auth-login > .qx-heading, .qxd-panel .auth-register > .qx-heading, .qxd-panel .auth-recovery > .qx-heading { margin: 0 0 4px; color: var(--qxp-ink); font-size: 18px; font-weight: 600; }
.qxd-panel .auth-recovery > .qx-heading ~ .qx-heading { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--qxp-line); align-self: stretch; }
.qxd-panel .qx-text.auth-forgot-status, .qxd-panel .qx-text.auth-reset-status { align-self: stretch; margin: 0; min-height: 1.4em; color: var(--qxp-ink) !important; font-size: 14px; }
/* said once, when it is true: the email was confirmed, or the link was no longer good */
.qxd-note { margin: 18px 0 0; padding: 10px 14px; border: 1px solid var(--qxp-line-2); border-left: 3px solid var(--qxp-hi); border-radius: 9px; color: var(--qxp-ink); font-size: 14px; }
/* what the register form asks for, said before it is asked */
.qxd-panel .auth-register > .qx-text { margin: 0; color: var(--qxp-body) !important; font-size: 14px; line-height: 1.5; }
.qxd-panel .qx-link.qxd-link { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 0 0; color: var(--qxp-hi); font-size: 14px; }
.qxd-panel .qx-link.qxd-link:hover, .qxd-panel .qx-link.qxd-link:focus-visible { color: var(--qxp-ink); }
.qxd-panel .qx-form { align-self: stretch; display: grid; gap: 14px; }
.qxd-panel .qx-form__row { display: grid; gap: 6px; }
.qxd-panel .qx-form__label { color: var(--qxp-body); font-size: 13px; font-weight: 500; }
.qxd-panel .qx-form__required { color: var(--qxp-muted); }
.qxd-panel .qx-form__field { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--qxp-line-2); border-radius: 9px;
  background: var(--qxp-bg-2); color: var(--qxp-ink); font: inherit; font-size: 16px; }
.qxd-panel .qx-form__field:focus-visible { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qxd-panel .qx-form__field-error, .qxd-panel .qx-form__errors { color: var(--qxp-down); font-size: 13px; }
.qxd-panel .qx-form__field-error:empty { display: none; }
.qxd-panel .qx-form__submit { width: 100%; min-height: 46px; border: 1px solid var(--qxp-mid); border-radius: 9px; background: var(--qxp-mid);
  color: var(--qxp-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.qxd-panel .qx-form__submit:hover, .qxd-panel .qx-form__submit:focus-visible { background: var(--qxp-hi); color: var(--qxp-bg); }
.qxd-panel .qx-form__submit[disabled] { opacity: .6; cursor: progress; }
/* The engine's error line reads "⚠ " before anything has gone wrong: its format wraps an empty
   value (asked of the engine, NOTEBOARD C65). The sign is taken off here, so an empty line is an
   empty line — it keeps its height, and the form does not jump when the words arrive. */
.qxd-panel .qx-text.auth-error, .qxd-panel .auth-register > .qx-text.auth-reg-error { align-self: stretch; margin: 0; min-height: 1.4em; color: var(--qxp-down) !important; font-size: 14px; line-height: 1.4; }
.qxd-panel .qx-text.auth-error::first-letter, .qxd-panel .qx-text.auth-reg-error::first-letter { font-size: 0; }

/* ── the Menu disclosure — copied from qxstrategy.css by tools/build-qx-doors.mjs ── */
/* ── top menu: Favourites + Menu disclosure (iconkind header format, dark palette) ── */
.qxp-topright { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.qxp-menu { position: static; }
.qxp-menu > summary { list-style: none; }
.qxp-menu > summary::-webkit-details-marker { display: none; }
.qxp-menu-button, .qxp-action { box-sizing: border-box; width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--qxp-line-2); border-radius: .6rem; background: var(--qxp-bg-3); color: var(--qxp-ink); cursor: pointer; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease; }
@media (hover: hover) { .qxp-menu-button:hover, .qxp-action:hover { border-color: var(--qxp-hi); } }
.qxp-menu-button:focus-visible, .qxp-action:focus-visible { outline: 2px solid var(--qxp-hi); outline-offset: 2px; }
.qxp-menu[open] .qxp-menu-button { border-color: var(--qxp-hi); }
.qxp-action svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.qxp-action-word, .qxp-menu-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qxp-menu-icon { position: relative; display: block; width: 1.15rem; height: .55rem; border-top: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.qxp-menu[open] .qxp-menu-icon { border-color: transparent; }
.qxp-menu[open] .qxp-menu-icon::before, .qxp-menu[open] .qxp-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.6px solid currentColor; }
.qxp-menu[open] .qxp-menu-icon::before { transform: rotate(45deg); }
.qxp-menu[open] .qxp-menu-icon::after { transform: rotate(-45deg); }
.qxp-menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 2rem;
  padding: 1.6rem max(18px, calc((100% - var(--qxp-wide)) / 2)) 2rem; background: var(--qxp-bg-2); border-bottom: 1px solid var(--qxp-line);
  box-shadow: 0 22px 40px -28px rgba(0, 0, 0, .65); }
@media (max-width: 46rem) { .qxp-menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; max-height: calc(100vh - 4rem); overflow-y: auto; } }
.qxp-menu-account { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; padding: .1rem 0 1rem;
  border-bottom: 1px solid var(--qxp-line); color: var(--qxp-ink); text-decoration: none; font-size: 1rem; }
.qxp-menu-account svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.qxp-menu-account:hover { color: var(--qxp-hi); }
.qxp-menu-h { margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--qxp-line); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--qxp-hi); }
.qxp-menu-link { display: block; padding: .5rem .6rem; margin: 0 -.6rem; border-radius: 8px; font-size: 1rem; line-height: 1.3; color: var(--qxp-body); text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.qxp-menu-link:hover, .qxp-menu-link:focus-visible { color: var(--qxp-hi); background: var(--qxp-bg-3); }

/* ── top menu (iconkind format) in the header bar: the menu host, the auth cluster ── */
/* every tap in the bar and the panel is a 44px target on a phone (the public site's 2.5rem button and
   1rem links fall short at a 16px base; the gate's phone check counts them) */
.qxp-menu-button, .qxp-action { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.qxp-menu-link { display: flex; align-items: center; min-height: 44px; }
/* a menu group (its heading and links) is a block of its own, so a group hidden by grant takes its gap with it */
.qxp-menu-group { display: block; min-width: 0; }
/* THE OPEN MENU FITS THE SCREEN (Graham 2026-10-29: admin.iconkind's menu "flows off the bottom of a desktop screen"). It is
   never taller than the viewport below the bar: it scrolls inside itself. CSS does not know the bar's height, so the cap leaves
   room for the tallest bar a door draws (a phone bar whose nav wraps stands 7.3rem); tools/check-door-menus.mjs opens every
   door's menu at 1280x720, 1366x768 and a phone and fails one that runs past the screen. On a desktop the groups flow into as
   many columns as fit, so a short menu is one row; a phone keeps the public site's two columns. */
.qxp-menu-panel { max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 46.01rem) { .qxp-menu-panel { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
/* the Menu button as a block (task 7bfc836e): a <summary> text block, its word kept for a screen reader but not drawn,
   and the public site's three-line / cross icon drawn by the summary itself (no inner span to hang it on) */
.qxp-menu-button.qx-text { position: relative; font-size: 0; color: var(--qxp-ink); cursor: pointer; }
.qxp-menu-button.qx-text::before, .qxp-menu-button.qx-text::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.15rem; }
.qxp-menu-button.qx-text::before { height: .55rem; border-top: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translate(-50%, -50%); }
.qxp-menu-button.qx-text::after { display: none; }
.qxp-menu[open] .qxp-menu-button.qx-text::before { height: 0; border-bottom: 0; transform: translate(-50%, -50%) rotate(45deg); }
.qxp-menu[open] .qxp-menu-button.qx-text::after { display: block; border-top: 1.6px solid currentColor; transform: translate(-50%, -50%) rotate(-45deg); }
.qxp-topright > .qx-html-content { display: inline-flex; align-items: center; }
.qxp-topright > .qxp-nav { margin-left: 0; overflow: visible; }
/* The signed-in user: a person icon in the bar (reuses .qxp-action's framed box), tapped to drop a
   small panel with the email + Sign out. The panel anchors to the icon and dismisses with Close. */
.qxp-user { position: relative; display: inline-flex; }
.qxp-user-btn { cursor: pointer; }
.qxp-user-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; min-width: 14rem;
  display: flex; flex-direction: column; gap: .7rem; padding: .9rem 1rem 1rem;
  background: var(--qxp-bg-2); border: 1px solid var(--qxp-line-2); border-radius: 12px;
  box-shadow: 0 .5rem 1.4rem rgba(0,0,0,.28); }
.qxp-user-who { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.4; word-break: break-all;
  padding-bottom: .7rem; border-bottom: 1px solid var(--qxp-line); }
.qxp-user-logout { width: 100%; min-height: 40px; border: 1px solid var(--qxp-line-2); border-radius: 9px;
  background: transparent; color: var(--qxp-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.qxp-user-logout:hover, .qxp-user-logout:focus-visible { border-color: var(--qxp-hi); background: var(--qxp-bg-3); }
.qxp-user-dismiss { align-self: center; border: 0; background: transparent; color: var(--qxp-muted); font: inherit;
  font-size: 12px; letter-spacing: .04em; cursor: pointer; padding: .2rem .4rem; }
.qxp-user-dismiss:hover, .qxp-user-dismiss:focus-visible { color: var(--qxp-ink); }

/* ── THE SHOPS AN ACCOUNT HOLDS — the console's front page. ── */
.qxd-panel.qxa-home { max-width: 40rem; }
.qx-container.qxa-section-held { display: flex; flex-direction: column; gap: 8px; min-width: 0; }   /* the Sites page's two sections: catalogues, shared resources */
.qx-container.qxa-away { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }   /* the day home's pointer to /sites (no Journey grant) */
.qxa-shops { margin: 26px 0 0; border: 1px solid var(--qxp-line-2); border-radius: 12px; overflow: hidden; background: var(--qxp-bg-2); }
.qxa-shops:empty { display: none; }
.qx-container.qxa-shop { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--qxp-line); }
.qxa-shops > :last-child .qxa-shop, .qxa-shops > .qxa-shop:last-child { border-bottom: 0; }
.qxa-shop-name { color: var(--qxp-ink); font-size: 17px; font-weight: 600; }
.qx-container.qxa-shop-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-link.qxa-shop-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--qxp-line-2);
  border-radius: 9px; color: var(--qxp-ink); font-size: 14px; text-decoration: none; }
.qx-link.qxa-shop-link:hover, .qx-link.qxa-shop-link:focus-visible { background: var(--qxp-bg-3); border-color: var(--qxp-hi); }
/* On a phone every shop reads the same way: its name, then its screens beneath. */
@media (max-width: 480px) { .qx-container.qxa-shop-links { flex-basis: 100%; } }
.qxa-none { margin: 26px 0 0; padding: 14px 16px; border: 1px dashed var(--qxp-line-2); border-radius: 12px; color: var(--qxp-body); font-size: 14px; }
/* ── THE V5 SITES RUNNING — one row per domain off the site server's manifest. ── */
.qxa-home .qxa-sub-head { margin-top: 34px; }
.qxa-sites { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--qxp-line-2); border-radius: 12px; overflow: hidden; background: var(--qxp-bg-2); }
.qxa-site { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 16px; border-bottom: 1px solid var(--qxp-line); }
.qxa-site:last-child { border-bottom: 0; }
.qxa-site-link { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-decoration: none; }
.qxa-site-name { color: var(--qxp-ink); font-size: 15px; font-weight: 600; }
.qxa-site-domain { color: var(--qxp-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qxa-site-link:hover .qxa-site-name, .qxa-site-link:focus-visible .qxa-site-name { color: var(--qxp-hi); }
.qxa-site-access { flex: none; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--qxp-line-2); color: var(--qxp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.qxa-site-access-public { color: var(--qxp-hi); border-color: var(--qxp-hi); }
/* ── THE STATS PAGE — sites by user sessions (30d); big, column-aligned numbers. ── */
.qxa-stats { margin: 22px 0 0; border: 1px solid var(--qxp-line-2); border-radius: 12px; overflow: hidden; background: var(--qxp-bg-2); }
.qx-container.qxa-st-head, .qx-container.qxa-st-row { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 5rem 4rem; align-items: center; gap: 4px 14px; padding: 12px 16px; border-bottom: 1px solid var(--qxp-line); }
.qx-container.qxa-st-head { background: var(--qxp-bg-3); }
.qx-container.qxa-st-row:last-child { border-bottom: 0; }
.qxa-st-h { color: var(--qxp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.qxa-st-h.qxa-st-h-site { text-align: left; }
/* sortable column headers — click to sort that column (state-sort). Button reset + header look. */
.qx-button.qxa-st-hbtn { appearance: none; -webkit-appearance: none; background: none; border: 0; margin: 0; padding: 0; width: 100%; min-height: 44px;
  cursor: pointer; color: var(--qxp-muted); font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.qx-button.qxa-st-hbtn:hover, .qx-button.qxa-st-hbtn:focus-visible { color: var(--qxp-hi); }
.qx-container.qxa-st-site { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qxa-st-name { color: var(--qxp-ink); font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qxa-st-domain { color: var(--qxp-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qxa-st-num { color: var(--qxp-ink); font-size: 26px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.1; }
.qxa-st-num:empty::before { content: "—"; color: var(--qxp-muted); font-weight: 400; }
.qxa-st-num.qxa-st-num-min { font-size: 16px; font-weight: 600; color: var(--qxp-body); }
/* the V5 table: two groups (last 30 days, last 7 days) of Sessions / Pages / Visitors beside the site */
.qx-container.qxa-st2-head, .qx-container.qxa-st2-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 28px; padding: 12px 16px; border-bottom: 1px solid var(--qxp-line); }
.qx-container.qxa-st2-head { background: var(--qxp-bg-3); }
.qx-container.qxa-st2-row:last-child { border-bottom: 0; }
.qx-container.qxa-st2-grp { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.qxa-st2-nums { display: grid; grid-template-columns: 5rem 5rem 4rem; gap: 4px 14px; align-items: center; padding: 0; border: 0; background: transparent; }
.qxa-st2-cap { color: var(--qxp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.qxa-st2-cap-row { display: none; }
.qx-container.qxa-st2-g7 { border-left: 1px solid var(--qxp-line); padding-left: 14px; }
@media (max-width: 480px) { .qx-container.qxa-st2-head { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 12px; } .qxa-st2-head .qxa-st-h-site { display: none; } .qx-container.qxa-st2-head, .qx-container.qxa-st2-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; } .qx-container.qxa-st2-nums { grid-template-columns: 3.6rem 3.6rem 3rem; gap: 4px 8px; justify-content: end; } .qxa-st2-cap-row, .qxa-st2-head .qxa-st2-cap { display: block; text-align: left; } .qx-container.qxa-st2-grp { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; } .qx-container.qxa-st2-g7 { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .qx-container.qxa-st-head, .qx-container.qxa-st-row { grid-template-columns: minmax(0, 1fr) 3.6rem 3.6rem 3rem; gap: 4px 8px; padding: 12px; } .qxa-st-num { font-size: 20px; } }

/* ── JOURNEY — the task board (objects journey.*; Graham 2026-10-19: the monday.com look) ── */
/* CARD COLOURS — generated from brand/palette.json (see BOARD_FILLS); the row/card reads var(--jb-fill, #fff) */
.jb-col-rose { --jb-fill: #f9d9df; --jb-muted: #5a5b6b; }
.jb-col-peach { --jb-fill: #fcdfc8; --jb-muted: #5a5b6b; }
.jb-col-butter { --jb-fill: #faf0b8; --jb-muted: #5a5b6b; }
.jb-col-mint { --jb-fill: #d0f0de; --jb-muted: #5a5b6b; }
.jb-col-sage { --jb-fill: #dfe8d2; --jb-muted: #5a5b6b; }
.jb-col-sky { --jb-fill: #d2e7f8; --jb-muted: #5a5b6b; }
.jb-col-periwinkle { --jb-fill: #dadef9; --jb-muted: #5a5b6b; }
.jb-col-lavender { --jb-fill: #e8dcf5; --jb-muted: #5a5b6b; }
.jb-col-sand { --jb-fill: #f0e5d2; --jb-muted: #5a5b6b; }
.jb-col-stone { --jb-fill: #e3e5e8; --jb-muted: #5a5b6b; }
.jf-select-focus .qx-select__option.rose::before, .qx-select.jf-select-focus.rose .qx-select__control::before,
.jf-select-focus .qx-select__option.peach::before, .qx-select.jf-select-focus.peach .qx-select__control::before,
.jf-select-focus .qx-select__option.butter::before, .qx-select.jf-select-focus.butter .qx-select__control::before,
.jf-select-focus .qx-select__option.mint::before, .qx-select.jf-select-focus.mint .qx-select__control::before,
.jf-select-focus .qx-select__option.sage::before, .qx-select.jf-select-focus.sage .qx-select__control::before,
.jf-select-focus .qx-select__option.sky::before, .qx-select.jf-select-focus.sky .qx-select__control::before,
.jf-select-focus .qx-select__option.periwinkle::before, .qx-select.jf-select-focus.periwinkle .qx-select__control::before,
.jf-select-focus .qx-select__option.lavender::before, .qx-select.jf-select-focus.lavender .qx-select__control::before,
.jf-select-focus .qx-select__option.sand::before, .qx-select.jf-select-focus.sand .qx-select__control::before,
.jf-select-focus .qx-select__option.stone::before, .qx-select.jf-select-focus.stone .qx-select__control::before { content: ""; display: inline-block; width: .75em; height: .75em; margin-right: .45em; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); vertical-align: -.05em; }
.qx-select.jf-select-focus.rose .qx-select__control::before,
.qx-select.jf-select-focus.peach .qx-select__control::before,
.qx-select.jf-select-focus.butter .qx-select__control::before,
.qx-select.jf-select-focus.mint .qx-select__control::before,
.qx-select.jf-select-focus.sage .qx-select__control::before,
.qx-select.jf-select-focus.sky .qx-select__control::before,
.qx-select.jf-select-focus.periwinkle .qx-select__control::before,
.qx-select.jf-select-focus.lavender .qx-select__control::before,
.qx-select.jf-select-focus.sand .qx-select__control::before,
.qx-select.jf-select-focus.stone .qx-select__control::before { position: absolute; left: 12px; top: 50%; margin: -.375em 0 0; z-index: 1; pointer-events: none; }
.qx-select.jf-select-focus.rose .qx-select__input,
.qx-select.jf-select-focus.peach .qx-select__input,
.qx-select.jf-select-focus.butter .qx-select__input,
.qx-select.jf-select-focus.mint .qx-select__input,
.qx-select.jf-select-focus.sage .qx-select__input,
.qx-select.jf-select-focus.sky .qx-select__input,
.qx-select.jf-select-focus.periwinkle .qx-select__input,
.qx-select.jf-select-focus.lavender .qx-select__input,
.qx-select.jf-select-focus.sand .qx-select__input,
.qx-select.jf-select-focus.stone .qx-select__input { padding-left: 30px; }
.jf-select-focus .qx-select__option.rose::before, .qx-select.jf-select-focus.rose .qx-select__control::before { background: #f9d9df; }
.jf-select-focus .qx-select__option.peach::before, .qx-select.jf-select-focus.peach .qx-select__control::before { background: #fcdfc8; }
.jf-select-focus .qx-select__option.butter::before, .qx-select.jf-select-focus.butter .qx-select__control::before { background: #faf0b8; }
.jf-select-focus .qx-select__option.mint::before, .qx-select.jf-select-focus.mint .qx-select__control::before { background: #d0f0de; }
.jf-select-focus .qx-select__option.sage::before, .qx-select.jf-select-focus.sage .qx-select__control::before { background: #dfe8d2; }
.jf-select-focus .qx-select__option.sky::before, .qx-select.jf-select-focus.sky .qx-select__control::before { background: #d2e7f8; }
.jf-select-focus .qx-select__option.periwinkle::before, .qx-select.jf-select-focus.periwinkle .qx-select__control::before { background: #dadef9; }
.jf-select-focus .qx-select__option.lavender::before, .qx-select.jf-select-focus.lavender .qx-select__control::before { background: #e8dcf5; }
.jf-select-focus .qx-select__option.sand::before, .qx-select.jf-select-focus.sand .qx-select__control::before { background: #f0e5d2; }
.jf-select-focus .qx-select__option.stone::before, .qx-select.jf-select-focus.stone .qx-select__control::before { background: #e3e5e8; }
.qxd-panel.qxa-jwrap { width: 100%; box-sizing: border-box; max-width: var(--qxp-wide); margin: 18px auto 0; } /* Graham 2026-11-26: content as wide as the header (logo to user icon); the panel used to shrink to its content (~600px) and collapse the stats Site column */
/* Keep: the board starts at the top — no heading, so no heading's room either */
.qxp-section:has(.qxa-keep) { padding-top: 0; border-top: 0; }
.qxd-panel.qxa-jwrap.qxa-keep { margin: 0 auto; padding: 20px 18px 64px; }
/* ── THE CONTROL ROW (Keep: one compact line, placeholders for labels, wrapping on a phone): the Focus
   picker and the filter bar, each an object whose root steps aside (display: contents) so their
   controls flow as ONE row ── */
.qx-container.jf-controls { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.qx-container.jf-controls .qx-container.jf-focus, .qx-container.jf-controls .qx-container.jf-bar { display: contents; }
.jf-lbl { color: var(--qxp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jf-lbl:empty { display: none; }
.qx-container.jf-who, .qx-container.jf-prio, .qx-container.jf-recur, .qx-container.jf-switch { display: flex; flex: none; }
.qx-container.jf-search { position: relative; display: flex; flex-direction: row; align-items: center; flex: 1 1 12rem; min-width: 10rem; }
.qx-state-input.jf-search-input { width: 100%; min-height: 44px; padding: 0 44px 0 12px; border: 1px solid var(--qxp-line-2); border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; }
/* ONE clear control: the board's own (a button, named for a screen reader); the browser's search-field × is hidden */
.qx-state-input.jf-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.qx-button.jf-search-clear { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #676879; font-size: 0; cursor: pointer; }
.qx-button.jf-search-clear::before { content: "×"; font-size: 22px; line-height: 1; }
.qx-button.jf-search-clear:hover, .qx-button.jf-search-clear:focus-visible { color: #323338; }
/* the pickers: a FIXED width each (a data-select's input otherwise takes its intrinsic size and overflows) */
.jf-select { flex: none; min-width: 0; }
/* every picker input fills its control: an input left at its intrinsic size (~20 characters) overflows a phone */
.jf-select .qx-select__input, .ja-select .qx-select__input { width: 100%; min-width: 0; box-sizing: border-box; }
/* THE MISSION PICKER HAS ITS OWN ROW (Graham 2026-10-30: "the missions drop-down needs to be in its own row, for tasks and missions, because the text needs a wider view"):
   full width at every size, so a long mission name shows whole; the other filters stay paired on the rows below */
.jf-select-focus { flex: 1 1 100%; width: 100%; }
.jf-select-focus .qx-select__list { max-width: 100%; }
/* a long name ends in an ellipsis BEFORE the clear (×) and the toggle, two 44px buttons at the field's end, never under them */
.jf-select-focus .qx-select__input { padding-right: 92px; text-overflow: ellipsis; }
/* AREA COLOUR beside the Focus (only with a focus): the engine's swatch-select, bound to the focused area's
   own Colour — these rules only place it in the controls row */
.qx-container.jf-colour { display: inline-flex; align-items: center; }
.jf-swatches .qx-swatch-select__label { color: var(--qxp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.jf-select-who { width: 11rem; }
.jf-select-prio { width: 9.5rem; }
.jf-select-whog { width: 10.5rem; }
.jf-select-status { width: 9.5rem; }
.jf-select-recur { width: 9rem; }
.qx-container.jf-who { gap: 8px; flex-direction: row; }
.qx-container.jf-status { display: flex; flex: none; }
/* the engine's picker chrome at a tappable size: its toggle and clear buttons are 6px tall by default */
.jf-select .qx-select__input { min-height: 44px; font-size: 14px; }
.jf-select .qx-select__toggle, .jf-select .qx-select__clear { min-width: 44px; min-height: 44px; }
/* the switches are the engine's toggle block; on the dark console its label takes the body ink */
.qx-toggle.jf-toggle { color: var(--qxp-body); font-size: 13px; }
.qx-toggle.jf-toggle .qx-toggle__control { min-height: 44px; padding: 0 4px; }
.qx-toggle.jf-toggle-done, .qx-toggle.jf-toggle-arch, .qx-toggle.jf-toggle-every, .qx-toggle.jp-arch-sw { --qx-toggle-on: var(--qxp-hi); --qx-toggle-off: var(--qxp-muted); }
/* the picker's open list is a light panel: its options take the board ink, the tree elbows stay muted */
.jf-select .qx-select__list { color: #323338; }
.jf-select .qx-select__indent { color: #676879; }
@media (max-width: 767px) {
  .qx-container.jf-search { flex: 1 1 100%; width: 100%; }
  .qx-container.jf-colour { flex: 1 1 100%; }
  .qx-container.jf-who { flex: 1 1 100%; min-width: 0; }
  .qx-container.jf-prio, .qx-container.jf-status, .qx-container.jf-recur { flex: 1 1 8rem; min-width: 0; }
  .jf-select-whog, .jf-select-who { flex: 1 1 0; width: auto; min-width: 0; }
  .jf-select-prio, .jf-select-status, .jf-select-recur { width: 100%; }
}
.qx-container.jb-wrap { display: block; }
.qx-container.jb-src-wrap { display: block; min-height: 1px; }
/* the console's day home (journeyDayHome, task 4142e7eb): the two grids, a divider between them, "All tasks →" under */
.qx-container.qxa-day { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; }
.qx-container.qxa-day-rule { height: 0; border-top: 2px solid var(--qxp-line-2); margin: 8px 0; }
.qx-link.qxa-day-all { align-self: flex-start; font-weight: 600; color: #579bfc; text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.qx-link.qxa-day-all:hover { text-decoration: underline; }

/* ── THE QUICK-ADD (journey.task-add): Keep's "Take a note…" — a full-width field, Add at its end, and
   under it a tiny muted "into <branch>" line that is the new task's area picker ── */
.qx-container.ja { display: flex; flex-direction: column; gap: 0; margin: 0 0 12px; }
.qx-container.ja-live, .qx-container.ja-form-wrap { display: block; }
/* the engine's form, laid out as one line: the field takes the width, Add sits at its end; the label is for a reader */
.ja-form, .qx-form.ja-form { display: flex; flex-direction: row; align-items: stretch; gap: 8px; margin: 0; }
.ja-form .qx-form__row { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; margin: 0; }
.ja-form .qx-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ja-form .qx-form__field { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--qxp-line-2); border-radius: 10px; background: #fff; color: #323338; font-family: inherit; font-size: 16px; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ja-form .qx-form__field::placeholder { color: #676879; opacity: 1; }
.ja-form .qx-form__field:focus { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
/* an empty Enter sends nothing and says nothing: the field is outlined red only while it has the focus
   (the form keeps its invalid mark after a successful add clears the field) */
.ja-form .qx-form__field[data-qx-invalid="true"]:focus { outline-color: #e2445c; }
.ja-form .qx-form__field-error, .ja-form .qx-form__errors, .ja-form .qx-form__required { display: none; }
.ja-form .qx-form__actions { flex: none; display: flex; margin: 0; }
.ja-form .qx-form__submit { appearance: none; -webkit-appearance: none; min-width: 4.5rem; min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--qxp-hi); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ja-form .qx-form__submit:hover, .ja-form .qx-form__submit:focus-visible { filter: brightness(1.1); }
.ja-busy { margin: 0; min-height: 48px; display: flex; align-items: center; padding: 0 16px; color: var(--qxp-muted); font-size: 14px; }
.qx-container.ja-into { display: flex; flex-direction: row; align-items: center; gap: 2px; padding-left: 16px; color: var(--qxp-muted); font-size: 12px; }
/* the "into <mission>" picker fills its own row (Graham 2026-10-30), so a long mission name shows whole */
.ja-into-lbl { flex: none; }
.qx-repeater.ja-into-pick, .qx-container.ja-into-pick { display: block; flex: 1 1 auto; min-width: 0; }
/* only ONE of the two pickers is ever there (the Focus's, or the root's): the repeater with no row takes no share of the line
   (it keeps the engine's inline display:flex, so it is made not to GROW rather than hidden) */
.qx-repeater.ja-into-pick:not(:has(.qx-select)) { flex: 0 0 0; }
.ja-select { position: relative; width: 100%; max-width: none; }
.ja-select .qx-select__input { width: 100%; min-height: 44px; padding: 0 5.5rem 0 4px; border: 0; border-radius: 6px; background: transparent; color: var(--qxp-body); font-family: inherit; font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
.ja-select .qx-select__input::placeholder { color: var(--qxp-body); opacity: 1; }
.ja-select .qx-select__input:focus { outline: 2px solid var(--qxp-hi); outline-offset: 0; background: #fff; color: #323338; }
.ja-select .qx-select__toggle { position: absolute; top: 0; bottom: 0; right: 0; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--qxp-muted); cursor: pointer; }
.ja-select .qx-select__clear { position: absolute; top: 0; bottom: 0; right: 44px; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--qxp-muted); cursor: pointer; }
.ja-select .qx-select__list { position: absolute; left: 0; top: 100%; z-index: 30; width: min(40rem, 100%); max-height: 16rem; overflow: auto; margin: 2px 0 0; padding: 4px 0; background: #fff; color: #323338; border: 1px solid #e6e9ef; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); font-size: 14px; }
.ja-select .qx-select__option { padding: 8px 12px; }
.ja-select .qx-select__option--active { background: #f3f4f6; }
.ja-select .qx-select__desc, .jp-select .qx-select__desc { display: block; color: #676879; font-size: 12px; }
.ja-select .qx-select__indent { color: #676879; }
@media (max-width: 767px) { .ja-form .qx-form__submit { min-width: 4rem; padding: 0 12px; } }

/* an ARCHIVED task: a small muted "archived" tag by the title (its text is the archive date, for a
   reader; the word is drawn) and the whole row — or card — fades */
.jb-arch { flex: none; display: inline-block; padding: 0 7px; border-radius: 9px; background: #e6e9ef; color: #676879; font-size: 0; line-height: 18px; white-space: nowrap; }
.jb-arch:empty { display: none; }
.jb-arch::before { content: "archived"; font-size: 11px; font-weight: 600; }
/* WORKING NOW (task 36ffc89d): who holds the task, from the API's Working.Label ("Journey Keeper on qx-dev since
   11:40") behind a live green dot; an EXPIRED lease (it ran out and nobody ended it) keeps its words behind a hollow
   amber dot — shown, never hidden. STUCK (the API's Stuck: Working on it, no sign of life for StuckAfterHours) is a red
   pill — the word, then the reason. #676879 on white 5.3:1; white on #cf3550 4.6:1 (the Blocked cell's red). */
.jb-work { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: #676879; font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-work:empty, .jb-stuck:empty { display: none; }
.jb-work::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #00a86b; box-shadow: 0 0 0 2px #00a86b33; }
.jb-work-expired::before { background: transparent; box-shadow: inset 0 0 0 2px #c08a2b; }
.jb-work { max-width: 100%; }
/* the reason is the point, so it is never cut: the pill wraps inside the cell (and the card) instead */
.jb-stuck { flex: 0 1 auto; min-width: 0; max-width: 100%; display: inline-block; padding: 1px 8px; border-radius: 6px; background: #cf3550; color: #fff; font-size: 11px; line-height: 16px; white-space: normal; overflow-wrap: anywhere; }
.jb-stuck::before { content: "STUCK · "; font-weight: 700; letter-spacing: .02em; }
/* on a desk the title keeps its line; who holds it and STUCK go on their own line under it (a flex line break —
   the 100%-wide ::after — then the two, ordered after it), only on the rows that carry one */
@media (min-width: 768px) {
  .qx-container.jb-td-title:has(.jb-work:not(:empty)), .qx-container.jb-td-title:has(.jb-stuck:not(:empty)) { flex-wrap: wrap; row-gap: 2px; align-content: center; padding-top: 4px; padding-bottom: 6px; }
  .qx-container.jb-td-title:has(.jb-work:not(:empty))::after, .qx-container.jb-td-title:has(.jb-stuck:not(:empty))::after { content: ""; order: 9; flex: 0 0 100%; height: 0; }
  .qx-container.jb-td-title:has(.jb-work:not(:empty)) .jb-title, .qx-container.jb-td-title:has(.jb-stuck:not(:empty)) .jb-title { min-height: 24px; }
  .jb-work, .jb-stuck { order: 10; }
}
.qx-container.jb-row:has(.jb-arch) { opacity: .6; }
.qx-container.jb-row:has(.jb-arch):hover, .qx-container.jb-row:has(.jb-arch):focus-within { opacity: 1; }
/* RECURRING: a ↻ by the title when the task repeats — RecurFreq set (a definition) OR RecurParentId set
   (an occurrence). Class tokens only, no assembled words; shown by default, hidden only when BOTH are
   empty. The words ("weekly · Mon") come later from the API's RecurLabel so they live in one place. */
/* ONE unbreakable chip after the title: inline-block + nowrap so the ↻, the words and the
   "+N more" are a single run that never splits across lines. inline-flex made each child
   (::before glyph, label span, more span) its own break point — three stacked lines. The
   title cell is a flex row with the title at flex 0 1 auto, so the title ellipsizes first
   and this chip keeps its full width; max-width + ellipsis clip the chip only in the
   extreme where even a shrunk title can't free the room. */
.qx-container.jb-rec { flex: none; display: inline-block; max-width: 100%; color: var(--jb-muted, #676879); font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.jb-rec::before { content: "↻ "; font-size: 13px; }
.qx-container.jb-rec.jb-rec-f-.jb-rec-p- { display: none; }
.jb-rec-lbl { display: inline; }
.jb-rec-lbl:empty { display: none; }
/* "· +N more" — the occurrences folded under this row (collapse=recurrence); hidden at 0 / empty */
.jb-rec-more { display: inline; }
.jb-rec-more::before { content: " · "; }
.jb-rec-more.jb-l-0::before, .jb-rec-more.jb-l-::before { content: none; }
.jb-rec-more.jb-l-0, .jb-rec-more.jb-l- { display: none; }
/* a refresh that failed: the rows shown are the previous answer — a red line says so */
.jb-err { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, #e2445c 12%, #fff); color: #a9142c; font-size: 13px; }

.qx-container.jb { display: flex; flex-direction: column; gap: 18px; }
.qx-container.jb-group { display: flex; flex-direction: column; gap: 0; }
.qx-container.jb-group-head { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 0 8px; }
.qx-button.jb-disc { appearance: none; -webkit-appearance: none; width: 44px; min-height: 44px; border: 0; background: none; color: var(--qxp-hi); font-size: 0; cursor: pointer; }
/* the chevron is drawn, not a glyph (a font without ▾/▸ showed a box); the label stays as the button's name */
.qx-button.jb-disc::before { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s ease; }
.qx-button.jb-disc-shut::before { transform: rotate(-45deg); margin-top: 0; margin-left: -3px; }
@media (prefers-reduced-motion: reduce) { .qx-button.jb-disc::before { transition: none; } }
.jb-group-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--qxp-hi); }
.jb-group-open .jb-group-title, .jb-group-open .qx-button.jb-disc { color: var(--qxp-hi); }
.jb-group-done .jb-group-title, .jb-group-done .qx-button.jb-disc { color: #00a86b; }
.jb-group-odd .jb-group-title, .jb-group-odd .qx-button.jb-disc { color: #e2445c; }
/* ON HOLD (2026-10-22, a PRIORITY since task d45a08aa): parked until given High/Medium/Low — a calm slate (interface.board-priority-held), folded by default */
.jb-group-held .jb-group-title, .jb-group-held .qx-button.jb-disc { color: #5b6b82; }
.jb-group-held .qx-container.jb-table { border-left-color: #5b6b82; }
/* TICKLE (2026-10-26, task f97f9461): waiting on the outside world — the board's teal (interface.board-tickle) */
.jb-group-tickle .jb-group-title, .jb-group-tickle .qx-button.jb-disc { color: #4eccc6; }
.jb-group-tickle .qx-container.jb-table { border-left-color: #4eccc6; }
.jb-group-odd .qx-container.jb-table { border-left-color: #e2445c; }
/* a group's foot, from the API's summary.Groups: the status mix as a bar, the due range, overdue, the count */
.qx-container.jb-summary-host, .qx-repeater.jb-summary-rows { display: block; }
.qx-container.jb-summary { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid #e6e9ef; background: #fafbfc; color: #676879; font-size: 12px; }
.qx-repeater.jb-mix { display: flex; flex-direction: row; flex: 1 1 12rem; max-width: 22rem; height: 10px; border-radius: 5px; overflow: hidden; background: #e6e9ef; }
.jb-seg { display: block; min-width: 3px; height: 100%; font-size: 0; background: repeating-linear-gradient(45deg, #fde2e2, #fde2e2 3px, #e2445c 3px, #e2445c 5px); }
.jb-sum-range { font-variant-numeric: tabular-nums; }
.jb-sum-overdue { color: #e2445c; font-weight: 600; }
.jb-sum-count { font-weight: 600; color: #323338; }
.jb-group-head .jb-group-count { color: var(--qxp-muted); font-size: 13px; }
.jb-group-head .jb-group-repeats { display: none; color: var(--qxp-muted); font-size: 13px; margin-left: 4px; }
.jb-group-open .jb-group-head .jb-group-repeats { display: inline; }
.jb-group-repeats:empty { display: none; }

/* the table clips nothing (overflow visible): a cell's open picker list must hang below its row, past the
   table's edge; the rounded corners are drawn on the head and the foot instead */
.qx-container.jb-table { display: flex; flex-direction: column; gap: 0; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; overflow: visible;
  border-left: 5px solid var(--qxp-hi); }
.jb-group-done .qx-container.jb-table { border-left-color: #00a86b; }
.qx-container.jb-head, .qx-container.jb-row { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 12rem) 4rem 6.5rem 8rem 6.5rem 5.5rem; align-items: stretch; gap: 0; }
.qx-container.jb-head { background: #fafbfc; border-bottom: 1px solid #e6e9ef; border-radius: 9px 9px 0 0; }
.qx-container.jb-summary { border-radius: 0 0 9px 9px; }
.jb-th-done { padding: 0; }
/* headings: Task, Priority, Status and Due sort ON THE SERVER (sort=). A sortable heading is a cell
   holding its base button and, laid over it, the one that flips the order while that field is the sort
   (with an arrow); Area and Who are plain labels — the API does not sort by them. */
.jb-th { min-height: 40px; border-right: 1px solid #e6e9ef; color: #676879; font-size: 12px; font-weight: 500; }
.jb-th:last-child { border-right: 0; }
.qx-container.jb-th-cell { position: relative; display: flex; flex-direction: row; padding: 0; }
.jb-th-label { display: flex; align-items: center; padding: 0 10px; }
.jb-th-who { justify-content: center; }
.qx-button.jb-th-btn { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-height: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  color: inherit; font-family: inherit; font-size: 12px; font-weight: 500; text-align: center; }
.jb-th-title .qx-button.jb-th-btn, .jb-th-area { text-align: left; }
.jb-th-pri .qx-button.jb-th-btn, .jb-th-status .qx-button.jb-th-btn, .jb-th-due .qx-button.jb-th-btn { text-align: center; }
.qx-button.jb-th-on { position: absolute; inset: 0; background: #f3f4f6; color: #323338; font-weight: 600; }
.qx-button.jb-th-btn:hover, .qx-button.jb-th-btn:focus-visible { color: #323338; background: #f3f4f6; }
.qx-button.jb-th-on::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.qx-button.jb-th-desc::after { border-top: 5px solid var(--qxp-hi); }
.qx-button.jb-th-asc::after { border-bottom: 5px solid var(--qxp-hi); }
.qx-repeater.jb-rows { display: flex; flex-direction: column; }
.qx-container.jb-row { min-height: 44px; border-bottom: 1px solid #e6e9ef; background: var(--jb-fill, #fff); }
.qx-container.jb-row:last-child { border-bottom: 0; }
.jb-td, .qx-container.jb-td { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; min-width: 0; overflow: hidden; padding: 0 10px; border-right: 1px solid #e6e9ef; font-size: 14px; color: #323338; }
.jb-row > .jb-td:last-child { border-right: 0; }
.qx-container.jb-td-title { gap: 6px; justify-content: flex-start; }
/* the title is a button: it opens the task's panel */
.jb-title, .qx-button.jb-title { appearance: none; -webkit-appearance: none; display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 44px; padding: 0; border: 0; background: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-family: inherit; font-size: 14px; font-weight: 500; color: #323338; cursor: pointer; }
.qx-button.jb-title:hover, .qx-button.jb-title:focus-visible { color: var(--qxp-hi); text-decoration: underline; text-underline-offset: 3px; }
.jb-chain { flex: none; }
.jb-g-done .jb-title { color: #9a9ba7; }
/* blocked by a dependency: two linked rings drawn in CSS (an emoji varies by device and shows a box
   without its font); the word "Blocked" stays as the element's text for a screen reader */
.jb-chain { display: none; position: relative; width: 16px; height: 10px; margin-left: 6px; color: var(--jb-muted, #676879); font-size: 0; overflow: hidden; }
.jb-chain-true { display: inline-block; }
.jb-chain::before, .jb-chain::after { content: ""; position: absolute; top: 1px; width: 8px; height: 6px; border: 1.5px solid currentColor; border-radius: 4px; }
.jb-chain::before { left: 0; }
.jb-chain::after { left: 5px; }
.jb-td-area { color: var(--jb-muted, #676879); font-size: 13px; position: relative; }
.jb-area { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
@media (min-width: 1440px) { .qx-container.jb-head, .qx-container.jb-row { grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 18rem) 5rem 6.5rem 8rem 7rem 5.5rem; } }
.qx-container.jb-td-who { justify-content: center; position: relative; }
/* the avatar: the assignee's name, shown as its first letter (::first-letter, the name stays in the DOM for a reader) */
.jb-avatar { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: #ff7575; color: #fff; font-size: 0; line-height: 28px; text-align: center; overflow: hidden; white-space: nowrap; }
.jb-avatar::first-letter { font-size: 12px; font-weight: 700; }
.jb-avatar:empty { background: #e6e9ef; }
.jb-dl-true .jb-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffcb00; }
.jb-avatar-owner { display: none; width: 18px; height: 18px; line-height: 18px; margin-left: -6px; background: #676879; }
.jb-avatar-owner::first-letter { font-size: 9px; }
.jb-dl-true .jb-avatar-owner { display: inline-block; }
.jb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* THE PRIORITY AND STATUS CELLS ARE PICKERS (the engine's data-select, mode dropdown): the cell is the
   select's root, coloured by rank / status; its input is the full cell, borderless, centred, white, and
   shows the STORED words as its placeholder (the API's Importance / StatusLabel) until a choice is made;
   the toggle and clear buttons are hidden — the whole cell opens the list. */
.qx-select.jb-pick-cell { display: block; position: relative; overflow: visible; width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; }
.jb-pick-cell .qx-select__control { height: 100%; min-height: 44px; }
.jb-pick-cell .qx-select__input { width: 100%; min-width: 0; height: 100%; min-height: 44px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }
.jb-pick-cell .qx-select__input::placeholder { color: #fff; opacity: 1; }
.jb-pick-cell .qx-select__input:focus { outline: 2px solid #323338; outline-offset: -2px; }
.jb-pick .qx-select__toggle, .jb-pick .qx-select__clear { display: none; }
/* an editable cell says so on hover */
@media (hover: hover) and (min-width: 768px) { .jb-ed:hover { outline: 2px solid rgba(50, 51, 56, .28); outline-offset: -2px; } }
/* the open list: a light panel under the cell, over the rows below, never clipped */
.jb-pick .qx-select__list { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 100%; width: max-content; max-width: 18rem; max-height: 16rem; overflow: auto; margin: 2px 0 0; padding: 4px 0; background: #fff; color: #323338; border: 1px solid #e6e9ef; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); text-align: left; text-transform: none; font-family: inherit; font-size: 13px; }
.jb-pick .qx-select__option { padding: 9px 14px; min-height: 36px; }
.jb-pick .qx-select__option--active { background: #f3f4f6; }
/* priority: full-cell colour by rank; not set stays an empty light cell (its placeholder is empty) */
.jb-p-3 { background: #e2445c; } .jb-p-2 { background: #fdab3d; } .jb-p-1 { background: #579bfc; } .jb-p--1 { background: #5b6b82; }
/* status: an UNKNOWN status first — striped, outlined, never a silent grey — then the known statuses,
   which come after so they win with full-cell colour. The WORDS are the API's StatusLabel (its friendly
   name for a known status, the raw value for an unknown one): one label list, the API's. */
.jb-td-status { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #fde2e2 6px, #fde2e2 12px); box-shadow: inset 0 0 0 2px #e2445c; }
.jb-td-status .qx-select__input, .jb-td-status .qx-select__input::placeholder { color: #a9142c; font-family: ui-monospace, monospace; text-transform: none; font-size: 13px; }
.jb-s-ready { background: #579bfc; } .jb-s-in_progress { background: #fdab3d; } .jb-s-blocked { background: #cf3550; } .jb-s-pending { background: #c4c4c4; }
.jb-s-completed { background: #00c875; } .jb-s-failed { background: #a9142c; } .jb-s-cancelled, .jb-s-dropped { background: #707070; }
/* WORDS ON A STATUS CELL, MEASURED (task 7b917fce; 4.5:1 is the floor): the light cells take the board ink —
   Ready 4.50, In progress 6.64, Pending 7.23, Completed 5.71 (white was 2.80 / 1.90 / 1.74 / 2.21); the dark cells keep
   white on a deeper shade — Blocked #cf3550 4.91, Cancelled / Dropped #707070 4.95, Awaiting approval #8a56c0 5.03
   (the old #e2445c 4.03, #808080 3.95, #9966cc 4.10 read with neither); Failed #a9142c 7.44 as it was. */
/* TICKLE (task f97f9461): the board's teal, the board ink for words (white on teal does not read) */
.jb-s-tickle { background: #4eccc6; box-shadow: none; }
.jb-s-tickle .qx-select__input, .jb-s-tickle .qx-select__input::placeholder { color: #323338; font-family: inherit; }
/* AWAITING APPROVAL (2026-10-20, the job lifecycle): the estate's lavender, white words */
.jb-s-awaiting_approval { background: #8a56c0; box-shadow: none; }
.jb-s-awaiting_approval .qx-select__input, .jb-s-awaiting_approval .qx-select__input::placeholder { color: #fff; font-family: inherit; }
/* DELEGATED (2026-10-20): the delegation ring's yellow, with the board ink for words (white on yellow does not read) */
.jb-s-delegated { background: #ffcb00; box-shadow: none; }
.jb-s-delegated .qx-select__input, .jb-s-delegated .qx-select__input::placeholder { color: #323338; font-family: inherit; }
.jb-s-ready, .jb-s-in_progress, .jb-s-blocked, .jb-s-pending, .jb-s-completed, .jb-s-failed, .jb-s-cancelled, .jb-s-dropped { box-shadow: none; }
.jb-s-ready .qx-select__input, .jb-s-in_progress .qx-select__input, .jb-s-pending .qx-select__input, .jb-s-completed .qx-select__input,
.jb-s-ready .qx-select__input::placeholder, .jb-s-in_progress .qx-select__input::placeholder, .jb-s-pending .qx-select__input::placeholder, .jb-s-completed .qx-select__input::placeholder { color: #323338; font-family: inherit; }
.jb-s-blocked .qx-select__input, .jb-s-failed .qx-select__input, .jb-s-cancelled .qx-select__input, .jb-s-dropped .qx-select__input,
.jb-s-blocked .qx-select__input::placeholder, .jb-s-failed .qx-select__input::placeholder, .jb-s-cancelled .qx-select__input::placeholder, .jb-s-dropped .qx-select__input::placeholder { color: #fff; font-family: inherit; }
/* WHO: the avatar stays; the Who picker lies over the whole cell unseen (its list shows as usual) */
.qx-container.jb-td-who { overflow: visible; }
.qx-select.jb-pick-who { position: absolute; inset: 0; width: auto; }
.jb-pick-who .qx-select__control { height: 100%; opacity: 0; }
.jb-pick-who .qx-select__input { width: 100%; height: 100%; min-height: 44px; cursor: pointer; }
.jb-pick-who .qx-select__input:focus { outline: none; }
.jb-pick-who .qx-select__list { right: auto; }
/* DONE in one click: a check at the row's left on an open task; hidden on a done or unknown one */
.qx-container.jb-td-done { justify-content: center; padding: 0; }
.qx-button.jb-done { display: none; position: relative; width: 44px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 0; cursor: pointer; }
.qx-button.jb-done-open { display: inline-block; }
.qx-button.jb-done::after { content: ""; position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; border: 2px solid #c4c4c4; border-radius: 50%; background: #fff; box-sizing: border-box; }
.qx-button.jb-done::before { content: ""; position: absolute; z-index: 1; left: 17px; top: 13px; width: 5px; height: 10px; border-right: 2px solid #c4c4c4; border-bottom: 2px solid #c4c4c4; transform: rotate(45deg); }
.qx-button.jb-done:hover::after, .qx-button.jb-done:focus-visible::after { border-color: #00c875; background: #fafbfc; }
.qx-button.jb-done:hover::before, .qx-button.jb-done:focus-visible::before { border-color: #00c875; }
/* DUE: the date with an unseen button over it; a click swaps in a date field and a cancel */
.qx-container.jb-td-due { position: relative; overflow: visible; padding: 0; }
.qx-container.jb-due-show { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; position: relative; }
.qx-button.jb-due-hit { position: absolute; inset: 0; width: 100%; min-height: 44px; border: 0; background: none; opacity: 0; font-size: 0; cursor: pointer; }
.qx-container.jb-due-edit { display: flex; flex-direction: row; align-items: center; gap: 2px; width: 100%; min-height: 44px; padding: 0 2px 0 4px; }
.jb-due-pick, .qx-datepicker.jb-due-pick { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 36px; padding: 0 4px; border: 1px solid #c4c4c4; border-radius: 6px; background: #fff; color: #323338; font-family: inherit; font-size: 12px; }
.qx-button.jb-due-cancel { flex: none; position: relative; width: 32px; min-height: 44px; padding: 0; border: 0; background: none; color: #676879; font-size: 0; cursor: pointer; }
.qx-button.jb-due-cancel::before { content: "×"; font-size: 20px; line-height: 1; }
.qx-button.jb-due-cancel:hover, .qx-button.jb-due-cancel:focus-visible { color: #323338; }
/* CLEAR the due date — a hover ✕ on the shown date (its own action; an emptied date field sends '' → 400); PUTs {DueAt:null} */
.qx-button.jb-due-clear { position: absolute; top: 1px; right: 1px; z-index: 3; width: 18px; height: 18px; min-height: 0; padding: 0; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .28); color: #676879; font-size: 0; line-height: 1; cursor: pointer; }
.qx-button.jb-due-clear::before { content: "×"; font-size: 13px; }
.qx-button.jb-due-clear:hover, .qx-button.jb-due-clear:focus-visible { color: #e2445c; }
@media (hover: hover) and (pointer: fine) { .jb-td-due:has(.jb-due:not(:empty)):hover .qx-button.jb-due-clear { display: inline-flex; } }
.qx-container.jb-td-due { justify-content: center; color: var(--jb-muted, #676879); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jb-due:empty::before { content: "—"; color: #c4c4c4; }
.jb-ov-true .jb-due { color: #e2445c; font-weight: 600; }
.jb-ov-true .jb-due::before { content: "⚠ "; }
.jb-g-done .jb-due { text-decoration: line-through; }
.jb-g-done .jb-due:not(:empty)::before { content: "✓ "; color: #00c875; text-decoration: none; }
.jb-none { margin: 0; padding: 14px 12px; color: #676879; font-size: 14px; }
/* CREATED: a narrow column right of Due on a desk; on a card, "added …" at the end of the area line */
.qx-container.jb-td-created { justify-content: center; color: var(--jb-muted, #676879); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jb-th-created .qx-button.jb-th-btn { text-align: center; }
.jb-created { color: var(--jb-muted, #676879); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.jb-added { display: none; }
@media (max-width: 1100px) { .qx-container.jb-head, .qx-container.jb-row { grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 8rem) 3.5rem 5.5rem 7rem 5.5rem 5rem; } }
/* ── ON A PHONE EVERY TASK IS A CARD (Graham 2026-10-20: "a little bit of space to look like cards. Each one
   is then its own thing, easier on the eye"): 12px apart, 12px corners, the board's rule colour round it and
   the group's colour as a 3px left edge. Inside: the Done check and the title (two lines at most); then
   Priority and Status as small PILLS — a light tint of the cell colour with the colour as text, ~28px tall
   in a 44px hit area — the Who avatar and the short due date (nothing when there is none); then the area,
   small and muted. Nothing is full-width. ── */
@media (max-width: 767px) {
  .qx-container.jb-head { display: none; }
  .qx-container.jb-table, .jb-group-done .qx-container.jb-table, .jb-group-odd .qx-container.jb-table { border: 0; border-radius: 0; background: none; }
  .qx-repeater.jb-rows { display: flex; flex-direction: column; gap: 12px !important; }
  .qx-container.jb-row, .qx-container.jb-row:last-child { display: grid; grid-template-columns: 2.75rem auto auto auto minmax(0, 1fr); grid-template-areas: "done title title title title" ". pri status who ." ". area area area area" ". due due due due";
    align-items: center; gap: 0 6px; min-height: 0; padding: 6px 12px 10px 2px; border: 1px solid #e6e9ef; border-left: 3px solid var(--qxp-hi); border-radius: 12px; background: var(--jb-fill, #fff); }
  .jb-group-done .qx-container.jb-row { border-left-color: #00a86b; }
  .jb-group-odd .qx-container.jb-row { border-left-color: #e2445c; }
  .jb-group-held .qx-container.jb-row { border-left-color: #5b6b82; }
  .jb-td, .qx-container.jb-td { border-right: 0; padding: 0; }
  .qx-container.jb-td-done { grid-area: done; align-self: start; }
  /* stack on the card: the title (two lines) then the recur chip on its OWN single line under it,
     rather than squeezed to the right of a two-line title */
  .qx-container.jb-td-title { grid-area: title; align-self: start; flex-direction: column; align-items: flex-start; gap: 2px; }
  .qx-container.jb-rec { font-size: 12px; }
  /* two lines of 22px in the 44px target, cut clean: a button does not honour -webkit-line-clamp, and a
     looser line-height left a third line peeking under the box */
  .jb-title, .qx-button.jb-title { display: block; white-space: normal; line-height: 22px; min-height: 44px; max-height: 44px; overflow: hidden; padding: 0; font-size: 15px; }
  /* THE PILLS: the select's root is the 44px hit area (8px above and below), its INPUT the pill. The input
     needs a width (left at auto it takes its ~20-character intrinsic size and overlaps its neighbour — the
     status chip once swallowed every tap on the priority chip, 2026-10-20): it sizes to its words where the
     browser can (field-sizing), else a fixed width that fits the longest label. */
  .qx-select.jb-td-pri { grid-area: pri; }
  .qx-select.jb-td-status { grid-area: status; }
  .qx-select.jb-td-pri, .qx-select.jb-td-status { justify-self: start; width: auto; padding: 8px 0; background: none !important; box-shadow: none; }
  .jb-pick-cell .qx-select__control { min-height: 0; height: auto; }
  .jb-pick-cell .qx-select__input { field-sizing: content; width: auto; min-width: 3.25rem; max-width: 9rem; height: 28px; min-height: 28px; padding: 0 10px; border-radius: 14px;
    background: color-mix(in srgb, var(--jb-c, #c4c4c4) 16%, #fff); color: color-mix(in srgb, var(--jb-c, #c4c4c4) 62%, #323338);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jb-c, #c4c4c4) 40%, #fff); font-size: 12px; font-weight: 600; }
  .jb-pick-cell .qx-select__input::placeholder { color: inherit; opacity: 1; }
  @supports not (field-sizing: content) { .jb-td-pri .qx-select__input { width: 4.75rem; } .jb-td-status .qx-select__input { width: 7.25rem; } }
  .jb-p-3 { --jb-c: #e2445c; } .jb-p-2 { --jb-c: #fdab3d; } .jb-p-1 { --jb-c: #579bfc; } .jb-p--1 { --jb-c: #5b6b82; }
  .jb-s-ready { --jb-c: #579bfc; } .jb-s-in_progress { --jb-c: #fdab3d; } .jb-s-blocked { --jb-c: #e2445c; } .jb-s-pending { --jb-c: #c4c4c4; }
  .jb-s-awaiting_approval { --jb-c: #9966cc; } .jb-s-delegated { --jb-c: #ffcb00; } .jb-s-tickle { --jb-c: #4eccc6; } .jb-s-completed { --jb-c: #00c875; } .jb-s-failed { --jb-c: #a9142c; } .jb-s-cancelled, .jb-s-dropped { --jb-c: #808080; }
  /* an UNKNOWN status keeps its stripe and red outline as a pill, never a quiet grey */
  .jb-td-status:not(.jb-s-ready):not(.jb-s-in_progress):not(.jb-s-blocked):not(.jb-s-pending):not(.jb-s-awaiting_approval):not(.jb-s-delegated):not(.jb-s-completed):not(.jb-s-failed):not(.jb-s-cancelled):not(.jb-s-dropped) .qx-select__input {
    background: repeating-linear-gradient(45deg, #fff, #fff 6px, #fde2e2 6px, #fde2e2 12px); box-shadow: inset 0 0 0 1px #e2445c; color: #a9142c; font-family: ui-monospace, monospace; }
  .jb-td-status .qx-select__list { left: 0; right: auto; }
  .qx-container.jb-td-who { grid-area: who; justify-content: center; width: 44px; min-height: 44px; }
  .jb-pick-who .qx-select__list { left: auto; right: -8rem; }
  /* DUE on its own row at the card's foot (right-aligned), so a wide status pill never squeezes an
     overdue date off the edge; the row-gap is 0 and an empty due collapses the row to nothing. */
  .qx-container.jb-td-due { grid-area: due; justify-content: flex-end; padding: 2px 0 0; font-size: 12px; }
  .qx-container.jb-due-show { justify-content: flex-end; width: 100%; min-height: 0; }
  .qx-button.jb-due-hit { min-height: 0; }
  .jb-due:empty::before { content: none; }
  .qx-container.jb-row:has(.jb-due:empty) .jb-td-due { display: none; }
  .qx-container.jb-td-area { grid-area: area; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .qx-container.jb-td-created { display: none; }
  .jb-added { display: inline; flex: none; color: #9a9ba7; font-size: 11px; white-space: nowrap; }
  .jb-added:not(:empty)::before { content: "added "; }
  /* the area: small and muted, two lines at most */
  .jb-area { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; flex: 0 1 auto; white-space: normal; overflow: hidden; font-size: 12px; line-height: 1.35; color: #676879; }
  .jb-area:empty { display: none; }
  .qx-container.jb-summary { margin-top: 12px; border: 1px solid #e6e9ef; border-radius: 12px; }
  .jb-none { border-radius: 12px; background: #fff; }
  }

/* ── WHO, IN FULL (the row's hover card, engine ui.hover-card): name and @handle, the kind as a word and
   the roles, a Claude role's model · provider, the owner when delegated. Fine pointers only: on a touch
   screen a tap must open the assign list, so the card is not shown there; nor while that list is open,
   nor for a task nobody is assigned to. ── */
.qx-hover-card.jb-who-card { --qx-hover-card-bg: #fff; --qx-hover-card-fg: #323338; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.jb-who-card .qx-hover-card__body { display: block; }
.jb-who-card .qx-text, .jb-who-card .qx-repeater > * { display: inline; }
.jb-who-card .qx-repeater.jb-wc-roles { display: inline !important; }
.jb-wc-name { font-weight: 700; font-size: 14px; }
.jb-wc-handle { color: #676879; margin-left: 6px; }
.jb-wc-handle:not(:empty)::before { content: "@"; }
.jb-wc-kind::before, .jb-wc-owner::before { content: "\A"; white-space: pre; }
.jb-wc-roles:not(:empty)::before { content: " · "; color: #9a9ba7; }
.jb-wc-role + .jb-wc-role::before, .jb-wc-roles > * + *::before { content: ", "; }
.jb-wc-model:not(:empty)::before { content: "\A"; white-space: pre; }
.jb-wc-model:not(:empty) + .jb-wc-provider:not(:empty)::before { content: " · "; color: #9a9ba7; white-space: normal; }
.jb-wc-model:empty + .jb-wc-provider:not(:empty)::before { content: "\A"; white-space: pre; }
.jb-wc-model, .jb-wc-provider { color: #676879; }
.jb-wc-owner { color: #676879; }
.qx-hover-card.jb-who-k- { display: none !important; }
body:has(.jb-pick-who [aria-expanded="true"]) .qx-hover-card.jb-who-card { display: none !important; }
@media (hover: none), (pointer: coarse) { .qx-hover-card.jb-who-card { display: none !important; } }
/* UNASSIGN: a small × in the cell corner, above the Who picker overlay; revealed on hover of the cell
   and only when the task is assigned (its kind class is non-empty; jb-who-k- with no kind = unassigned,
   nothing to clear). Fine pointers only — on touch the cell tap opens the assign list, so unassign is
   done from the panel there. PUTs {AssignedActorId:null}. (An in-list 'Unassign' above the actor list
   needs the engine's prepended-static-option support, reported as a gap; this × is the row's clear until then.) */
.qx-button.jb-who-unassign { position: absolute; top: 1px; right: 1px; z-index: 4; width: 20px; height: 20px; min-height: 0; padding: 0; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .28); color: #676879; font-size: 0; line-height: 1; cursor: pointer; }
.qx-button.jb-who-unassign::before { content: "×"; font-size: 14px; }
.qx-button.jb-who-unassign:hover, .qx-button.jb-who-unassign:focus-visible { color: #e2445c; }
.qx-button.jb-who-unassign.jb-who-k- { display: none !important; }
@media (hover: hover) and (pointer: fine) { .jb-td-who:hover .qx-button.jb-who-unassign:not(.jb-who-k-), .jb-td-who:focus-within .qx-button.jb-who-unassign:not(.jb-who-k-) { display: inline-flex; } }

/* ── THE TASK PANEL (journey.task-panel): a drawer on a desk, a bottom sheet on a phone; every field saves itself ── */
.qx-container.jp { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch; }
.qx-button.jp-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(20, 22, 30, .45); font-size: 0; cursor: pointer; }
.qx-container.jp-sheet { position: relative; display: flex; flex-direction: column; gap: 14px; width: min(28rem, 100%); height: 100%; overflow: auto; padding: 14px 20px 24px; background: #fff; color: #323338; box-shadow: -12px 0 32px rgba(0, 0, 0, .18); }
.qx-container.jp-head { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; margin: -6px -10px -10px 0; }
.qx-button.jp-close { position: relative; min-width: 44px; min-height: 44px; border: 0; background: none; color: #676879; font-size: 0; cursor: pointer; }
.qx-button.jp-close::before { content: "×"; font-size: 28px; line-height: 1; }
.qx-button.jp-close:hover, .qx-button.jp-close:focus-visible { color: #323338; }
.qx-container.jp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jp-parent-path { color: var(--qxp-muted); font-size: 12px; }
.jp-parent-path:empty { display: none; }
.jp-lbl { color: #676879; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
/* the panel's card-colour field: label above the engine's swatch row */
.qx-container.jp-field-colour { gap: 6px; }
.jp-swatches { padding: 2px 0; }
/* the text-input block is a wrapper (.qx-text-input) around its field: the box is drawn on the FIELD */
.jp-input { display: block; width: 100%; padding: 0; border: 0; background: none; }
.jp-input .qx-text-input__field { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 15px; box-sizing: border-box; }
.jp-input-title .qx-text-input__field { font-weight: 600; }
.jp-input .qx-text-input__field:focus { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qx-container.jp-field-title { width: 100%; }
.qx-container.jp-field-effort { width: 50%; }
.jp-input-effort { max-width: 10rem; }
/* the four pickers of the panel, named so a check can find each; the look is .jp-select's */
.jp-select-kind, .jp-select-status, .jp-select-pri, .jp-select-urg, .jp-select-who, .jp-select-parent { min-width: 0; }
.jp-date-start, .jp-date-due { display: block; }
/* CLEAR a Patch field from the panel (Unassign / Clear) — a small right-aligned link under the control; PUTs the field as null */
.qx-button.jp-clear { align-self: flex-end; margin-top: 2px; padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: #676879; font-family: inherit; font-size: 12px; cursor: pointer; }
.qx-button.jp-clear:hover, .qx-button.jp-clear:focus-visible { color: #e2445c; text-decoration: underline; }
.qx-button.jp-clear-who::before { content: "⊘ "; }
.qx-button.jp-clear-due::before { content: "⊘ "; }
.qx-container.jp-field-arch { width: 100%; }
.qx-button.jp-btn-cancel { background: #fff; }
.jp-input:focus, .jp-date:focus { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qx-container.jp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jp-select .qx-select__input { width: 100%; min-height: 44px; padding: 0 2.6rem 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 15px; }
.jp-select .qx-select__toggle { position: absolute; top: 0; bottom: 0; min-width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer; }
.jp-select .qx-select__clear { display: none; }
.jp-select .qx-select__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 14rem; overflow: auto; margin: 2px 0 0; padding: 4px 0; background: #fff; border: 1px solid #e6e9ef; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); font-size: 14px; }
.jp-select .qx-select__option { padding: 9px 12px; }
.jp-date { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; }
/* Area / parent: the picker's list shows each branch's path under its title */
.qx-container.jp-field-parent { width: 100%; }
/* Description: a textarea that saves only from its button; the buttons appear once the text differs */
.qx-container.jp-field-desc { width: 100%; }
.jp-desc, .qx-state-input.jp-desc { display: block; width: 100%; min-height: 8rem; padding: 10px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; line-height: 1.45; resize: vertical; box-sizing: border-box; }
.jp-desc:focus { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qx-container.jp-desc-acts, .qx-container.jp-desc-dirty, .qx-container.jp-desc-save, .qx-container.jp-desc-clear, .qx-container.jp-arch-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.jp-desc-q { color: #a9142c; font-size: 13px; font-weight: 600; }
.jp-btn, .qx-button.jp-btn { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.qx-button.jp-btn-save, .qx-button.jp-btn-archive { border-color: var(--qxp-hi); background: var(--qxp-hi); color: #fff; }
.qx-button.jp-btn-clear { border-color: #a9142c; background: #a9142c; color: #fff; }
/* Save before the text has been typed into: a disabled stand-in (the engine's button has no reactive disabled) */
.qx-button.jp-btn-off, .qx-button.jp-btn-off:hover { border-color: #e6e9ef; background: #e6e9ef; color: #9a9ba7; cursor: default; filter: none; }
/* the Archived switch on the light sheet takes the sheet's ink */
.qx-toggle.jp-arch-sw { color: #323338; font-size: 14px; }
.qx-toggle.jp-arch-sw .qx-toggle__control { min-height: 44px; padding: 0; }
.qx-button.jp-btn:hover, .qx-button.jp-btn:focus-visible { filter: brightness(1.06); }
/* the task's id (task 2f21bf94): the API's ShortId large (how tasks are quoted), the full id small beside it; each selects whole on one click */
.qx-container.jp-idbox { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; margin-right: auto; }
.jp-idlbl { color: #676879; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jp-short, .jb-sid, .jp-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; -webkit-user-select: all; user-select: all; cursor: text; }
.jp-short { color: #323338; font-size: 18px; font-weight: 600; }
.jb-sid { flex: 0 0 auto; color: #9a9ba7; font-size: 11px; }
.jp-id { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9a9ba7; font-size: 11px; }
@media (max-width: 767px) {
  .qx-container.jp { flex-direction: column; justify-content: flex-end; }
  .qx-container.jp-sheet { width: 100%; height: auto; max-height: 88vh; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .18); }
}
/* ── THE COMMENTS (journey.task-comments at the foot of the panel; journey.task-comment per entry): the board's ink and lines ── */
.qx-container.jc { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #e6e9ef; }
.qx-container.jc-head { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
.jc-lbl { color: #676879; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jc-count { color: #676879; font-size: 12px; font-variant-numeric: tabular-nums; }
.jc-count:empty { display: none; }
.qx-repeater.jc-list { display: flex; flex-direction: column; gap: 0; }
.qx-container.jc-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid #e6e9ef; }
.qx-container.jc-item:first-child { border-top: 0; }
.qx-container.jc-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12px; }
.jc-who { color: #323338; font-weight: 600; }
.jc-who:empty { display: none; }
.jc-who-id { display: inline-block; max-width: 8ch; overflow: hidden; white-space: nowrap; vertical-align: bottom; color: #9a9ba7; font-family: ui-monospace, monospace; font-size: 11px; }
.jc-when { color: #676879; }
.jc-when::before { content: "·"; margin-right: 8px; color: #c4c4c4; }
.qx-container.jc-eyebrow { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.jc-title { color: #676879; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jc-title:empty { display: none; }
.jc-type { padding: 1px 7px; border-radius: 999px; background: #e6e9ef; color: #676879; font-size: 11px; }
.jc-type-note .jc-type { display: none; }
.jc-body { margin: 0; color: #323338; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.jc-none { margin: 0; color: #9a9ba7; font-size: 13px; }
.qx-container.jc-add { display: flex; flex-direction: column; gap: 8px; }
.qx-state-input.jc-draft { display: block; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 15px; line-height: 1.4; resize: vertical; box-sizing: border-box; }
.qx-state-input.jc-draft:focus { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qx-container.jc-actions, .qx-container.jc-ready { display: flex; flex-direction: row; justify-content: flex-end; }
.qx-button.jc-post { min-width: 6rem; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--qxp-hi); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.qx-button.jc-post:hover, .qx-button.jc-post:focus-visible { filter: brightness(1.08); }
.qx-button.jc-post-off, .qx-button.jc-post-busy { background: #e6e9ef; color: #9a9ba7; cursor: default; filter: none; }
/* ── THE COMPUTE JOBS (journey.task-jobs + journey.task-job; task 36ffc89d with infra's queue 461757a9): the scheduler's
   jobs for this task, its words as given. A task with none shows nothing at all (the section's parts hide; the empty
   root has no box). A row: type, a status pill, when, the attempt; the lease's host behind the board's dot (live
   board-green-deep, expired a hollow caution ring); a failure's error in words. Ink #323338 / muted #676879 on white;
   the pills are palette tints with palette text: succeeded fill-mint / up-low, failed red-wash / red-deep,
   leased and queued fill-butter / muted-on-fill (all over 6:1). ── */
.qx-container.jj { display: flex; flex-direction: column; gap: 6px; }
.qx-container.jj:has(.jj-item) { margin-top: 6px; padding-top: 14px; border-top: 1px solid #e6e9ef; }
.qx-container.jj-head { display: flex; flex-direction: row; align-items: baseline; gap: 8px; }
.jj-lbl { color: #676879; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jj-count { color: #676879; font-size: 12px; font-variant-numeric: tabular-nums; }
.qx-repeater.jj-list { display: flex; flex-direction: column; gap: 0; }
.qx-container.jj-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #e6e9ef; }
.qx-container.jj-item:first-child { border-top: 0; }
.qx-container.jj-line { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.jj-type { color: #323338; font-size: 14px; font-weight: 600; }
.jj-status { padding: 0 8px; border-radius: 9px; background: #e6e9ef; color: #676879; font-size: 11px; font-weight: 600; line-height: 18px; text-transform: capitalize; }
.jj-s-succeeded .jj-status { background: #d0f0de; color: #0d6b4d; }
.jj-s-failed .jj-status { background: #fde2e2; color: #a9142c; }
.jj-s-leased .jj-status, .jj-s-queued .jj-status { background: #faf0b8; color: #5a5b6b; }
.jj-when, .jj-tries { color: #676879; font-size: 12px; }
.jj-fin::before { content: "finished "; } .jj-asked::before { content: "asked "; }
.jj-fin:empty, .jj-asked:empty { display: none; }
.qx-container.jj-line:has(.jj-fin:not(:empty)) .jj-asked { display: none; }
.jj-lease { display: inline-flex; align-items: center; gap: 5px; color: #676879; font-size: 12px; }
.jj-lease::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #00a86b; box-shadow: 0 0 0 2px #00a86b33; }
.jj-lease-expired::before { background: transparent; box-shadow: inset 0 0 0 2px #c08a2b; }
.jj-lease:empty, .jj-err:empty { display: none; }
.jj-err { margin: 0; color: #a9142c; font-size: 12px; overflow-wrap: anywhere; }

/* ── THE ATTACHMENTS (journey.task-attachments + journey.task-attachment): one list of files and links ── */
.qx-container.ja-at { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #e6e9ef; }
.ja-at-lbl { color: #676879; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.qx-repeater.ja-at-list { display: flex; flex-direction: column; gap: 0; }
.ja-at-none { margin: 0; color: #9a9ba7; font-size: 13px; }
/* a row: an icon, the title (opens in a new tab) over its caption, and a remove ✕ */
.qx-container.jk { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #e6e9ef; }
.qx-container.jk:first-child { border-top: 0; }
.jk-icon { flex: none; width: 20px; text-align: center; font-size: 15px; line-height: 1; }
.jk-icon::before { content: "📄"; }
.jk-link .jk-icon::before { content: "🔗"; }
/* IMAGE THUMBNAIL: a raster image file (jk-img-true) shows its picture (a cached /content?w= downscale, never
   the full 2-4MB original) in place of the icon + filename, and opens the full image in a new tab. Visibility
   is by class, not hiddenBind — a hiddenBind on a .jk-open link would lose to its own display:block. */
.jk-thumb-link { flex: none; display: none; line-height: 0; border-radius: 6px; overflow: hidden; }
.jk-img-true .jk-thumb-link { display: block; }
.jk-thumb-link:hover, .jk-thumb-link:focus-visible { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qx-image.jk-thumb, img.jk-thumb { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #e6e9ef; }
.qx-container.jk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.qx-link.jk-open { display: block; color: var(--qxp-hi); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-link.jk-open:hover, .qx-link.jk-open:focus-visible { text-decoration: underline; }
.jk-link .jk-open-file { display: none; }
.jk-volume .jk-open-link, .jk-gdrive .jk-open-link { display: none; }
/* an image file shows its thumbnail, not its icon or filename (placed AFTER .qx-link.jk-open's display:block
   so it wins at equal specificity, same as the jk-link hide above). */
.jk-img-true .jk-icon, .jk-img-true .jk-open-file { display: none; }
.jk-cap { color: #676879; font-size: 12px; }
.jk-cap:empty { display: none; }
.qx-button.jk-del { flex: none; width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: #9a9ba7; font-size: 0; cursor: pointer; }
.qx-button.jk-del::before { content: "×"; font-size: 20px; line-height: 1; }
.qx-button.jk-del:hover, .qx-button.jk-del:focus-visible { color: #e2445c; }
.qx-container.ja-at-addlink { display: flex; flex-direction: column; gap: 8px; }
.qx-state-input.ja-at-url, .qx-state-input.ja-at-title { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; box-sizing: border-box; }
.qx-state-input.ja-at-url:focus, .qx-state-input.ja-at-title:focus { outline: 2px solid var(--qxp-hi); outline-offset: 1px; }
.qx-button.ja-at-add { align-self: flex-end; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--qxp-hi); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.qx-button.ja-at-add:hover, .qx-button.ja-at-add:focus-visible { filter: brightness(1.08); }
.qx-button.ja-at-add-off { background: #e6e9ef; color: #9a9ba7; cursor: default; filter: none; }
/* UPLOAD — ONE obvious button: the native file input lies transparent over an "Add file" label, so a tap
   anywhere on it opens the picker (on a phone the native sheet offers the camera); picking uploads at once
   (the file-pick's onPick), so there is no second button to hunt for. 'Uploading…' shows while it runs. */
.qx-container.ja-at-upload { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
.ja-at-pick { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; }
.ja-at-pick .qx-file-pick__label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ja-at-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; font-size: 0; cursor: pointer; }
.ja-at-pick:hover .qx-file-pick__label, .ja-at-pick:focus-within .qx-file-pick__label { border-color: var(--qxp-hi); color: var(--qxp-hi); }
.ja-at-sending { align-self: center; color: #9a9ba7; font-size: 13px; font-weight: 600; }
/* phone: the whole section tap-friendly — Add file / Add link full width and 48px, the ✕ a 44px target */
@media (max-width: 767px) {
  .qx-container.ja-at { gap: 12px; }
  .qx-container.ja-at-upload { flex-direction: column; align-items: stretch; }
  .ja-at-pick { flex: 1 1 auto; width: 100%; }
  .ja-at-pick .qx-file-pick__label { width: 100%; min-height: 48px; }
  .qx-state-input.ja-at-url, .qx-state-input.ja-at-title { min-height: 48px; }
  .qx-button.ja-at-add { align-self: stretch; min-height: 48px; }
  .qx-container.jk { padding: 10px 0; }
  .qx-image.jk-thumb, img.jk-thumb { width: 64px; height: 64px; }
  .qx-button.jk-del { width: 44px; min-height: 44px; }
  .qx-button.jk-del::before { font-size: 22px; }
}
/* the toasts (engine toast-host): the console's ink, short, at the bottom */
.qx-toast-host { font-family: inherit; }
.qx-toast { padding: 10px 16px; border-radius: 8px; background: #323338; color: #fff; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.qx-toast--success { background: #00a86b; }
.qx-toast--error { background: #a9142c; }
/* THE LEDGER (task 6860e88d, P4): journey.ledger (the dialog), journey.ledger-sheet (shared with the Print view),
   -section / -row / -foot. A table of grid rows: estimate mode is Name · Estimate · Booked, expense mode Name · Paid
   from · Amount. Payers are coloured by their index in the sheet (the most-paid first), never by name. */
/* THE DIALOG'S GEOMETRY (the engine's ui.dialog ships behaviour, not geometry — "the site's stylesheet decides"): a fixed
   overlay with a scrim, a white panel centred on a desk and a bottom sheet on a phone; the head (close) stays put. */
.qx-dialog { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.qx-dialog[hidden] { display: none; }
.qx-dialog.jl .qx-dialog__panel { width: min(52rem, 100%); }   /* the ledger: a wide sheet of figures */
.qx-dialog__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.qx-dialog__panel { position: relative; width: min(52rem, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #323338;
  border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); padding: 0 20px 20px; }
.qx-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; margin: 0 -20px; padding: 4px 4px 0; background: #fff; }
.qx-dialog__close { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #323338; font-size: 22px; cursor: pointer; }
.qx-dialog__close:hover, .qx-dialog__close:focus-visible { background: #f3f4f6; }
@media (max-width: 640px) {
  .qx-dialog { align-items: flex-end; padding: 0; }
  .qx-dialog__panel { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; padding: 0 14px 18px; }
  .qx-dialog__head { margin: 0 -14px; }
}
.qx-container.jl-toolbar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.qx-container.jl-periods { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0; border: 1px solid #e6e9ef; border-radius: 8px; overflow: hidden; }
.qx-container.jl-per-cell { display: flex; flex-direction: column; position: relative; border-right: 1px solid #e6e9ef; }
.qx-container.jl-per-cell:last-child { border-right: 0; }
.qx-button.jl-per { min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: #fff; color: #323338; font-size: 13px; cursor: pointer; }
.qx-button.jl-per:hover, .qx-button.jl-per:focus-visible { background: #f3f4f6; }
/* the chosen period: a bar beneath it (and its words bold) — the button itself never moves, so focus stays put */
.jl-per-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #579bfc; pointer-events: none; }
.qx-container.jl-per-cell:has(.jl-per-bar:not([style*="none"])) .qx-button.jl-per { font-weight: 700; }
.qx-container.jl-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.jl-btn, .qx-button.jl-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; color: #323338; font-size: 13px; text-decoration: none; cursor: pointer; }
.qx-container.jl-sheet { display: block; }
.qx-container.jl-src { display: block; }   /* holds the sheet request until a mission is chosen */
.qx-repeater.jl-rows, .qx-container.jl-est-mode, .qx-container.jl-exp-mode { min-width: 0; }
.qx-repeater.jl-owners { align-items: baseline; }
.qx-button.jl-per-month, .qx-button.jl-per-3mo, .qx-button.jl-per-year, .qx-button.jl-per-all { white-space: nowrap; }
.jl-bar-month, .jl-bar-3mo, .jl-bar-year, .jl-bar-all { display: block; }
.qx-button.jl-print, .qx-button.jl-drive, .jl-drive-link { white-space: nowrap; }

.jl-h, .jl-sheet .jl-h { margin: 0; font-size: 18px; font-weight: 600; color: #323338; }
.qx-container.jl-dhead { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.qx-container.jl-sheet-head { display: block; }
.qx-container.jl-heading-false { display: none; }   /* in the dialog the head carries the title */
.qx-container.jl-heading-true { display: block; }
.jl-sub { margin: 2px 0 12px; font-size: 13px; color: #676879; }
.jl-empty { margin: 16px 0; color: #676879; }
.qx-container.jl-table { display: block; border-top: 2px solid #323338; }
.qx-container.jl-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 8.5rem; gap: 0 12px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid #e6e9ef; }
.qx-container.jl-row-expense { grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) 8.5rem; }
.jl-row-expense .jl-amt { display: none; }
.jl-row-estimate .jl-who { display: none; }
.qx-container.jl-thead { font-size: 12px; font-weight: 600; color: #676879; text-transform: uppercase; letter-spacing: .03em; }
.qx-container.jl-sec-head { background: #f3f4f6; font-weight: 600; }
.jl-sec-title { font-weight: 600; }
.qx-container.jl-section { display: block; }
.qx-container.jl-name { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding-left: 16px; min-width: 0; }
.jl-title { overflow-wrap: anywhere; }
.jl-kind { font-size: 11px; color: #676879; text-transform: uppercase; letter-spacing: .03em; }
.jl-date { font-size: 12px; color: #676879; }
.qx-container.jl-who { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; font-size: 13px; }
.jl-account { color: #676879; }
.jl-e { display: inline-block; border: 1.5px solid #fdab3d; color: #323338; border-radius: 5px; font-size: 11px; font-weight: 700; padding: 0 4px; line-height: 16px; }
.jl-num, .jl-row .jl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jl-row .jl-est, .jl-row .jl-amt { min-width: 0; }   /* the two figure columns (estimate mode shows both, on a phone too) */
.qx-container.jl-foot { border-bottom: 0; }
.jl-foot .jl-foot-label { text-align: right; }
.jl-foot-total { font-weight: 700; }
.qx-container.jl-foot-total:first-child { border-top: 2px solid #323338; }
.jl-foot-paid .jl-amt, .jl-foot-paid .jl-foot-label { color: #00a86b; }
.jl-foot-muted { font-size: 12px; color: #676879; }
.qx-container.jl-who-paid { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #f3f4f6; }
.jl-wp-h { font-weight: 600; }
.jl-owner { font-weight: 600; font-variant-numeric: tabular-nums; }
.jl-payer-0 .jl-payer, .jl-owner.jl-payer-0 { color: #0d6efd; }
.jl-payer-1 .jl-payer, .jl-owner.jl-payer-1 { color: #c2185b; }
.jl-payer-2 .jl-payer, .jl-owner.jl-payer-2 { color: #00a86b; }
.jl-settle { font-weight: 700; }
.qx-container.jl-note { display: block; margin-top: 10px; }
.jl-note-t { margin: 0; font-size: 12px; color: #676879; }
.jl-print-hint { margin: 0 0 12px; font-size: 13px; color: var(--qxp-hi); opacity: .8; }
.qxd-panel.jl-page .qx-container.jl-sheet { background: #fff; color: #323338; border-radius: 10px; padding: 16px; }
@media (max-width: 640px) {
  /* a phone shows BOTH figures in estimate mode (task 61925d47: hiding Estimate left every row reading "£0.00 booked"
     on a trip that is all estimates) — two compact columns; expense mode keeps its one Amount column */
  .qx-container.jl-row { grid-template-columns: minmax(0, 1fr) 5.4rem 5.4rem; gap: 0 6px; font-size: 13px; }
  .qx-container.jl-row-expense { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .qx-container.jl-thead { font-size: 10px; }
  .jl-thead.jl-row-expense > :nth-child(2) { display: none; }   /* "Paid from" sits under each expense on a phone */
  .jl-row-expense .qx-container.jl-who { grid-column: 1; grid-row: 2; padding-left: 16px; }
}
@media print {
  .qx-top, header, .jl-print-hint, .qx-toast-host { display: none !important; }
  .qxd-panel.jl-page .qx-container.jl-sheet { padding: 0; }
  .qx-container.jl-row { break-inside: avoid; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* THE MISSIONS TREE (task 6860e88d, P2): journey.mission-node, one row per node, children indented below.
   A row wears its card colour (jb-col-<token>, as the board's rows do); a Context node — kept only to place a
   match — is muted; done work is struck through; overdue is red. The rollup sits at the row's end on a desk
   and wraps under the title on a phone. */
.jm-controls { margin-bottom: 8px; }
.qx-container.jm { min-width: 0; }   /* the panel keeps the board's own layout; only a hook for the tree */
.qx-button.jm-close-all { font-size: 13px; padding: 4px 14px; min-height: 44px; background: #fff; color: #323338; border: 1px solid #e6e9ef; border-radius: 6px; }
.jm-toggle-all { white-space: nowrap; }
.qx-container.jm-count { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 4px; margin: 4px 0 8px; }
.jm-count .qx-text, .jm-empty { font-size: 12px; color: var(--qxp-hi); opacity: .7; }
.jm-count .jm-c-shown, .jm-count .jm-c-matched { font-variant-numeric: tabular-nums; }
.jm-empty { margin: 16px 0; font-size: 14px; }
/* the tree sits on the board's white card */
.qx-repeater.jm-tree { min-width: 0; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; overflow: hidden; }
.qx-container.jm-node { display: block; min-width: 0; }
.qx-container.jm-kids { display: block; padding-left: 18px; margin-left: 15px; border-left: 1px solid #e6e9ef; }
.qx-container.jm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 6px; padding: 6px 8px 6px 4px; min-height: 38px; border-bottom: 1px solid #e6e9ef; background: var(--jb-fill, #fff); }
.qx-container.jm-twist, .qx-container.jm-twist-btns { flex: 0 0 36px; display: flex; flex-direction: row; justify-content: center; }
/* the chevron is DRAWN (as the board's group discs are): a font without ▸/▾ shows a box; the label stays the button's name */
.qx-button.jm-tog { appearance: none; -webkit-appearance: none; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #323338; font-size: 0; cursor: pointer; }
.qx-button.jm-tog::before { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.qx-button.jm-open::before { transform: rotate(-45deg); margin-left: -2px; }
.qx-button.jm-close::before { transform: rotate(45deg); margin-top: -4px; }
.qx-button.jm-tog:hover, .qx-button.jm-tog:focus-visible { background: rgba(0, 0, 0, .07); }
.jm-leaf { display: inline-block; width: 36px; }
.qx-button.jm-ledger { flex: 0 0 auto; align-self: center; min-height: 32px; padding: 0 10px; border: 1px solid #e6e9ef; border-radius: 6px; background: #fff; color: #323338; font-size: 12px; cursor: pointer; }
.qx-button.jm-ledger:hover, .qx-button.jm-ledger:focus-visible { border-color: #579bfc; color: #0d6efd; }
.qx-container.jm-main { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 8px; }
.jm-row .jm-title { font-size: 14px; line-height: 20px; color: #323338; overflow-wrap: anywhere; }
.qx-button.jm-title { appearance: none; -webkit-appearance: none; min-height: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: 14px; }
.qx-button.jm-title:hover, .qx-button.jm-title:focus-visible { text-decoration: underline; }
.qx-button.jm-add { flex: 0 0 auto; align-self: center; min-height: 32px; padding: 0 10px; border: 1px solid #e6e9ef; border-radius: 6px; background: #fff; color: #323338; font-size: 12px; cursor: pointer; }
.qx-button.jm-add:hover, .qx-button.jm-add:focus-visible { border-color: #579bfc; color: #0d6efd; }
.qx-dialog.jm-add-dialog .qx-dialog__panel { width: min(36rem, 100%); }
.jm-k-life_mission > .jm-row .jm-title, .jm-k-area > .jm-row .jm-title, .jm-k-objective > .jm-row .jm-title,
.jm-k-project > .jm-row .jm-title, .jm-k-milestone > .jm-row .jm-title { font-weight: 600; }
.jm-row .jm-chip { font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 9px; background: rgba(0, 0, 0, .06); color: var(--jb-muted, #676879); white-space: nowrap; }
.jm-row .jm-kind { text-transform: capitalize; }
.jm-row .jm-status, .jm-row .jm-due { font-variant-numeric: tabular-nums; }
.jm-row .jm-od-true { background: #a9142c; color: #fff; }
/* the row's extras (Option A): resource chips inline with the chips, photos on a line of their own */
.qx-repeater.jm-resources { flex-wrap: wrap; }
.qx-repeater.jm-photos { flex-basis: 100%; flex-wrap: wrap; padding-top: 4px; }
.qx-container.jm-res { display: inline-flex; flex-direction: row; }
.jm-res-link, .qx-container.jm-res-plain { display: inline-flex; align-items: baseline; gap: 4px; padding: 0 7px; border: 1px solid #e6e9ef; border-radius: 9px; background: #fff; font-size: 11px; line-height: 18px; color: #323338; text-decoration: none; }
.jm-res-link:hover, .jm-res-link:focus-visible { border-color: #579bfc; color: #0d6efd; }
.jm-res-kind { color: #676879; text-transform: uppercase; letter-spacing: .03em; font-size: 10px; }
.jm-res-title { overflow-wrap: anywhere; }
.jm-photo { display: inline-block; line-height: 0; border-radius: 4px; overflow: hidden; border: 1px solid #e6e9ef; }
.jm-photo-img { width: 44px; height: 44px; object-fit: cover; display: block; }
.jm-row .jm-s-tickle { background: #4eccc6; color: #323338; }   /* waiting on the outside world (task f97f9461) */
.jm-g-done > .jm-row .jm-title { text-decoration: line-through; color: #676879; }
/* a completed mission kept only because it HOLDS OPEN WORK (Context) is not struck through — struck through means
   "completed, shown because Show completed is on"; this one is muted, its Done chip says the rest (task 9e16018d) */
.jm-ctx-true.jm-g-done > .jm-row .jm-title { text-decoration: none; }
.jm-ctx-true > .jm-row .jm-title, .jm-ctx-true > .jm-row .jm-chip { opacity: .55; }
.qx-container.jm-roll { flex: 0 1 auto; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; padding-top: 9px; }
.jm-roll .qx-text { font-size: 12px; line-height: 18px; color: var(--jb-muted, #676879); white-space: nowrap; }
.jm-roll .jm-r { font-variant-numeric: tabular-nums; }
.jm-roll .jm-r-open, .jm-roll .jm-r-next { color: #323338; }
.jm-roll .jm-r-held, .jm-roll .jm-r-done { color: var(--jb-muted, #676879); }
.jm-roll .jm-r-overdue { color: #a9142c; font-weight: 600; }
.qx-container.jm-money { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.jm-money .jm-m { font-variant-numeric: tabular-nums; }
.jm-money .jm-m-est { color: #323338; font-weight: 600; }
.jm-money .jm-m-booked, .jm-money .jm-m-paid { color: #323338; }
@media (max-width: 640px) {
  .qx-container.jm-row { flex-wrap: wrap; }
  .qx-button.jm-tog { width: 44px; height: 44px; min-height: 44px; }
  .qx-container.jm-twist, .qx-container.jm-twist-btns { flex-basis: 44px; }
  .jm-leaf { width: 44px; }
  .qx-container.jm-roll { flex-basis: 100%; box-sizing: border-box; min-width: 0; justify-content: flex-start; padding: 0 0 0 50px; }
  .qx-container.jm-kids { padding-left: 8px; margin-left: 12px; }
  .qx-button.jm-ledger, .qx-button.jm-add { min-height: 44px; }
}
/* THE PRIORITY BAND (task 714b787c): every task row of a grid and every row of the Missions tree carries a 5px band at its
   left in its priority's colour (the Priority cell's own colours: High red, Medium amber, Low blue, On hold slate); no
   priority, no colour; completed (and archived) rows a muted band. A grid row reads its rank off its Priority cell
   (jb-p-<rank>), so a priority just chosen recolours the band at once; a tree row off its node's jm-i-<importance>. */
.qx-container.jb-row, .qx-container.jm-row { --jb-band: transparent; }
.qx-container.jb-row:has(.jb-p-3), .jm-i-high > .qx-container.jm-row { --jb-band: #e2445c; }
.qx-container.jb-row:has(.jb-p-2), .jm-i-medium > .qx-container.jm-row { --jb-band: #fdab3d; }
.qx-container.jb-row:has(.jb-p-1), .jm-i-low > .qx-container.jm-row { --jb-band: #579bfc; }
.qx-container.jb-row:has(.jb-p--1), .jm-i-on_hold > .qx-container.jm-row { --jb-band: #5b6b82; }
.qx-container.jb-row.jb-g-done, .qx-container.jb-row:has(.jb-arch), .jm-g-done > .qx-container.jm-row { --jb-band: #9a9ba7; }
.qx-container.jb-row, .qx-container.jm-row { box-shadow: inset 5px 0 0 var(--jb-band); }
.qx-container.jm-row { padding-left: 10px; }
@media (max-width: 767px) {
  /* the phone's card already has a left edge: the band IS that edge (it was the group's colour) */
  .qx-container.jb-row, .qx-container.jb-row:last-child, .jb-group-done .qx-container.jb-row, .jb-group-odd .qx-container.jb-row, .jb-group-held .qx-container.jb-row {
    box-shadow: none; border-left: 5px solid var(--jb-band); }
  .qx-container.jb-row { --jb-band: #e6e9ef; }
}

/* ── OBJECTS (objlib.*): browse grid, cards, the object cover ── */
/* the console's containers are centred columns by default: the area reads left-aligned, its columns stretch */
.qx-container.og, .qx-container.op-sheet, .qx-container.oc-body, .qx-container.oh-body, .qx-container.op-sec, .qx-container.oel, .qx-container.oal, .qx-container.oa, .qx-container.om, .qx-container.od, .qx-container.oe-field { align-items: stretch; text-align: left; }
.qx-container.of { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.of-search { flex: 1 1 16rem; min-width: 0; }
.of-search { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; font: inherit; box-sizing: border-box; }
.of-select { flex: 0 1 12rem; min-width: 9rem; }
/* the order reads whole ("Last changed, newest first"): it takes the room the line has left */
.of-select.of-select-sort { flex: 1 1 15rem; }
/* named so a check (and a reader) can find each part; the layout is the parent's */
.qx-container.og, .op-this, .op-files, .op-rights, .og-cards, .op-heads, .op-vrows, .oel-rows, .oal-rows, .oel-probs, .of-select-type, .of-select-state, .of-select-tag, .of-select-sort { min-width: 0; }
.og-count { margin: 0 0 8px; color: #676879; font-size: 13px; }
.og-err, .op-hashbad { margin: 0 0 8px; color: #e2445c; font-weight: 600; }
.og-none, .oel-none, .oal-none { color: #676879; font-size: 13px; }
.og-cards { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
@media (max-width: 767px) { .og-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qx-container.oc { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; overflow: hidden; }
.qx-container.oc-life-retired, .qx-container.oc-life-deprecated { opacity: .6; }
.qx-container.oc-thumb { position: relative; aspect-ratio: 4 / 3; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.oc-glyph { display: none; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0 8px; box-sizing: border-box; color: #7a7b88; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.oc-glyph::before { content: ""; width: min(40%, 4rem); aspect-ratio: 1; background: currentColor; -webkit-mask: var(--oc-ico) center / contain no-repeat; mask: var(--oc-ico) center / contain no-repeat; }
.oc-thumb- .oc-glyph { display: flex; }
/* the WHOLE object, scaled to fit its box — never cropped (task 1b9334b0, Graham 2026-10-25): contain, with a little air */
.oc-pic { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; box-sizing: border-box; object-fit: contain; }
.oc-thumb- .oc-pic { display: none; }
/* the object page: a thumbnail preview gives way to its full picture (objlib.head's full) */
.oh-full { display: none; }
/* scoped to the head (oh-thumb): a grid card's box carries oc-thumb-thumbnail too, and its thumbnail is its only picture */
.qx-container.oh-thumb.oc-thumb-thumbnail .oh-full { display: block; }
.qx-container.oh-thumb.oc-thumb-thumbnail .oc-pic:not(.oh-full) { display: none; }
/* A RENDER TILE (preview role "render-tile", Journey 8e1c6888): the pictures are read BY HASH through the door's gated reader; the uri
   ones stay hidden (lazy, so never fetched). A card or row shows the 1024px 3/4 tile; the object's head shows the build's 2048px 3/4 view. */
.oh-full-gated { display: none; }
.oc-thumb-render-tile .oc-pic:not(.oc-pic-gated) { display: none; }
.qx-container.oh-thumb.oc-thumb-render-tile .oc-pic { display: none; }
.qx-container.oh-thumb.oc-thumb-render-tile .oh-full-gated { display: block; }
.qx-container.oc-thumb { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%204.5v9L12%2021l-8-4.5v-9z%22%2F%3E%3Cpath%20d%3D%22M4%207.5L12%2012l8-4.5M12%2012v9%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-generator { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020L15%209M13%207l4%204M18%203v3M16.5%204.5h3M20%209v2M19%2010h2%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-scene { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2016l5-5%204%204%203-3%206%206%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%229%22%20r%3D%221.5%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-appearance-preset { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2012h16M4%2018h16%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%226%22%20r%3D%222%22%20fill%3D%22%23fff%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2212%22%20r%3D%222%22%20fill%3D%22%23fff%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2218%22%20r%3D%222%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-asset { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203h7l5%205v13H7z%22%2F%3E%3Cpath%20d%3D%22M14%203v5h5%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-asset--font { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2019L8.5%205h1L15%2019M5.5%2014h7%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2216%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M20.5%2013v6%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-asset--painted-scene { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%203l3%203-8%208-3-3z%22%2F%3E%3Cpath%20d%3D%22M10%2012c-3%200-4.5%201.5-4.5%204S4.5%2019%203%2020c3.5%200%208-.5%208-4.5z%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-brand-block { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012V4h8l10%2010-8%208z%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%227.5%22%20r%3D%221.5%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-brand-specification { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h6a3%203%200%200%201%203%203v12a2%202%200%200%200-2-2H3zM21%205h-6a3%203%200%200%200-3%203v12a2%202%200%200%201%202-2h7z%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-character { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021c0-4%203.6-6%208-6s8%202%208%206%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-object-family { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223.5%22%2F%3E%3Crect%20x%3D%2213.5%22%20y%3D%223.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M7%2013.5l4%207H3zM17%2013.5v7M13.5%2017h7%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-presentation { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2021h8M12%2017v4M10%208v5l4-2.5z%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-presentation--reel { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%203v18M17%203v18M3%208h4M3%2016h4M17%208h4M17%2016h4%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-presentation--text { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2010h16M4%2014h10M4%2018h13%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-presentation--layout { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%209h18M9%209v12%22%2F%3E%3C%2Fsvg%3E"); }
.qx-container.oc-ico-presentation--effect-transition { --oc-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%203l1.8%204.7L17.5%209.5l-4.7%201.8L11%2016l-1.8-4.7L4.5%209.5l4.7-1.8zM18%2014l.9%202.1%202.1.9-2.1.9L18%2020l-.9-2.1-2.1-.9%202.1-.9z%22%2F%3E%3C%2Fsvg%3E"); }.qx-container.oc-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.qx-button.oc-name { padding: 0; border: 0; background: none; color: #323338; font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 44px; }
.qx-button.oc-name:hover, .qx-button.oc-name:focus-visible { color: #579bfc; text-decoration: underline; }
.oc-key, .oh-key, .op-hash, .op-schema { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #676879; font-family: ui-monospace, monospace; font-size: 11px; }
.qx-container.oc-meta { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
.oc-type, .oc-ver, .oe-type, .oh-type { color: #676879; font-size: 12px; }
/* "Last changed v<N> · <date> · <who>" over "Created <date>" (Graham 2026-10-30) */
.qx-container.oc-when { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qx-container.oc-changed { display: flex; flex-direction: row; flex-wrap: wrap; min-width: 0; }
.oc-by { overflow-wrap: anywhere; }
.oc-by::before { content: " · "; white-space: pre; }
.oc-created { opacity: .85; }
.oc-appr { color: #00a86b; font-size: 12px; font-weight: 600; }
.oc-appr- { display: none; }
.oc-noappr { color: #9a9ba7; font-size: 12px; }
.oc-noappr-ai, .oc-noappr-human { display: none; }
.oc-lifetag { align-self: flex-start; padding: 1px 8px; border-radius: 10px; background: #808080; color: #fff; font-size: 11px; }
.oc-lifetag-active { display: none; }
.oc-tags { color: #676879; font-size: 11px; }
.oc-tags:empty { display: none; }
.os-pill { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #c4c4c4; color: #323338; font-size: 11px; font-weight: 600; }
.os-in-review { background: #fdab3d; }
.os-approved { background: #00c875; color: #fff; }
.os-rejected { background: #e2445c; color: #fff; }
.os-retired { background: #808080; color: #fff; }
.os-lbl { color: #676879; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
/* ── the pager, the Cards | Table switch and the table (task ba869c32) ── */
.qx-container.og-top { flex-wrap: wrap; }
.qx-container.opg { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.qx-container.opg-foot { justify-content: flex-end; margin-top: 12px; }
.qx-container.opg-range { display: flex; flex-direction: row; align-items: baseline; color: #e6e9ef; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.opg-n { white-space: nowrap; }
.opg-of { color: #9a9ba7; font-weight: 400; white-space: pre; }
.opg-count { color: #9a9ba7; font-size: 13px; }
.qx-container.opg-nav { display: flex; flex-direction: row; gap: 6px; }
.qx-button.opg-btn { min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 13px; cursor: pointer; }
.qx-button.opg-btn:hover, .qx-button.opg-btn:focus-visible { border-color: #579bfc; color: #579bfc; }
.qx-container.og-view { display: flex; flex-direction: row; margin-left: auto; border: 1px solid #c4c4c4; border-radius: 8px; overflow: hidden; }
.qx-button.og-v { min-height: 44px; padding: 0 14px; border: 0; background: #fff; color: #676879; font: inherit; font-size: 13px; cursor: pointer; }
.qx-button.og-v-on { background: #323338; color: #fff; font-weight: 600; }
/* a centred column would size the table's wrapper to its 60rem: stretch it, so the table scrolls inside .ot */
.qx-container.og-cardsbox { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.qx-container.og-tablebox { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.qx-container.og-tablebox > * { min-width: 0; max-width: 100%; }
/* width 0 + min-width 100%: the scroll box adds nothing to its parents' min-content (a scroll box still passes its content's up), yet fills its column */
.qx-container.ot { width: 0; min-width: 100%; }
.qx-container.ot { overflow-x: auto; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.qx-container.ot-inner { display: flex; flex-direction: column; align-items: stretch; }
@media (min-width: 768px) { .qx-container.ot-inner { min-width: 64rem; } }
.qx-container.ot-head, .qx-container.ot-row { display: grid; grid-template-columns: 4.5rem minmax(min(9rem, 100%), 2fr) minmax(min(7rem, 100%), 2fr) minmax(min(7rem, 100%), 1.4fr) 7.5rem 8rem 4.5rem 5.5rem 7.5rem 6rem; align-items: center; text-align: left; }
.qx-container.ot-head { border-bottom: 1px solid #e6e9ef; background: #f3f4f6; }
.ot-th { min-height: 40px; display: flex; align-items: center; padding: 0 10px; color: #676879; font-size: 12px; font-weight: 500; }
.qx-container.ot-th-cell { position: relative; padding: 0; }
.qx-button.ot-th-btn { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 0 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.qx-button.ot-th-on { position: absolute; inset: 0; background: #e6e9ef; color: #323338; font-weight: 600; }
.qx-button.ot-th-asc::after { content: " ▲"; font-size: 10px; }
.qx-button.ot-th-desc::after { content: " ▼"; font-size: 10px; }
.qx-container.ot-row { border-bottom: 1px solid #e6e9ef; min-height: 56px; }
.qx-container.ot-row:last-child { border-bottom: 0; }
.qx-container.ot-thumb { aspect-ratio: 4 / 3; width: 3.5rem; margin: 6px 0 6px 10px; border-radius: 6px; overflow: hidden; }
.ot-thumb .oc-glyph { font-size: 0; gap: 0; }
.ot-thumb .oc-glyph::before { width: 60%; }
.ot-thumb .oc-pic { padding: 2px; }
.qx-button.ot-name { min-height: 44px; padding: 0 10px; border: 0; background: none; color: #323338; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.qx-button.ot-name:hover, .qx-button.ot-name:focus-visible { color: #579bfc; text-decoration: underline; }
.ot-key { min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #676879; font-family: ui-monospace, monospace; font-size: 11px; }
.ot-td { min-width: 0; padding: 0 10px; color: #323338; font-size: 12px; overflow-wrap: anywhere; }
.qx-container.ot-c-state, .qx-container.ot-c-appr { display: flex; flex-direction: row; align-items: center; }
.ot-appr-yes { color: #00a86b; font-size: 12px; font-weight: 600; }
.ot-appr-no { color: #9a9ba7; font-size: 12px; }
.ot-appr- .ot-appr-yes, .ot-appr-ai .ot-appr-no, .ot-appr-human .ot-appr-no { display: none; }
.ot-c-ver { font-variant-numeric: tabular-nums; }
/* the last change: its date, its author under it (the newest version's created_by) */
.qx-container.ot-c-upd { display: flex; flex-direction: column; gap: 1px; }
.ot-upd-at, .ot-c-crt { font-variant-numeric: tabular-nums; }
.ot-upd-by { color: #676879; font-size: 11px; overflow-wrap: anywhere; }
.ot-c-crt { min-width: 0; }
/* a phone gets the four columns that matter — picture, name, state, updated — instead of a sideways scroll
   (after every cell rule, and more specific than them, so the hidden cells stay hidden) */
@media (max-width: 767px) {
  .qx-container.ot .qx-container.ot-head, .qx-container.ot .qx-container.ot-row { grid-template-columns: 4.5rem minmax(0, 1fr) auto auto; }
  /* on a phone the row keeps the last change's DATE; its author shows on the card and on a desk, never squeezing the name */
  .qx-container.ot .ot-upd-by { display: none; }
  .qx-container.ot .ot-upd-at { font-size: 12px; }
  .qx-container.ot .ot-c-key, .qx-container.ot .qx-container.ot-c-key, .qx-container.ot .ot-c-type, .qx-container.ot .qx-container.ot-c-type, .qx-container.ot .ot-c-appr, .qx-container.ot .qx-container.ot-c-appr, .qx-container.ot .ot-c-ver, .qx-container.ot .qx-container.ot-c-ver, .qx-container.ot .ot-c-life, .qx-container.ot .qx-container.ot-c-life, .qx-container.ot .ot-c-crt, .qx-container.ot .qx-container.ot-c-crt { display: none; }
}
/* named so a check (and a reader) can find each part; the layout is the row's grid */
.qx-button.opg-prev, .qx-button.opg-next, .ot-c-thumb, .ot-c-name, .ot-c-key, .ot-c-type, .ot-c-life, .ot-c-upd { min-width: 0; }
.qx-container.ot-rows { display: flex; flex-direction: column; align-items: stretch; }
/* the object page: a drawer on a desk, a bottom sheet on a phone (as journey's task panel) */
.qx-container.op { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch; }
.qx-button.op-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(20, 22, 30, .45); font-size: 0; cursor: pointer; }
.qx-container.op-sheet { position: relative; display: flex; flex-direction: column; gap: 16px; width: min(44rem, 100%); height: 100%; overflow: auto; padding: 14px 20px 28px; background: #fff; color: #323338; box-shadow: -12px 0 32px rgba(0, 0, 0, .18); }
.qx-container.op-bar { display: flex; flex-direction: row; justify-content: flex-end; margin: -6px -10px -10px 0; }
.qx-button.op-close { position: relative; min-width: 44px; min-height: 44px; border: 0; background: none; color: #676879; font-size: 0; cursor: pointer; }
.qx-button.op-close::before { content: "×"; font-size: 28px; line-height: 1; }
.qx-container.oh { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }
.qx-container.oh-thumb { flex: 0 0 min(40%, 16rem); border-radius: 8px; overflow: hidden; }
.qx-container.oh-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oh-name { margin: 0; font-size: 22px; line-height: 1.2; }
.qx-container.op-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid #e6e9ef; }
.qx-container.ov { border-bottom: 1px solid #e6e9ef; }
.qx-button.ov-pick { width: 100%; min-height: 44px; padding: 0 4px; border: 0; background: none; color: #323338; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.qx-button.ov-pick:hover, .qx-button.ov-pick:focus-visible { background: #f3f4f6; }
.qx-container.op-tline, .qx-container.op-appr { display: flex; flex-direction: row; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 13px; }
.op-eff { font-weight: 600; }
.op-ai:empty, .op-human:empty { display: none; }
.op-json { max-height: 24rem; overflow: auto; margin: 0; padding: 10px 12px; border-radius: 8px; background: #f3f4f6; font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.45; white-space: pre; }
.op-json-meta { max-height: 10rem; }
.op-file { display: block; padding: 6px 0; font-size: 13px; }
.qx-container.oel, .qx-container.oal { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid #e6e9ef; }
.qx-container.oel-head { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.oel-count { color: #676879; font-size: 12px; }
.oel-all { margin-left: auto; }
.oel-prob { margin: 0; color: #e2445c; font-size: 12px; }
.qx-container.oe { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #e6e9ef; }
.qx-container.oe-d2 { padding-left: 16px; } .qx-container.oe-d3 { padding-left: 32px; } .qx-container.oe-d4 { padding-left: 48px; }
.oe-rel { color: #676879; font-size: 12px; }
.qx-button.oe-go { padding: 0; min-height: 44px; border: 0; background: none; color: #579bfc; font: inherit; font-weight: 600; cursor: pointer; }
.qx-container.oe-what { display: flex; flex-direction: row; gap: 6px; align-items: center; }
.qx-container.oa { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid #e6e9ef; }
.qx-container.oa-line { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.oa-level { font-weight: 600; }
.oa-actor, .oa-at { color: #676879; font-size: 12px; }
.oa-purpose { margin: 0; font-size: 13px; }
.oa-purpose:empty, .oa-ev:empty { display: none; }
.oa-ev { max-height: 10rem; overflow: auto; margin: 0; padding: 8px 10px; border-radius: 6px; background: #f3f4f6; font-family: ui-monospace, monospace; font-size: 11px; white-space: pre; }
.op-rnone { margin: 0; color: #fdab3d; font-weight: 600; }
.qx-container.op-rgrid { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.op-r:empty { display: none; }
.op-r-by { color: #676879; font-size: 12px; }
/* the version's RENDERS (task 64690a6e): one card per build; a video plays inline, any other output is a link;
   rights now and whether it is released by class token — the API's words, never the engine's arithmetic */
.qx-container.orl { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid #e6e9ef; }
.qx-container.orr { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid #e6e9ef; min-width: 0; }
.qx-container.orr-top { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.orr-when { font-weight: 600; }
.orr-by, .orr-st { color: #676879; font-size: 12px; }
/* EVERY output of the build (objlib.render-output): a JPEG tile is a thumbnail, an MP4 plays inline, each says what it is and opens.
   Only the kind's own element shows: a hidden thumbnail is a lazy <img> (never fetched) and a hidden player's <source> names a type it cannot play. */
.orr-out { min-width: 0; }
.qx-container.oro { display: flex; flex-direction: column; gap: 4px; width: 168px; max-width: 100%; min-width: 0; }
.oro-thumb { display: none; width: 168px; height: 168px; border-radius: 8px; background: #f3f4f6; border: 1px solid #e6e9ef; }
/* a build's format is a short word (svg, mp4: the product and reel tools) or a MIME type (image/jpeg, video/mp4: render-run); both are matched */
.oro.oro-fmt-jpeg .oro-thumb, .oro.oro-fmt-jpg .oro-thumb, .oro.oro-fmt-image\/jpeg .oro-thumb { display: block; }
.qx-video.oro-video { display: none; width: 100%; max-width: 360px; max-height: 60vh; border-radius: 8px; background: #323338; }
.oro.oro-fmt-mp4, .oro.oro-fmt-video\/mp4 { width: 100%; max-width: 360px; }
.oro.oro-fmt-mp4 .oro-video, .oro.oro-fmt-video\/mp4 .oro-video { display: block; }
.qx-container.oro-meta { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0; font-size: 12px; min-width: 0; }
.oro-role { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.oro-sz { color: #676879; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.oro-sz:empty { display: none; }
.oro-meta > :not(:empty) ~ :not(:empty)::before { content: " · "; white-space: pre; color: #676879; font-weight: 400; }
.qx-container.oro-open { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.oro-link { font-size: 13px; color: #579bfc; }
/* the gated reader serves png, jpeg, mp4 and usdz (gate.blobs on admin.qxsuite.com); any other kind opens at the API's address */
.oro-link-gated { display: none; }
.oro.oro-fmt-png .oro-link-gated, .oro.oro-fmt-image\/png .oro-link-gated, .oro.oro-fmt-jpeg .oro-link-gated, .oro.oro-fmt-jpg .oro-link-gated, .oro.oro-fmt-image\/jpeg .oro-link-gated, .oro.oro-fmt-mp4 .oro-link-gated, .oro.oro-fmt-video\/mp4 .oro-link-gated, .oro.oro-fmt-usdz .oro-link-gated, .oro.oro-fmt-model\/vnd\.usdz\+zip .oro-link-gated { display: inline; }
.oro.oro-fmt-png .oro-link-uri, .oro.oro-fmt-image\/png .oro-link-uri, .oro.oro-fmt-jpeg .oro-link-uri, .oro.oro-fmt-jpg .oro-link-uri, .oro.oro-fmt-image\/jpeg .oro-link-uri, .oro.oro-fmt-mp4 .oro-link-uri, .oro.oro-fmt-video\/mp4 .oro-link-uri, .oro.oro-fmt-usdz .oro-link-uri, .oro.oro-fmt-model\/vnd\.usdz\+zip .oro-link-uri { display: none; }
/* the lock and the job, one wrapped line */
.qx-container.orr-lock { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 12px; color: #676879; min-width: 0; }
.qx-container.orr-job, .qx-container.orr-tc { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.orr-lk, .orr-job-none, .orr-job-host { font-size: 12px; color: #676879; }
.orr-job-id { color: #323338; font-size: 12px; font-weight: 600; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.orr-lock:has(.orr-job) .orr-job-none { display: none; }
.orr-tci { padding: 1px 6px; border-radius: 6px; background: #f3f4f6; font-family: ui-monospace, monospace; font-size: 11px; overflow-wrap: anywhere; min-width: 0; }
.qx-container.orr-rights, .qx-container.orr-bad { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.orr-ok { color: #00c875; font-weight: 600; }
.orr-bad-lbl, .orr-blocker { color: #e2445c; }
.orr-bad-lbl { font-weight: 600; }
.orr-blocker { font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.orr.orr-clear-true .orr-bad, .orr:not(.orr-clear-true) .orr-ok { display: none; }
.qx-container.orr-rels { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 0; align-items: baseline; font-size: 13px; }
.orr-rel-lbl { margin-right: 6px; color: #676879; font-size: 12px; }
.orr-rel { padding: 2px 8px; border-radius: 999px; background: #f3f4f6; font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.orr-rel-none { color: #676879; font-size: 12px; }
.orr-rels:has(.orr-rel) .orr-rel-none { display: none; }
.orr-rels:not(:has(.orr-rel)) .orr-rel-lbl, .orr-rels:not(:has(.orr-rel)) .orr-rel-rows { display: none; }
.qx-container.orr-act, .qx-container.orr-c-btns { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-container.orr-confirm { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 10px 12px; border: 1px solid #fdab3d; border-radius: 8px; }
.orr-c-lbl { margin: 0; font-size: 13px; font-weight: 600; }
.qx-button.orr-btn { min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-weight: 600; cursor: pointer; }
.qx-button.orr-go { border: 0; background: #579bfc; color: #fff; }
.qx-button.orr-release { align-self: flex-start; }
.qx-button.orr-cancel { font-weight: 400; }
.orl-rows, .orr-blk, .orr-rel-rows, .orr-key { min-width: 0; }
/* step 2 — the editor (a cover), the identity edit, the decision, the change log */
.qx-container.og-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.qx-button.og-new, .qx-button.oed-save, .qx-button.od-btn, .qx-button.op-tool { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: #579bfc; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.qx-button.op-tool { background: #fff; color: #323338; border: 1px solid #c4c4c4; }
.qx-button.oed-cancel { min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; cursor: pointer; }
.qx-button.od-approved { background: #00c875; } .qx-button.od-rejected { background: #e2445c; } .qx-button.od-retired { background: #808080; }
.qx-container.oed { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch; }
.qx-container.oed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.qx-container.oe-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oe-in { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; font: inherit; box-sizing: border-box; }
.oe-json { font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.45; white-space: pre; }
.oed-h { margin: 0; font-size: 20px; }
.qx-container.oed-err { padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; }
.oed-errmsg { margin: 0 0 4px; font-weight: 600; }
.oed-errline { margin: 0; font-family: ui-monospace, monospace; font-size: 12px; }
.qx-container.oed-actions, .qx-container.od-btns, .qx-container.op-tools { display: flex; flex-direction: row; flex-direction: row; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-container.om { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 10px; }
.qx-container.od { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.qx-container.ocg { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid #e6e9ef; font-size: 13px; }
.ocg-what { min-width: 0; }
.ocg-who { color: #676879; font-size: 12px; }
.qx-container.oed-sheet, .oed-errlist, .om-life, .od-purpose, .op-crows, .op-changes { min-width: 0; }
@media (max-width: 767px) { .qx-container.oed { flex-direction: column; justify-content: flex-end; } .qx-container.oed-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .qx-container.op { flex-direction: column; justify-content: flex-end; }
  .qx-container.op-sheet { width: 100%; height: auto; max-height: 92vh; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .18); }
  .qx-container.oh { flex-direction: column; }
  .qx-container.oh-thumb { flex-basis: auto; width: 100%; }
}

/* ── SOCIAL (social.*): next up, the queue, failures, history ── */
.qx-container.sq, .qx-container.sq-sec, .qx-container.sp-body { align-items: stretch; text-align: left; }
.qx-container.sq { display: flex; flex-direction: column; gap: 28px; }
.qx-container.sq-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sq-h { margin: 0; font-size: 18px; }
.qx-container.sq-sites { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.qx-button.sq-site { min-height: 44px; padding: 0 14px; }
.qx-button.sq-site.qx-pressed { background: #323338; color: #fff; border-color: #323338; box-shadow: none; }
.sp-pboard { margin: 2px 0 0; font-size: 12px; color: #676879; }
.sq-sub { margin: -6px 0 0; color: #676879; font-size: 13px; }
.sq-state { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.sq-state-empty { background: #fdf3dc; color: #ae4e02; }
.sq-state-posted { background: #edf1ee; color: #0d6b4d; }
.sq-none { margin: 0; color: #676879; font-size: 13px; }
.sq-err { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; }
.sq-rows { min-width: 0; }
.qx-container.sp { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; min-width: 0; }
.qx-container.sp-next { border-color: #579bfc; box-shadow: 0 0 0 1px #579bfc; }
.qx-container.sp-pic { flex: 0 0 min(38%, 15rem); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.sp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-noimg { display: none; color: #9a9ba7; font-size: 12px; }
.sp-pinimg { display: none; object-fit: contain; }
.sp-x-none .sp-img { display: none; } .sp-x-none:not(.sp-p-none) .sp-pinimg { display: block; } .sp-x-none.sp-p-none .sp-noimg { display: block; }
.qx-container.sp-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.qx-container.sp-top { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.sp-pill { padding: 1px 8px; border-radius: 10px; background: #c4c4c4; color: #323338; font-size: 11px; font-weight: 600; }
.sp-pill-Held { background: #fdab3d; } .sp-pill-Approved { background: #00c875; color: #fff; } .sp-pill-Published { background: #579bfc; color: #fff; }
.sp-place { color: #323338; font-weight: 600; font-size: 15px; }
.sp-when { color: #676879; font-size: 12px; }
/* THE POST ITSELF: one form per channel the post goes to, each piece labelled; a missing piece says so */
.qx-container.sp-forms { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qx-container.sp-form { display: none; flex-direction: column; gap: 3px; padding: 8px 10px; border-left: 3px solid #c4c4c4; background: #fafbfc; border-radius: 0 6px 6px 0; min-width: 0; }
.sp-ch-x .qx-container.sp-form-x { display: flex; border-left-color: #12121a; }
.sp-ch-pinterest .qx-container.sp-form-pin { display: flex; border-left-color: #e2445c; }
.sp-ch-facebook .qx-container.sp-form-fb { display: flex; border-left-color: #0d6efd; }
.sp-flab-fb { color: #0d6efd; }
.sp-fbtext { font-size: 14px; }
.sp-profs { margin: 0; color: #676879; font-size: 12px; }
.sp-fbi-none .sp-fbimg { display: none; } .sp-fbimg { max-width: 160px; max-height: 120px; object-fit: contain; border-radius: 4px; }
.sp-flab { color: #676879; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sp-txt { margin: 0; color: #323338; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-ptitle { font-weight: 600; }
.sp-txt:empty { display: none; } .sp-none { display: none; margin: 0; color: #a9142c; font-size: 13px; font-weight: 600; }
.sp-txt:empty + .sp-none { display: block; }
.sp-plink { margin: 0; color: #676879; font-size: 12px; overflow-wrap: anywhere; }
/* X and Pinterest side by side on a desk (stacked on a phone, below): the post as each channel will carry it */
.qx-container.sp-forms { flex-direction: row; align-items: stretch; }
.qx-container.sp-forms > .qx-container.sp-form { flex: 1 1 0; }
.qx-container.sp-fhead { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-flab-x { color: #12121a; } .sp-flab-pin { color: #a9142c; }
.sp-count { color: #676879; font-size: 12px; font-variant-numeric: tabular-nums; } .sp-xl-none .sp-count { display: none; }
/* HISTORY and DISMISSED: a missing piece is not a problem to fix but copy nobody recorded, so it is said quietly */
.sp-none-h { display: none; margin: 0; color: #676879; font-size: 13px; font-style: italic; }
.sp-history .sp-txt:empty + .sp-none, .sp-dismissed .sp-txt:empty + .sp-none { display: none; }
.sp-history .sp-txt:empty + .sp-none + .sp-none-h, .sp-dismissed .sp-txt:empty + .sp-none + .sp-none-h { display: block; }
.sp-history .sp-pl-none .sp-plink, .sp-dismissed .sp-pl-none .sp-plink { display: none; }
/* a change request (Draft only) and a dismissal, in their own words */
.qx-container.sp-cr, .qx-container.sp-dr { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.qx-container.sp-cr { background: #fdf3dc; color: #ae4e02; } .qx-container.sp-dr { background: #edf1ee; color: #323338; }
.qx-container.sp-cr:has(.sp-cr-t:empty), .qx-container.sp-dr:has(.sp-dr-t:empty) { display: none; }
.sp-cr-t, .sp-dr-t { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; } .sp-cr-t::before { content: "Changes requested: "; font-weight: 700; }
.sp-dr-t::before { content: "Dismissed: "; font-weight: 700; } .sp-cr-at, .sp-dr-at { color: #676879; font-size: 12px; }
.sp-dismissed .sp-acts, .sp-dismissed .sp-probs, .sp-dismissed .sp-sends, .sp-dismissed .sp-more, .sp-history .sp-box, .sp-dismissed .sp-box { display: none !important; }
.sp-dismissed .sp-forms-o { display: flex !important; } .sp-dismissed .sp-forms-s { display: none !important; }
/* DISMISS and REQUEST CHANGES: a reason first, always */
.qx-container.sp-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qx-container.sp-reason { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fafbfc; }
.sp-reason-ask { margin: 0; font-weight: 700; color: #323338; } .sp-reason-note { margin: 0; color: #676879; font-size: 12px; }
.qx-state-input.sp-reason-in { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 6px; font: inherit; color: #323338; background: #fff; }
.qx-container.sp-reason-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-button.sp-reason-go { border: 0; background: #12121a; color: #fff; } .qx-button.sp-dismiss-go { background: #a9142c; } .qx-button.sp-changes-go { background: #ae4e02; }
.qx-container.sp-reason-dismiss { border-color: #e2445c; } .qx-container.sp-reason-changes { border-color: #ae4e02; }
.qx-button.sp-reason-off { opacity: .45; cursor: not-allowed; } .qx-button.sp-reason-cancel { background: none; }
.qx-button.sp-changes-open, .qx-button.sp-dismiss-open { background: #fff; } .qx-button.sp-dismiss-open { color: #a9142c; border-color: #e2445c; }
.sq-dismissed, .sq-dism-rows { min-width: 0; }
/* the queue clamps each piece to 3 lines until "more"; Next up and history always show it all */
.sp-forms-s .sp-txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sp-forms-s .sp-txt:empty { display: none; }
/* …except the X copy: it is at most 280 by X's count, and it is the version Graham checks, so it is never clamped */
.sp-forms-s .sp-xtext { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.sp-forms-s .sp-xtext:empty { display: none; }
.qx-button.sp-more { align-self: flex-start; min-height: 32px; padding: 0 10px; border: 0; background: none; color: #0d6efd; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sp-next .sp-forms-o, .sp-history .sp-forms-o { display: flex !important; }
.sp-next .sp-forms-s, .sp-history .sp-forms-s, .sp-next .sp-more, .sp-history .sp-more { display: none !important; }
.qx-container.sp-chans, .qx-repeater.sp-chans { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
.sp-chan { padding: 1px 8px; border-radius: 10px; background: #e6e9ef; color: #323338; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.qx-container.sq-missing { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 13px; color: #676879; }
.sp-prob { margin: 0; color: #e2445c; font-size: 12px; }
.sp-sends { flex-wrap: wrap; }
.sp-send { padding: 4px 10px; border-radius: 999px; background: #f3f4f6; color: #323338; font-size: 12px; font-weight: 600; text-transform: capitalize; min-height: 32px; display: inline-flex; align-items: center; }
.qx-container.sp-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-button.sp-btn { min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-weight: 600; cursor: pointer; }
.qx-button.sp-approve { border: 0; background: #00c875; color: #fff; }
/* which actions a post offers is its status's: a Draft or a Held post may be approved; an Approved one held.
   History offers neither; it shows the live posts instead. */
.sp-st-Approved .sp-approve, .sp-st-Published .sp-approve, .sp-st-Draft .sp-hold, .sp-st-Held .sp-hold, .sp-st-Published .sp-hold { display: none; }
.sp-history .sp-acts, .sp-history .sp-probs, .sp-history .sp-pill, .sp-queue .sp-sends, .sp-next .sp-sends, .sp-next .sp-probs { display: none; }
.qx-container.sf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; border-left: 3px solid #e2445c; background: #fde2e2; font-size: 13px; }
.sf-what { font-weight: 600; color: #323338; } .sf-err { color: #a9142c; overflow-wrap: anywhere; } .sf-when { color: #676879; font-size: 12px; }
.qx-container.sr-sched { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sr-missed { display: none; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; }
/* MISSED from the 5th minute overdue: the runner polls, so a schedule that has just come due reads 1–4 for a moment */
.qx-container.sr-sched:not(.sr-od-0):not(.sr-od-1):not(.sr-od-2):not(.sr-od-3):not(.sr-od-4) .sr-missed { display: block; }
.sr-off { color: #ae4e02; font-weight: 600; } .sr-on-true .sr-off { display: none; }
.sr-never { display: none; } .sr-lr-never .sr-never { display: block; } .sr-lr-never .sr-last { display: none; }
.qx-container.sr { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #e6e9ef; font-size: 13px; }
.sr-st { padding: 1px 8px; border-radius: 10px; background: #c4c4c4; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.sr-completed .sr-st { background: #00c875; color: #fff; } .sr-running .sr-st { background: #579bfc; color: #fff; }
.sr-failed .sr-st, .sr-timeout .sr-st, .sr-completed_with_errors .sr-st { background: #e2445c; color: #fff; }
.sr-failed .sr-why, .sr-timeout .sr-why, .sr-completed_with_errors .sr-why { color: #a9142c; font-weight: 600; }
.sr-when, .sr-by { color: #676879; font-size: 12px; } .sr-why:empty { display: none; }
.qx-container.sq-blocked { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; }
.sq-blocked-h { margin: 0; font-weight: 700; } .qx-repeater.sq-blocked-probs { display: flex; flex-direction: column; }
.sq-blocked-prob { margin: 0; font-size: 13px; overflow-wrap: anywhere; } .sq-blocked-prob::before { content: "• "; }
/* the sections land clear of the sticky console header when jumped to */
.sq-next, .sq-run, .sq-queue, .sq-fails, .sq-hist { scroll-margin-top: 72px; }
.sq-next-rows, .sq-queue-rows, .sq-fail-rows, .sq-hist-rows { min-width: 0; }
.qx-repeater.sq-sent { flex-wrap: wrap; } .sq-missing-h { font-weight: 600; }
.sq-scheds { margin-bottom: 4px; } .sr-next { font-weight: 600; } .sq-runs { margin-top: 2px; }
.sp-xtext { font-size: 15px; } .sp-pdesc { font-size: 13px; } .qx-button.sp-less { color: #676879; }
@media (max-width: 767px) {
  .qx-container.sp { flex-direction: column; }
  .qx-container.sp-forms { flex-direction: column; }
  .qx-container.sp-pic { flex-basis: auto; width: 100%; }
}
.mail-sec { --ico-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E"); --ico-archive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.54 5.23l-1.39-1.68A1.5 1.5 0 0018 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19a2 2 0 002 2h14a2 2 0 002-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z'/%3E%3C/svg%3E"); --ico-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E"); --ico-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E"); --ico-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E"); --ico-reply: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'/%3E%3C/svg%3E"); --ico-fwd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 9V5l7 7-7 7v-4.1c-5 0-8.5 1.6-11 5.1 1-5 4-10 11-11z'/%3E%3C/svg%3E"); --ico-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E"); --ico-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E"); --ico-starline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'/%3E%3C/svg%3E"); --ico-envelope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z'/%3E%3C/svg%3E"); --ico-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E"); --ico-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a2 2 0 100-4 2 2 0 000 4zm0 2a2 2 0 100 4 2 2 0 000-4zm0 6a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E"); --ico-clip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z'/%3E%3C/svg%3E"); }

/* ── MAIL (mail.*): one inbox, colour-coded by account; the account switcher; the reader ── */
.mail-c-0 { --mc: #0d6efd; }
.mail-c-1 { --mc: #e2445c; }
.mail-c-2 { --mc: #00a86b; }
.mail-c-3 { --mc: #fdab3d; }
.mail-c-4 { --mc: #9b5de5; }
.mail-c-5 { --mc: #00bcd4; }
.mail-c-6 { --mc: #795548; }
.mail-c-7 { --mc: #d6336c; }
.mail-c-8 { --mc: #5c7cfa; }
.mail-c-9 { --mc: #2f9e44; }
.mail-c-10 { --mc: #e8590c; }
.mail-c-11 { --mc: #495057; }
.mail-c-12, .mail-c-13, .mail-c-14, .mail-c-15, .mail-c-16, .mail-c-17, .mail-c-18, .mail-c-19, .mail-c-20, .mail-c-21, .mail-c-22, .mail-c-23 { --mc: #9a9ba7; }
.qx-container.mb, .qx-container.mb-sec, .qx-container.mr-main, .qx-container.mr-side, .qx-container.mm, .qx-container.mm-heads { align-items: stretch; text-align: left; min-width: 0; }
.mb-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.mb-none { margin: 0; color: #676879; font-size: 14px; }
.mb-count { margin: 0; color: #676879; font-size: 12px; }
.mb-older { align-self: flex-start; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
/* the account switcher */
.qx-container.ma-item { display: contents; }
/* search + unread */
.qx-container.mm-bodybox { width: 100%; box-sizing: border-box; align-self: stretch; }
.qx-container.mm-bodywrap { width: min(100%, 31rem); box-sizing: border-box; align-self: center; }
/* the reader */
.qx-repeater.mm-list { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mm-h { margin: 0; font-size: 16px; }
.qx-repeater.mm-atts { display: flex; flex-direction: column; gap: 4px; }
.mm-note { margin: 0; padding: 0 12px; font-size: 12px; color: var(--m-mute); }
.qx-container.mm-imgbar > .qx-container { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.mm-imgbar { display: block; }
.mm-imglink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.mm-open-fallback { font-size: 13px; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.mm-att, .mm-open { display: inline-block; align-self: flex-start; padding: 8px 12px; border: 1px solid #c4c4c4; border-radius: 8px; color: #0d6efd; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mm-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-toggle.mt-unread .qx-toggle__control { min-height: 44px; padding: 0 4px; }
.mc-from { max-width: 420px; position: relative; } .mc-from .qx-select__toggle { position: absolute; top: 0; bottom: 0; right: 0; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--m-sub); cursor: pointer; } .mc-atts { min-width: 0; } .mt-compose { font-weight: 700; }
.qx-container.mc { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.mc-lbl { margin: 0; font-size: 13px; font-weight: 600; color: #555; }
.mc-note, .mc-busy { margin: 0; font-size: 13px; color: #555; }
.qx-container.mc-att { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.mc-att-name { overflow-wrap: anywhere; } .mc-att-rm.qx-button { min-height: 44px; min-width: 44px; }
.mc-form .qx-form__field { box-sizing: border-box; width: 100%; } .mc-form textarea.qx-form__field { min-height: 220px; }
.mc-form button[type="submit"], .mc-pick .qx-button, .mc-pick button { min-height: 44px; min-width: 44px; }
.mt-link { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 12px; color: #0d6efd; font-weight: 600; text-decoration: none; }
.qx-container.mo { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.mo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .qx-container.mo-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mo-subject { font-weight: 600; overflow-wrap: anywhere; } .mo-to { font-size: 13px; color: #555; overflow-wrap: anywhere; }
.mo-st { font-size: 13px; font-weight: 600; } .mo-st-failed { color: #a9142c; } .mo-st-sent { color: #0d6efd; }
.mo-attn { display: block; } .mo-undo, .mo-retry, .mo-refile, .mo-queued, .mo-in_progress, .mo-done, .mo-failed, .mo-st-queued, .mo-st-sending { white-space: nowrap; }
@media (max-width: 767px) { .qx-container.mo { grid-template-columns: 1fr; } }
.mb-rows { min-width: 0; } .ma-all { white-space: nowrap; } .ma-label { white-space: nowrap; } .mm-addr { overflow-wrap: anywhere; } .mm-cc-k { align-self: start; } .mr-subject-none { font-style: italic; }
/* phone: every row stacks — chip above, then the text, then date + attachment */
/* ══ MAIL LOOKS LIKE GMAIL (Journey 2373d71e, Graham 2026-11-10): a light sheet under the QX bar; a search pill; big round initial avatars in the account's
   colour; sender / subject / snippet at 17px; the reader a page of its own with a back arrow. Colours are named once, here; the account colour stays --mc. ══ */
.mail-sec, :root:has(.mail-sec) { --m-bg: #f6f8fc; --m-card: #ffffff; --m-read: #f2f6fc; --m-ink: #1f1f1f; --m-sub: #444746; --m-mute: #5f6368; --m-line: #e1e5ec; --m-pill: #c4eed0; --m-pillink: #072711; --m-btn: #2f5d4a; --m-link: #0b57d0; --m-bad: #a9142c; --m-arch: #1e6b46; --m-del: #b3261e; --m-onact: #ffffff; --m-star: #f4b400; }
.mail-sec { background: var(--m-bg); color: var(--m-ink); }
html:has(.mail-sec), html:has(.mail-sec) body { background: var(--m-bg); }
.qxp-section.mail-sec { padding: 0; border-top: 0; }
.qxd-panel.qxa-jwrap.qxa-keep.mail-panel { width: 100%; box-sizing: border-box; max-width: 56rem; margin: 0 auto; padding: 10px 8px 24px; }
/* A WIDE WINDOW (Graham 2026-11-16: "The mail grid, previews should be the same width as the title logo to user icon"): the mail content spans the header's own line, logo to user icon: the header's width (--qxp-wide) and its 18px gutters, not a second max-width. The phone keeps its 8px. The compose screen keeps its own narrow column. */
@media (min-width: 768px) { .qxd-panel.qxa-jwrap.qxa-keep.mail-panel:not(.mc-panel) { max-width: var(--qxp-wide); padding-left: 18px; padding-right: 18px; } }
.qxd-panel.qxa-jwrap.qxa-keep.mail-panel-list { padding-bottom: 104px; }
.qxd-panel.qxa-jwrap.qxa-keep.mail-panel.mm-bodywrap { padding-top: 0; }
.mail-sec .qxp-head { color: var(--m-ink); } .mail-sec .qxp-eyebrow { color: var(--m-mute); } .mail-sec .qxp-head-rule { display: none; }
.mail-sec .mb-older, .mail-sec .mt-link, .mail-sec .mm-open { color: var(--m-link); }
.mail-sec .mb-none, .mail-sec .mb-count { color: var(--m-mute); }
.qx-container.mb { display: flex; flex-direction: column; gap: 10px; }
.mail-sec .mb-title { margin: 6px 12px 0; font-size: 15px; font-weight: 500; color: var(--m-mute); }
/* the top bar gets out of the way (the shops' mechanism: the engine writes html[data-qx-scroll]; kept while it has focus or its menu is open) */
.qxp-top { transition: transform .25s ease; }
html[data-qx-scroll="down"] .qxp-top:not(:focus-within):not(:has(details[open])) { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .qxp-top { transition: none; } }
/* search pill + the little row under it */
.qx-container.mt { display: flex; flex-direction: column; gap: 4px; }
.qx-container.mt-search { display: flex; flex-direction: row; align-items: center; gap: 4px; box-sizing: border-box; min-height: 52px; padding: 0 6px 0 20px; border-radius: 28px; background: var(--m-card); box-shadow: 0 1px 3px rgba(60, 64, 67, .22); }
.qx-container.mt-search:focus-within { box-shadow: 0 0 0 2px var(--m-link); }
.mt-search-input { flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 52px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--m-ink); font: inherit; font-size: 17px; outline: none; }
.qx-button.mt-clear { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 22px; background: transparent; color: var(--m-link); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.qx-container.mt-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 0 6px; }
.mail-sec .qx-toggle.mt-unread { color: var(--m-sub); font-size: 14px; }
/* the account switcher: a row of chips that scrolls sideways rather than wrapping */
.qx-container.ma > *, .qx-repeater.ma-list { flex: none; }
/* the chosen account's chip sits right after All, so it is always in view; a desktop pointer cannot swipe the row, so there it wraps */
.qx-repeater.ma-list { display: contents !important; }  /* !important: the repeater sets its own display:flex inline, which made it ONE unshrinkable flex item the width of every chip, so the row could not wrap */ .ma-all { order: -2; } .ma-on { order: -1; }
.qx-container.ma { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; align-items: center; overflow-x: auto; padding: 2px 4px 4px; scrollbar-width: none; }
/* AFTER the base rule (same specificity: an earlier media rule lost to it, Graham 2026-11-16: the later accounts, the Gmail one, could not be reached on a desktop). A desktop pointer cannot swipe the row, and a wide window has the room: the chips wrap onto more lines, every account in view; only a narrow touch screen scrolls it. */
@media (hover: hover) and (pointer: fine), (min-width: 900px) { .qx-container.ma { flex-wrap: wrap; overflow: visible; } }
.ma-a { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; box-sizing: border-box; padding: 0 16px; border: 0; border-radius: 22px; background: var(--m-card); color: var(--m-ink); font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(60, 64, 67, .2); }
.ma-a[aria-current="page"], .ma-on { background: var(--m-pill); color: var(--m-pillink); }
.ma-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mc, #9a9ba7); display: inline-block; }
.ma-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--mc, #323338); color: var(--m-card); font-size: 12px; text-align: center; line-height: 20px; }
/* a message: avatar | sender · subject · snippet+pill | date, and the Archive / Delete pair */
.qx-repeater.mb-rows { display: flex; flex-direction: column; gap: 3px; overflow: hidden; border-radius: 14px; }
.qx-container.mr { position: relative; display: block; box-sizing: border-box; min-width: 0; border-radius: 14px; }
.qx-container.mr-body { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "av from side" "av subj subj" "av l3 l3"; column-gap: 14px; row-gap: 2px; align-items: center; box-sizing: border-box; padding: 12px 12px 12px 12px; background: var(--m-read); min-width: 0; }
.qx-container.mr.mr-unread-true .mr-body { background: var(--m-card); }
.qx-container.mr-av { grid-area: av; align-self: start; margin-top: 2px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mc, #9a9ba7); color: var(--m-card); overflow: hidden; }
.mr-avl { display: block; font-size: 0; line-height: 1; text-transform: uppercase; }
.mr-avl::first-letter { font-size: 24px; font-weight: 500; }
.qx-container.mr-main { display: contents; }
.qx-container.mr .mr-from { grid-area: from; } .qx-container.mr .mr-subject { grid-area: subj; }
.qx-container.mr-l3 { grid-area: l3; }
.mr-from, .mr-subject { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 1.35; color: var(--m-ink); text-decoration: none; }
.mr-subject::after { content: ""; position: absolute; inset: 0; }
.mr-subject-none { font-style: italic; }
.qx-container.mr-l3 { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.mr-snippet { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 1.4; color: var(--m-sub); }
.mr-chip { flex: none; display: inline-block; max-width: 34%; padding: 2px 8px; border-radius: 6px; background: var(--m-pill); color: var(--m-pillink); font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-chan { flex: none; display: inline-block; padding: 0 6px; border: 1px solid var(--m-mute); border-radius: 6px; color: var(--m-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.mr-ch-email .mr-chan { display: none; }
.qx-container.mr-side { grid-area: side; justify-self: end; display: flex; flex-direction: row; align-items: center; gap: 6px; }
.mr-when { color: var(--m-sub); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mr-unread-true .mr-when, .mr-unread-true .mr-from, .mr-unread-true .mr-subject { font-weight: 700; color: var(--m-ink); }
.mr-attmark { display: none; font-size: 0; }
.mr-att-true .mr-attmark { display: inline-block; width: 16px; height: 16px; background: var(--m-mute); -webkit-mask: var(--ico-clip) center / contain no-repeat; mask: var(--ico-clip) center / contain no-repeat; }
.qx-container.mr-act, .qx-container.mr-act .mact { display: contents; }
/* swipe (the engine's swipe prop on the row, QxClient e5b001c): Archive (green) slides in under a left swipe, Delete (red) under a right one; past 40% of the row, let go and it acts. The row must not clip, the list does. */
.qx-swipe__under { color: var(--m-onact); font-size: 14px; font-weight: 500; }
.qx-swipe__under--left { background: var(--m-arch); padding: 0 0 0 24px; } .qx-swipe__under--right { background: var(--m-del); padding: 0 24px 0 0; }
.qx-swipe__icon { display: block; flex: none; width: 28px; height: 28px; font-size: 0; background: currentColor; }
.qx-swipe__under--left .qx-swipe__icon { -webkit-mask: var(--ico-archive) center / contain no-repeat; mask: var(--ico-archive) center / contain no-repeat; }
.qx-swipe__under--right .qx-swipe__icon { -webkit-mask: var(--ico-trash) center / contain no-repeat; mask: var(--ico-trash) center / contain no-repeat; }
.qx-swipe--armed .qx-swipe__icon { transform: scale(1.15); } .qx-swipe--armed .qx-swipe__label { font-weight: 700; }
/* the buttons: out of sight until the row is hovered (a mouse) or has focus (keyboard, screen reader); a touch swipes */
.qx-container.mr .mact-b.mact-arch, .qx-container.mr .mact-b.mact-del { position: absolute; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 22px; background: var(--m-card); color: var(--m-sub); box-shadow: 0 1px 3px rgba(60, 64, 67, .3); opacity: 0; }
.qx-container.mr .mact-b.mact-del { right: 10px; } .qx-container.mr .mact-b.mact-arch { right: 60px; }
.qx-container.mr:focus-within .mact-b.mact-arch, .qx-container.mr:focus-within .mact-b.mact-del { opacity: 1; }
.qx-container.mr:focus-within .mr-when { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .qx-container.mr:hover .mact-b.mact-arch, .qx-container.mr:hover .mact-b.mact-del { opacity: 1; }
  .qx-container.mr:hover .mr-when { visibility: hidden; }
}
@media (hover: none) { .qx-container.mr .mact-b.mact-arch, .qx-container.mr .mact-b.mact-del { pointer-events: none; } .qx-container.mr:focus-within .mact-b.mact-arch, .qx-container.mr:focus-within .mact-b.mact-del { pointer-events: auto; } }
/* a command in flight or failed: its words and Undo / Retry take the full width under the text */
.qx-container.mr:has(.mact-s-failed, .mact-k-archive.mact-s-queued, .mact-k-archive.mact-s-in_progress, .mact-k-delete.mact-s-queued, .mact-k-delete.mact-s-in_progress) { display: flex; flex-direction: column; }
.qx-container.mr:has(.mact-s-failed, .mact-k-archive.mact-s-queued, .mact-k-archive.mact-s-in_progress, .mact-k-delete.mact-s-queued, .mact-k-delete.mact-s-in_progress) .mr-body { flex: none; }
.qx-container.mr:has(.mact-s-failed, .mact-k-archive.mact-s-queued, .mact-k-archive.mact-s-in_progress, .mact-k-delete.mact-s-queued, .mact-k-delete.mact-s-in_progress) .mr-act { display: block; background: var(--m-card); padding: 0 12px 8px 78px; }
.qx-container.mr:has(.mact-s-failed, .mact-k-archive.mact-s-queued, .mact-k-archive.mact-s-in_progress, .mact-k-delete.mact-s-queued, .mact-k-delete.mact-s-in_progress) .mr-act .mact { display: flex; flex-wrap: wrap; justify-content: flex-start; }
/* star (row + reader), mark-as-unread (reader bar), labels (reader) */
.mr-star.qx-button, .mm-star.qx-button, .mm-unread.qx-button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; font-size: 0; cursor: pointer; }
.mr-star.qx-button { margin: -10px -8px -10px 0; position: relative; z-index: 2; }
.mr-star.qx-button::before, .mm-star.qx-button::before, .mm-unread.qx-button::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-starline) center / contain no-repeat; mask: var(--ico-starline) center / contain no-repeat; }
.mr-star-off.qx-button, .mm-star-off.qx-button, .mm-unread.qx-button { color: var(--m-mute); }
.mr-star-on.qx-button, .mm-star-on.qx-button { color: var(--m-star); }
.mr-star-on.qx-button::before, .mm-star-on.qx-button::before { -webkit-mask-image: var(--ico-star); mask-image: var(--ico-star); }
.mm-unread.qx-button::before { -webkit-mask-image: var(--ico-envelope); mask-image: var(--ico-envelope); }
.mr-star.qx-button:hover, .mr-star.qx-button:focus-visible, .mm-star.qx-button:hover, .mm-star.qx-button:focus-visible, .mm-unread.qx-button:hover, .mm-unread.qx-button:focus-visible { background: var(--m-line); }
.mr-star-lbl, .mm-star-lbl, .mm-unread-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mm-who .mm-star.qx-button { grid-row: 1 / 3; grid-column: 5; }
.qx-container.mm-bar .mm-unread.qx-button { margin-left: auto; } .qx-container.mm-bar .mm-unread.qx-button + .mact { margin-left: 0; }
.mm-label.mr-chip { max-width: none; }
@media (max-width: 430px) { .mm-who-reply { display: none; } }
.qx-repeater.mm-labels { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; } .mm-label { background: var(--m-line); color: var(--m-ink); }
/* Archive and Delete: round icon buttons (the words stay for a screen reader); Undo and Retry show their word */
.qx-container.mact { display: flex; flex-direction: row; align-items: center; gap: 2px; }
.mact-b.qx-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--m-sub); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.mact-b.qx-button:hover, .mact-b.qx-button:focus-visible { background: var(--m-line); }
.mact-undo.qx-button, .mact-retry.qx-button { padding: 0 14px; color: var(--m-link); white-space: nowrap; }
.mact-arch .mact-lbl, .mact-del .mact-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mact-ico { display: block; width: 24px; height: 24px; font-size: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.mact-undo .mact-ico, .mact-retry .mact-ico { display: none; }
.mact-arch .mact-ico { --ico: var(--ico-archive); } .mact-del .mact-ico { --ico: var(--ico-trash); }
.mact-stat, .mact-fail { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.mact-stat.qx-alert, .mact-fail.qx-alert { margin: 0; padding: 0; border: 0; background: none; }
.qx-container.mm-bar:has(.mact-s-failed, .mact-k-archive.mact-s-queued, .mact-k-archive.mact-s-in_progress, .mact-k-delete.mact-s-queued, .mact-k-delete.mact-s-in_progress) { flex-wrap: wrap; } .qx-container.mm-bar:has(.mact-s-failed, .mact-k-archive.mact-s-queued, .mact-k-archive.mact-s-in_progress, .mact-k-delete.mact-s-queued, .mact-k-delete.mact-s-in_progress) .mact { flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; padding: 0 14px 8px; }
.mact-stat { color: var(--m-sub); } .mact-fail { color: var(--m-bad); }
/* the reader: a page of its own */
.qx-container.mm { display: flex; flex-direction: column; gap: 0; }
.qx-container.mm-bar { display: flex; flex-direction: row; align-items: center; gap: 2px; padding: 4px 0; }
.qx-container.mm-bar .mact { flex-direction: row; margin-left: auto; }
/* OPEN IN ITS OWN TAB: a small icon in the message bar (Graham 2026-11-16: it was a boxed block under the reply buttons, 'occupying space') */
.mm-openico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px; font-size: 0; color: var(--m-mute); text-decoration: none; }
.mm-openico::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-open) center / contain no-repeat; mask: var(--ico-open) center / contain no-repeat; }
.mm-openico:hover, .mm-openico:focus-visible { background: var(--m-line); }
.mm-back { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; font-size: 0; color: var(--m-sub); text-decoration: none; }
.mm-back::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-back) center / contain no-repeat; mask: var(--ico-back) center / contain no-repeat; }
.mm-back:hover, .mm-back:focus-visible { background: var(--m-line); }
.mail-sec .mm-subject { margin: 4px 12px 0; font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--m-ink); overflow-wrap: anywhere; }
.qx-container.mm-pills { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; }
.qx-container.mm-who { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto; gap: 0 6px; column-gap: 10px; align-items: center; padding: 14px 8px 10px 14px; border-radius: 16px 16px 0 0; background: var(--m-card); }
.qx-container.mm-who .mr-av { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; }
.qx-container.mm-who .mr-avl::first-letter { font-size: 20px; }
.mm-who-name { grid-column: 2; grid-row: 1; font-size: 17px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--m-ink); }
.mm-who-to { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--m-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mm-who-when { grid-row: 1 / 3; grid-column: 4; font-size: 13px; color: var(--m-mute); white-space: nowrap; }
.mm-who-reply { grid-row: 1 / 3; grid-column: 6; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px; font-size: 0; color: var(--m-sub); text-decoration: none; }
.mm-who-reply::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-reply) center / contain no-repeat; mask: var(--ico-reply) center / contain no-repeat; }
.mm-who-reply:hover, .mm-who-reply:focus-visible { background: var(--m-line); }
.mm-chev.qx-button { grid-row: 1 / 3; grid-column: 3; display: inline-flex; align-items: center; justify-content: center; width: 40px; min-width: 40px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--m-sub); font-size: 0; cursor: pointer; }
.mm-chev.qx-button::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-chev) center / contain no-repeat; mask: var(--ico-chev) center / contain no-repeat; }
.mm-chev-open.qx-button::before { transform: none; }
.mm-chev-close.qx-button::before { transform: rotate(180deg); }
.mm-chev.qx-button:hover, .mm-chev.qx-button:focus-visible { background: var(--m-line); }
.mm-chev-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qx-container.mm-heads { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 2px 12px; margin: 0; padding: 0 14px 12px; background: var(--m-card); font-size: 13px; color: var(--m-mute); }
.mm-k { font-weight: 600; } .mm-v { min-width: 0; overflow-wrap: anywhere; }
.mail-sec .mm-h { color: var(--m-ink); }
.mail-sec .mm-att { color: var(--m-link); border-color: var(--m-line); background: var(--m-card); }

.qx-container.mm > .mm-atts, .qx-container.mm > .mm-h { padding: 0 14px; background: var(--m-card); }
.qx-container.mm-bodybox { padding: 0; }
.qx-container.mm-bodywrap { max-width: 56rem; }
.mm-frame { display: block; width: 100%; border: 0; border-radius: 0 0 16px 16px; background: var(--m-card); }
/* ONE SCROLL, NOT TWO (Graham 2026-11-16: 'scroll inside of scroll'): the frame fills the screen between the message head and the sticky Reply bar, so the page itself barely scrolls and the message scrolls once. A frame that grows to its content needs the document's height, which the sandbox keeps from us (a request to Graham). */
.mm-frame { height: calc(100dvh - 21rem) !important; min-height: 20rem !important; }
.qx-container.mm-reply-bar { position: sticky; bottom: 0; z-index: 12; display: flex; flex-direction: row; gap: 10px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--m-bg); }
.mm-rbtn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; box-sizing: border-box; padding: 0 12px; border-radius: 28px; background: var(--m-btn); color: var(--m-card); font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.mm-rbtn::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ico-reply) center / contain no-repeat; mask: var(--ico-reply) center / contain no-repeat; }
.mm-rbtn-fwd::before { -webkit-mask-image: var(--ico-fwd); mask-image: var(--ico-fwd); }
.mm-rbtn-all { background: var(--m-card); color: var(--m-btn); box-shadow: inset 0 0 0 2px var(--m-btn); }
.mm-rbtn:hover, .mm-rbtn:focus-visible { filter: brightness(1.12); }
.mb-hint { margin: 0 0 8px; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.qx-toggle.mb-toggle { margin: 0 0 12px; color: var(--qxp-body); font-size: 13px; }
.qx-toggle.mb-toggle .qx-toggle__control { min-height: 44px; padding: 0 4px; }
.qx-container.mb-orow { display: block; min-width: 0; }
/* compose and outbox wear the same light sheet */
.mail-sec .mc-form .qx-form__field { background: var(--m-card); color: var(--m-ink); border: 1px solid var(--m-line); }
.mail-sec .mc-form .qx-form__label, .mail-sec .mc-lbl, .mail-sec .mc-note, .mail-sec .mc-busy { color: var(--m-sub); }
.mail-sec .mc-form .qx-form__submit { background: var(--m-btn); border-color: var(--m-btn); color: var(--m-card); border-radius: 24px; min-height: 48px; }
.mail-sec .mo .mact-b.qx-button { color: var(--m-link); padding: 0 14px; }

/* ── COMPOSE / REPLY, GMAIL STYLE (Graham 2026-11-13, phone screenshots): claim the screen. Icon-only bar; one From line; To with a chevron that reveals Cc/Bcc
   (also shown when they hold addresses; :target, no state); the subject plain with a hairline; the body fills the screen; the quote collapsed to a row of dots. ── */
.qxp-section.mail-sec.mc-sec { padding: 0; } .qxp-section.mail-sec.mc-sec > .qx-container { padding-top: 0; }
.qxd-panel.qxa-home.qxa-jwrap.qxa-keep.mail-panel.mc-panel { padding: 0; margin: 0 auto; max-width: 760px; width: 100%; border: 0; background: transparent; box-shadow: none; }
.qx-container.mc-gm { position: relative; gap: 0; max-width: 760px; width: 100%; margin: 0 auto; background: var(--m-card); color: var(--m-ink); min-height: 100vh; }
.qx-container.mc-bar { display: flex; flex-direction: row; align-items: center; gap: 0; height: 52px; padding: 0 6px; border-bottom: 1px solid var(--m-line); box-sizing: border-box; }
.mc-ib, .mc-ib.qx-button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--m-sub); font-size: 0; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.mc-ib::before, .mc-ib .qx-button::before, .mc-ib.qx-button::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-more) center / contain no-repeat; mask: var(--ico-more) center / contain no-repeat; }
.mc-ib-back::before { -webkit-mask-image: var(--ico-back); mask-image: var(--ico-back); }
.mc-ib-kind::before { -webkit-mask-image: var(--ico-reply); mask-image: var(--ico-reply); }
.mc-ib-att::before, .mc-ib-att .qx-button::before { -webkit-mask-image: var(--ico-clip); mask-image: var(--ico-clip); }
.mc-ib-att, .mc-ib-att .qx-button { margin-left: auto; }
.mc-ib-att { margin-right: 46px; }
.mc-ib:hover, .mc-ib:focus-visible, .mc-ib-on.qx-button { background: var(--m-line); }
.mc-ib-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mc-gm .mc-note.mc-from-line, .mc-gm p.mc-note { margin: 0; }
.mail-sec .mc-gm .mc-note { display: flex; align-items: center; min-height: 44px; padding: 0 56px 0 14px; border-bottom: 1px solid var(--m-line); box-sizing: border-box; font-size: 14px; }
.mail-sec .mc-gm .mc-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mc-gm .mc-from { max-width: none; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--m-line); box-sizing: border-box; display: flex; align-items: center; }
.mc-ib-att { position: relative; overflow: hidden; }
.mc-ib-att .qx-file-pick__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mc-ib-att .qx-file-pick__field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.mc-gm .mc-atts { align-items: stretch; margin: 4px 14px; }
.mc-gm .qx-container.mc-att { min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--m-line); }
.mc-gm .mc-att-rm.qx-button { background: transparent; border: 0; color: var(--m-link); min-height: 44px; }
.mc-gm .mc-from .qx-select__control { flex: 1 1 auto; width: 100%; }
.mc-ib-more::before { -webkit-mask-image: var(--ico-more); mask-image: var(--ico-more); }
.qx-container.mc-menu-more { right: 8px; }
.mc-chips { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.mc-chips .qx-chips__label { flex: none; min-width: 2.4rem; font-size: 15px; font-weight: 400; color: var(--m-sub); }
.mc-chips .qx-chips__box { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border: 0; background: transparent; box-shadow: none; padding: 4px 0; }
.mc-chips .qx-chips__list { display: contents; }
.mc-chips .qx-chips__input { flex: 1 1 4rem; min-width: 4rem; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; color: var(--m-ink); }
.mc-chips .qx-chip { font-size: 14px; }
.mc-menu { position: absolute; top: 50px; right: 8px; z-index: 20; display: flex; flex-direction: column; min-width: 12rem; padding: 6px 0; border-radius: 8px; background: var(--m-card); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.qx-container.mc-menu-kind { right: auto; left: 52px; }
.mc-menu-a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--m-ink); text-decoration: none; font-size: 15px; }
.mc-menu-a:hover, .mc-menu-a:focus-visible { background: var(--m-line); }
.mc-gm .mc-busy, .mc-gm .mact-fail, .mc-gm .mc-atts, .mc-gm .mc-note:last-child { margin: 8px 14px; }
.mc-gm .qx-container.mc-att { flex-direction: row; text-align: left; width: 100%; box-sizing: border-box; padding: 0; } .mail-sec .mc-gm .mc-note { padding-right: 14px; }
.mc-row { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 0 14px; min-height: 48px; border-bottom: 1px solid var(--m-line); box-sizing: border-box; }
.qx-container.mc-row-to { padding-right: 6px; }
.mc-rl { flex: none; min-width: 2.4rem; font-size: 15px; color: var(--m-sub); }
.mail-sec .mc-gm .mc-rf, .mail-sec .mc-gm .mc-rf input, .mail-sec .mc-gm .mc-rf textarea { flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box; border: 0; background: transparent; box-shadow: none; outline: 0; padding: 12px 0; font-size: 16px; color: var(--m-ink); border-radius: 0; font-family: inherit; }
.mail-sec .mc-gm .mc-body textarea, .mail-sec .mc-gm textarea.mc-body { min-height: 34vh; line-height: 1.45; resize: none; }
.mail-sec .mc-gm .mc-quote textarea, .mail-sec .mc-gm textarea.mc-quote { min-height: 28vh; line-height: 1.45; resize: none; }
.qx-container.mc-row-body, .qx-container.mc-row-quote { align-items: stretch; border-bottom: 0; }
.mc-ib.mc-chev { margin-left: auto; }
.mc-ib.mc-chev::before { -webkit-mask-image: var(--ico-chev); mask-image: var(--ico-chev); }
.mc-ib.mc-send, .mc-ib.mc-send.qx-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 20px; background: var(--m-btn); color: var(--m-card); margin: 0 6px 0 0; }
.mc-ib.mc-send::before { -webkit-mask-image: var(--ico-send); mask-image: var(--ico-send); width: 20px; height: 20px; }
.mc-ib-att { margin-right: 0; }
.mc-dots.qx-button { display: inline-flex; align-items: center; justify-content: flex-start; width: 80px; min-width: 80px; height: 44px; min-height: 44px; margin: 0 14px; padding: 0; border: 0; background: transparent; color: var(--m-sub); font-size: 0; }
.mc-dots.qx-button::before { content: "\2022\2022\2022"; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 26px; border-radius: 13px; background: var(--m-line); font-size: 12px; letter-spacing: 2px; }
.qx-container.mc-row-subj { min-height: 48px; }
.mc-menu-btn.qx-button { justify-content: flex-start; width: 100%; border: 0; background: transparent; border-radius: 0; font-weight: 400; }
.mc-menu-lbl { font-size: 15px; color: var(--m-ink); }
/* compose: the floating button */
.mb-fab { position: fixed; right: 16px; bottom: 20px; z-index: 15; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; box-sizing: border-box; padding: 0 22px 0 18px; border-radius: 16px; background: var(--m-pill); color: var(--m-pillink); font-size: 17px; font-weight: 500; text-decoration: none; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.mb-fab::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-pencil) center / contain no-repeat; mask: var(--ico-pencil) center / contain no-repeat; }
.mb-fab:hover, .mb-fab:focus-visible { filter: brightness(.95); }
@media (max-width: 400px) {
  .mm-rbtn { gap: 5px; padding: 0 6px; font-size: 15px; }
  .mm-rbtn::before { width: 18px; height: 18px; }
}
@media (min-width: 768px) {
  .qxd-panel.qxa-jwrap.qxa-keep.mail-panel { padding-top: 18px; }
  .qx-container.mm-who { padding: 20px 14px 10px 20px; }
  .mail-sec .mm-subject { font-size: 28px; }
  .mb-fab { right: max(24px, calc(50vw - 28rem)); }
}
/* ── THE READER, GMAIL STYLE (Graham 2026-11-12): bar = back · archive · delete · unread · more; subject with its chips beside it and the star at the right; "to me ▾" under the sender; Reply / Forward pills ── */
.qx-container.mm-bar .mact { margin-left: 0; } .qx-container.mm-bar { gap: 0; }
.qx-container.mm-bar .mm-unread.qx-button { margin-left: 0; }
.mm-more.qx-button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--m-sub); font-size: 0; cursor: pointer; margin-left: auto; }
.mm-more.qx-button::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico-more) center / contain no-repeat; mask: var(--ico-more) center / contain no-repeat; }
.mm-more.qx-button:hover, .mm-more.qx-button:focus-visible, .mm-more-on.qx-button { background: var(--m-line); }
.mm-more-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qxd-panel.mail-panel { position: relative; }
.qx-container.mm-menu { position: absolute; right: 6px; top: 54px; z-index: 30; display: flex; flex-direction: column; min-width: 11rem; margin: 0 4px 6px; padding: 6px 0; background: var(--m-card); border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.mm-menu-a { display: block; padding: 12px 18px; min-height: 44px; box-sizing: border-box; color: var(--m-ink); text-decoration: none; font-size: 15px; }
.mm-menu-a:hover, .mm-menu-a:focus-visible { background: var(--m-line); }
.qx-container.mm-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 0 4px 0 0; }
.mail-sec .mm-head .mm-subject { margin: 4px 4px 0 12px; flex: 0 1 auto; }
.qx-container.mm-head .mm-pills { padding: 6px 4px 0; flex: 1 1 auto; }
.mm-head .mm-star.qx-button { margin-left: auto; align-self: flex-start; }
.qx-container.mm-who { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.qx-container.mm-who .mm-who-name { grid-column: 2; grid-row: 1; }
.qx-container.mm-who-line { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; align-items: center; gap: 0; min-width: 0; }
.mm-who-line .mm-who-to { grid-column: auto; grid-row: auto; flex: 0 1 auto; }
.mm-who-line .mm-chev.qx-button { grid-column: auto; grid-row: auto; width: 44px; min-width: 44px; min-height: 44px; margin: -8px 0; }
.qx-container.mm-who .mm-who-when { grid-column: 3; grid-row: 1 / 3; }
.qx-container.mm-who .mm-who-reply { grid-column: 4; grid-row: 1 / 3; }
.qx-container.mm-reply-bar { justify-content: flex-start; } .mm-reply-bar .mm-rbtn { flex: 0 1 11rem; }
@media (max-width: 430px) { .mm-reply-bar .mm-rbtn { flex: 1 1 0; } }

/* ── SHELVES (mail.shelves): Gmail's side menu — a rail on wide screens, a drawer from the Folders button below that ── */
.qx-button.mf-btn { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--m-card); color: var(--m-ink); font: inherit; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(60, 64, 67, .2); cursor: pointer; }
.qx-container.mf { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; align-items: stretch; }
.mf-s { display: flex; align-items: center; gap: 14px; min-height: 44px; box-sizing: border-box; padding: 0 16px 0 20px; border-radius: 0 22px 22px 0; color: var(--m-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.mf-s:hover { background: rgba(60, 64, 67, .08); } .mf-s.mf-on { background: var(--m-pill); color: var(--m-pillink); font-weight: 700; }
.mf-label { flex: 1 1 auto; } .mf-count { font-size: 12px; font-weight: 700; }
.mf-ico { width: 20px; height: 20px; flex: none; background-color: currentColor; -webkit-mask: var(--mf-i) center / contain no-repeat; mask: var(--mf-i) center / contain no-repeat; }
.mf-s-inbox { --mf-i: var(--ico-envelope); } .mf-s-starred { --mf-i: var(--ico-star); } .mf-s-sent { --mf-i: var(--ico-send); } .mf-s-drafts { --mf-i: var(--ico-pencil); }
.mf-s-archived, .mf-s-all { --mf-i: var(--ico-archive); } .mf-s-spam { --mf-i: var(--ico-more); } .mf-s-trashed { --mf-i: var(--ico-trash); }
.mf-s-outbox { --mf-i: var(--ico-send); }
.qx-container.mf-drawer { position: fixed; inset: 0; z-index: 60; display: flex; }
.qx-container.mf-drawer .mf { position: relative; z-index: 1; width: min(78vw, 17rem); height: 100%; box-sizing: border-box; padding-top: 72px; background: var(--m-card); box-shadow: 4px 0 16px rgba(0, 0, 0, .25); overflow-y: auto; }
.qx-button.mf-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(0, 0, 0, .35); font-size: 0; cursor: default; }
/* FOLDERS + OUTBOX in ONE menu, from the Folders button where Outbox was (Graham 2026-11-16), at every width: a drawer on a phone, a popover under the toolbar from 900px up (no left rail) */
@media (min-width: 900px) {
  .qx-container.mf-drawer .mf { position: absolute; top: 130px; left: max(18px, calc((100vw - var(--qxp-wide)) / 2 + 18px)); width: 17rem; height: auto; max-height: calc(100vh - 150px); padding-top: 8px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
  .qx-button.mf-scrim { background: transparent; }
}

/* ── MAIL SETTINGS (/mail/settings) ── */
.qx-container.ms-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin: 8px 0; border-radius: 12px; background: var(--m-card); }
.ms-title { margin: 0; font-size: 17px; font-weight: 600; } .ms-help { margin: 0; font-size: 14px; color: var(--m-mute); }
.qx-container.ms-opts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-button.ms-opt { min-height: 44px; padding: 0 18px; border: 1px solid var(--m-mute); border-radius: 22px; background: transparent; color: var(--m-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.qx-button.ms-opt.ms-on { background: var(--m-pill); border-color: var(--m-pill); color: var(--m-pillink); font-weight: 700; }
/* NEW MAIL (push) rows on /mail/settings: the same card as a setting, a status line in plain words, a 44px button */
.qx-container.mp-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; margin: 8px 0; border-radius: 12px; background: var(--m-card); }
.mp-name { margin: 0; font-size: 16px; font-weight: 600; }
.mp-state { margin: 0; font-size: 15px; color: var(--m-ink); } .mp-sub { margin: 0; font-size: 13px; color: var(--m-mute); }
.mp-ok::before { content: "● "; color: var(--m-link); } .mp-warn::before { content: "◐ "; } .mp-bad::before { content: "○ "; }
.qx-button.mp-btn { align-self: flex-start; min-height: 44px; padding: 0 18px; border: 1px solid var(--m-mute); border-radius: 22px; background: transparent; color: var(--m-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.qx-button.mp-btn.mp-btn-on { background: var(--m-pill); border-color: var(--m-pill); color: var(--m-pillink); font-weight: 700; }
.mp-sec-title { margin: 18px 0 0; font-size: 17px; font-weight: 600; } .mp-sec-help { margin: 0 0 6px; font-size: 14px; color: var(--m-mute); }

/* ── DESKTOP DENSITY (Graham 2026-11-12: "too much spacing"): Gmail's one-line rows; the phone is left exactly as it is ── */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .qx-container.mt-search { min-height: 40px; border-radius: 20px; } .mt-search-input { min-height: 40px; font-size: 15px; }
  .qx-container.mb { gap: 4px; } .mail-sec .mb-title { margin: 2px 12px 0; font-size: 13px; }
  .ma-a { min-height: 34px; padding: 0 12px; font-size: 14px; } .qx-container.ma { padding: 0 4px 2px; gap: 6px; }
  .qx-repeater.mb-rows { gap: 1px; border-radius: 8px; } .qx-container.mr, .qx-container.mr-body { border-radius: 0; }
  .qx-container.mr-body { display: flex; flex-direction: row; align-items: center; gap: 0 12px; padding: 5px 14px; }
  .qx-container.mr-body .mr-av { width: 30px; height: 30px; margin: 0; flex: none; } .qx-container.mr-body .mr-avl::first-letter { font-size: 15px; }
  .qx-container.mr .mr-from { flex: 0 0 200px; font-size: 14px; line-height: 1.3; }
  .qx-container.mr .mr-subject { flex: 0 1 auto; max-width: 42%; font-size: 14px; line-height: 1.3; }
  .qx-container.mr-l3 { flex: 1 1 0; min-width: 0; gap: 6px; } .mr-snippet { font-size: 14px; line-height: 1.3; }
  .qx-container.mr-side { flex: none; } .mr-when { font-size: 12px; }
  .qx-container.mm-who { padding: 8px 8px 6px 14px; } .mail-sec .mm-head .mm-subject { font-size: 20px; margin-top: 2px; }
  .qx-container.mm-bar { padding: 0; } .mm-back { width: 40px; height: 40px; }
  .qx-container.mm-pills { padding: 4px 12px 6px; } .qx-container.mm-reply-bar { padding: 8px 0; } .mm-rbtn { min-height: 44px; font-size: 15px; }
}


/* ── COSTING (admin /costing): the cost grid, each channel, the deck, sources ── */
/* the console panel shrinks to its widest child; the cost grid scrolls in its own box, so this panel takes the width */
.qxd-panel.qxa-jwrap:has(.cs) { width: 100%; min-width: 0; box-sizing: border-box; }
.qx-container.cs, .qx-container.cs-sec, .qx-container.cg, .qx-container.cc { align-items: stretch; text-align: left; min-width: 0; }
.qx-container.cs { display: flex; flex-direction: column; gap: 34px; }
.qx-container.cs-sec { display: flex; flex-direction: column; gap: 12px; }
.cs-h { margin: 0; font-size: 19px; color: var(--qxp-ink); }
.cs-sub { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.cs-meta { margin: 0; color: #676879; font-size: 13px; line-height: 1.5; }
.cs-vat { margin: 0; padding: 9px 12px; border-radius: 8px; background: #f3f4f6; color: #323338; font-size: 13px; }
.qx-container.cg { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.cg-h { margin: 0; font-size: 16px; color: #323338; }
.qx-container.cg-scroll { min-width: 0; }
.qx-container.cg-t { display: grid; gap: 4px; align-items: center; grid-template-columns: minmax(min(8.5rem, 100%), 1.5fr) repeat(var(--cg-n, 6), minmax(min(3.6rem, 100%), 1fr)); }
.cg-q { display: none; }
.cg-colh, .cg-rowh { margin: 0; font-size: 12px; color: #676879; }
.cg-colh { text-align: center; font-weight: 600; }
.cg-rowh { color: #323338; font-weight: 600; }
.qx-button.cg-cell { min-height: 44px; padding: 4px 6px; border: 1px solid #c4c4c4; border-radius: 6px; background: #fff; color: #323338; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.qx-button.cg-cell:hover, .qx-button.cg-cell:focus-visible { border-color: #579bfc; background: #fafbfc; }
.qx-button.cg-est { font-style: italic; color: #676879; }
.qx-container.cg-ask { margin: 0; flex-direction: row; justify-content: center; text-align: center; color: #9a9ba7; font-size: 13px; }
.cs-flag { margin: 0; padding: 7px 10px; border-radius: 6px; background: #fdf3dc; color: #ae4e02; font-size: 13px; line-height: 1.45; }
.cs-pick { margin: 0; font-size: 16px; font-weight: 600; color: var(--qxp-ink); }
.cs-cost { margin: 0; font-size: 14px; color: var(--qxp-body); }
.cs-miss, .cc-e { margin: 0; padding: 7px 10px; border-radius: 6px; background: #fdf3dc; color: #ae4e02; font-size: 13px; }
.cs-miss:empty, .cc-e:empty, .cc-o:empty { display: none; }
.cs-design { margin: 0; color: var(--qxp-muted); font-size: 13px; }
.qx-repeater.cs-designs, .qx-repeater.cs-notes { margin: 0; }
.qx-repeater.cs-rows { min-width: 0; }
.qx-container.cs-posts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
.qx-button.cs-post { min-height: 44px; padding: 6px 12px; border: 1px solid #c4c4c4; border-radius: 20px; background: #fff; color: #323338; font-size: 13px; cursor: pointer; }
.qx-button.cs-post:hover, .qx-button.cs-post:focus-visible { border-color: #579bfc; }
/* the CHOSEN chip and price: filled in the console's accent */
.qx-button.cs-post.cs-post-on, .qx-button.cg-cell.cg-on { background: var(--qxp-hi); border-color: var(--qxp-hi); color: var(--qxp-bg); font-weight: 700; cursor: default; }
.qx-button.cg-cell.cg-on.cg-est { color: var(--qxp-bg); }
.cs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cs-postl { margin: 0; font-size: 13px; font-weight: 600; color: var(--qxp-ink); }
.qx-container.cc { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.cc-n { margin: 0; font-size: 15px; font-weight: 600; color: #323338; }
.cc-o { margin: 0; font-size: 12px; color: var(--qxp-muted); line-height: 1.45; }
/* THE STATEMENT: label left, amount right, the working under it; the total ruled off, green for a profit, red for a loss */
.qx-container.st { display: flex; flex-direction: column; gap: 0; }
.qx-container.st-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #e6e9ef; }
.st-k { font-size: 13px; font-weight: 600; color: #323338; }
.st-v { font-size: 15px; font-weight: 700; color: #323338; text-align: right; font-variant-numeric: tabular-nums; }
.st-d { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: #676879; line-height: 1.4; }
.st-d:empty { display: none; }
.qx-container.st-tot { border-bottom: 0; border-top: 2px solid #323338; margin-top: 2px; padding-top: 8px; }
.st-tot .st-k, .st-tot .st-v { font-size: 16px; }
.st-profit .st-v { color: #0d6b4d; }
.st-loss .st-v { color: #a9142c; }
/* THE SUMMARY GRID: channel, then a cell per price; green profit, red loss, the recommended cell tinted in the accent */
.cs-rule { margin: 0; font-size: 13px; color: var(--qxp-body); line-height: 1.5; }
.qx-repeater.sg { min-width: 0; }
.qx-container.sg-r { display: grid; grid-template-columns: minmax(min(10rem, 100%), 1.6fr) repeat(4, minmax(0, 1fr)); gap: 4px; align-items: center; }
.sg-n { font-size: 13px; font-weight: 600; color: var(--qxp-ink); }
.sg-hd { font-size: 12px; font-weight: 600; color: var(--qxp-muted); text-align: center; }
.sg-head .sg-n { color: var(--qxp-muted); font-weight: 600; font-size: 12px; }
.qx-button.sg-c { min-height: 44px; padding: 4px 6px; border: 1px solid #e6e9ef; border-radius: 6px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.qx-button.sg-profit { color: #0d6b4d; }
.qx-button.sg-loss { color: #a9142c; }
.qx-button.sg-none { color: #676879; }
.qx-button.sg-rec-yes { background: color-mix(in srgb, var(--qxp-hi) 24%, #fff); border-color: transparent; }
.qx-button.sg-rec-no { background: #fff; }
.qx-button.sg-c.sg-on { outline: 3px solid var(--qxp-hi); outline-offset: 1px; cursor: default; }
.sg-cn { font-size: 10px; font-weight: 600; color: #676879; line-height: 1.2; }
.sg-cn:empty { display: none; }
.sg-rn { grid-column: 1 / -1; margin: 0 0 4px; font-size: 12px; color: #ae4e02; }
.sg-rn:empty { display: none; }
.cc-crit { margin: 0; padding: 6px 9px; border-radius: 6px; background: #f3f4f6; color: #323338; font-size: 12px; line-height: 1.45; }
.cc-crit:empty { display: none; }
.cs-plan { margin: 0; padding: 9px 12px; border-radius: 8px; background: #f3f4f6; color: #323338; font-size: 13px; font-weight: 600; line-height: 1.45; }
.cs-src, .cs-q { margin: 0; font-size: 13px; color: var(--qxp-body); line-height: 1.5; overflow-wrap: anywhere; }
/* a phone: each offer's label is a row of its own and its prices sit three to a row, each saying its run */
@media (max-width: 46rem) {
    .qx-container.cg-t { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qx-container.sg-r { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sg-n { grid-column: 1 / -1; }
  .cg-colh { display: none; } .cg-rowh { grid-column: 1 / -1; margin-top: 6px; } .cg-q { display: inline; color: inherit; opacity: .7; font-size: 12px; } .cg-ask { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* the generated per-format forms (quest-forms.mjs) */
.qx-container.qqf { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qx-container.qqf-list { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.qqf-lbl { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #323338; }
.qx-container.qqf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 8px; align-items: end; padding: 8px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.qqf-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
.qqf-pair-l { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.qqf .qx-text-input { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qqf .qx-text-input__label { font-size: 12px; font-weight: 600; color: #676879; }
.qqf .qx-text-input__field { min-height: 44px; padding: 0 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 14px; box-sizing: border-box; width: 100%; }
.qx-toggle.qqf-toggle { color: #323338; font-size: 13px; }
.qx-container.qqf-pic { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.qqf-data, .qx-container.qqf-ans { align-items: end; }
.qx-repeater.qqf-rows { min-width: 0; }
.qqf-field { min-width: 0; }
.qx-container.qqf-rowacts { grid-column: 1 / -1; justify-content: flex-end; }
.qx-button.qqf-up, .qx-button.qqf-down { min-width: 44px; padding: 6px 10px; }
.qx-button.qqf-add, .qx-button.qqf-blank { align-self: flex-start; }
.qx-button.qqf-remove { border-color: #a9142c; color: #a9142c; }
.qqf-correct, .qqf-pair-r { min-width: 0; }
.qqf-upload .qx-file-pick__button, .qqf-upload button { min-height: 44px; }
.qx-toggle.qqf-toggle .qx-toggle__control { min-height: 44px; }

/* ── QUESTS (admin /quests): tasks, one task, slots ── */
.qx-container.qq, .qx-container.qq-sec, .qx-container.qq-card { align-items: stretch; text-align: left; min-width: 0; }
.qx-container.qq { display: flex; flex-direction: column; gap: 24px; }
.qx-container.qq-sec { display: flex; flex-direction: column; gap: 10px; }
.qq-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.qq-sub { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.qq-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.qq-err:empty { display: none; }
.qx-container.qq-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: end; }
/* the bar's own children share the row; the search box inside its labelled column keeps its own height (a flex-basis
   reaching it there made it 12rem TALL — abff2d7f) */
.qq-bar > .qx-select, .qq-bar > .qx-state-input { flex: 1 1 12rem; min-width: 0; }
.qx-container.qq-qwrap { display: flex; flex-direction: column; gap: 4px; flex: 2 1 18rem; min-width: 0; }
.qq-qwrap > .qx-state-input.qq-search { flex: none; height: 44px; }
.qq-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.qx-state-input.qq-search { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.qq-select .qx-select__input { min-height: 44px; font-size: 14px; }
.qq-select .qx-select__toggle, .qq-select .qx-select__clear { min-width: 44px; min-height: 44px; }
.qq-select .qx-select__list { color: #323338; }
.qx-repeater.qq-rows { min-width: 0; }
.qx-container.qq-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qq-title { margin: 0; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.qq-key, .qq-mono { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.qq-meta { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.qq-pill { margin: 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; background: #f3f4f6; color: #676879; }
.qq-st-published { background: #edf1ee; color: #0d6b4d; }
.qq-st-draft { background: #fdf3dc; color: #ae4e02; }
.qq-st-review { background: #f3f4f6; color: #579bfc; }
.qq-st-retired { background: #f3f4f6; color: #676879; text-decoration: line-through; }
.qx-button.qq-btn { min-height: 44px; padding: 6px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 13px; cursor: pointer; }
.qx-button.qq-btn:hover, .qx-button.qq-btn:focus-visible { border-color: #579bfc; }
.qx-button.qq-go { border: 0; background: #579bfc; color: #fff; font-weight: 600; }
.qx-button.qq-danger { border-color: #a9142c; color: #a9142c; }
.qx-container.qq-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
/* the tasks pager: Previous, where the page starts, Next */
.qx-container.qq-pager { margin-top: 12px; }
.qx-container.qq-pager > .qq-pg-next { margin-left: auto; }
.qx-text.qq-count { font-weight: 600; }
.qx-button.qq-pg-prev { white-space: nowrap; }
.qx-container.qq-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.qx-container.qq-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 10px; align-items: end; }
.qq-form .qx-text-input, .qq-card .qx-text-input { display: flex; flex-direction: column; gap: 4px; }
.qq-form .qx-text-input__label, .qq-card .qx-text-input__label { font-size: 12px; font-weight: 600; color: #676879; }
.qq-form .qx-text-input__field, .qq-card .qx-text-input__field { min-height: 44px; padding: 0 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 14px; box-sizing: border-box; width: 100%; }
.qx-container.qq-slot { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.qx-container.qq-place { display: grid; grid-template-columns: minmax(0, 2fr) auto 8.5rem auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #e6e9ef; }
.qq-pill.qq-on-true::before { content: "On"; }
.qx-container.qq-edit { padding: 16px; border: 2px solid #579bfc; border-radius: 12px; background: #fff; }
/* the editor and slot cards are LIGHT: their headings and the player inside take the board's dark ink, never the console's light one */
.qq-edit .qq-h, .qq-card .qq-h, .qq-slot .qq-h, .qq-slot .qq-title, .qx-container.qq-preview, .qq-preview .qx-quest__question, .qq-preview .qx-quest__title { color: #323338; }
.qx-state-input.qq-json { width: 100%; min-height: 16rem; padding: 10px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; box-sizing: border-box; }
.qx-container.qq-ver { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qq-pub-true { border-color: #0d6b4d; }
/* the editor's parts, named so the checks (and a reader) can find them */
.qq-d-diff, .qq-d-age, .qq-d-secs { min-width: 0; }
.qx-container.qq-formcard { border-color: #579bfc; }
.qx-button.qq-formsave, .qx-button.qq-jsonsave { align-self: flex-start; }
.qx-button.qq-publish { font-weight: 600; }
.qx-button.qq-edit-from { border-style: dashed; }
.qq-livepill { justify-self: start; }
.qx-repeater.qq-prev { min-width: 0; }
.qq-f-type, .qq-f-status, .qq-f-site, .qq-n-type, .qq-n-mode, .qq-c-site, .qq-mode, .qq-prio, .qq-addprio, .qq-addtask { min-width: 0; }
.qx-button.qq-psave { font-weight: 600; }
.qx-button.qq-premove { border-color: #a9142c; color: #a9142c; }
.qx-container.qq-tcell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qx-container.qq-newcard { border-style: dashed; }
.qx-button.qq-open, .qx-button.qq-preview-v, .qx-button.qq-from { white-space: nowrap; }
@media (max-width: 46rem) { .qx-container.qq-ver { grid-template-columns: minmax(0, 1fr) auto; } }
.qq-pill.qq-on-false::before { content: "Off"; }
@media (max-width: 46rem) {
  .qx-container.qq-row { grid-template-columns: minmax(0, 1fr) auto; }
  .qq-row .qq-meta, .qq-row .qq-mono { grid-column: 1 / -1; }
  .qx-container.qq-place { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ── CREDENTIALS (admin /credentials): the list, one credential's actions, add, OAuth tokens ── */
.qx-container.cr, .qx-container.cr-sec, .qx-container.cr-card { align-items: stretch; text-align: left; min-width: 0; }
.qx-container.cr { display: flex; flex-direction: column; gap: 28px; }
.qx-container.cr-sec { display: flex; flex-direction: column; gap: 10px; }
.cr-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.cr-sub { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.cr-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.cr-err:empty { display: none; }
.qx-repeater.cr-rows { min-width: 0; }
.qx-container.cr-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.cr-key { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #323338; overflow-wrap: anywhere; }
.cr-meta { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.cr-pill { margin: 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; }
/* a boolean prints as nothing in a template, so the pill says it from its class */
.cr-on-true { background: #edf1ee; color: #0d6b4d; }
.cr-on-true::before { content: "In use"; }
.cr-on-false { background: #f3f4f6; color: #676879; }
.cr-on-false::before { content: "Off"; }
.qx-button.cr-btn { min-height: 44px; padding: 6px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 13px; cursor: pointer; }
.qx-button.cr-btn:hover, .qx-button.cr-btn:focus-visible { border-color: #579bfc; }
.qx-button.cr-danger { border-color: #a9142c; color: #a9142c; }
.qx-container.cr-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.cr-card-h { margin: 0; font-size: 16px; font-weight: 600; color: #323338; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.qx-container.cr-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr-masked { margin: 0; padding: 8px 10px; border-radius: 6px; background: #f3f4f6; color: #323338; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.cr-masked:empty { display: none; }
.cr-plain { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fdf3dc; color: #323338; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.cr-plain:empty { display: none; }
.cr-note { margin: 0; font-size: 12px; color: #ae4e02; }
.qx-container.cr-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 10px; align-items: end; }
.cr-form .qx-text-input, .cr-card .qx-text-input { display: flex; flex-direction: column; gap: 4px; }
.cr-form .qx-text-input__label, .cr-card .qx-text-input__label { font-size: 12px; font-weight: 600; color: #676879; }
.cr-form .qx-text-input__field, .cr-card .qx-text-input__field { min-height: 44px; padding: 0 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 14px; box-sizing: border-box; width: 100%; }
.qx-container.cr-form-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.qx-container.cr-tok { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.cr-tok-err { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #a9142c; overflow-wrap: anywhere; }
.cr-tok-err:empty { display: none; }
/* the add / edit dialog (the site's .qx-dialog styles the panel; this sizes it and lays out its form) */
.qx-dialog.cr-dlg .qx-dialog__panel { width: min(40rem, 100%); }
.cr-dlg .qx-container.cr-form-card { border: 0; padding: 0; }
.cr-dlg .cr-h { color: #323338; }   /* the page's ink is for its dark ground; the dialog is white */
.qx-button.cr-primary { background: var(--qxp-hi); border-color: var(--qxp-hi); color: #12121a; font-weight: 600; }   /* the site's highlight with dark ink: ~7:1, where white was ~2.6:1 */
.qx-button.cr-primary:hover, .qx-button.cr-primary:focus-visible { filter: brightness(.9); }
.qx-repeater.cr-errs { min-width: 0; }
.cr-err-d { margin: 0; padding: 0 12px; color: #a9142c; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.cr-err-d:empty { display: none; }
@media (max-width: 46rem) {
  .qx-container.cr-row, .qx-container.cr-tok { grid-template-columns: minmax(0, 1fr) auto; }
  .cr-row .cr-meta, .cr-tok .cr-meta { grid-column: 1 / -1; }
}

/* ── SITES OVERVIEW (admin /overview): one row per shop, one column per affiliate network, totals at the foot ── */
.qx-container.ov { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.ov-sub { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.ov-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.ov-err:empty { display: none; }
.qx-repeater.ov-rows { min-width: 0; }
.qx-container.ov-table { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.ov-row, .qx-container.ov-head, .qx-container.ov-foot { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.ov-head { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.qx-container.ov-foot { border: 2px solid #323338; background: #f3f4f6; font-weight: 700; }
.ov-site, .ov-h-site { flex: 1 1 12rem; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.ov-h-site, .ov-h-net { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.qx-repeater.ov-cells, .qx-repeater.ov-h-nets { display: flex; flex-direction: row; flex: 3 1 10rem; gap: 12px; min-width: 0; min-height: 0; align-self: center; }
.qx-repeater.ov-cells > *, .qx-repeater.ov-h-nets > * { flex: 1 1 14rem; min-width: 0; margin: 0; }
.qx-container.ov-cell, .qx-container.ov-h-subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.qx-container.ov-h-netc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-h-sub { margin: 0; font-size: 11px; font-weight: 600; color: var(--qxp-muted); text-transform: none; letter-spacing: 0; }
.ov-nn, .ov-off, .ov-off-n { display: none; }
.ov-st-off { opacity: .55; }
.ov-st-off .ov-n { display: none; }
.qx-container.ov-st-off { grid-template-columns: minmax(0, 1fr); }
.ov-st-off .ov-off { display: block; margin: 0; font-size: 13px; font-weight: 600; color: #676879; }
.ov-st-off .ov-off-n { display: block; margin: 0; font-size: 11px; color: #676879; }
.ov-st-off .ov-off-n.ov-behind-0 { display: none; }
.qx-container.ov-defs { display: flex; flex-direction: column; gap: 8px; }
.qx-container.ov-def { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 3px solid #c4c4c4; }
.ov-def-h { font-size: 12px; font-weight: 700; color: var(--qxp-ink); }
.ov-def-t { margin: 0; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-button.ov-defbtn { align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 13px; cursor: pointer; }
.ov-n { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; }
.ov-noimg-0 { color: #676879; }   /* nothing left to find: quiet; a non-zero count is the work still to do */
.ov-h-net { margin: 0; }
.ov-foot .ov-site, .ov-foot .ov-n { color: #323338; font-weight: 700; }
.ov-live { color: #0d6b4d; }
@media (max-width: 46rem) {
  .qx-container.ov-head { display: none; }
  .ov-site { flex: 0 0 auto; }
  .qx-container.ov-row, .qx-container.ov-foot { flex-direction: column; align-items: stretch; }
  .qx-repeater.ov-cells { flex: 0 0 auto; flex-direction: column; align-self: stretch; }
  .qx-container.ov-cell { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2px; }
  .ov-nn { display: block; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
  .ov-st-off .ov-nn { display: block; }
  .ov-n::before { display: block; font-size: 10px; font-weight: 400; color: var(--qxp-muted); }
  .ov-n-live::before { content: "Live"; } .ov-n-notlive::before { content: "Not live"; } .ov-n-noimg::before { content: "No image"; } .ov-n-livenoimg::before { content: "Live, no image"; } .qx-container.ov-row, .qx-container.ov-head, .qx-container.ov-foot { gap: 8px; padding: 8px 10px; } }

/* ── DOMAINS (admin /domains): the renewals first, then the registry grid ── */
.qx-container.dm, .qx-container.dm-sec { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; }
.qx-container.dm { gap: 20px; margin-top: 24px; }
.qx-container.dm-sec { gap: 10px; }
.dm-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.dm-sub { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.qx-container.dm-tile-due { border: 2px solid #a9142c; background: #fde2e2; }
.qx-container.dm-tile-unk { border-color: #ae4e02; background: #fdf3dc; }
.dm-tile-n { margin: 0; font-size: 26px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-due .dm-tile-n { color: #a9142c; }
.dm-tile-l { margin: 0; font-size: 12px; color: #676879; font-weight: 600; }
.qx-container.dm-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: end; }
.dm-bar > .qx-select { flex: 1 1 10rem; min-width: 0; max-width: 16rem; }
.qx-container.dm-qwrap { display: flex; flex-direction: column; gap: 4px; flex: 1 1 14rem; min-width: 0; }
.dm-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.dm-qwrap > .qx-state-input.dm-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.qx-toggle.dm-toggle { color: var(--qxp-body); font-size: 13px; }
.qx-toggle.dm-toggle .qx-toggle__control { min-height: 44px; padding: 0 4px; }
/* the filter and form selects (named for the e2e, which opens each by its class) */
.dm-f-sort, .dm-f-status, .dm-f-hosting, .dm-f-action, .dm-f-owner, .dm-f-fstatus, .dm-f-fhost, .dm-f-fact1, .dm-f-fact2 { min-width: 0; }
.qx-container.dm-switches { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
.qx-repeater.dm-rows, .qx-repeater.dm-ren-rows { min-width: 0; }
.qx-container.dm-ren { display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px; align-items: baseline; padding: 8px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; }
.qx-container.dm-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-meta { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-note { margin: 0; font-size: 12px; color: #323338; overflow-wrap: anywhere; }
.dm-note:empty, .dm-meta:empty { display: none; }
.dm-exp { margin: 0; font-size: 14px; font-weight: 600; color: #323338; font-variant-numeric: tabular-nums; }
.dm-exp-unknown { color: #676879; font-weight: 400; }   /* unknown is plain: the tile above carries the warning */
.dm-days { margin: 0; font-size: 12px; color: #676879; }
.dm-dte-none .dm-days { display: none; }
/* the renewal band is the API's word (ExpiryBand), so the threshold lives in one place */
.dm-band-soon { border-color: #ae4e02; background: #fdf3dc; }
.dm-band-lapsed { border: 2px solid #a9142c; background: #fde2e2; }
.dm-band-soon .dm-exp { color: #ae4e02; }
.dm-band-lapsed .dm-exp, .dm-band-lapsed .dm-days { color: #a9142c; }
.dm-pill { margin: 0; align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: #f3f4f6; color: #323338; font-size: 11px; font-weight: 600; }
.dm-pill-a-site::before { content: "site"; } .dm-pill-a-static::before { content: "static page"; } .dm-pill-a-redirect::before { content: "redirect"; }
.dm-pill-a-parking::before { content: "parking"; } .dm-pill-a-none::before { content: "no action"; }
.dm-ar-true::before { content: "auto-renew"; } .dm-ar-false::before { content: "will not auto-renew"; } .dm-ar-none::before { content: "auto-renew ?"; }
.dm-guess { margin: 0; font-size: 12px; font-style: italic; color: #ae4e02; }
.qx-container.dm-guess { display: block; text-align: left; }
.dm-guess::before { content: "Guessed, not told:\00a0"; }
.dm-guess:not(:has(.dm-gi)) { display: none; }
.qx-repeater.dm-gis, .qx-repeater.dm-gis > * { display: inline; text-align: left; }
.dm-gis .qx-text, .dm-gi { margin: 0; font-size: 12px; font-style: italic; color: #ae4e02; font-family: inherit; }
.dm-gis > *:not(:last-child)::after { content: ","; margin-right: .3em; }
.dm-owner { margin: 0; font-size: 13px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-owner-none { color: #676879; font-weight: 400; }   /* not told: muted, never a guess */
/* FREETEK's own domains: a soft blue panel with a blue stripe — not the renewal amber / red, which keep their borders and tints on the row's other cells */
.qx-container.dm-row.dm-own-FREETEK { background: #d2e7f8; border-left: 6px solid #0d6efd; }
.dm-act-true .dm-reactivate, .dm-act-false .dm-deactivate { display: none; }
.qx-container.dm-row.dm-act-false { border-style: dashed; opacity: .6; }
.qx-button.dm-btn { min-height: 44px; padding: 4px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 13px; cursor: pointer; }
.qx-button.dm-btn:hover, .qx-button.dm-btn:focus-visible { border-color: #579bfc; }
.qx-button.dm-primary { background: var(--qxp-hi); border-color: var(--qxp-hi); color: #12121a; font-weight: 600; }
.qx-container.dm-now { display: flex; flex-direction: column; gap: 2px; }
.qx-container.dm-confirms { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
.qx-button.dm-confirm { min-height: 44px; font-size: 12px; padding: 2px 8px; }
.qx-container.dm-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-container.dm-form { display: flex; flex-direction: column; gap: 10px; }
.dm-form .qx-text-input__field { min-height: 44px; padding: 0 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-size: 14px; box-sizing: border-box; width: 100%; }
.qx-dialog.dm-dlg .qx-dialog__panel { width: min(40rem, 100%); }
.dm-dlg .dm-h { color: #323338; }
.qx-repeater.dm-errs { min-width: 0; }
.dm-err-d { margin: 0; color: #a9142c; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 46rem) {
  .qx-container.dm-tiles { grid-template-columns: minmax(0, 1fr); }
  .qx-container.dm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dm-row > .dm-cell:not(:first-child) { grid-column: 1 / -1; }
}

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── EXTRACT (admin /extract): the pipeline, read-only ── */
.qx-container.ex-old { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.ex-old.ex-hot { border-color: #ae4e02; background: #fdf3dc; }
.ex-old-l { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.ex-old-n { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.1; color: #323338; }
.ex-hot .ex-old-n, .ex-hot .ex-old-l { color: #ae4e02; }
.ex-old-n:empty::before { content: "None waiting"; }
.ex-old-s { margin: 0; font-size: 13px; color: #676879; }
.qx-container.ex-part { display: flex; flex-direction: row; align-items: baseline; gap: 12px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.ex-part-n { flex: 0 0 5.5rem; margin: 0; font-size: 20px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.qx-container.ex-part-t { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; min-width: 0; }
.ex-part-h { margin: 0; font-size: 14px; font-weight: 600; color: #323338; }
.ex-part-m { margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.qx-container.ex-str { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.ex-str-h { margin: 0; font-size: 14px; font-weight: 700; color: #323338; }
.ex-str-m { margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.qx-container.ex-str.ex-red { border-color: #a9142c; background: #fde2e2; }
.ex-red .ex-str-h, .ex-red .ex-str-m { color: #a9142c; }
.ex-str-h.ex-bad { color: #a9142c; }
.ex-str-h.ex-good { color: #323338; }
@media (max-width: 46rem) {
  .qx-container.ex-part { flex-direction: column; gap: 2px; }
  .ex-part-n { flex: none; } }

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── EDGE (admin /edge): the engine's queue, read-only ── */
.qx-repeater.eq-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.eq-row, .qx-container.eq-head { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(9, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 6px; min-width: 0; }
.qx-container.eq-eng-row, .qx-container.eq-eng-head { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 6px; min-width: 0; }
.qx-container.eq-head, .qx-container.eq-eng-head { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.eq-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.eq-kind { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #323338; overflow-wrap: anywhere; }
.qx-container.eq-cc { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 0; border: 0; background: transparent; }
.eq-lab { display: none; }
.eq-n { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; }
.eq-fail-0 { color: #323338; }
.eq-n:empty::before { content: "0"; }
.eq-n.eq-na:empty::before { content: "—"; color: #676879; }
.eq-n.eq-fail { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.eq-n.eq-fail-0, .eq-n.eq-fail- { padding: 0; background: transparent; color: #323338; font-weight: 400; }
.eq-alive-false { color: #a9142c; font-weight: 700; }
.eq-alive-true { color: #323338; }
.eq-alive-true .eq-no, .eq-alive-false .eq-yes { display: none; }
.eq-none { margin: 0; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; font-size: 13px; color: #676879; }
.qx-repeater.eq-ev { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.eq-evrow { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; min-width: 0; }
.qx-container.eq-evmeta { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 12px; padding: 0; border: 0; background: transparent; min-width: 0; }
.eq-evm { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.eq-evmsg { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; overflow-wrap: anywhere; }
.eq-chmean { margin: 0; font-size: 13px; color: var(--qxp-muted); line-height: 1.45; }
@media (max-width: 46rem) {
  .qx-container.eq-head, .qx-container.eq-eng-head { display: none; }
  .qx-container.eq-row, .qx-container.eq-eng-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; padding: 12px; margin: 0 0 12px; }
  .qx-container.eq-row > .eq-kind, .qx-container.eq-eng-row > .eq-kind { grid-column: 1 / -1; }
  .eq-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── FISHMAG APPROVALS (admin /fishmag-approvals): the first write that reaches WordPress ── */
.qx-repeater.fa-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.fa-row { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.fa-title { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.fa-key { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.qx-container.fa-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 0; border: 0; background: transparent; min-width: 0; }
.fa-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.fa-st { margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #323338; }
.fa-st-approved { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.fa-st-rejected { border-color: #a9142c; background: #fde2e2; color: #a9142c; }
.fa-stale-false { display: none; }
.fa-stale-true { margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #ae4e02; background: #fdf3dc; font-size: 12px; font-weight: 700; color: #ae4e02; }
.fa-live:empty::before { content: "—"; color: #676879; }
/* Graham 2026-11-26: "easy to click through to the live page to check; often blank with no explanation". A real button when the address is known, the words when it is not — decided by the href itself, so it is the same on the card and on every waiting row */
.qx-container.fa-livebox { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0; border: 0; background: transparent; min-width: 0; }
a.qx-link.fa-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #0d6b4d; border-radius: 8px; background: #0d6b4d; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
.fa-livebox-href:has(a.fa-open[href=""]) a.fa-open, .fa-livebox-href:has(a.fa-open:not([href=""])) .fa-nolive { display: none; }
.fa-nolive { margin: 0; font-size: 13px; color: #ae4e02; }
.qx-container.fa-acterr { margin: 0 0 12px; }
/* wpStatus (qx-objects-api 2026-11-26): the NEWEST version's WordPress status. publish and null say nothing; anything else says plainly the page is not public. */
.fa-wp { display: none; margin: 0; padding: 0 10px; border: 1px solid #ae4e02; border-radius: 999px; background: #fdf3dc; color: #ae4e02; font-size: 0; line-height: 24px; white-space: nowrap; }
.fa-wp::before { font-size: 13px; font-weight: 700; }
.fa-wp-draft, .fa-wp-pending, .fa-wp-private { display: inline-block; }
.fa-wp-draft::before { content: "Draft – not public"; }
.fa-wp-pending::before { content: "Pending review – not public"; }
.fa-wp-private::before { content: "Private – not public"; }
.fa-live { margin: 0; font-size: 13px; color: #323338; overflow-wrap: anywhere; }
.qx-container.fa-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; padding: 0; border: 0; background: transparent; min-width: 0; }
.qx-container.fa-old, .qx-container.fa-new { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; border: 1px solid #e6e9ef; background: #fff; min-width: 0; }
.qx-container.fa-new { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.fa-new:has(.fa-url-new:empty) { border-color: #ae4e02; background: #fdf3dc; }
.fa-arrow { align-self: center; margin: 0; color: #676879; }
.fa-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.fa-url { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #323338; overflow-wrap: anywhere; word-break: break-all; }
.fa-url-new:empty::before { content: "Held — left as it is"; color: #ae4e02; font-family: inherit; font-weight: 600; }
.qx-container.fa-prov-fetched .qx-container.fa-do-amended, .qx-container.fa-prov-pushed .qx-container.fa-do-amended, .qx-container.fa-prov-rollback-pushed .qx-container.fa-do-amended { display: none; }
.qx-container.fa-prov-amended-by-qx .qx-container.fa-do-back { display: none; }
.qx-container.fa-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; margin-top: 4px; }
.qx-container.fa-do-amended, .qx-container.fa-do-back { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.fa-btn { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid #c4c4c4; background: #fff; font-size: 14px; font-weight: 600; color: #323338; cursor: pointer; }
.fa-btn-go { border-color: #0d6b4d; background: #0d6b4d; color: #fff; }
.fa-btn-stop { border-color: #a9142c; color: #a9142c; }
.qx-container.fa-ask { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; min-width: 0; }
.fa-ask-t { margin: 0; font-size: 14px; font-weight: 700; color: #323338; }
.fa-ask-m { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; }
.qx-container.fa-ask-btns { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.qx-container.fa-yes { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.qx-container.fa-ap { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; padding: 0; border: 0; background: transparent; }
.fa-ap:has(.fa-st:empty) { display: none; }
.fa-ap-by::before { content: "by "; }
.fa-ap-at::before { content: "at "; }
.fa-ap-by:empty, .fa-ap-at:empty, .fa-ap-why:empty { display: none; }
.qx-container.fa-runbox { padding: 0; border: 0; background: transparent; }
.qx-container.fa-run { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.fa-run.fa-bad, .qx-container.fa-run.fa-refused, .qx-container.fa-run.fa-failed { border-color: #a9142c; background: #fde2e2; }
.qx-container.fa-run.fa-pushed { border-color: #0d6b4d; background: #d0f0de; }
.fa-run-h { margin: 0; font-size: 14px; font-weight: 700; color: #323338; }
.fa-bad .fa-run-h, .fa-bad .fa-run-m, .fa-refused .fa-run-h, .fa-refused .fa-run-m, .fa-failed .fa-run-h, .fa-failed .fa-run-m { color: #a9142c; }
.fa-run-m { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; overflow-wrap: anywhere; }
.qx-container.fa-res { margin: 0 0 6px; padding: 8px 10px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; color: #a9142c; font-size: 13px; }
.fa-ok-true { display: none; }
.fa-out-pushed { color: #0d6b4d; font-weight: 700; }
.fa-out-refused, .fa-out-failed { color: #a9142c; font-weight: 700; }
.fa-pushwait { align-self: center; margin: 0; font-size: 13px; color: #676879; }
.fa-none { margin: 0; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; font-size: 13px; color: #676879; }
.fa-note { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #676879; }
@media (max-width: 46rem) {
  .qx-container.fa-pair { grid-template-columns: minmax(0, 1fr); }
  .fa-arrow { display: none; }
  .qx-container.fa-row { padding: 12px; margin: 0 0 12px; }
  .fa-btn { flex: 1 1 100%; } }

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── ESTATE 2a (admin /estate/apis): the code side, read-only ── */
.qx-container.ap-tabs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 4px; padding: 0; border: 0; background: transparent; border-bottom: 1px solid #e6e9ef; }
a.qx-link.ap-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: #676879; text-decoration: none; border-bottom: 2px solid transparent; }
a.qx-link.ap-tab.ap-on { color: #0d6efd; font-weight: 700; border-bottom-color: #0d6efd; }
.qx-container.ap-built { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.ap-built-t { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.ap-built-t.ap-sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ap-dirty-true { font-size: 0; }
.ap-dirty-true::before { content: "(uncommitted changes when scanned)"; font-size: 13px; color: #a9142c; font-weight: 600; }
.ap-dirty-false { display: none; }
.qx-container.ap-warn { padding: 10px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; }
.ap-warn-p { margin: 0; font-size: 13px; line-height: 1.45; color: #ae4e02; }
.qx-container.es-row.ap-svc { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 2fr) 5rem minmax(0, 2.4fr); }
.qx-container.es-row.ap-rt { grid-template-columns: 5.5rem minmax(0, 2.6fr) minmax(0, 1.6fr) minmax(0, 3fr); }
.qx-container.es-row.ap-door { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); }
.qx-container.es-row.ap-mod { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.8fr) minmax(0, 4fr); }
.qx-container.es-row.ap-call { grid-template-columns: minmax(0, 2.4fr) 5rem minmax(0, 3fr) minmax(0, 1.4fr) 6rem; }
.qx-container.es-row.ap-un { grid-template-columns: minmax(0, 2fr) 4rem 5rem minmax(0, 2.4fr) minmax(0, 3fr); }
.qx-container.es-row.ap-kv { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
.ap-verb { font-weight: 700; color: #0d6b4d; }
/* ESTATE 3c: the class of a route — the word, not a code (font-size 0 hides the raw value, ::before says it) */
.ap-badge { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 0; line-height: 20px; white-space: nowrap; }
.ap-badge::before { font-size: 12px; font-weight: 700; }
.ap-badge-public { border-color: #a9142c; background: #fde2e2; color: #a9142c; }
.ap-badge-public::before { content: "Public"; }
.ap-badge-service-interface { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.ap-badge-service-interface::before { content: "Service interface"; }
.ap-badge-internal { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.ap-badge-internal::before { content: "Internal"; }
.ap-calln { margin: 0; font-size: 12px; color: #676879; }
.ap-calln::after { content: " outside caller(s)"; }
.ap-why { margin: 0; font-size: 13px; line-height: 1.45; color: inherit; overflow-wrap: anywhere; }
.qx-container.ap-ifn { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; min-width: 0; }
.qx-container.es-row.ap-caller { grid-template-columns: 6rem minmax(0, 2fr) minmax(0, 2.4fr) minmax(0, 3fr) 5rem; }
.es-c.ap-seen:empty::before { content: "not measured"; color: #c4c4c4; }
.es-c.ap-seen::after { content: " call(s) seen"; font-size: 12px; color: #676879; }
.es-c.ap-seen:empty::after { content: ""; }
.qx-container.ap-owned { padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.ap-fw { padding: 10px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; margin: 0 0 8px; }
.qx-container.ap-fw .es-c, .qx-container.ap-fw .ap-why { color: #323338; }
.qx-container.ap-ex:has(.es-c:first-child:empty) { display: none; }
.ap-fw-h { margin: 0; font-size: 14px; font-weight: 700; color: #ae4e02; }
.es-c.ap-sch:empty::before { content: "none"; color: #c4c4c4; }
.ap-contested-true { font-size: 0; }
.ap-contested-true::before { content: "Ownership is contested"; font-size: 12px; font-weight: 700; color: #a9142c; }
.ap-contested-false { display: none; }
.ap-clip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ap-act::before { content: "."; }
.ap-act:empty { display: none; }
.ap-line::before { content: ":"; }
.ap-line:empty { display: none; }
.es-c.ap-flag-true:empty::before { content: "yes"; color: #0d6b4d; }
.es-c.ap-flag-false:empty::before { content: "no"; color: #676879; }
.ap-flag-true { font-size: 0; }
.ap-flag-true::before { content: "yes"; font-size: 13px; }
.ap-flag-false { font-size: 0; }
.ap-flag-false::before { content: "no"; font-size: 13px; color: #676879; }
.es-c.ap-bad { color: #a9142c; font-weight: 600; }
.ap-auth-name { font-weight: 600; }
.ap-open-link { color: #0d6efd; text-decoration: none; overflow-wrap: anywhere; }
.es-c.ap-m:empty::before { content: "any"; color: #c4c4c4; }
.es-c.ap-nosum:empty::before { content: "no summary in the code"; color: #c4c4c4; }
.es-c.ap-none:empty::before { content: "none declared"; color: #c4c4c4; }
@media (max-width: 46rem) {
  .qx-container.es-row.ap-svc, .qx-container.es-row.ap-rt, .qx-container.es-row.ap-door, .qx-container.es-row.ap-caller, .qx-container.es-row.ap-mod, .qx-container.es-row.ap-call, .qx-container.es-row.ap-un, .qx-container.es-row.ap-kv { grid-template-columns: minmax(0, 1fr); } }

/* ── ESTATE 2f (admin /estate/graph): the node diagram, read-only ── */
.qx-container.eg-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 0; border: 0; background: transparent; }
.eg-lab { margin: 0 4px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
a.qx-link.eg-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #e6e9ef; border-radius: 999px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
.qx-container.eg-find { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 0; border: 0; background: transparent; }
.qx-container.eg-find .qx-text-input { flex: 1 1 14rem; min-width: 0; }
.qx-container.eg-chart { padding: 0; border: 1px solid #e6e9ef; border-radius: 8px; overflow: hidden; background: #fff; min-width: 0; }
.qx-container.eg-legend { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; border: 1px dashed #c4c4c4; border-radius: 8px; background: #fff; }
.eg-legend-t { margin: 0; font-size: 12px; color: #676879; }
.eg-fsbtn { align-self: flex-start; }
.qx-container.eg-chart-full { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.qx-dialog.eg-dlg { padding: 0; align-items: stretch; }
.qx-dialog.eg-dlg .qx-dialog__panel { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: none; height: 100vh; max-height: none; border-radius: 0; padding: 0 20px 12px; box-sizing: border-box; overflow-x: hidden; }
.eg-now { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.eg-now:empty { display: none; }
.eg-focus::before { content: "Focused on "; font-weight: 700; }
.qx-container.es-row.eg-node { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) 5rem; }
@media (max-width: 46rem) { .qx-container.es-row.eg-node { grid-template-columns: minmax(0, 1fr); } }

/* ── ESTATE NOTES (admin /estate/notes) ── */
.qx-container.nt-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0; border: 0; background: transparent; }
.nt-chips-l { margin: 0 4px 0 0; font-size: 12px; color: #676879; min-width: 3.5rem; }
.nt-chip, .qx-button.nt-chip { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 999px; background: #fff; color: #323338; font-family: inherit; font-size: 13px; cursor: pointer; }
.nt-chip-on, .qx-button.nt-chip-on { border-color: #0d6efd; background: #e6e9ef; color: #0d6efd; font-weight: 700; }
.qx-container.es-row.nt-row { grid-template-columns: minmax(0, 3fr) 5rem 6rem minmax(0, 2fr) 4rem; }
.qx-container.es-row.nt-find { grid-template-columns: minmax(0, 2fr) 5rem minmax(0, 4fr); }
.qx-container.es-row.nt-hist { grid-template-columns: 4rem minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 4fr); align-items: baseline; }
.qx-container.es-row.nt-kv { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
.nt-st { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.nt-st-DRAFT { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.nt-st-APPROVED { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.nt-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; color: #323338; }
.qx-container.nt-card { padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.qx-container.nt-target { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.nt-unk { margin: 0; font-size: 12px; font-weight: 600; color: #ae4e02; }
.nt-bad { margin: 0; font-size: 13px; font-weight: 600; color: #a9142c; }
.nt-ok { margin: 0; font-size: 12px; color: #0d6b4d; }
.nt-none:empty::before { content: "not recorded"; color: #c4c4c4; }
.qx-container.nt-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.qx-container.nt-ask { padding: 12px 14px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; display: flex; flex-direction: column; gap: 8px; }
.nt-ask-m { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; }
.qx-container.nt-err { padding: 10px 12px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; }
.nt-err-p { margin: 0; font-size: 13px; font-weight: 600; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.nt-form { display: flex; flex-direction: column; gap: 10px; }
.nt-lab { margin: 0; font-size: 12px; color: #676879; }
.qx-state-input.nt-in { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; line-height: 1.45; box-sizing: border-box; }
.qx-state-input.nt-in-body { min-height: 12rem; resize: vertical; }
.nt-go, .qx-button.nt-go { border-color: #0d6efd; color: #0d6efd; font-weight: 700; }
.qx-container.nt-form-f { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; }
.qx-container.es-tile a.es-link { display: inline-flex; align-items: center; min-height: 44px; }
.nt-varied { margin: 0; font-size: 12px; color: #ae4e02; }
@media (max-width: 46rem) {
  .qx-container.es-row.nt-row, .qx-container.es-row.nt-find, .qx-container.es-row.nt-hist, .qx-container.es-row.nt-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── ESTATE DIRECTORY (admin /estate/directory) ── */
.qx-container.es-row.nd-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 6.5rem minmax(0, 1.3fr) minmax(0, 1.8fr) 6.5rem 5.5rem; }
.qx-container.es-row.nd-crow { grid-template-columns: minmax(0, 2fr) minmax(0, 3.4fr) 4rem 6.5rem 5.5rem; }
.qx-container.es-row.nd-lrow { grid-template-columns: minmax(0, 2.4fr) 6.5rem minmax(0, 2fr) minmax(0, 1.4fr); }
.qx-container.es-row.nd-kv { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
.qx-container.es-row.nd-gap { grid-template-columns: minmax(0, 2fr) 8rem 6rem 8rem; }
.qx-container.es-row.nd-cov { grid-template-columns: minmax(0, 2fr) 8rem 7rem 6rem; }
.qx-container.es-row.nd-scan { grid-template-columns: 4rem 3rem minmax(0, 2fr) 5rem repeat(4, 5rem) minmax(0, 1.6fr); }
.nd-badge { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.nd-doc-none { border-color: #a9142c; background: #fde2e2; color: #a9142c; }
.nd-doc-nonstandard { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.nd-doc-standard { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.nd-st-present { border-color: #c4c4c4; background: #fff; color: #676879; }
.nd-st-removed { border-color: #a9142c; background: #a9142c; color: #fff; }
.nd-desc { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; overflow-wrap: anywhere; }
.nd-desc:empty { display: none; }
.nd-nodesc { margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.nd-key { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #676879; overflow-wrap: anywhere; }
.nd-line:not(:empty)::before { content: ":"; }
.nd-line { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; }
.qx-container.nd-fl { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0; padding: 0; border: 0; background: transparent; min-width: 0; }
.qx-container.nd-fl > * { min-width: 0; }
.nd-raw { margin: 0; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #f3f4f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: #323338; }
.nd-raw:empty { display: none; }
.nd-sig { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #323338; overflow-wrap: anywhere; }
.qx-container.nd-filters { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 0; border: 0; background: transparent; }
.qx-container.nd-filters > .qx-container { flex: 1 1 13rem; min-width: 0; }
.qx-container.nd-pick { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; min-width: 0; }
.nd-pick-l { margin: 0; font-size: 12px; color: #676879; }
.qx-container.nd-pager { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; border: 0; background: transparent; }
.nd-pager-t { margin: 0; font-variant-numeric: tabular-nums; }
.qx-container.nd-removed { padding: 10px 12px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; display: flex; flex-direction: column; gap: 4px; }
.nd-removed-h { margin: 0; font-size: 14px; font-weight: 700; color: #a9142c; }
.nd-removed-p { margin: 0; font-size: 13px; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.nd-group { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; }
.nd-group-h { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #323338; }
.nd-group-k { margin: 0; font-size: 11px; color: #676879; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nd-out { margin: 0; font-size: 12px; color: #ae4e02; }
.nd-gapnote { margin: 0; padding: 10px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; font-size: 13px; line-height: 1.45; color: #323338; }
.qx-container.es-bar.nd-crumbs { gap: 2px 8px; }
.qx-container.nd-name { gap: 2px; }
.nd-title { margin: 0; font-size: 18px; font-weight: 700; color: #323338; overflow-wrap: anywhere; }
.qx-container.es-row.nd-kv .es-bar > * { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.nd-total, .nd-removed-at, .nd-desc-one { font-variant-numeric: tabular-nums; }
.nd-desc-one { font-size: 14px; }
.nd-line.nd-line-end::before { content: none; }
.qx-button.nd-prev, .qx-button.nd-next { min-height: 44px; }
.qx-repeater.nd-scanline, .qx-repeater.nd-gaps-big, .qx-repeater.nd-gaps-api { display: flex; flex-direction: column; min-width: 0; }
a.qx-link.nd-listthem { display: inline-flex; align-items: center; min-height: 44px; }
.qx-repeater.nd-crumbs-r { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
@media (max-width: 46rem) {
  .qx-container.es-row.nd-row, .qx-container.es-row.nd-crow, .qx-container.es-row.nd-lrow, .qx-container.es-row.nd-kv, .qx-container.es-row.nd-gap, .qx-container.es-row.nd-cov, .qx-container.es-row.nd-scan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qx-container.es-row.nd-row > :nth-child(-n+2), .qx-container.es-row.nd-crow > :nth-child(-n+2), .qx-container.es-row.nd-lrow > :first-child, .qx-container.es-row.nd-gap > :first-child { grid-column: 1 / -1; } }

/* ── ESTATE (admin /estate): the database snapshot, read-only ── */
.qx-container.es-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.qx-container.es-bar > * { flex: 0 0 auto; width: auto; }
.es-crumb::after { content: "/"; margin-left: 8px; color: #c4c4c4; }
.qx-container.es-bar > :last-child.es-crumb::after { content: ""; }
.es-crumb { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.es-crumb a, .es-link { color: #0d6efd; text-decoration: none; }
a.qx-link.es-crumb { display: inline-flex; align-items: center; min-height: 44px; }
.es-sync { margin: 0; font-size: 13px; color: #676879; }
.es-sync:empty::before { content: "never synced"; color: #a9142c; font-weight: 600; }
.es-st-ok { color: #0d6b4d; font-weight: 600; }
.es-st-failed, .es-st-running { color: #a9142c; font-weight: 600; }
.qx-container.es-alert { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; min-width: 0; }
.es-alert-h { margin: 0; font-size: 14px; font-weight: 700; color: #a9142c; }
.es-alert-p { margin: 0; font-size: 13px; line-height: 1.45; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.es-find { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 0; border: 0; background: transparent; }
.qx-container.es-find .qx-text-input { flex: 1 1 14rem; min-width: 0; }
.qx-repeater.es-list, .qx-container.es-list { display: flex; flex-direction: column; gap: 0; min-width: 0; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; overflow: hidden; }
.qx-container.es-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid #e6e9ef; min-width: 0; }
.qx-container.es-row.es-db { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) minmax(0, 2fr); }
.qx-container.es-row.es-hit { grid-template-columns: minmax(0, 1fr); }
.qx-container.es-row.es-col { grid-template-columns: 2.5rem minmax(0, 1.6fr) minmax(0, 1.2fr) 4.5rem 11rem minmax(0, 1.2fr) minmax(0, 1.6fr); }
.qx-container.es-row.es-con { grid-template-columns: minmax(0, 1.4fr) 6rem minmax(0, 4fr); }
.qx-container.es-row.es-idx { grid-template-columns: minmax(0, 1.4fr) minmax(0, 4fr); }
.qx-container.es-row.es-hd { background: #f3f4f6; }
.es-row:last-child { border-bottom: 0; }
.es-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.es-c.es-n { text-align: right; }
.es-row .es-c.es-m { color: #676879; }
.es-c.es-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.es-hd .es-c { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.es-lab { display: none; margin: 0; font-size: 11px; color: #676879; }
.es-c:empty::before { content: "—"; color: #c4c4c4; }
.es-c.es-est:empty::before { content: "unknown"; color: #ae4e02; }
.es-c.es-pk { font-weight: 700; color: #ae4e02; }
.es-c.es-pk-false { display: none; }
.es-c.es-pk-true { font-size: 0; }
.es-c.es-pk-true::before { content: "PK"; font-size: 13px; }
.es-c.es-nl-true { font-size: 0; }
.es-c.es-nl-true::before { content: "null"; font-size: 13px; }
.es-c.es-nl-false { font-size: 0; }
.es-c.es-nl-false::before { content: "not null"; font-size: 13px; }
.qx-container.es-cell { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; min-width: 0; }
.es-hit-link { display: block; color: inherit; text-decoration: none; }
.es-fk-t { color: #0d6efd; }
.es-fk:empty { display: none; }
.es-fk-s::before { content: "→ "; }
.es-fk-s::after { content: "."; }
.es-fk-c::before { content: "."; }
.qx-container.es-link-row { padding: 0; border: 0; background: transparent; display: block; }
.qx-container.es-strip { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 0; border: 0; background: transparent; }
.qx-container.es-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 11rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.es-tile-n { margin: 0; font-size: 20px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.es-tile-n:empty::before { content: "never"; color: #ae4e02; }
.es-tile-n.es-est:empty::before { content: "unknown"; }
.es-tile-l { margin: 0; font-size: 12px; color: #676879; }
@media (max-width: 46rem) {
  .qx-container.es-row, .qx-container.es-row.es-db, .qx-container.es-row.es-col, .qx-container.es-row.es-con, .qx-container.es-row.es-idx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qx-container.es-row.es-hd { display: none; }
  .es-lab { display: block; } }

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── ESTATE 2a (admin /estate/apis): the code side, read-only ── */
.qx-container.ap-tabs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 4px; padding: 0; border: 0; background: transparent; border-bottom: 1px solid #e6e9ef; }
a.qx-link.ap-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: #676879; text-decoration: none; border-bottom: 2px solid transparent; }
a.qx-link.ap-tab.ap-on { color: #0d6efd; font-weight: 700; border-bottom-color: #0d6efd; }
.qx-container.ap-built { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.ap-built-t { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.ap-built-t.ap-sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ap-dirty-true { font-size: 0; }
.ap-dirty-true::before { content: "(uncommitted changes when scanned)"; font-size: 13px; color: #a9142c; font-weight: 600; }
.ap-dirty-false { display: none; }
.qx-container.ap-warn { padding: 10px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; }
.ap-warn-p { margin: 0; font-size: 13px; line-height: 1.45; color: #ae4e02; }
.qx-container.es-row.ap-svc { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 2fr) 5rem minmax(0, 2.4fr); }
.qx-container.es-row.ap-rt { grid-template-columns: 5.5rem minmax(0, 2.6fr) minmax(0, 1.6fr) minmax(0, 3fr); }
.qx-container.es-row.ap-door { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); }
.qx-container.es-row.ap-mod { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.8fr) minmax(0, 4fr); }
.qx-container.es-row.ap-call { grid-template-columns: minmax(0, 2.4fr) 5rem minmax(0, 3fr) minmax(0, 1.4fr) 6rem; }
.qx-container.es-row.ap-un { grid-template-columns: minmax(0, 2fr) 4rem 5rem minmax(0, 2.4fr) minmax(0, 3fr); }
.qx-container.es-row.ap-kv { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
.ap-verb { font-weight: 700; color: #0d6b4d; }
/* ESTATE 3c: the class of a route — the word, not a code (font-size 0 hides the raw value, ::before says it) */
.ap-badge { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 0; line-height: 20px; white-space: nowrap; }
.ap-badge::before { font-size: 12px; font-weight: 700; }
.ap-badge-public { border-color: #a9142c; background: #fde2e2; color: #a9142c; }
.ap-badge-public::before { content: "Public"; }
.ap-badge-service-interface { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.ap-badge-service-interface::before { content: "Service interface"; }
.ap-badge-internal { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.ap-badge-internal::before { content: "Internal"; }
.ap-calln { margin: 0; font-size: 12px; color: #676879; }
.ap-calln::after { content: " outside caller(s)"; }
.ap-why { margin: 0; font-size: 13px; line-height: 1.45; color: inherit; overflow-wrap: anywhere; }
.qx-container.ap-ifn { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; min-width: 0; }
.qx-container.es-row.ap-caller { grid-template-columns: 6rem minmax(0, 2fr) minmax(0, 2.4fr) minmax(0, 3fr) 5rem; }
.es-c.ap-seen:empty::before { content: "not measured"; color: #c4c4c4; }
.es-c.ap-seen::after { content: " call(s) seen"; font-size: 12px; color: #676879; }
.es-c.ap-seen:empty::after { content: ""; }
.qx-container.ap-owned { padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.ap-fw { padding: 10px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; margin: 0 0 8px; }
.qx-container.ap-fw .es-c, .qx-container.ap-fw .ap-why { color: #323338; }
.qx-container.ap-ex:has(.es-c:first-child:empty) { display: none; }
.ap-fw-h { margin: 0; font-size: 14px; font-weight: 700; color: #ae4e02; }
.es-c.ap-sch:empty::before { content: "none"; color: #c4c4c4; }
.ap-contested-true { font-size: 0; }
.ap-contested-true::before { content: "Ownership is contested"; font-size: 12px; font-weight: 700; color: #a9142c; }
.ap-contested-false { display: none; }
.ap-clip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ap-act::before { content: "."; }
.ap-act:empty { display: none; }
.ap-line::before { content: ":"; }
.ap-line:empty { display: none; }
.es-c.ap-flag-true:empty::before { content: "yes"; color: #0d6b4d; }
.es-c.ap-flag-false:empty::before { content: "no"; color: #676879; }
.ap-flag-true { font-size: 0; }
.ap-flag-true::before { content: "yes"; font-size: 13px; }
.ap-flag-false { font-size: 0; }
.ap-flag-false::before { content: "no"; font-size: 13px; color: #676879; }
.es-c.ap-bad { color: #a9142c; font-weight: 600; }
.ap-auth-name { font-weight: 600; }
.ap-open-link { color: #0d6efd; text-decoration: none; overflow-wrap: anywhere; }
.es-c.ap-m:empty::before { content: "any"; color: #c4c4c4; }
.es-c.ap-nosum:empty::before { content: "no summary in the code"; color: #c4c4c4; }
.es-c.ap-none:empty::before { content: "none declared"; color: #c4c4c4; }
@media (max-width: 46rem) {
  .qx-container.es-row.ap-svc, .qx-container.es-row.ap-rt, .qx-container.es-row.ap-door, .qx-container.es-row.ap-caller, .qx-container.es-row.ap-mod, .qx-container.es-row.ap-call, .qx-container.es-row.ap-un, .qx-container.es-row.ap-kv { grid-template-columns: minmax(0, 1fr); } }

/* ── ESTATE 2f (admin /estate/graph): the node diagram, read-only ── */
.qx-container.eg-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 0; border: 0; background: transparent; }
.eg-lab { margin: 0 4px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
a.qx-link.eg-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #e6e9ef; border-radius: 999px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
.qx-container.eg-find { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 0; border: 0; background: transparent; }
.qx-container.eg-find .qx-text-input { flex: 1 1 14rem; min-width: 0; }
.qx-container.eg-chart { padding: 0; border: 1px solid #e6e9ef; border-radius: 8px; overflow: hidden; background: #fff; min-width: 0; }
.qx-container.eg-legend { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; border: 1px dashed #c4c4c4; border-radius: 8px; background: #fff; }
.eg-legend-t { margin: 0; font-size: 12px; color: #676879; }
.eg-fsbtn { align-self: flex-start; }
.qx-container.eg-chart-full { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.qx-dialog.eg-dlg { padding: 0; align-items: stretch; }
.qx-dialog.eg-dlg .qx-dialog__panel { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: none; height: 100vh; max-height: none; border-radius: 0; padding: 0 20px 12px; box-sizing: border-box; overflow-x: hidden; }
.eg-now { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.eg-now:empty { display: none; }
.eg-focus::before { content: "Focused on "; font-weight: 700; }
.qx-container.es-row.eg-node { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) 5rem; }
@media (max-width: 46rem) { .qx-container.es-row.eg-node { grid-template-columns: minmax(0, 1fr); } }

/* ── ESTATE NOTES (admin /estate/notes) ── */
.qx-container.nt-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0; border: 0; background: transparent; }
.nt-chips-l { margin: 0 4px 0 0; font-size: 12px; color: #676879; min-width: 3.5rem; }
.nt-chip, .qx-button.nt-chip { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 999px; background: #fff; color: #323338; font-family: inherit; font-size: 13px; cursor: pointer; }
.nt-chip-on, .qx-button.nt-chip-on { border-color: #0d6efd; background: #e6e9ef; color: #0d6efd; font-weight: 700; }
.qx-container.es-row.nt-row { grid-template-columns: minmax(0, 3fr) 5rem 6rem minmax(0, 2fr) 4rem; }
.qx-container.es-row.nt-find { grid-template-columns: minmax(0, 2fr) 5rem minmax(0, 4fr); }
.qx-container.es-row.nt-hist { grid-template-columns: 4rem minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 4fr); align-items: baseline; }
.qx-container.es-row.nt-kv { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
.nt-st { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.nt-st-DRAFT { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.nt-st-APPROVED { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.nt-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; color: #323338; }
.qx-container.nt-card { padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.qx-container.nt-target { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.nt-unk { margin: 0; font-size: 12px; font-weight: 600; color: #ae4e02; }
.nt-bad { margin: 0; font-size: 13px; font-weight: 600; color: #a9142c; }
.nt-ok { margin: 0; font-size: 12px; color: #0d6b4d; }
.nt-none:empty::before { content: "not recorded"; color: #c4c4c4; }
.qx-container.nt-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.qx-container.nt-ask { padding: 12px 14px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; display: flex; flex-direction: column; gap: 8px; }
.nt-ask-m { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; }
.qx-container.nt-err { padding: 10px 12px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; }
.nt-err-p { margin: 0; font-size: 13px; font-weight: 600; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.nt-form { display: flex; flex-direction: column; gap: 10px; }
.nt-lab { margin: 0; font-size: 12px; color: #676879; }
.qx-state-input.nt-in { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; line-height: 1.45; box-sizing: border-box; }
.qx-state-input.nt-in-body { min-height: 12rem; resize: vertical; }
.nt-go, .qx-button.nt-go { border-color: #0d6efd; color: #0d6efd; font-weight: 700; }
.qx-container.nt-form-f { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; }
.qx-container.es-tile a.es-link { display: inline-flex; align-items: center; min-height: 44px; }
.nt-varied { margin: 0; font-size: 12px; color: #ae4e02; }
@media (max-width: 46rem) {
  .qx-container.es-row.nt-row, .qx-container.es-row.nt-find, .qx-container.es-row.nt-hist, .qx-container.es-row.nt-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── ESTATE DIRECTORY (admin /estate/directory) ── */
.qx-container.es-row.nd-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 6.5rem minmax(0, 1.3fr) minmax(0, 1.8fr) 6.5rem 5.5rem; }
.qx-container.es-row.nd-crow { grid-template-columns: minmax(0, 2fr) minmax(0, 3.4fr) 4rem 6.5rem 5.5rem; }
.qx-container.es-row.nd-lrow { grid-template-columns: minmax(0, 2.4fr) 6.5rem minmax(0, 2fr) minmax(0, 1.4fr); }
.qx-container.es-row.nd-kv { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
.qx-container.es-row.nd-gap { grid-template-columns: minmax(0, 2fr) 8rem 6rem 8rem; }
.qx-container.es-row.nd-cov { grid-template-columns: minmax(0, 2fr) 8rem 7rem 6rem; }
.qx-container.es-row.nd-scan { grid-template-columns: 4rem 3rem minmax(0, 2fr) 5rem repeat(4, 5rem) minmax(0, 1.6fr); }
.nd-badge { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.nd-doc-none { border-color: #a9142c; background: #fde2e2; color: #a9142c; }
.nd-doc-nonstandard { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.nd-doc-standard { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.nd-st-present { border-color: #c4c4c4; background: #fff; color: #676879; }
.nd-st-removed { border-color: #a9142c; background: #a9142c; color: #fff; }
.nd-desc { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; overflow-wrap: anywhere; }
.nd-desc:empty { display: none; }
.nd-nodesc { margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.nd-key { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #676879; overflow-wrap: anywhere; }
.nd-line:not(:empty)::before { content: ":"; }
.nd-line { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; }
.qx-container.nd-fl { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0; padding: 0; border: 0; background: transparent; min-width: 0; }
.qx-container.nd-fl > * { min-width: 0; }
.nd-raw { margin: 0; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #f3f4f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: #323338; }
.nd-raw:empty { display: none; }
.nd-sig { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #323338; overflow-wrap: anywhere; }
.qx-container.nd-filters { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 0; border: 0; background: transparent; }
.qx-container.nd-filters > .qx-container { flex: 1 1 13rem; min-width: 0; }
.qx-container.nd-pick { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; min-width: 0; }
.nd-pick-l { margin: 0; font-size: 12px; color: #676879; }
.qx-container.nd-pager { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; border: 0; background: transparent; }
.nd-pager-t { margin: 0; font-variant-numeric: tabular-nums; }
.qx-container.nd-removed { padding: 10px 12px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; display: flex; flex-direction: column; gap: 4px; }
.nd-removed-h { margin: 0; font-size: 14px; font-weight: 700; color: #a9142c; }
.nd-removed-p { margin: 0; font-size: 13px; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.nd-group { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; }
.nd-group-h { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #323338; }
.nd-group-k { margin: 0; font-size: 11px; color: #676879; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nd-out { margin: 0; font-size: 12px; color: #ae4e02; }
.nd-gapnote { margin: 0; padding: 10px 12px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; font-size: 13px; line-height: 1.45; color: #323338; }
.qx-container.es-bar.nd-crumbs { gap: 2px 8px; }
.qx-container.nd-name { gap: 2px; }
.nd-title { margin: 0; font-size: 18px; font-weight: 700; color: #323338; overflow-wrap: anywhere; }
.qx-container.es-row.nd-kv .es-bar > * { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.nd-total, .nd-removed-at, .nd-desc-one { font-variant-numeric: tabular-nums; }
.nd-desc-one { font-size: 14px; }
.nd-line.nd-line-end::before { content: none; }
.qx-button.nd-prev, .qx-button.nd-next { min-height: 44px; }
.qx-repeater.nd-scanline, .qx-repeater.nd-gaps-big, .qx-repeater.nd-gaps-api { display: flex; flex-direction: column; min-width: 0; }
a.qx-link.nd-listthem { display: inline-flex; align-items: center; min-height: 44px; }
.qx-repeater.nd-crumbs-r { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
@media (max-width: 46rem) {
  .qx-container.es-row.nd-row, .qx-container.es-row.nd-crow, .qx-container.es-row.nd-lrow, .qx-container.es-row.nd-kv, .qx-container.es-row.nd-gap, .qx-container.es-row.nd-cov, .qx-container.es-row.nd-scan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qx-container.es-row.nd-row > :nth-child(-n+2), .qx-container.es-row.nd-crow > :nth-child(-n+2), .qx-container.es-row.nd-lrow > :first-child, .qx-container.es-row.nd-gap > :first-child { grid-column: 1 / -1; } }

/* ── ESTATE (admin /estate): the database snapshot, read-only ── */
.qx-container.es-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.qx-container.es-bar > * { flex: 0 0 auto; width: auto; }
.es-crumb::after { content: "/"; margin-left: 8px; color: #c4c4c4; }
.qx-container.es-bar > :last-child.es-crumb::after { content: ""; }
.es-crumb { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.es-crumb a, .es-link { color: #0d6efd; text-decoration: none; }
a.qx-link.es-crumb { display: inline-flex; align-items: center; min-height: 44px; }
.es-sync { margin: 0; font-size: 13px; color: #676879; }
.es-sync:empty::before { content: "never synced"; color: #a9142c; font-weight: 600; }
.es-st-ok { color: #0d6b4d; font-weight: 600; }
.es-st-failed, .es-st-running { color: #a9142c; font-weight: 600; }
.qx-container.es-alert { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; min-width: 0; }
.es-alert-h { margin: 0; font-size: 14px; font-weight: 700; color: #a9142c; }
.es-alert-p { margin: 0; font-size: 13px; line-height: 1.45; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.es-find { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 0; border: 0; background: transparent; }
.qx-container.es-find .qx-text-input { flex: 1 1 14rem; min-width: 0; }
.qx-repeater.es-list, .qx-container.es-list { display: flex; flex-direction: column; gap: 0; min-width: 0; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; overflow: hidden; }
.qx-container.es-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid #e6e9ef; min-width: 0; }
.qx-container.es-row.es-db { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) minmax(0, 2fr); }
.qx-container.es-row.es-hit { grid-template-columns: minmax(0, 1fr); }
.qx-container.es-row.es-col { grid-template-columns: 2.5rem minmax(0, 1.6fr) minmax(0, 1.2fr) 4.5rem 11rem minmax(0, 1.2fr) minmax(0, 1.6fr); }
.qx-container.es-row.es-con { grid-template-columns: minmax(0, 1.4fr) 6rem minmax(0, 4fr); }
.qx-container.es-row.es-idx { grid-template-columns: minmax(0, 1.4fr) minmax(0, 4fr); }
.qx-container.es-row.es-hd { background: #f3f4f6; }
.es-row:last-child { border-bottom: 0; }
.es-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.es-c.es-n { text-align: right; }
.es-row .es-c.es-m { color: #676879; }
.es-c.es-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.es-hd .es-c { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.es-lab { display: none; margin: 0; font-size: 11px; color: #676879; }
.es-c:empty::before { content: "—"; color: #c4c4c4; }
.es-c.es-est:empty::before { content: "unknown"; color: #ae4e02; }
.es-c.es-pk { font-weight: 700; color: #ae4e02; }
.es-c.es-pk-false { display: none; }
.es-c.es-pk-true { font-size: 0; }
.es-c.es-pk-true::before { content: "PK"; font-size: 13px; }
.es-c.es-nl-true { font-size: 0; }
.es-c.es-nl-true::before { content: "null"; font-size: 13px; }
.es-c.es-nl-false { font-size: 0; }
.es-c.es-nl-false::before { content: "not null"; font-size: 13px; }
.qx-container.es-cell { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; min-width: 0; }
.es-hit-link { display: block; color: inherit; text-decoration: none; }
.es-fk-t { color: #0d6efd; }
.es-fk:empty { display: none; }
.es-fk-s::before { content: "→ "; }
.es-fk-s::after { content: "."; }
.es-fk-c::before { content: "."; }
.qx-container.es-link-row { padding: 0; border: 0; background: transparent; display: block; }
.qx-container.es-strip { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 0; border: 0; background: transparent; }
.qx-container.es-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 11rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.es-tile-n { margin: 0; font-size: 20px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.es-tile-n:empty::before { content: "never"; color: #ae4e02; }
.es-tile-n.es-est:empty::before { content: "unknown"; }
.es-tile-l { margin: 0; font-size: 12px; color: #676879; }
@media (max-width: 46rem) {
  .qx-container.es-row, .qx-container.es-row.es-db, .qx-container.es-row.es-col, .qx-container.es-row.es-con, .qx-container.es-row.es-idx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qx-container.es-row.es-hd { display: none; }
  .es-lab { display: block; } }

/* ── POSTS EDITOR, step 2: items ── */
.qx-container.pi-list { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; }
.qx-container.pi-row { display: grid; grid-template-columns: 2.5rem minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 3fr); gap: 4px 12px; align-items: start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; cursor: grab; }
.pi-grip { margin: 0; font-size: 18px; color: #676879; user-select: none; }
.pi-name { margin: 0; font-size: 14px; font-weight: 700; color: #323338; overflow-wrap: anywhere; }
.pi-var { margin: 0; font-size: 13px; color: #323338; }
.pi-var:empty::before { content: "Any variant"; color: #676879; }
.pi-note { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; overflow-wrap: anywhere; }
.pi-note:empty::before { content: "No note yet"; color: #ae4e02; }
.qx-container.pi-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.qx-container.pi-hit { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) 8rem; gap: 4px 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #e6e9ef; }
.pi-hint { margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.pi-warn { margin: 0; font-size: 13px; font-weight: 600; color: #ae4e02; }
.qx-container.pi-prev { padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.pi-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.pi-price { margin: 0; font-size: 12px; color: #676879; }
.pi-pick { margin: 0; font-size: 13px; font-weight: 700; color: #0d6b4d; }
@media (max-width: 46rem) {
  .qx-container.pi-row { grid-template-columns: 2rem minmax(0, 1fr); } .qx-container.pi-hit { grid-template-columns: minmax(0, 1fr); } }

/* ── POSTS EDITOR (admin /posts) ── */
.qx-container.po-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0; border: 0; background: transparent; }
.po-chips-l { margin: 0 4px 0 0; font-size: 12px; color: #676879; min-width: 3.5rem; }
.po-chip, .qx-button.po-chip { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 999px; background: #fff; color: #323338; font-family: inherit; font-size: 13px; cursor: pointer; }
.po-chip-on, .qx-button.po-chip-on { border-color: #0d6efd; background: #e6e9ef; color: #0d6efd; font-weight: 700; }
.qx-container.es-row.po-row { grid-template-columns: minmax(0, 3fr) 7rem 6.5rem 5rem minmax(0, 2fr); }
.qx-container.es-row.po-cred { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 3fr) 9rem; align-items: baseline; }
.po-st { display: inline-block; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; color: #323338; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.po-st-DRAFT { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.po-st-REVIEW { border-color: #0d6efd; background: #e6e9ef; color: #0d6efd; }
.po-st-PUBLISHED { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.qx-container.po-card { padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.qx-container.po-types { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; background: transparent; }
.qx-container.po-type { flex: 1 1 11rem; min-width: 0; padding: 10px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.qx-container.po-type-on { border-color: #0d6b4d; background: #d0f0de; }
.po-type-d { margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.po-h { margin: 0; font-size: 15px; font-weight: 700; color: #323338; }
.po-note { margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.po-ok { margin: 0; font-size: 13px; color: #0d6b4d; }
.po-bad { margin: 0; font-size: 13px; font-weight: 600; color: #a9142c; overflow-wrap: anywhere; }
.po-warn { margin: 0; font-size: 13px; font-weight: 600; color: #ae4e02; }
.qx-container.po-err { padding: 10px 12px; border: 1px solid #a9142c; border-radius: 8px; background: #fde2e2; }
.po-err-p { margin: 0; font-size: 13px; font-weight: 600; color: #a9142c; overflow-wrap: anywhere; }
.qx-container.po-ask { padding: 12px 14px; border: 1px solid #ae4e02; border-radius: 8px; background: #fdf3dc; display: flex; flex-direction: column; gap: 8px; }
.po-ask-m { margin: 0; font-size: 13px; line-height: 1.45; color: #323338; }
.qx-container.po-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.po-go, .qx-button.po-go { border-color: #0d6efd; color: #0d6efd; font-weight: 700; }
.qx-container.po-field { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; }
.po-lab { margin: 0; font-size: 12px; color: #676879; }
.qx-state-input.po-in { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-family: inherit; font-size: 14px; line-height: 1.45; box-sizing: border-box; }
.qx-state-input.po-in-area { min-height: 7rem; resize: vertical; }
.qx-container.po-sec { padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.qx-container.po-pair { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 0; border: 0; border-top: 1px dashed #e6e9ef; background: transparent; }
.qx-container.po-kv { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 0; border: 0; background: transparent; }
.po-code { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
a.es-link.po-newlink, .qx-container.po-acts a.es-link { display: inline-flex; align-items: center; min-height: 44px; }
.po-none:empty::before { content: "not recorded"; color: #c4c4c4; }
@media (max-width: 46rem) {
  .qx-container.es-row.po-row, .qx-container.es-row.po-cred { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── ATTRIBUTES (admin /datamodel/attributes): the register, decision and measurement side by side ── */
.qx-container.at-matrix, .qx-repeater.at-matrix { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-mrow, .qx-container.at-mhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-mhead, .qx-container.at-thead { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.at-mh, .at-th { margin: 0; color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.at-mc { margin: 0; font-size: 14px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qx-container.at-m-2-true, .qx-container.at-m-3-true { border-color: #a9142c; background: #fde2e2; }
.at-flagnote { display: none; grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; color: #a9142c; }
.at-m-2-true .at-flagnote, .at-m-3-true .at-flagnote { display: block; }
.at-note { margin: 0; padding: 10px 12px; border-left: 3px solid #c4c4c4; font-size: 13px; line-height: 1.5; color: var(--qxp-muted); }
.qx-container.at-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.at-f-status, .at-f-used, .at-f-shop { min-width: 0; }
.at-bar .jf-select, .at-bar .at-qwrap { flex: 1 1 14rem; min-width: 0; }
.qx-container.at-qwrap { display: flex; flex-direction: column; gap: 4px; }
.at-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.at-qwrap > .qx-state-input.at-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.at-count { margin: 0; font-size: 13px; color: var(--qxp-muted); }
.qx-repeater.at-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qx-container.at-row, .qx-container.at-thead { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.at-pred, .qx-container.at-cc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: transparent; }
.at-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.at-pk { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.at-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-lab { display: none; }
.at-f-true .at-no, .at-f-false .at-yes, .at-f-none .at-yes, .at-f-none .at-no, .at-f-true .at-none, .at-f-false .at-none { display: none; }
.at-f-false .at-no, .at-f-none .at-none { color: #676879; }
.at-vr-2, .at-vr-3, .at-vr-4 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; align-self: flex-start; }
.at-n-0 { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }
.at-used-true .at-no, .at-used-false .at-yes, .at-act-true .at-no, .at-act-false .at-yes { display: none; }
.at-used-false .at-no, .at-act-false .at-no { color: #a9142c; }
.at-r-2-true .at-name::after { content: " — new, but carrying data"; color: #a9142c; font-size: 12px; font-weight: 700; }
.at-r-3-true .at-name::after { content: " — retired, still claimed"; color: #a9142c; font-size: 12px; font-weight: 700; }
@media (max-width: 46rem) {
  .qx-container.at-mhead, .qx-container.at-thead { display: none; }
  .qx-container.at-mrow, .qx-container.at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .qx-container.at-row > .qx-container.at-pred { grid-column: 1 / -1; }
  .at-lab { display: block; margin: 0; font-size: 10px; font-weight: 400; color: var(--qxp-muted); } }

/* ── LINK REPLACEMENTS (admin /datamodel/link-replacements): old link → new link, the kind of the new link always beside it ── */
.qx-repeater.rp-rows { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.qx-container.rp-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-old, .qx-container.rp-new { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; border: 1px solid #c4c4c4; border-radius: 8px; background: #f3f4f6; }
.rp-arrow { align-self: center; margin: 0; font-size: 18px; color: #676879; }
.rp-lab { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.rp-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.rp-link:empty::before { content: "No new link"; font-family: inherit; color: #676879; }
.qx-container.rp-new.rp-k-confirmed { border-color: #0d6b4d; background: #d0f0de; }
.qx-container.rp-new.rp-k-candidate, .qx-container.rp-new.rp-k-twins-link, .qx-container.rp-new.rp-k-other-slug, .qx-container.rp-new.rp-k-existing-offer { border-color: #ae4e02; background: #fdf3dc; }
.rp-k-confirmed .rp-lab { color: #0d6b4d; }
.rp-k-candidate .rp-lab, .rp-k-twins-link .rp-lab, .rp-k-other-slug .rp-lab, .rp-k-existing-offer .rp-lab { color: #ae4e02; }
.qx-container.rp-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 0; border: 0; background: transparent; }
.qx-container.rp-chip { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 0 8px; border-radius: 999px; border: 1px solid #c4c4c4; background: #f3f4f6; font-size: 12px; font-weight: 700; color: #676879; }
.qx-container.rp-meta.rp-k-none > .qx-container.rp-chip { display: none; }
.rp-k-confirmed > .qx-container.rp-chip { border-color: #0d6b4d; background: #d0f0de; color: #0d6b4d; }
.rp-k-candidate > .qx-container.rp-chip, .rp-k-twins-link > .qx-container.rp-chip, .rp-k-other-slug > .qx-container.rp-chip, .rp-k-existing-offer > .qx-container.rp-chip { border-color: #ae4e02; background: #fdf3dc; color: #ae4e02; }
.rp-kl { display: none; }
.rp-k-confirmed .rp-kl-confirmed, .rp-k-candidate .rp-kl-candidate, .rp-k-twins-link .rp-kl-twins, .rp-k-other-slug .rp-kl-other, .rp-k-existing-offer .rp-kl-existing { display: inline; }
.rp-m { margin: 0; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.rp-m b { font-weight: 700; color: #323338; }
.rp-m:empty { display: none; }
.qx-container.rp-sum, .qx-repeater.rp-sum { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.rp-sumi { display: flex; flex-direction: column; gap: 2px; flex: 1 1 7rem; align-self: flex-start; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.rp-sumi { margin: 0 12px 12px 0; min-height: 0; height: auto; box-sizing: border-box; max-width: 100%; }
.qx-repeater.rp-sum { min-width: 0; max-width: 100%; box-sizing: border-box; }
.rp-sumn { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.rp-suml { overflow-wrap: anywhere; margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.rp-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.rp-bar .jf-select { flex: 1 1 14rem; min-width: 0; }
.rp-f-bucket, .rp-f-kind { min-width: 0; }
.qx-container.rp-pdf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 0; border: 0; background: transparent; }
a.qx-link.rp-pdfbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; font-size: 13px; color: #323338; text-decoration: none; }
@media (max-width: 46rem) {
  .qx-container.rp-pair { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-arrow { justify-self: center; transform: rotate(90deg); } }

.dm-h { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--qxp-ink); }
/* ── DATA MODEL (admin /datamodel): read-only views of the estate's reference tables ── */
.qx-container.dm { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 12px; min-width: 0; margin-top: 24px; }
.dm-sub, .dm-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.dm-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.dm-err:empty { display: none; }
.qx-container.dm-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; min-width: 0; }
.qx-container.dm-tile { display: flex; flex-direction: column; gap: 2px; flex: 1 1 10rem; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.dm-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.dm-tile-l { margin: 0; font-size: 12px; color: var(--qxp-muted); }
.qx-container.dm-colhead { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.dm-colhead .dm-ch-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.dm-ch-main, .dm-ch-n { color: var(--qxp-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dm-ch-n { flex: 0 0 6rem; margin: 0; text-align: right; }
.qx-repeater.dm-tree { min-width: 0; }
.qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
.qx-container.dm-node { display: flex; flex-direction: column; min-width: 0; }
.qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.dm-kids { margin-left: 22px; padding: 0 0 0 8px; border: 0; border-left: 2px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-container.dm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; border: 0; border-bottom: 1px solid #e6e9ef; border-radius: 0; background: transparent; min-width: 0; }
.qx-button.dm-tog { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #323338; font-size: 16px; cursor: pointer; }
.qx-container.dm-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 auto; min-width: 0; padding: 10px 0 0; border: 0; background: transparent; }
.dm-label { font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.dm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #676879; overflow-wrap: anywhere; }
.dm-off { display: none; font-size: 11px; font-weight: 600; color: #a9142c; }
.dm-act-false > .dm-row .dm-off { display: inline; }
.dm-desc { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: #676879; }
.dm-desc:empty { display: none; }
.qx-container.dm-nums { display: flex; flex-direction: row; gap: 12px; flex: 0 0 auto; padding: 10px 0 0; border: 0; background: transparent; }
.dm-cnt, .dm-tot { flex: 0 0 6rem; min-width: 0; margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: #323338; }
.dm-cnt-0, .dm-tot-0 { padding: 0 6px; border-radius: 6px; background: #fde2e2; color: #a9142c; font-weight: 700; }   /* a zero is the finding: nothing is typed here — never blank */
.dm-open, .dm-close { color: #323338; }
.qx-repeater.dm-tree > .qx-container.dm-node > .qx-container.dm-row { border-bottom: 0; }
.dm-probe, .dm-probe-i { display: none; }
.dm-node:not(:has(> .dm-probe .dm-probe-i)) > .dm-row .dm-tog { visibility: hidden; }
.qx-container.dm-views { display: flex; flex-direction: column; gap: 8px; }
.dm-viewlink { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 4px 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #0d6efd; font-size: 14px; text-decoration: none; }
.dm-viewtxt { margin: 0; }
@media (max-width: 46rem) {
  .qx-container.dm-colhead { display: none; }
  .qx-repeater.dm-tree { display: flex; flex-direction: column; gap: 12px; }
  .qx-repeater.dm-tree > .qx-container.dm-node { padding: 4px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; margin: 0 0 12px; }
  .qx-container.dm-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 0; padding: 4px 0; }
  .qx-button.dm-tog { grid-column: 1; grid-row: 1; width: 44px; margin-right: -28px; padding: 0 0 0 4px; text-align: left; }
  .qx-container.dm-main { grid-column: 2; grid-row: 1; padding-top: 10px; padding-left: 8px; }
  .qx-container.dm-nums { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0 0 6px 8px; }
  .dm-cnt, .dm-tot { flex: 0 0 auto; text-align: left; }
  .dm-cnt::before { content: "Typed here "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .dm-tot::before { content: "In branch "; font-size: 11px; font-weight: 400; color: var(--qxp-muted); }
  .qx-container.dm-kids { margin-left: 8px; padding-left: 8px; } }

/* ── TOKEN USAGE (admin /usage): per day, worker and model, read-only ── */
.qx-container.us-tots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; border: 0; background: transparent; }
.qx-container.us-tot { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.us-tot-h { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.us-tot-usd { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.1; color: #323338; font-variant-numeric: tabular-nums; }
.qx-container.us-tot-l { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 10px; padding: 0; border: 0; background: transparent; }
.qx-container.us-tot-c { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; background: transparent; min-width: 0; }
.us-n { margin: 0; font-size: 14px; font-weight: 600; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.us-l { margin: 0; font-size: 11px; color: #676879; }
.qx-container.us-head, .qx-container.us-row { display: grid; grid-template-columns: 6.2rem minmax(0, 1.2fr) minmax(0, 1.4fr) repeat(7, minmax(0, 1fr)); gap: 4px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #e6e9ef; min-width: 0; }
.qx-container.us-head { background: #f3f4f6; }
.us-head .us-hc { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #676879; }
.us-row .us-c { margin: 0; font-size: 13px; color: #323338; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.us-head .us-r, .us-row .us-r { text-align: right; }
.us-cell { min-width: 0; }
.us-row .us-lab { display: none; }
.qx-container.us-tot-co2 { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 4px; padding: 0; border: 0; background: transparent; }
.us-co2 { margin: 0; font-size: 13px; color: #676879; font-variant-numeric: tabular-nums; }
.us-rat { max-width: 60rem; }
.us-c:empty::before { content: "—"; color: #c4c4c4; }
.qx-container.us-table { border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; overflow: hidden; min-width: 0; }
.us-model { color: #676879; }
.qx-container.us-sec { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; padding: 0; border: 0; background: transparent; min-width: 0; }
.us-subsec { min-width: 0; }
.us-note { margin: 0; font-size: 13px; color: #676879; overflow-wrap: anywhere; }
.qx-container.us-together { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; border: 0; background: transparent; }
.qx-container.us-tog { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; min-width: 0; }
.qx-container.us-tog-real { border-color: #0d6b4d; }
.qx-container.us-tog-notional { border-style: dashed; }
.us-tog-k { margin: 0; font-size: 12px; color: #676879; }
.qx-container.us-head.us-sp, .qx-container.us-row.us-sp { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); }
.qx-container.us-head.us-sc, .qx-container.us-row.us-sc { grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)); }
@media (max-width: 46rem) {
  .qx-container.us-tots, .qx-container.us-together { grid-template-columns: minmax(0, 1fr); }
  .qx-container.us-row.us-sp, .qx-container.us-row.us-sc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qx-container.us-tot-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qx-container.us-head { display: none; }
  .qx-container.us-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .us-row .us-lab { display: block; margin: 0; font-size: 11px; color: #676879; } }

/* ── OFFER FRESHNESS (admin /offer-freshness): the stale in-stock claims first, then the age buckets, then each supplier ── */
.qx-container.fr, .qx-container.fr-sec { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; }
.qx-container.fr { gap: 24px; }
.qx-container.fr-sec { gap: 10px; }
/* the age tiles have FIXED columns (4, or 2 on a phone): with auto-fit, the column measured the grid at its narrowest, where the
   four tiles stack, and kept that ~450px as blank space under them */
.fr-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.fr-sub { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.fr-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.fr-err:empty { display: none; }
.qx-container.fr-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: end; }
.fr-bar > .qx-select { flex: 1 1 12rem; min-width: 0; }
/* the window and the site pickers (named for the e2e, which opens each by its class) */
.fr-bar > .qx-select.fr-f-win, .fr-bar > .qx-select.fr-f-site { max-width: 24rem; }
.qx-container.fr-qwrap { display: flex; flex-direction: column; gap: 4px; flex: 1 1 14rem; min-width: 0; }
.fr-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
/* flex: none — in its labelled column a flex-basis from a wider rule would make the box TALL (seen on Quests, abff2d7f) */
.fr-qwrap > .qx-state-input.fr-search { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
/* THE LOUD PART: the stale in-stock claims, in the danger colour, biggest thing on the page */
.qx-container.fr-hero { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 2px solid #a9142c; border-radius: 12px; background: #fde2e2; }
.fr-big { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 700; color: #a9142c; font-variant-numeric: tabular-nums; }
.fr-big-l { margin: 0; font-size: 16px; font-weight: 600; color: #a9142c; }
.fr-hero-m { margin: 0; font-size: 14px; color: #323338; }
.fr-note { margin: 0; font-size: 13px; color: #ae4e02; font-weight: 600; }
.fr-asof { margin: 0; font-size: 12px; color: #676879; }
.qx-container.fr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qx-container.fr-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 10px; background: #fff; }
.qx-container.fr-tile-old { border-color: #ae4e02; background: #fdf3dc; }
.fr-tile-h { margin: 0; font-size: 12px; font-weight: 600; color: #676879; }
.fr-tile-n { margin: 0; font-size: 22px; font-weight: 700; color: #323338; font-variant-numeric: tabular-nums; }
.fr-tile-m { margin: 0; font-size: 12px; color: #676879; }
.qx-repeater.fr-rows { min-width: 0; }
.qx-container.fr-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 2fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.fr-who, .qx-container.fr-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-name { margin: 0; font-size: 14px; font-weight: 600; color: #323338; overflow-wrap: anywhere; }
.fr-key { margin: 0; font-size: 12px; color: #676879; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.fr-meta { margin: 0; font-size: 12px; color: #676879; }
/* the fulfilment method: Commerce sends a number, the pill says it from its class */
.fr-fm { margin: 0; align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: #f3f4f6; color: #323338; font-size: 11px; font-weight: 600; }
.fr-fm-1::before { content: "in-house"; }
.fr-fm-2::before { content: "drop-ship"; }
.fr-fm-3::before { content: "affiliate"; }
.fr-fm-4::before { content: "marketplace"; }
/* a row's stale in-stock count: loud unless it is 0 */
.fr-stale { margin: 0; font-size: 20px; font-weight: 700; color: #a9142c; font-variant-numeric: tabular-nums; }
.fr-stale.fr-stale-0 { color: #0d6b4d; }
.qx-container.fr-bk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.qx-container.fr-bk-c { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 4px 6px; border-radius: 6px; background: #f3f4f6; color: #323338; font-size: 11px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.qx-container.fr-bk-c.fr-bk-old { background: #fdf3dc; color: #ae4e02; }
.qx-container.fr-thead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 2fr); gap: 10px; padding: 0 12px; }
.fr-bk-l { margin: 0; font-size: 10px; color: inherit; opacity: .8; }
.fr-bk-n { margin: 0; font-size: 14px; font-weight: 700; color: inherit; }
.fr-th { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--qxp-muted); }
@media (max-width: 46rem) {
  .qx-container.fr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fr-row > .fr-cell-seen, .fr-row > .fr-cell-bk, .fr-row > .fr-cell-claims { grid-column: 1 / -1; }
  .qx-container.fr-thead { display: none; }
  .qx-container.fr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-big { font-size: 36px; }
}

/* ── SHELF MANAGER (admin /shelves): the site, its shelves with counts, one shelf as cards ── */
.qx-container.sh, .qx-container.sh-sec { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; }
.qx-container.sh { gap: 24px; }
.qx-container.sh-sec { gap: 10px; }
.sh-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.sh-sub, .sh-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.sh-note { padding: 8px 12px; border-radius: 8px; background: #fdf3dc; color: #ae4e02; font-weight: 600; }
.sh-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.sh-err:empty { display: none; }
.qx-container.sh-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: end; }
.sh-bar > .qx-select { flex: 1 1 12rem; min-width: 0; max-width: 24rem; }
.sh-bar > .qx-select.sh-f-site { max-width: 24rem; }
.qx-repeater.sh-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-button.sh-tile { min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 10px; background: #fff; color: #323338; font: inherit; font-weight: 600; cursor: pointer; }
.qx-repeater.sh-cards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)) !important; gap: 12px; }
.qx-container.sc { display: flex; flex-direction: column; border: 1px solid #e6e9ef; border-radius: 12px; background: #fff; overflow: hidden; min-width: 0; }
.qx-container.sc-live-false { background: #f3f4f6; }
.qx-container.sc-live-false .sc-pic { opacity: .55; }
.qx-container.sc-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f3f4f6; overflow: hidden; }
.sc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-nophoto { color: #9a9ba7; font-size: 13px; }
.qx-container.sc-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; min-width: 0; }
.sc-name { margin: 0; font-size: 15px; line-height: 1.3; color: #323338; overflow-wrap: anywhere; }
.qx-container.sc-badges, .qx-container.sc-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.sc-b { padding: 1px 8px; border-radius: 999px; background: #e6e9ef; color: #323338; font-size: 11px; font-weight: 600; }
.sc-b-ok { background: #edf1ee; color: #0d6b4d; } .sc-b-warn { background: #fdf3dc; color: #ae4e02; } .sc-b-bad { background: #fde2e2; color: #a9142c; } .sc-b-pin { background: #579bfc; color: #fff; }
.qx-button.sc-btn { min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-weight: 600; cursor: pointer; }
.qx-button.sc-go { border: 0; background: #a9142c; color: #fff; }
.sc-sure { flex: 1 1 100%; font-size: 13px; color: #323338; }
/* the confirm's own buttons and the Take off button: the same size as the card's other buttons */
.qx-button.sc-keep, .qx-button.sc-off { display: inline-flex; align-items: center; }
.sc-err { margin: 0; color: #a9142c; font-size: 12px; font-weight: 600; }
.qx-repeater.sh-found { display: flex; flex-direction: column; gap: 4px; }
.qx-container.sf { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.qx-container.sf-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 14rem; }
.qx-container.sf-side { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
.sf-n { font-weight: 600; color: #323338; } .sf-s { font-size: 12px; color: #676879; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.sf-err { margin: 0; color: #a9142c; font-size: 12px; font-weight: 600; }
.qx-button.sf-add, .qx-button.sc-pin, .qx-button.sc-unpin { display: inline-flex; align-items: center; }
.qx-container.sc { cursor: grab; }
.qx-container.sh-qwrap { display: flex; flex-direction: column; gap: 4px; max-width: 24rem; }
.sh-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.qx-container.sh-qwrap > .qx-state-input.sh-q { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }

/* ── PHOTO PICKER (admin /photos): search, pick, To collect ── */
.qx-container.ph, .qx-container.ph-sec { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; }
.qx-container.ph { gap: 24px; }
.qx-container.ph-sec { gap: 10px; }
.ph-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.ph-sub, .ph-note { margin: 0; color: var(--qxp-muted); font-size: 13px; line-height: 1.5; }
.ph-note { padding: 8px 12px; border-radius: 8px; background: #fdf3dc; color: #ae4e02; font-weight: 600; }
.ph-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #a9142c; font-weight: 600; font-size: 13px; }
.ph-err:empty { display: none; }
.qx-container.ph-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: end; }
.ph-bar > .qx-select { flex: 1 1 12rem; min-width: 0; max-width: 24rem; }
.qx-container.ph-qwrap { display: flex; flex-direction: column; gap: 4px; flex: 1 1 14rem; max-width: 24rem; }
.ph-qlbl { font-size: 12px; font-weight: 600; color: var(--qxp-muted); }
.qx-container.ph-qwrap > .qx-state-input { flex: none; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-size: 14px; box-sizing: border-box; }
.qx-container.ph-go { display: flex; flex-direction: row; gap: 8px; align-items: end; }
.qx-button.ph-btn, .qx-button.pf-btn, .qx-button.pf-go { min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; }
.qx-button.ph-search { border: 0; background: #a9142c; color: #fff; }
.qx-container.ph-tabs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qx-repeater.ph-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)) !important; gap: 12px; }
.qx-container.pf, .qx-container.pp { display: flex; flex-direction: column; border: 1px solid #e6e9ef; border-radius: 12px; background: #fff; overflow: hidden; min-width: 0; }
.qx-container.pf-pic, .qx-container.pp-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f3f4f6; overflow: hidden; }
.pf-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qx-container.pf-body, .qx-container.pp-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; min-width: 0; }
.pf-desc { margin: 0; font-size: 13px; line-height: 1.4; color: #323338; overflow-wrap: anywhere; }
.pf-desc:empty { display: none; }
.qx-container.pf-credit { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .3em; font-size: 12px; color: #676879; }
.pf-a { color: #323338; text-decoration: underline; }
.pf-t { color: #676879; }
.pp-place { color: #323338; }
.qx-button.pf-no { display: inline-flex; align-items: center; }
.qx-container.pf-badges, .qx-container.pf-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.pf-b { padding: 1px 8px; border-radius: 999px; background: #e6e9ef; color: #323338; font-size: 11px; font-weight: 600; }
.pf-b-ok { background: #edf1ee; color: #0d6b4d; } .pf-b-warn { background: #fdf3dc; color: #ae4e02; }
.qx-button.pf-go { border: 0; background: #a9142c; color: #fff; }
.pf-btn.pf-open { box-sizing: border-box; min-height: 44px; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; color: #323338; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.pf-err { margin: 0; color: #a9142c; font-size: 12px; font-weight: 600; }
.pf-err:empty { display: none; }
.pp-where { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 0; font-size: 14px; font-weight: 600; color: #323338; }
.pp-topic { font-weight: 400; color: #676879; }
.pp-topic:not(:empty)::before { content: "· "; }

/* ── SHORTCUTS (admin /shortcuts): affiliate links, tables, no scripts ── */
.qx-container.sc { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; gap: 28px; }
.qx-container.sc-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-h { margin: 0; font-size: 18px; color: var(--qxp-ink); }
.sc-lede, .sc-body { margin: 0; color: var(--qxp-muted); font-size: 14px; line-height: 1.6; max-width: 64ch; }
.sc-point { margin: 10px 0 0; color: var(--qxp-ink); font-size: 14px; line-height: 1.6; max-width: 64ch; }
.sc-wrap { overflow-x: auto; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc-table th, .sc-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--qxp-line); }
.sc-table th { color: var(--qxp-muted); font-size: 12px; font-weight: 600; }
.sc-table td { color: var(--qxp-body); line-height: 1.5; }
.sc-name { font-weight: 600; color: var(--qxp-ink); }
.sc-a { color: var(--qxp-ink); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.sc-none, .sc-blank { color: var(--qxp-muted); font-size: 13px; }
.sc-note { color: var(--qxp-muted); font-size: 13px; }
@media (max-width: 640px) {
  .sc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sc-table, .sc-table tbody, .sc-table tr, .sc-table td { display: block; width: 100%; }
  .sc-table tr { padding: 10px 0; border-bottom: 1px solid var(--qxp-line); }
  .sc-table td { border-bottom: 0; padding: 4px 0; }
  .sc-table td::before { content: attr(data-label); display: block; color: var(--qxp-muted); font-size: 12px; font-weight: 600; }
}
