@charset "utf-8";
/* =========================================================================
   TORQUE DASH KIT  ·  tq.kit.css  ·  KIT 1 CONTROLS · KIT 2 LAYERS & DATA
   -------------------------------------------------------------------------
   The dash's controls, layers and data views. Dark only: the page carries
   class="tq-dark" on <html>.
   Requires: tq.fonts.css, tq.tokens.css, tq.base.css (in that order),
   litepicker.tq.css for dates, then this file.
   Behaviour lives in Scripts/tq.kit.js.

   Ported from the Arxeon dash kit (the mega kit, 30 Sep 2026). The layout,
   sizes and every state are that kit's; what changed is the voice:
     · the one accent is the shop's signal (GoodWay orange: #D33E21 fill,
       #FF8F57 text), not Arxeon blue;
     · the type is Barlow, and read-outs (IDs, counters, eyebrows) are
       Barlow Condensed with tabular figures instead of a mono;
     · the neutral is steel graphite, a whisper of the logo's own ink;
     · the primary button's hover signature is THE LANE — a dashed centre
       line in the signal colour — instead of a spectrum.

   THE RULES THIS FILE KEEPS
     1. Every class starts tqd-, so the kit sits beside the site's tq-
        classes without touching them. No bare element is ever styled here.
     2. Controls you press are capsules. Controls you type into are
        rectangles. Anything nested inside a rectangle is concentric with it
        (a 10px field with a 4px inset holds 6px tags).
     3. One accent. Status colours only carry status.
     4. Every duration is a Torque token, so reduced motion (and the kit's
        own data-tqd-motion="reduce") collapses all of it at once.
     5. Dash density: controls are 36px, compact 32px, 40px under a finger.

   CONTENTS
     00 kit tokens · 01 atoms · 02 buttons · 03 fields · 04 affixes, search,
     number, password · 05 choice (checkbox, radio, radio card, switch,
     segmented) · 06 select trigger · 07 layers (popover, listbox, sheet,
     menu) · 08 filter pills · 09 tags, chips, token input · 10 badges,
     counts, stats, odometer · 11 avatars · 12 tooltips · 13 dates
     KIT 2 — 14 dialogs (modal, drawer) · 15 confirm, alert, prompt ·
     16 toasts · 17 menus+ (submenu, ticks, right-click) · 18 peek card ·
     19 tabs · 20 the data table, bulk bar, pager · 21 the filter bar ·
     22 empty, error, skeletons · 23 the timeline, files · 24 progress,
     steps · 25 record details
     26 density & touch · 27 motion · 28 totals (a Torque addition)
     DASH DESIGN PASS (DD-1) — 29 banner · 30 KPI strip · 31 empty, on one
     line (with --ok) · 32 charts (drawn by Scripts/tq.charts.js). Each has a
     specimen in torque-dash-kit.html: 29 to 31 in section 20, 32 in 21.
     DD-2 — 33 status tabs that keep the search · 34 the words a search found
     · 35 the record pager · 36 a list that grows with the page. Their
     specimen is in section 16 of torque-dash-kit.html.
     DD-3 — 37 parts of a whole; and the change under a KPI's number (30),
     a bar below 0 (32). Their specimens are in section 21 of
     torque-dash-kit.html.
     DD-5 — 38 chat (a conversation: its days, its groups, the New line,
     the ticks, an email, pictures, why one did not go, the find bar, Jump
     to latest, the composer) · 39 the picture viewer. Their specimens are
     in section 22 of torque-dash-kit.html.
     DD-B3 — 40 a time of day (to the minute). Its specimen is in section
     07 of torque-dash-kit.html, beside the dates.
     DD-B4 — 41 unsaved changes (the bar at the foot of a page of settings,
     and a tab's dot) · 42 a week of hours. Their specimens are in sections
     20 and 07 of torque-dash-kit.html.
     DD-B5 — 43 one line each (a list of things, each opened to be
     changed). Its specimen is in section 20 of torque-dash-kit.html.
     And 41: the toasts stand above the bar wherever it is (at the very
     foot of a page it sits higher, over the footer), with tq.kit.js.
     DD-6b — 41: while the bar shows, what is brought into view (a box as
     it is focused, the line being typed) stays above it.
     DD-B6 — 44 a drop area (a card a picture can be dropped on, as the
     logo's on Shop profile). Its specimen is in section 20 of
     torque-dash-kit.html.
     DD-B7 — 45 a part folded away (a card's extra part, kept closed at its
     foot until it is wanted, as the founder's steps in Azure on Web
     address). Its specimen is in section 20 of torque-dash-kit.html.
     And 24: a step's dot keeps its 30px beside a label of several lines.
     AP-1 — 46 the floor (bays over time, a car on each booking, a press to
     book, moving a car to another time, bay or day: the tow bar and the
     card where a car lands) · 47 a KPI that lights what it counts. Their
     specimens are in section 23 of torque-dash-kit.html.
     WB-1 — 48 the shop from above (the Work board's floor: the building,
     the lot and the street drawn to scale, a car in each place, driving
     between them, moving one by the pointer, a long press or the keys; the
     card where a car lands takes a choice and a box) · 49 the lug ring (a
     job's time as a wheel) · 50 flip letters. Their specimens are in
     section 24 of torque-dash-kit.html.
     IN-1 — 51 the car on the lift (an inspection's tires, each a button lit
     by its rating; the condition's three buttons) · 52 the tread gauge (a
     tire's tread as a cross-section, three readings or one) and a number
     for gloved hands · 53 a photo's mark (a ring where it is; the picture
     viewer marks one) · 46's car with its tires lit. Their specimens are in
     section 25 of torque-dash-kit.html.
     DD-B8 — 54 a list put in order by hand (each line's grip: the pointer,
     a finger or the keys, as FAQs' questions). Its specimen is in section
     20 of torque-dash-kit.html. And .tqd-list (a list with bullets, by
     14): its bullets show over the base's reset of a list with a class.
     And 10, the badges: their words in their middle (Barlow sat them .1em
     low), and soft (.tqd-badge--soft: a badge without its ring).
     DD-B9 — 55 stars: a rating lit to the tenth (.tqd-rating), the stars a
     box picks (.tqd-rating-pick, a radio in each) and a customer's review
     as it reads (.tqd-review), as on Reviews. Its specimen is at the end
     of section 08 of torque-dash-kit.html.
     DD-B10 — 56 a long text's writing box (.tqd-writebox: Heading, Bullet
     point and New paragraph over the words, which write the website's
     marks; the box is the field), as on Info pages. Its specimen is the
     last card of section 03 of torque-dash-kit.html. And 03, the counter:
     its numbers grouped ("1,234 / 20,000"), by tq.kit.js.
     DD-B12 — 57 the crop (a photo cropped to its frame before it uploads,
     until now the tire editor's own: Croppie draws it, a page's script
     runs it; the screens' frames, the see-through background), as on
     Home page; and 29, a banner that offers two ways (.tqd-banner__btns),
     23, a file that is a picture (.tqd-file--pic, .tqd-file__pic). Their
     specimens are in sections 11, 20 and 17 of torque-dash-kit.html.
     DD-B13 — 58 two-step sign-in's parts (the code an app scans, the key
     typed by hand, the code from the app, the recovery codes shown once),
     as on Sign-in & security; and 24, steps that are sentences
     (.tqd-steps--say), 29, a name the server keeps in a banner's words
     (<code>). Their specimens are in sections 18 and 20 of
     torque-dash-kit.html.
     DD-B14 — 03, a value typed as it is written (.tqd-input--mono: an
     address, an ID or a key, in the read-out font), as on Shops. Its
     specimen is in section 03 of torque-dash-kit.html.
     DD-B15 — 03, a value to copy (.tqd-control--mono.is-readonly with its
     copy button: an address or a link the dash gives, in the read-out
     font), as on Billing. Its specimen is in section 03 too.
     DD-B16 — 25, a value's quiet line (.tqd-dl__sub: when it happened, or
     what it is counted from, under a record's value), as on Connections.
     Its specimen is in section 17.
     DD-B17 — 29, a banner with more to say (.tqd-banner--more: its words
     a block, the kit's list in it, its button under its words), as on the
     tire editor; and 45, steps in a part folded away, as on Web address.
     Their specimens are in section 20.
     DD-B18 — 14, a dialog's delete (.tqd-modal__del: apart at the foot's
     other end, red as it is pointed at); 20, a list's time
     (.tqd-cell__time), a sub line's tone (.tqd-cell__sub.is-ok, .is-warn,
     .is-bad, or one word of it), the row open in the drawer
     (tr[aria-current="true"]) and a table whose words wrap
     (.tqd-table--wrap); 25, a value not given (.is-muted), a value's line
     that warns (.tqd-dl__sub.is-warn) and someone's words as they wrote
     them (.tqd-words), as on Quotes. Their specimens are in sections 11,
     16 and 17.
     DD-B19 — 20, a table in a card (.tqd-table-wrap--card: its own edge
     off), a row's own button, always shown (td.tqd-td-act), a cell's few
     things, one a line (.tqd-cell__lines: how many, what, and what tells it
     apart, quiet) and someone's words at a list's size (.tqd-words--sm);
     04, a search's results to pick, in the form (.tqd-lb--inline: the
     kit's options as buttons, each with its way, .tqd-opt__go) and the
     lines picked, each with how many (.tqd-lines), as on Transfers. Their
     specimens are in sections 16 and 03.
     DD-B20 — 20, a title that shows only its record's lines, as a button
     (button.tqd-cell__title), its badge beside it (.tqd-cell__head), a
     change in a count (.tqd-cell__change), who did it (.tqd-cell__who
     .is-key), a card's figure at its end (td.tqd-td-end) and what is said
     only on a card or only in the table (.tqd-col--card, .tqd-col--table);
     21, a line under the filter bar (.tqd-filterbar__note); 32, parts of a
     whole in a chart's cell (.tqd-chart__shares) and numbers that dim while
     they load (.tqd-loads), as on Stock movements. Their specimens are in
     sections 16 and 21.
     DD-B21 — 25, someone's words with the note's mark (.tqd-words--note:
     right under a card's head, a band of its own); 04, a line done
     (.tqd-line.is-done) and a line not kept (.tqd-line__sub.is-bad); 20, a
     row with a problem (tr.is-bad), as on Stock counts. Their specimens are
     in sections 03 and 16.
   ========================================================================= */


/* ── 00 · KIT TOKENS ─────────────────────────────────────────────────────── */
:root, .tq-dark {
  /* surfaces — a control sits on --tqd-surface (avatars ring with it) */
  --tqd-canvas:  var(--tq-ink-050);
  --tqd-panel:   var(--tq-ink-100);
  --tqd-raised:  var(--tq-ink-150);
  --tqd-pop:     var(--tq-ink-200);
  --tqd-surface: var(--tqd-panel);

  /* translucent steps — the same control reads right on a panel, a modal
     or a popover because it lifts whatever is under it */
  --tqd-fill-1: rgb(var(--tq-white-rgb) / .035);
  --tqd-fill-2: rgb(var(--tq-white-rgb) / .06);
  --tqd-fill-3: rgb(var(--tq-white-rgb) / .09);
  --tqd-fill-4: rgb(var(--tq-white-rgb) / .13);
  --tqd-line-1: rgb(var(--tq-white-rgb) / .07);
  --tqd-line-2: rgb(var(--tq-white-rgb) / .11);
  --tqd-line-3: rgb(var(--tq-white-rgb) / .17);
  --tqd-line-4: rgb(var(--tq-white-rgb) / .26);

  /* ink — five steps, all AA on every kit surface */
  --tqd-ink-1: var(--tq-ink-950);   /* values, titles        */
  --tqd-ink-2: var(--tq-ink-900);   /* labels                */
  --tqd-ink-3: var(--tq-ink-800);   /* body                  */
  --tqd-ink-4: var(--tq-ink-700);   /* muted                 */
  --tqd-ink-5: var(--tq-ink-650);   /* subtle, placeholders  */

  /* the one accent */
  --tqd-acc:      var(--tq-accent);
  --tqd-acc-hi:   var(--tq-accent-hi);
  --tqd-acc-ink:  var(--tq-accent-text);
  --tqd-acc-soft: rgb(var(--tq-accent-rgb) / .16);
  --tqd-acc-soft-2: rgb(var(--tq-accent-rgb) / .24);
  --tqd-acc-line: rgb(var(--tq-accent-text-rgb) / .45);

  /* status (and one spare tone, "ai", for automated work — e.g. a reminder
     the system sent by itself) */
  --tqd-ok:   var(--tq-success);  --tqd-ok-rgb:   var(--tq-success-rgb);
  --tqd-warn: var(--tq-warning);  --tqd-warn-rgb: var(--tq-warning-rgb);
  --tqd-bad:  var(--tq-danger);   --tqd-bad-rgb:  var(--tq-danger-rgb);
  --tqd-bad-fill: var(--tq-danger-fill);
  --tqd-bad-fill-hi: var(--tq-danger-fill-hi);
  --tqd-info: var(--tq-info);     --tqd-info-rgb: 3 195 247;
  --tqd-ai:   #8576FF;            --tqd-ai-rgb:   133 118 255;

  /* geometry */
  --tqd-h-xs: 26px;
  --tqd-h-sm: 30px;
  --tqd-h:    36px;
  --tqd-h-lg: 44px;
  --tqd-fs-xs: 12px;
  --tqd-fs-sm: 13px;
  --tqd-fs:    14px;
  --tqd-fs-lg: 15px;
  --tqd-fs-input: var(--tqd-fs);
  --tqd-r-tag:   6px;
  --tqd-r-opt:   8px;
  --tqd-r-field: 10px;
  --tqd-r-pop:   12px;
  --tqd-r-card:  14px;
  --tqd-opt-h:   32px;

  /* focus — a field focuses with its own edge; everything else takes the
     one Torque ring */
  --tqd-focus-line: rgb(var(--tq-accent-text-rgb) / .85);
  --tqd-focus-halo: 0 0 0 3px rgb(var(--tq-accent-rgb) / .30);
  --tqd-bad-halo:   0 0 0 3px rgb(var(--tq-danger-rgb) / .22);

  /* elevation for floating layers */
  --tqd-shadow-pop: 0 0 0 1px rgb(var(--tq-black-rgb) / .40),
                    0 18px 44px -12px rgb(var(--tq-black-rgb) / .70),
                    0 4px 14px -4px rgb(var(--tq-black-rgb) / .45);
  --tqd-shadow-tip: 0 10px 28px -8px rgb(var(--tq-black-rgb) / .65),
                    0 0 0 1px rgb(var(--tq-black-rgb) / .25);

  /* identity hues — seven, for avatars and tags. Chosen to stay clear of the
     signal orange, so a customer's colour never reads as "act on this" */
  --tqd-hue-0: 3 195 247;
  --tqd-hue-1: 64 140 255;
  --tqd-hue-2: 133 118 255;
  --tqd-hue-3: 214 96 214;
  --tqd-hue-4: 0 216 159;
  --tqd-hue-5: 245 180 48;
  --tqd-hue-6: 161 164 168;
}


/* ── 01 · ATOMS ──────────────────────────────────────────────────────────── */
.tqd-sr {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

.tqd-i {
  display: block;
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tqd-i--sm { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-i--lg { inline-size: 20px; block-size: 20px; stroke-width: 1.5; }

.tqd-kbd {
  display: inline-grid;
  place-items: center;
  min-inline-size: 18px;
  block-size: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--tqd-fill-2);
  box-shadow: inset 0 0 0 1px var(--tqd-line-2), inset 0 -1px 0 var(--tqd-line-2);
  color: var(--tqd-ink-4);
  font: 500 11px/1 var(--tq-font-mono);
  letter-spacing: 0;
  white-space: nowrap;
}
/* arrows are drawn, not typed: no font has them at the same weight */
.tqd-kbd > .tqd-i { inline-size: 11px; block-size: 11px; stroke-width: 2.2; }

/* the spinner — a conic tail, not a dashed ring; it reads as motion even
   at 12px. It keeps turning under reduced motion because it IS the news. */
.tqd-spin {
  display: inline-block;
  flex: none;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 22%, currentColor 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: tqd-turn .75s linear infinite;
}
@keyframes tqd-turn { to { transform: rotate(1turn); } }

/* skeleton — the shimmer line every region shows while it loads */
.tqd-skel {
  display: block;
  block-size: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0, rgb(var(--tq-white-rgb) / .07) 50%, transparent 100%) 0 0 / 200% 100% no-repeat,
    var(--tqd-fill-2);
  animation: tqd-shimmer 1.4s var(--tq-ease-in-out) infinite;
}
@keyframes tqd-shimmer {
  from { background-position: 150% 0, 0 0; }
  to   { background-position: -50% 0, 0 0; }
}


/* ── 02 · BUTTONS ────────────────────────────────────────────────────────
   One rule; each variant sets five knobs (--bg --bg-h --bg-a --fg --bd).
   Default (no variant) is secondary.                                      */
.tqd-btn {
  --h: var(--tqd-h);
  --px: 16px;
  --fs: var(--tqd-fs);
  --ic: 16px;
  --gap: 7px;
  --bg:   var(--tqd-fill-3);
  --bg-h: var(--tqd-fill-4);
  --bg-a: var(--tqd-fill-2);
  --fg:   var(--tqd-ink-1);
  --bd:   var(--tqd-line-1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  box-sizing: border-box;
  block-size: var(--h);
  min-inline-size: var(--h);
  margin: 0;
  padding: 0 var(--px);
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--bd);
  color: var(--fg);
  font: 600 var(--fs)/1 var(--tq-font-sans);
  letter-spacing: -.006em;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease),
              color var(--tq-d-fast) var(--tq-ease),
              box-shadow var(--tq-d-fast) var(--tq-ease),
              transform var(--tq-d-fast) var(--tq-ease-out),
              opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-btn > .tqd-i { inline-size: var(--ic); block-size: var(--ic); }
/* an icon at the start pulls the padding in by 2px: optically centred */
.tqd-btn:has(> .tqd-i:first-child):not(.tqd-btn--icon) { padding-inline-start: calc(var(--px) - 3px); }
.tqd-btn:has(> .tqd-i:last-child):not(.tqd-btn--icon) { padding-inline-end: calc(var(--px) - 3px); }
.tqd-btn__label { overflow: hidden; text-overflow: ellipsis; }

.tqd-btn:hover, .tqd-btn.is-hover { background: var(--bg-h); }
.tqd-btn:active { background: var(--bg-a); transform: scale(.97); }
.tqd-btn:focus-visible, .tqd-btn.is-focus {
  outline: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--bd), var(--tq-ring);
}
.tqd-btn:disabled, .tqd-btn[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
}

/* variants */
/* the signal: an orange fill carrying white (4.69:1); hover goes DEEPER (5.21:1), never lighter */
.tqd-btn--primary {
  --bg: var(--tqd-acc); --bg-h: var(--tqd-acc-hi); --bg-a: var(--tq-accent-press);
  --fg: #FFFFFF; --bd: transparent;
}
/* the white capsule — the strongest neutral: for a decisive action that is not the signal */
.tqd-btn--contrast {
  --bg: var(--tq-ink-950); --bg-h: #FFFFFF; --bg-a: var(--tq-ink-900);
  --fg: var(--tq-ink-050); --bd: transparent;
}
/* the Torque signature, THE LANE: a dashed centre line in the signal colour
   opens under the capsule on hover */
.tqd-btn--primary:not(.tqd-split__caret)::after {
  content: "";
  position: absolute;
  inset-inline: 20%;
  inset-block-end: -6px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--tq-grad-signature);
  box-shadow: none;
  opacity: 0;
  transform: scaleX(.2);
  transition: transform var(--tq-d-slower) var(--tq-ease-out), opacity var(--tq-d-slow) var(--tq-ease-out);
  pointer-events: none;
}
.tqd-btn--primary:hover::after, .tqd-btn--primary.is-hover::after,
.tqd-btn--primary:focus-visible::after { opacity: .95; transform: scaleX(1); }
/* the tonal signal: a soft wash with signal-coloured text, for the second call to act */
.tqd-btn--accent {
  --bg: var(--tqd-acc-soft); --bg-h: var(--tqd-acc-soft-2); --bg-a: var(--tqd-acc-soft);
  --fg: var(--tqd-acc-ink); --bd: rgb(var(--tq-accent-text-rgb) / .22);
}
.tqd-btn--secondary { /* the default, named */ }
.tqd-btn--outline {
  --bg: transparent; --bg-h: var(--tqd-fill-1); --bg-a: transparent;
  --fg: var(--tqd-ink-2); --bd: var(--tqd-line-3);
}
.tqd-btn--outline:hover, .tqd-btn--outline.is-hover { --bd: var(--tqd-line-4); color: var(--tqd-ink-1); }
.tqd-btn--ghost {
  --bg: transparent; --bg-h: var(--tqd-fill-2); --bg-a: var(--tqd-fill-1);
  --fg: var(--tqd-ink-3); --bd: transparent;
}
.tqd-btn--ghost:hover, .tqd-btn--ghost.is-hover { color: var(--tqd-ink-1); }
.tqd-btn--danger {
  --bg: var(--tqd-bad-fill); --bg-h: var(--tqd-bad-fill-hi); --bg-a: var(--tqd-bad-fill);
  --fg: #FFFFFF; --bd: transparent;
}
.tqd-btn--danger-soft {
  --bg: rgb(var(--tqd-bad-rgb) / .10); --bg-h: rgb(var(--tqd-bad-rgb) / .17); --bg-a: rgb(var(--tqd-bad-rgb) / .10);
  --fg: var(--tqd-bad); --bd: rgb(var(--tqd-bad-rgb) / .16);
}
.tqd-btn--link {
  --bg: transparent; --bg-h: transparent; --bg-a: transparent;
  --fg: var(--tqd-acc-ink); --bd: transparent;
  --px: 2px;
  min-inline-size: 0;
  border-radius: 6px;
}
.tqd-btn--link:hover, .tqd-btn--link.is-hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tqd-btn--link:active { transform: none; }

/* sizes */
.tqd-btn--xs { --h: var(--tqd-h-xs); --px: 10px; --fs: var(--tqd-fs-xs); --ic: 14px; --gap: 5px; }
.tqd-btn--sm { --h: var(--tqd-h-sm); --px: 12px; --fs: var(--tqd-fs-sm); --ic: 15px; --gap: 6px; }
.tqd-btn--lg { --h: var(--tqd-h-lg); --px: 20px; --fs: var(--tqd-fs-lg); --ic: 18px; --gap: 8px; }
.tqd-btn--xs > .tqd-i { stroke-width: 2; }
.tqd-btn--block { display: flex; inline-size: 100%; }
.tqd-btn--icon { --px: 0; inline-size: var(--h); }
.tqd-btn--icon.tqd-btn--ghost { --fg: var(--tqd-ink-4); }

/* pressed (a toggle) */
.tqd-btn[aria-pressed="true"] {
  --bg: var(--tqd-acc-soft); --bg-h: var(--tqd-acc-soft-2); --bg-a: var(--tqd-acc-soft);
  --fg: var(--tqd-acc-ink); --bd: rgb(var(--tq-accent-text-rgb) / .22);
}

/* busy — the label keeps its width, a spinner takes its place */
.tqd-btn.is-busy { color: transparent; pointer-events: none; }
.tqd-btn.is-busy > :not(.tqd-btn__spin) { visibility: hidden; }
.tqd-btn.is-busy::after { opacity: 0 !important; }
.tqd-btn__spin {
  position: absolute;
  inset: 0;
  margin: auto;
  color: var(--fg);
}
.tqd-btn.is-done { --bg: rgb(var(--tqd-ok-rgb) / .14); --bg-h: rgb(var(--tqd-ok-rgb) / .14); --fg: var(--tqd-ok); --bd: rgb(var(--tqd-ok-rgb) / .22); }

/* a count inside a button, and on the corner of an icon button */
.tqd-btn > .tqd-count { margin-inline-end: -6px; }
.tqd-btn--icon > .tqd-count,
.tqd-btn--icon > .tqd-dot {
  position: absolute;
  inset-block-start: -3px;
  inset-inline-end: -3px;
  margin: 0;
  box-shadow: 0 0 0 2px var(--tqd-surface);
}
.tqd-btn--icon > .tqd-dot { inset-block-start: 3px; inset-inline-end: 3px; }

/* a joined group of actions (not a choice — that is .tqd-seg) */
.tqd-btngroup {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  background: var(--tqd-fill-1);
  box-shadow: inset 0 0 0 1px var(--tqd-line-2);
  isolation: isolate;
  vertical-align: middle;
}
.tqd-btngroup > .tqd-btn {
  --bg: transparent; --bg-h: var(--tqd-fill-2); --bg-a: var(--tqd-fill-1); --bd: transparent;
  border-radius: 0;
}
.tqd-btngroup > .tqd-btn:first-child { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.tqd-btngroup > .tqd-btn:last-child  { border-start-end-radius: 999px; border-end-end-radius: 999px; }
.tqd-btngroup > .tqd-btn + .tqd-btn::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 9px;
  inline-size: 1px;
  background: var(--tqd-line-2);
}
.tqd-btngroup > .tqd-btn:focus-visible { border-radius: 999px; z-index: 1; }

/* split: the action and its options, 1px apart */
.tqd-split { display: inline-flex; gap: 1px; vertical-align: middle; }
.tqd-split > .tqd-btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; padding-inline-end: calc(var(--px) - 2px); }
.tqd-split > .tqd-split__caret {
  inline-size: calc(var(--h) - 2px);
  min-inline-size: 0;
  padding: 0 2px 0 0;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
.tqd-split > .tqd-btn:focus-visible { border-radius: 999px; z-index: 1; }
.tqd-split__caret > .tqd-i { inline-size: 15px; block-size: 15px; stroke-width: 2.2; transition: transform var(--tq-d-base) var(--tq-ease-out); }
.tqd-split__caret[aria-expanded="true"] > .tqd-i { transform: rotate(180deg); }


/* ── 03 · FIELDS ─────────────────────────────────────────────────────────
   One skin for everything you type into or pick from: .tqd-input,
   .tqd-textarea, native select.tqd-select, the .tqd-control wrapper (a
   field with things inside it) and the .tqd-trigger of a custom select.   */
.tqd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-inline-size: 0;
}
.tqd-field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-inline-size: 0;
}
.tqd-label {
  display: block;
  color: var(--tqd-ink-2);
  font: 600 13px/18px var(--tq-font-sans);
  letter-spacing: 0;
}
.tqd-req { color: var(--tqd-bad); margin-inline-start: 3px; font-weight: 700; }
.tqd-opt-hint { margin-inline-start: 6px; color: var(--tqd-ink-5); font-weight: 500; }
.tqd-help {
  color: var(--tqd-ink-5);
  font: 500 12px/17px var(--tq-font-sans);
  word-spacing: .03em;
  text-wrap: pretty;
}
.tqd-help b, .tqd-msg b { color: var(--tqd-ink-3); font-weight: 600; }
.tqd-msg--bad b, .tqd-msg--warn b, .tqd-msg--ok b { color: inherit; font-weight: 700; }
.tqd-help code, .tqd-msg code { font: 500 11.5px/1 var(--tq-font-mono); color: var(--tqd-ink-4); }
.tqd-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font: 600 12px/17px var(--tq-font-sans);
  word-spacing: .03em;
  text-wrap: pretty;
}
.tqd-msg > .tqd-i { inline-size: 14px; block-size: 14px; margin-block-start: 1.5px; stroke-width: 2; }
.tqd-msg--bad  { color: var(--tqd-bad); }
.tqd-msg--warn { color: var(--tqd-warn); }
.tqd-msg--ok   { color: var(--tqd-ok); }
.tqd-counter {
  flex: none;
  color: var(--tqd-ink-5);
  font: 500 11px/18px var(--tq-font-mono);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: color var(--tq-d-fast) var(--tq-ease);
}
.tqd-counter.is-warn { color: var(--tqd-warn); }
.tqd-counter.is-over { color: var(--tqd-bad); }

.tqd-input,
.tqd-textarea,
.tqd-control,
.tqd-trigger,
select.tqd-select,
select[data-tqd-select],
select[data-tqd-multi],
select[data-tqd-people] {
  --h: var(--tqd-h);
  --fs: var(--tqd-fs-input);
  --r: var(--tqd-r-field);
  --px: 12px;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: var(--h);
  margin: 0;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--r);
  background-color: var(--tqd-fill-1);
  color: var(--tqd-ink-1);
  font: 500 var(--fs)/20px var(--tq-font-sans);
  letter-spacing: -.003em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--tq-d-fast) var(--tq-ease),
              background-color var(--tq-d-fast) var(--tq-ease),
              box-shadow var(--tq-d-base) var(--tq-ease-out);
}
.tqd-input, select.tqd-select, select[data-tqd-select], select[data-tqd-multi], select[data-tqd-people] {
  display: block;
  block-size: var(--h);
  padding: 0 var(--px);
}
.tqd-input::placeholder, .tqd-textarea::placeholder, .tqd-control input::placeholder {
  color: var(--tqd-ink-5);
  opacity: 1;
}
.tqd-input:hover, .tqd-textarea:hover, .tqd-control:hover, .tqd-trigger:hover, select.tqd-select:hover,
.tqd-input.is-hover, .tqd-control.is-hover {
  border-color: var(--tqd-line-3);
}
.tqd-input:focus, .tqd-textarea:focus, select.tqd-select:focus,
.tqd-control:focus-within, .tqd-trigger:focus-visible, .tqd-trigger[aria-expanded="true"],
.tqd-input.is-focus, .tqd-control.is-focus {
  outline: none;
  border-color: var(--tqd-focus-line);
  border-radius: var(--r);
  background-color: var(--tqd-fill-2);
  box-shadow: var(--tqd-focus-halo);
}

/* the wrapper: a field that holds icons, affixes, tags or buttons */
.tqd-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--px);
  cursor: text;
}
.tqd-control > .tqd-i { color: var(--tqd-ink-5); transition: color var(--tq-d-fast) var(--tq-ease); }
.tqd-control:focus-within > .tqd-i { color: var(--tqd-ink-3); }
.tqd-control > .tqd-input,
.tqd-control > input:not([type="hidden"]) {
  flex: 1 1 auto;
  inline-size: auto;
  min-inline-size: 0;
  block-size: calc(var(--h) - 2px);
  min-block-size: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--tqd-ink-1);
  font: 500 var(--fs)/20px var(--tq-font-sans);
  letter-spacing: -.003em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.tqd-control > .tqd-input:focus-visible,
.tqd-control > input:focus-visible { box-shadow: none; }

.tqd-textarea {
  display: block;
  padding: 8px var(--px);
  min-block-size: 88px;
  resize: vertical;
  scrollbar-width: thin;
}
.tqd-textarea[data-tqd-autosize] { resize: none; overflow-y: hidden; min-block-size: 0; }

/* native select, styled — also what a custom select falls back to */
/* a kit select looks like this until the script draws its trigger (the
   same box, so nothing moves when it does); a filter waits out of sight */
select[data-tqd-multi]:not(.tqd-native), select[data-tqd-people][multiple]:not(.tqd-native) { overflow: hidden; padding-block: 7px; }
select[data-tqd-filter]:not(.tqd-native) { display: none; }
select.tqd-select,
select[data-tqd-select]:not(.tqd-native),
select[data-tqd-people]:not([multiple]):not(.tqd-native) {
  padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398989D' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px 16px;
  cursor: pointer;
  text-overflow: ellipsis;
}
select.tqd-select option, select.tqd-select optgroup,
select[data-tqd-select] option, select[data-tqd-select] optgroup,
select[data-tqd-multi] option, select[data-tqd-people] option { background: var(--tq-ink-200); color: var(--tq-ink-950); }
/* once enhanced, the native select stays as the value the page reads */
select.tqd-native {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  min-block-size: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}

/* sizes */
.tqd-input--sm, .tqd-control--sm, .tqd-trigger--sm, select.tqd-select--sm { --h: var(--tqd-h-sm); --fs: var(--tqd-fs-sm); --r: 8px; --px: 10px; }
.tqd-input--lg, .tqd-control--lg, .tqd-trigger--lg, select.tqd-select--lg { --h: var(--tqd-h-lg); --fs: var(--tqd-fs-lg); --r: 12px; --px: 14px; }

/* states */
.tqd-input[aria-invalid="true"], .tqd-textarea[aria-invalid="true"],
.tqd-control.is-bad, .tqd-control:has(> [aria-invalid="true"]), .tqd-trigger[aria-invalid="true"],
select.tqd-select[aria-invalid="true"] {
  border-color: rgb(var(--tqd-bad-rgb) / .72);
}
.tqd-input[aria-invalid="true"]:focus, .tqd-textarea[aria-invalid="true"]:focus,
.tqd-control.is-bad:focus-within, .tqd-control:has(> [aria-invalid="true"]):focus-within,
.tqd-trigger[aria-invalid="true"]:focus-visible, .tqd-trigger[aria-invalid="true"][aria-expanded="true"] {
  border-color: rgb(var(--tqd-bad-rgb) / .9);
  box-shadow: var(--tqd-bad-halo);
}
.tqd-control.is-warn { border-color: rgb(var(--tqd-warn-rgb) / .60); }
.tqd-control.is-ok   { border-color: rgb(var(--tqd-ok-rgb) / .50); }
.tqd-control.is-warn:focus-within { box-shadow: 0 0 0 3px rgb(var(--tqd-warn-rgb) / .18); border-color: rgb(var(--tqd-warn-rgb) / .8); }
.tqd-control.is-ok:focus-within   { box-shadow: 0 0 0 3px rgb(var(--tqd-ok-rgb) / .16); border-color: rgb(var(--tqd-ok-rgb) / .7); }
.tqd-state { flex: none; inline-size: 16px; block-size: 16px; }
.tqd-control.is-ok  > .tqd-state { color: var(--tqd-ok); }
.tqd-control.is-warn > .tqd-state { color: var(--tqd-warn); }
.tqd-control.is-bad > .tqd-state { color: var(--tqd-bad); }

.tqd-input:disabled, .tqd-textarea:disabled, select.tqd-select:disabled,
.tqd-control:has(> input:disabled), .tqd-control.is-disabled, .tqd-trigger:disabled, .tqd-trigger[aria-disabled="true"] {
  border-color: var(--tqd-line-1);
  background-color: transparent;
  color: var(--tqd-ink-5);
  cursor: not-allowed;
  box-shadow: none;
}
.tqd-control:has(> input:disabled) > input { color: var(--tqd-ink-5); cursor: not-allowed; }
.tqd-input[readonly], .tqd-control.is-readonly {
  border-style: dashed;
  border-color: var(--tqd-line-2);
  background-color: transparent;
  color: var(--tqd-ink-3);
}
.tqd-control.is-readonly > input { color: var(--tqd-ink-3); }


/* ── 04 · AFFIXES · SEARCH · NUMBER · PASSWORD ───────────────────────────── */
.tqd-affix {
  flex: none;
  color: var(--tqd-ink-5);
  font: 500 var(--fs)/20px var(--tq-font-sans);
  white-space: nowrap;
  user-select: none;
}
.tqd-affix--mono { font: 500 11px/20px var(--tq-font-mono); letter-spacing: .04em; }
/* a boxed add-on runs the full height of the field, against the edge */
.tqd-affix--box {
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-inline: calc(-1 * var(--px)) 2px;
  padding: 0 10px;
  border-inline-end: 1px solid var(--tqd-line-2);
  border-start-start-radius: calc(var(--r) - 1px);
  border-end-start-radius: calc(var(--r) - 1px);
  background: var(--tqd-fill-1);
  color: var(--tqd-ink-4);
}
.tqd-affix--box-end {
  order: 99;
  margin-inline: 2px calc(-1 * var(--px));
  border-inline-end: 0;
  border-inline-start: 1px solid var(--tqd-line-2);
  border-radius: 0 calc(var(--r) - 1px) calc(var(--r) - 1px) 0;
}

/* a small button living inside a field (clear, reveal, copy, stepper) */
.tqd-fbtn {
  flex: none;
  display: inline-grid;
  place-items: center;
  inline-size: 26px;
  block-size: 26px;
  margin: 0 -7px 0 -2px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tqd-ink-5);
  cursor: pointer;
  transition: background-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease), opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-fbtn:hover { background: var(--tqd-fill-3); color: var(--tqd-ink-1); }
.tqd-fbtn:active { background: var(--tqd-fill-2); }
.tqd-fbtn:focus-visible { outline: none; border-radius: 7px; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-fbtn > .tqd-i { inline-size: 16px; block-size: 16px; }
.tqd-control--sm .tqd-fbtn { inline-size: 22px; block-size: 22px; border-radius: 6px; margin-inline-end: -5px; }

/* search */
.tqd-search input::-webkit-search-decoration,
.tqd-search input::-webkit-search-cancel-button,
.tqd-search input::-webkit-search-results-button { -webkit-appearance: none; appearance: none; display: none; }
.tqd-search__clear { opacity: 0; pointer-events: none; }
.tqd-search.has-value .tqd-search__clear { opacity: 1; pointer-events: auto; }
.tqd-search__clear > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-search .tqd-kbd { transition: opacity var(--tq-d-fast) var(--tq-ease); }
.tqd-search.has-value .tqd-kbd, .tqd-search:focus-within .tqd-kbd { opacity: 0; }
.tqd-search.has-value .tqd-kbd { display: none; }
.tqd-search__lead { position: relative; flex: none; inline-size: 16px; block-size: 16px; color: var(--tqd-ink-5); }
.tqd-search__lead > .tqd-i, .tqd-search__lead > .tqd-spin { position: absolute; inset: 0; margin: auto; transition: opacity var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-base) var(--tq-ease-out); }
.tqd-search__lead > .tqd-spin { inline-size: 13px; block-size: 13px; opacity: 0; transform: scale(.6); color: var(--tqd-acc-ink); }
.tqd-search.is-busy .tqd-search__lead > .tqd-i { opacity: 0; transform: scale(.6); }
.tqd-search.is-busy .tqd-search__lead > .tqd-spin { opacity: 1; transform: none; }
.tqd-search:focus-within .tqd-search__lead { color: var(--tqd-ink-3); }

/* number · money · percent — tabular figures, steppers at the end */
.tqd-num > input { font-variant-numeric: tabular-nums; }
.tqd-num.is-money > input, .tqd-num.is-percent > input { text-align: start; }
.tqd-stepper {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline: 2px -7px;
}
.tqd-stepper .tqd-fbtn { margin: 0; }
.tqd-stepper .tqd-fbtn > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-stepper .tqd-fbtn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.tqd-stepper::before {
  content: "";
  inline-size: 1px;
  block-size: 16px;
  margin-inline-end: 4px;
  background: var(--tqd-line-2);
}

/* password */
.tqd-caps { display: none; }
.tqd-field.is-caps .tqd-caps { display: flex; }


/* ── 05 · CHOICE ─────────────────────────────────────────────────────────
   Native inputs, drawn by CSS: they work before any script and they
   serialise into an Ajax call exactly as they are.                       */
.tqd-check, .tqd-switch {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tqd-ink-2);
  font: 500 14px/20px var(--tq-font-sans);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tqd-check__text, .tqd-switch__text { display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.tqd-check__desc, .tqd-switch__desc { color: var(--tqd-ink-5); font: 500 12px/17px var(--tq-font-sans); }
.tqd-check:has(> input:disabled), .tqd-switch:not(.is-busy):has(> input:disabled) { cursor: not-allowed; color: var(--tqd-ink-5); }
.tqd-switch.is-busy { cursor: progress; }

.tqd-checkbox, .tqd-radio {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  inline-size: 16px;
  block-size: 16px;
  margin: 2px 0 0;
  border: 1.5px solid var(--tqd-line-4);
  border-radius: 5px;
  background: var(--tqd-fill-1);
  color: #FFFFFF;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color var(--tq-d-fast) var(--tq-ease),
              border-color var(--tq-d-fast) var(--tq-ease),
              box-shadow var(--tq-d-fast) var(--tq-ease);
}
.tqd-checkbox::before {
  content: "";
  inline-size: 12px;
  block-size: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--tq-d-base) var(--tq-ease-out);
}
.tqd-checkbox:indeterminate::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}
.tqd-checkbox:checked::before, .tqd-checkbox:indeterminate::before { clip-path: inset(0 0 0 0); }
.tqd-radio { border-radius: 50%; }
.tqd-radio::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform var(--tq-d-slow) var(--tq-ease-spring);
}
.tqd-radio:checked::before { transform: scale(1); }
.tqd-checkbox:hover, .tqd-radio:hover,
.tqd-check:hover > .tqd-checkbox, .tqd-check:hover > .tqd-radio { border-color: rgb(var(--tq-white-rgb) / .42); }
.tqd-checkbox:checked, .tqd-checkbox:indeterminate, .tqd-radio:checked {
  border-color: var(--tqd-acc);
  background: var(--tqd-acc);
}
.tqd-check:hover > .tqd-checkbox:checked, .tqd-check:hover > .tqd-checkbox:indeterminate, .tqd-check:hover > .tqd-radio:checked,
.tqd-checkbox:checked:hover, .tqd-radio:checked:hover { border-color: var(--tqd-acc-hi); background: var(--tqd-acc-hi); }
.tqd-checkbox:focus-visible { outline: none; border-radius: 5px; box-shadow: var(--tq-ring); }
.tqd-radio:focus-visible { outline: none; border-radius: 50%; box-shadow: var(--tq-ring); }
.tqd-checkbox:disabled, .tqd-radio:disabled { opacity: .4; cursor: not-allowed; }
.tqd-checkbox[aria-invalid="true"], .tqd-radio[aria-invalid="true"] { border-color: rgb(var(--tqd-bad-rgb) / .8); }

/* a stack of choices */
.tqd-choices { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.tqd-choices--row { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
.tqd-choices__sub { display: flex; flex-direction: column; gap: 10px; padding-inline-start: 26px; }

/* radio card — a choice with room to explain itself */
.tqd-rcard {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  min-inline-size: 0;
  padding: 14px 16px;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--tqd-r-card);
  background: var(--tqd-fill-1);
  color: var(--tqd-ink-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-base) var(--tq-ease-out);
}
.tqd-rcard:hover { border-color: var(--tqd-line-3); background: var(--tqd-fill-2); }
.tqd-rcard:has(> input:checked) {
  border-color: var(--tqd-acc-line);
  background: rgb(var(--tq-accent-rgb) / .09);
  box-shadow: inset 0 0 0 1px var(--tqd-acc-line);
}
.tqd-rcard:has(> input:focus-visible) { box-shadow: inset 0 0 0 1px var(--tqd-acc-line), var(--tq-ring); }
.tqd-rcard > input:focus-visible { box-shadow: none; }
.tqd-rcard:has(> input:disabled) { opacity: .45; cursor: not-allowed; }
.tqd-rcard__body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-inline-size: 0; }
.tqd-rcard__title { color: var(--tqd-ink-1); font: 600 14px/20px var(--tq-font-sans); }
.tqd-rcard__desc { color: var(--tqd-ink-4); font: 500 12.5px/18px var(--tq-font-sans); text-wrap: pretty; }
.tqd-rcard__meta { flex: none; color: var(--tqd-ink-3); font: 500 12px/20px var(--tq-font-mono); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tqd-rcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* switch — the knob springs, and stretches while you hold it */
.tqd-switch__input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  box-sizing: border-box;
  inline-size: 34px;
  block-size: 20px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--tq-white-rgb) / .16);
  box-shadow: inset 0 0 0 1px rgb(var(--tq-white-rgb) / .04);
  cursor: pointer;
  transition: background-color var(--tq-d-base) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease);
  --knob: 16px;
  --inset: 2px;
  --travel: calc(34px - var(--knob) - var(--inset) * 2);
}
.tqd-switch__input::before {
  content: "";
  position: absolute;
  inset-block-start: var(--inset);
  inset-inline-start: var(--inset);
  inline-size: var(--knob);
  block-size: var(--knob);
  border-radius: 999px;
  background: var(--tq-ink-950);
  box-shadow: 0 1px 3px rgb(var(--tq-black-rgb) / .45), 0 0 0 .5px rgb(var(--tq-black-rgb) / .12);
  transition: transform var(--tq-d-slow) var(--tq-ease-spring), inline-size var(--tq-d-base) var(--tq-ease-out);
}
.tqd-switch__input:hover { background: rgb(var(--tq-white-rgb) / .22); }
.tqd-switch__input:checked { background: var(--tqd-acc); }
.tqd-switch__input:checked:hover { background: var(--tqd-acc-hi); }
.tqd-switch__input:checked::before { transform: translateX(var(--travel)); }
.tqd-switch__input:active::before { inline-size: calc(var(--knob) + 4px); }
.tqd-switch__input:checked:active::before { transform: translateX(calc(var(--travel) - 4px)); }
.tqd-switch__input:focus-visible { outline: none; border-radius: 999px; box-shadow: var(--tq-ring); }
.tqd-switch__input:disabled { opacity: .4; cursor: not-allowed; }
.tqd-switch--sm .tqd-switch__input { inline-size: 28px; block-size: 16px; --knob: 12px; --travel: calc(28px - 12px - 4px); margin-block-start: 2px; }
/* busy: the knob carries a spinner while the save is in flight */
.tqd-switch__input::after {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--inset) + 3px);
  inset-inline-start: calc(var(--inset) + 3px);
  inline-size: calc(var(--knob) - 6px);
  block-size: calc(var(--knob) - 6px);
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 22%, var(--tqd-acc) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: 0;
  --tx: 0px;
  transform: translateX(var(--tx));
  transition: transform var(--tq-d-slow) var(--tq-ease-spring), opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-switch__input:checked::after { --tx: var(--travel); }
.tqd-switch.is-busy .tqd-switch__input { cursor: progress; }
.tqd-switch.is-busy .tqd-switch__input:disabled { opacity: 1; }
.tqd-switch.is-busy .tqd-switch__input::after { opacity: 1; animation: tqd-knob-turn .75s linear infinite; }
/* one transform, so the turn happens where the knob is (translate first, then spin) */
@keyframes tqd-knob-turn {
  from { transform: translateX(var(--tx)) rotate(0deg); }
  to   { transform: translateX(var(--tx)) rotate(360deg); }
}
.tqd-switch.is-busy .tqd-switch__input:not(:checked)::after { background: conic-gradient(from 90deg, transparent 0 22%, var(--tq-ink-400) 100%); }

/* segmented — a choice of views; the thumb slides (JS measures it) */
.tqd-seg {
  --seg-h: 30px;
  --seg-px: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  max-inline-size: 100%;
  padding: 3px;
  border-radius: 999px;
  background: var(--tqd-fill-2);
  box-shadow: inset 0 0 0 1px var(--tqd-line-1);
  isolation: isolate;
  vertical-align: middle;
}
.tqd-seg__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  block-size: var(--seg-h);
  padding: 0 var(--seg-px);
  border-radius: 999px;
  color: var(--tqd-ink-4);
  font: 600 13px/1 var(--tq-font-sans);
  letter-spacing: -.003em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--tq-d-fast) var(--tq-ease);
}
.tqd-seg__item > input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 999px;
  opacity: 0;
  cursor: pointer;
}
.tqd-seg__item > .tqd-i { inline-size: 15px; block-size: 15px; }
.tqd-seg__item:hover { color: var(--tqd-ink-2); }
.tqd-seg__item:has(> input:checked) { color: var(--tqd-ink-1); }
.tqd-seg__item:has(> input:focus-visible) { box-shadow: var(--tq-ring); }
.tqd-seg__item:has(> input:disabled) { opacity: .4; cursor: not-allowed; }
.tqd-seg__count { color: var(--tqd-ink-5); font-weight: 600; font-variant-numeric: tabular-nums; }
.tqd-seg__item:has(> input:checked) .tqd-seg__count { color: var(--tqd-ink-4); }
.tqd-seg__thumb, .tqd-seg:not(.is-live) .tqd-seg__item:has(> input:checked) {
  background: var(--tq-ink-400);
  box-shadow: 0 1px 2px rgb(var(--tq-black-rgb) / .45), inset 0 0 0 1px rgb(var(--tq-white-rgb) / .07);
}
.tqd-seg__thumb {
  position: absolute;
  z-index: 0;
  inset-block: 3px;
  inset-inline-start: 0;
  inline-size: var(--w, 0px);
  border-radius: 999px;
  transform: translateX(var(--x, 0px));
  transition: transform var(--tq-d-slow) var(--tq-ease-spring), inline-size var(--tq-d-slow) var(--tq-ease-spring);
  pointer-events: none;
}
.tqd-seg.is-still .tqd-seg__thumb { transition: none; }
.tqd-seg--sm { --seg-h: 24px; --seg-px: 10px; padding: 2px; }
.tqd-seg--sm .tqd-seg__item { font-size: 12px; }
.tqd-seg--sm .tqd-seg__thumb { inset-block: 2px; }
.tqd-seg--block { display: flex; inline-size: 100%; }
.tqd-seg--block .tqd-seg__item { flex: 1 1 0; }
.tqd-seg__item--icon { padding: 0; inline-size: calc(var(--seg-h) + 6px); }


/* ── 06 · SELECT TRIGGER ─────────────────────────────────────────────────── */
.tqd-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  block-size: var(--h);
  padding: 0 9px 0 var(--px);
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tqd-trigger__value {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  white-space: nowrap;
}
.tqd-trigger__text { overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; }
.tqd-trigger__value.is-ph { color: var(--tqd-ink-5); }
.tqd-trigger__value > .tqd-i { color: var(--tqd-ink-4); }
.tqd-trigger__sub { color: var(--tqd-ink-5); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tqd-trigger__end { position: relative; flex: none; display: grid; place-items: center; inline-size: 18px; block-size: 18px; color: var(--tqd-ink-5); }
.tqd-trigger__end > * { grid-area: 1 / 1; }
.tqd-trigger__chev { transition: transform var(--tq-d-base) var(--tq-ease-out), opacity var(--tq-d-fast) var(--tq-ease); }
.tqd-trigger[aria-expanded="true"] .tqd-trigger__chev { transform: rotate(180deg); }
.tqd-trigger__end > .tqd-spin { inline-size: 13px; block-size: 13px; opacity: 0; color: var(--tqd-acc-ink); transition: opacity var(--tq-d-fast) var(--tq-ease); }
.tqd-trigger.is-busy .tqd-trigger__chev { opacity: 0; }
.tqd-trigger.is-busy .tqd-trigger__end > .tqd-spin { opacity: 1; }
.tqd-trigger:hover .tqd-trigger__end, .tqd-trigger[aria-expanded="true"] .tqd-trigger__end { color: var(--tqd-ink-3); }
.tqd-trigger__clear { margin: 0 -2px 0 0; inline-size: 22px; block-size: 22px; border-radius: 6px; }
.tqd-trigger__clear > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-trigger:disabled .tqd-trigger__end, .tqd-trigger[aria-disabled="true"] .tqd-trigger__end { opacity: .5; }
/* multi: tags on one line, the rest counted */
.tqd-trigger--multi { padding-inline-start: 4px; gap: 6px; }
.tqd-trigger--multi .tqd-trigger__value { gap: 4px; }
.tqd-trigger--multi .tqd-trigger__value.is-ph { padding-inline-start: 8px; }
.tqd-trigger--multi .tqd-tag { flex: 0 0 auto; }
.tqd-trigger--multi .tqd-tag:first-child { flex: 0 1 auto; min-inline-size: 56px; }
.tqd-trigger__value.is-measuring > .tqd-tag { flex-shrink: 0; }
.tqd-trigger--multi[aria-disabled="true"] { pointer-events: none; }
.tqd-trigger--sm.tqd-trigger--multi { padding-inline-start: 3px; }


/* ── 07 · LAYERS — popover, listbox, sheet, menu ─────────────────────────
   A layer is measured and placed by tqd.place(): it flips, shifts, caps its
   own height, follows its anchor, and never leaves the viewport. Where the
   browser has the popover top layer, layers live there (no z-index war,
   no overflow clipping); otherwise they are fixed at --tq-z-popover.     */
.tqd-pop {
  position: fixed;
  inset: auto;
  z-index: var(--tq-z-popover);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-inline-size: 180px;
  max-inline-size: min(440px, calc(100vw - 16px));
  margin: 0;
  padding: 4px;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--tqd-r-pop);
  background: var(--tqd-pop);
  box-shadow: var(--tqd-shadow-pop);
  color: var(--tqd-ink-2);
  font: 500 14px/20px var(--tq-font-sans);
  letter-spacing: -.003em;
  overflow: hidden;
  opacity: 0;
  transform-origin: var(--tqd-origin, 50% 0);
  transform: translateY(var(--tqd-dy, -4px)) scale(.97);
  transition: opacity var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-base) var(--tq-ease-out);
  --tqd-surface: var(--tqd-pop);
}
.tqd-pop[data-side="top"]    { --tqd-dy: 4px; }
.tqd-pop.is-in { opacity: 1; transform: none; }
.tqd-pop.is-out { opacity: 0; transform: scale(.985); transition-duration: var(--tq-d-instant), var(--tq-d-fast); }
.tqd-pop:focus { outline: none; }

.tqd-lb { padding: 0; }
.tqd-lb__list {
  flex: 1 1 auto;
  min-block-size: 0;
  max-block-size: 320px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--tq-ink-400) transparent;
}
.tqd-lb__list:focus, .tqd-lb__list:focus-visible { outline: none; box-shadow: none; }
.tqd-lb__search {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  block-size: 40px;
  padding: 0 12px;
  border-block-end: 1px solid var(--tqd-line-1);
  color: var(--tqd-ink-5);
}
.tqd-lb__search > input {
  flex: 1 1 auto;
  min-inline-size: 0;
  block-size: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tqd-ink-1);
  font: 500 14px/20px var(--tq-font-sans);
  outline: none;
  box-shadow: none !important;
}
.tqd-lb__search > input::placeholder { color: var(--tqd-ink-5); opacity: 1; }
.tqd-lb__search:focus-within { color: var(--tqd-ink-3); }
.tqd-lb__glabel {
  padding: 8px 10px 4px;
  color: var(--tqd-ink-5);
  font: 600 10.5px/14px var(--tq-font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  user-select: none;
}
.tqd-lb__group + .tqd-lb__group { margin-block-start: 4px; padding-block-start: 4px; border-block-start: 1px solid var(--tqd-line-1); }
.tqd-lb__empty, .tqd-lb__note {
  padding: 18px 12px;
  color: var(--tqd-ink-5);
  font: 500 13px/18px var(--tq-font-sans);
  text-align: center;
}
.tqd-lb__skel { display: flex; flex-direction: column; gap: 14px; padding: 12px 10px; }
.tqd-lb__skel .tqd-skel:nth-child(2) { inline-size: 72%; }
.tqd-lb__skel .tqd-skel:nth-child(3) { inline-size: 86%; }
.tqd-lb__skel .tqd-skel:nth-child(4) { inline-size: 58%; }
.tqd-lb__foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-block-size: 44px;
  padding: 6px 6px 6px 12px;
  border-block-start: 1px solid var(--tqd-line-1);
  color: var(--tqd-ink-5);
  font: 500 12px/16px var(--tq-font-sans);
}
.tqd-lb__foot > :first-child { flex: 1 1 auto; min-inline-size: 0; }
.tqd-lb__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
  color: var(--tqd-ink-1);
  font: 600 13px/18px var(--tq-font-sans);
}

.tqd-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-block-size: var(--tqd-opt-h);
  padding: 6px 10px;
  border-radius: var(--tqd-r-opt);
  color: var(--tqd-ink-2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tqd-opt.is-active { background: var(--tqd-fill-3); color: var(--tqd-ink-1); }
.tqd-opt[aria-selected="true"] { color: var(--tqd-ink-1); }
.tqd-opt[aria-disabled="true"] { opacity: .38; cursor: default; }
.tqd-opt__lead { flex: none; display: grid; place-items: center; color: var(--tqd-ink-4); }
.tqd-opt.is-active .tqd-opt__lead { color: var(--tqd-ink-2); }
.tqd-opt__main { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; }
.tqd-opt__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-opt__desc { color: var(--tqd-ink-5); font: 500 12px/16px var(--tq-font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-opt__meta { flex: none; color: var(--tqd-ink-5); font: 500 11.5px/16px var(--tq-font-mono); letter-spacing: .01em; }
.tqd-opt mark { background: none; color: var(--tqd-acc-ink); font-weight: 700; }
.tqd-opt__check {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  color: var(--tqd-acc-ink);
  stroke-width: 2.2;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-slow) var(--tq-ease-spring);
}
.tqd-opt[aria-selected="true"] .tqd-opt__check { opacity: 1; transform: none; }
/* multi: a drawn box, the same one .tqd-checkbox draws */
.tqd-opt__box {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 16px;
  block-size: 16px;
  border: 1.5px solid var(--tqd-line-4);
  border-radius: 5px;
  background: var(--tqd-fill-1);
  color: #FFFFFF;
  transition: background-color var(--tq-d-fast) var(--tq-ease), border-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-opt__box::before {
  content: "";
  inline-size: 12px;
  block-size: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--tq-d-base) var(--tq-ease-out);
}
.tqd-opt[aria-selected="true"] .tqd-opt__box { border-color: var(--tqd-acc); background: var(--tqd-acc); }
.tqd-opt[aria-selected="true"] .tqd-opt__box::before { clip-path: inset(0 0 0 0); }
.tqd-opt.is-active .tqd-opt__box { border-color: rgb(var(--tq-white-rgb) / .42); }
.tqd-opt.is-active[aria-selected="true"] .tqd-opt__box { border-color: var(--tqd-acc-hi); background: var(--tqd-acc-hi); }
.tqd-opt__box.is-radio { border-radius: 50%; }
.tqd-opt__box.is-radio::before {
  inline-size: 6px; block-size: 6px; border-radius: 50%;
  -webkit-mask: none; mask: none;
  clip-path: none;
  transform: scale(0);
  transition: transform var(--tq-d-slow) var(--tq-ease-spring);
}
.tqd-opt[aria-selected="true"] .tqd-opt__box.is-radio::before { transform: scale(1); }

/* the phone sheet: the same list, from the bottom edge, big targets */
.tqd-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--tq-z-popover) - 1);
  box-sizing: border-box;
  inline-size: auto;
  block-size: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(var(--tq-black-rgb) / .58);
  opacity: 0;
  transition: opacity var(--tq-d-base) var(--tq-ease);
}
.tqd-scrim.is-in { opacity: 1; }
.tqd-pop.is-sheet {
  inset: auto 0 0 0 !important;
  inline-size: auto !important;
  min-inline-size: 0 !important;
  max-inline-size: none;
  max-block-size: 78vh;
  max-block-size: 78dvh;
  padding: 0 0 env(safe-area-inset-bottom);
  border-width: 1px 0 0;
  border-radius: 20px 20px 0 0;
  opacity: 1;
  transform: translateY(102%);
  transition: transform var(--tq-d-slow) var(--tq-ease-out);
}
.tqd-pop.is-sheet.is-in { transform: none; }
.tqd-pop.is-sheet.is-out { transform: translateY(102%); transition-duration: var(--tq-d-base); }
.tqd-pop:not(.is-sheet) > .tqd-sheet__grab,
.tqd-pop:not(.is-sheet) > .tqd-sheet__head,
.tqd-pop:not(.is-sheet) [data-act="done"],
.tqd-pop.is-sheet > .tqd-lb__head { display: none; }
.tqd-sheet__grab { flex: none; display: grid; place-items: center; block-size: 20px; }
.tqd-sheet__grab::before { content: ""; inline-size: 36px; block-size: 4px; border-radius: 4px; background: var(--tqd-line-4); }
.tqd-sheet__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 8px 16px;
  color: var(--tqd-ink-1);
  font: 700 16px/22px var(--tq-font-sans);
}
.tqd-sheet__head > span { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-pop.is-sheet .tqd-lb__list { max-block-size: none; padding: 4px 8px 8px; }
.tqd-pop.is-sheet .tqd-opt { min-block-size: 46px; padding: 8px 12px; font-size: 16px; border-radius: 10px; }
.tqd-pop.is-sheet .tqd-lb__search { block-size: 48px; margin: 0 12px 4px; padding: 0 12px; border: 1px solid var(--tqd-line-2); border-radius: 12px; background: var(--tqd-fill-1); }
.tqd-pop.is-sheet .tqd-lb__search > input { font-size: 16px; }
.tqd-pop.is-sheet .tqd-lb__foot { min-block-size: 56px; padding: 8px 12px; }
.tqd-pop.is-sheet .tqd-lb__foot .tqd-btn { --h: 40px; }

/* menu — actions, not values */
.tqd-menu { min-inline-size: 208px; padding: 4px; }
.tqd-menu[hidden] { display: none; }
.tqd-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: var(--tqd-opt-h);
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--tqd-r-opt);
  background: none;
  color: var(--tqd-ink-2);
  font: 500 14px/20px var(--tq-font-sans);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tqd-menu__item > .tqd-i { color: var(--tqd-ink-4); }
.tqd-menu__item > .tqd-kbd, .tqd-menu__item > .tqd-menu__meta { margin-inline-start: auto; }
.tqd-menu__meta { color: var(--tqd-ink-5); font: 500 12px/1 var(--tq-font-sans); }
.tqd-menu__item:hover, .tqd-menu__item:focus-visible, .tqd-menu__item.is-active {
  outline: none;
  border-radius: var(--tqd-r-opt);
  background: var(--tqd-fill-3);
  box-shadow: none;
  color: var(--tqd-ink-1);
}
.tqd-menu__item:hover > .tqd-i, .tqd-menu__item:focus-visible > .tqd-i { color: var(--tqd-ink-2); }
.tqd-menu__item--danger, .tqd-menu__item--danger > .tqd-i { color: var(--tqd-bad); }
.tqd-menu__item--danger:hover, .tqd-menu__item--danger:focus-visible { background: rgb(var(--tqd-bad-rgb) / .12); color: var(--tqd-bad); }
.tqd-menu__item--danger:hover > .tqd-i, .tqd-menu__item--danger:focus-visible > .tqd-i { color: var(--tqd-bad); }
.tqd-menu__item:disabled, .tqd-menu__item[aria-disabled="true"] { opacity: .38; cursor: default; pointer-events: none; }
.tqd-menu__sep { block-size: 1px; margin: 4px -4px; background: var(--tqd-line-1); border: 0; }
.tqd-menu__label {
  padding: 8px 10px 4px;
  color: var(--tqd-ink-5);
  font: 600 10.5px/14px var(--tq-font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}


/* ── 08 · FILTER PILLS — the Stripe pattern ──────────────────────────────
   Unset: a dashed capsule that says what it filters. Set: a solid capsule
   with a clear button, the field name, a hairline, and what it is set to.
   Changes are staged inside the popover and land together on Apply, so a
   list reloads once (one Ajax call), not once per tick.                  */
.tqd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tqd-filter {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  block-size: 28px;
  max-inline-size: 100%;
  border: 1px dashed var(--tqd-line-4);
  border-radius: 999px;
  color: var(--tqd-ink-4);
  font: 600 13px/1 var(--tq-font-sans);
  letter-spacing: -.003em;
  vertical-align: middle;
  transition: border-color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-filter:hover { border-color: rgb(var(--tq-white-rgb) / .40); color: var(--tqd-ink-2); }
.tqd-filter.is-set { border-style: solid; border-color: var(--tqd-line-3); background: var(--tqd-fill-1); color: var(--tqd-ink-2); }
.tqd-filter.is-set:hover { border-color: var(--tqd-line-4); }
.tqd-filter.is-open { border-color: var(--tqd-focus-line); border-style: solid; }
.tqd-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  block-size: 100%;
  min-inline-size: 0;
  margin: 0;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tqd-filter__btn:focus-visible { outline: none; border-radius: 999px; box-shadow: var(--tq-ring); }
.tqd-filter__btn > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-filter__btn > .tqd-filter__chev { inline-size: 12px; block-size: 12px; stroke-width: 2.2; color: var(--tqd-ink-5); margin-inline-start: -1px; transition: transform var(--tq-d-base) var(--tq-ease-out); }
.tqd-filter.is-open .tqd-filter__chev { transform: rotate(180deg); }
.tqd-filter.is-set .tqd-filter__btn { padding-inline-start: 4px; }
.tqd-filter__clear {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0 0 0 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--tqd-ink-5);
  cursor: pointer;
  transition: color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-filter__clear:hover { color: var(--tqd-ink-1); background: var(--tqd-fill-3); }
.tqd-filter__clear:focus-visible { outline: none; border-radius: 50%; box-shadow: var(--tq-ring); }
.tqd-filter__clear > .tqd-i { inline-size: 15px; block-size: 15px; stroke-width: 1.9; }
.tqd-filter__label { white-space: nowrap; }
.tqd-filter__sep { flex: none; inline-size: 1px; block-size: 12px; background: var(--tqd-line-3); }
.tqd-filter__val {
  min-inline-size: 0;
  max-inline-size: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tqd-acc-ink);
}
.tqd-filter__more { flex: none; color: var(--tqd-acc-ink); font-variant-numeric: tabular-nums; }
.tqd-fpop { min-inline-size: 240px; padding: 0; }
.tqd-fpop .tqd-lb__list { padding-block-start: 2px; }
.tqd-fpop .tqd-lb__foot { padding: 8px; }
.tqd-fpop .tqd-lb__foot .tqd-btn { flex: 1 1 auto; }


/* ── 09 · TAGS · CHIPS · TOKEN INPUT ─────────────────────────────────────── */
/* a tag lives inside a field: a rectangle, concentric with it */
.tqd-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  box-sizing: border-box;
  block-size: 26px;
  max-inline-size: 200px;
  padding: 0 8px;
  border-radius: var(--tqd-r-tag);
  background: var(--tqd-fill-3);
  color: var(--tqd-ink-1);
  font: 500 13px/1 var(--tq-font-sans);
  letter-spacing: -.003em;
  white-space: nowrap;
  transition: background-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease), opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-tag__text { overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; }
.tqd-tag:has(> .tqd-tag__x) { padding-inline-end: 3px; }
.tqd-tag > .tqd-avatar { margin-inline-start: -4px; }
.tqd-tag__x {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--tqd-ink-4);
  cursor: pointer;
  transition: background-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-tag__x:hover { background: var(--tqd-fill-4); color: var(--tqd-ink-1); }
.tqd-tag__x > .tqd-i { inline-size: 13px; block-size: 13px; stroke-width: 2.2; }
.tqd-tag:focus { outline: none; }
.tqd-tag:focus-visible, .tqd-tag.is-hot { box-shadow: 0 0 0 1.5px var(--tqd-acc-ink); background: var(--tqd-acc-soft-2); }
.tqd-tag--bad { background: rgb(var(--tqd-bad-rgb) / .13); color: #FF9DB5; box-shadow: inset 0 0 0 1px rgb(var(--tqd-bad-rgb) / .38); }
.tqd-tag--bad .tqd-tag__x { color: #FF9DB5; }
.tqd-tag--more { background: transparent; box-shadow: inset 0 0 0 1px var(--tqd-line-3); color: var(--tqd-ink-4); font-weight: 600; padding: 0 7px; cursor: default; }
.tqd-tag.is-dupe { animation: tqd-nudge var(--tq-d-slower) var(--tq-ease-out); }
@keyframes tqd-nudge {
  0%, 100% { transform: none; }
  20% { transform: translateX(-3px); background: rgb(var(--tqd-warn-rgb) / .25); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}
.tqd-tag.is-new { animation: tqd-tag-in var(--tq-d-base) var(--tq-ease-out); }
@keyframes tqd-tag-in { from { opacity: 0; transform: scale(.86); } }

/* token input: tags and a caret in one field that grows a line at a time */
.tqd-tokens {
  flex-wrap: wrap;
  align-content: center;
  gap: 4px;
  block-size: auto;
  min-block-size: var(--h);
  padding: 4px 8px 4px 4px;
}
.tqd-tokens > input.tqd-tokens__input {
  flex: 1 0 120px;
  block-size: 26px;
  padding-inline-start: 6px;
}
.tqd-tokens.is-full > input.tqd-tokens__input { flex-basis: 40px; }
.tqd-tokens > .tqd-tag { max-inline-size: 100%; }

/* chips — standalone and pressable, so capsules */
.tqd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  block-size: 28px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tqd-fill-1);
  box-shadow: inset 0 0 0 1px var(--tqd-line-2);
  color: var(--tqd-ink-3);
  font: 600 13px/1 var(--tq-font-sans);
  letter-spacing: -.003em;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-chip:hover { background: var(--tqd-fill-2); box-shadow: inset 0 0 0 1px var(--tqd-line-3); color: var(--tqd-ink-1); }
.tqd-chip:focus-visible { outline: none; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tqd-line-3), var(--tq-ring); }
.tqd-chip > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-chip__tick { inline-size: 0 !important; margin-inline-end: -6px; opacity: 0; transition: inline-size var(--tq-d-base) var(--tq-ease-out), margin var(--tq-d-base) var(--tq-ease-out), opacity var(--tq-d-fast) var(--tq-ease); }
.tqd-chip[aria-pressed="true"] { background: var(--tqd-acc-soft); box-shadow: inset 0 0 0 1px rgb(var(--tq-accent-text-rgb) / .35); color: var(--tqd-acc-ink); }
.tqd-chip[aria-pressed="true"] .tqd-chip__tick { inline-size: 14px !important; margin-inline-end: 0; opacity: 1; }
.tqd-chip__n { color: var(--tqd-ink-5); font-variant-numeric: tabular-nums; }
.tqd-chip[aria-pressed="true"] .tqd-chip__n { color: rgb(var(--tq-accent-text-rgb) / .75); }
.tqd-chip--removable { padding-inline-end: 4px; cursor: default; }
.tqd-chip--removable .tqd-tag__x { border-radius: 50%; }
.tqd-chip > .tqd-avatar { margin-inline-start: -8px; }


/* ── 10 · BADGES · COUNTS · STATS · ODOMETER ─────────────────────────────── */
.tqd-badge {
  --tone-rgb: var(--tq-white-rgb);
  --tone: var(--tqd-ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  block-size: 22px;
  /* DD-B8: Barlow sets its words .1em under the middle of their line (its ascent is 1em, its descent
     .2em): .2em at the foot lifts them to the badge's middle. An icon or a dot keeps the middle by
     its own margin (below). */
  padding: 0 9px .2em;
  border-radius: 999px;
  background: rgb(var(--tone-rgb) / .12);
  box-shadow: inset 0 0 0 1px rgb(var(--tone-rgb) / .16);
  color: var(--tone);
  font: 600 12px/1 var(--tq-font-sans);
  letter-spacing: .004em;
  white-space: nowrap;
  vertical-align: middle;
}
.tqd-badge--neutral { --tone-rgb: var(--tq-white-rgb); --tone: var(--tqd-ink-3); background: rgb(var(--tq-white-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--tq-white-rgb) / .10); }
.tqd-badge--accent { --tone-rgb: var(--tq-accent-text-rgb); --tone: var(--tqd-acc-ink); }
.tqd-badge--info   { --tone-rgb: var(--tqd-info-rgb); --tone: var(--tqd-info); }
.tqd-badge--ok     { --tone-rgb: var(--tqd-ok-rgb);   --tone: var(--tqd-ok); }
.tqd-badge--warn   { --tone-rgb: var(--tqd-warn-rgb); --tone: var(--tqd-warn); }
.tqd-badge--bad    { --tone-rgb: var(--tqd-bad-rgb);  --tone: var(--tqd-bad); }
.tqd-badge--ai     { --tone-rgb: var(--tqd-ai-rgb);   --tone: var(--tqd-ai); }
.tqd-badge--muted  { --tone-rgb: var(--tq-white-rgb); --tone: var(--tqd-ink-5); background: transparent; box-shadow: inset 0 0 0 1px var(--tqd-line-3); }
.tqd-badge--sm { block-size: 18px; padding: 0 7px .2em; gap: 5px; font-size: 11px; }
.tqd-badge > .tqd-i { inline-size: 13px; block-size: 13px; stroke-width: 2.1; margin-inline-start: -2px; margin-block-end: -.2em; }
.tqd-badge__dot { flex: none; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; margin-block-end: -.2em; }
/* DD-B8: soft, a badge without its ring (a line's state in one line each, 43: on FAQs, Home page and Hidden) */
.tqd-badge--soft { box-shadow: none; }
.tqd-badge--soft.tqd-badge--muted { background: rgb(var(--tq-white-rgb) / .06); }
.tqd-badge--solid { background: var(--tone); box-shadow: none; color: var(--tq-ink-050); }
.tqd-badge--solid.tqd-badge--accent { background: var(--tqd-acc); color: #FFFFFF; }
.tqd-badge--solid.tqd-badge--bad { background: var(--tqd-bad-fill); color: #FFFFFF; }
.tqd-badge--solid.tqd-badge--ai { background: #6C5CE7; color: #FFFFFF; }
/* live: the dot breathes */
.tqd-badge--live .tqd-badge__dot, .tqd-dot--live { position: relative; }
.tqd-badge--live .tqd-badge__dot::after, .tqd-dot--live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: tqd-breathe 1.8s var(--tq-ease-out) infinite;
}
@keyframes tqd-breathe { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

.tqd-dot { display: inline-block; flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tqd-acc-ink); color: var(--tqd-acc-ink); vertical-align: middle; }
.tqd-dot--ok { background: var(--tqd-ok); color: var(--tqd-ok); }
.tqd-dot--warn { background: var(--tqd-warn); color: var(--tqd-warn); }
.tqd-dot--bad { background: var(--tqd-bad); color: var(--tqd-bad); }
.tqd-dot--muted { background: var(--tq-ink-500); color: var(--tq-ink-500); }

.tqd-count {
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  min-inline-size: 18px;
  block-size: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tqd-acc);
  color: #FFFFFF;
  font: 700 11px/1 var(--tq-font-sans);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.tqd-count--bad { background: var(--tqd-bad-fill); }
.tqd-count--warn { background: var(--tqd-warn); color: var(--tq-ink-050); }
.tqd-count--muted { background: var(--tqd-fill-4); color: var(--tqd-ink-1); }
.tqd-count--sm { min-inline-size: 16px; block-size: 16px; padding: 0 4px; font-size: 10px; }
.tqd-count.is-bump { animation: tqd-bump var(--tq-d-slow) var(--tq-ease-spring); }
@keyframes tqd-bump { 0% { transform: scale(.7); } 100% { transform: none; } }

/* the header stat: a pressable count with a sentence behind it */
.tqd-stat {
  --tone-rgb: var(--tq-accent-text-rgb);
  --tone: var(--tqd-acc-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  block-size: 32px;
  margin: 0;
  padding: 0 5px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tqd-fill-2);
  box-shadow: inset 0 0 0 1px var(--tqd-line-1);
  color: var(--tqd-ink-3);
  font: 600 13px/1 var(--tq-font-sans);
  letter-spacing: -.003em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-stat:hover { background: var(--tqd-fill-3); box-shadow: inset 0 0 0 1px var(--tqd-line-2); color: var(--tqd-ink-1); }
.tqd-stat:focus-visible { outline: none; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tqd-line-2), var(--tq-ring); }
.tqd-stat > .tqd-i { inline-size: 15px; block-size: 15px; margin-inline-start: -2px; color: var(--tqd-ink-4); }
.tqd-stat__n {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-inline-size: 22px;
  block-size: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgb(var(--tone-rgb) / .16);
  color: var(--tone);
  font: 700 12px/1 var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
}
.tqd-stat--warn { --tone-rgb: var(--tqd-warn-rgb); --tone: var(--tqd-warn); }
.tqd-stat--bad  { --tone-rgb: var(--tqd-bad-rgb);  --tone: var(--tqd-bad); }
.tqd-stat--ok   { --tone-rgb: var(--tqd-ok-rgb);   --tone: var(--tqd-ok); }
.tqd-stat--ai   { --tone-rgb: var(--tqd-ai-rgb);   --tone: var(--tqd-ai); }
.tqd-stat--zero .tqd-stat__n { background: var(--tqd-fill-2); color: var(--tqd-ink-5); }
.tqd-stat.is-bump .tqd-stat__n { animation: tqd-bump var(--tq-d-slow) var(--tq-ease-spring); }

/* odometer — digits roll to their new value */
.tqd-odo { display: inline-flex; line-height: 1; vertical-align: top; --odo-h: 1.2em; block-size: var(--odo-h); overflow: hidden; align-items: flex-start; }
.tqd-odo__d { display: block; block-size: var(--odo-h); overflow: hidden; }
.tqd-odo__col { display: flex; flex-direction: column; transform: translateY(calc(var(--odo-v, 0) * var(--odo-h) * -1)); transition: transform var(--tq-d-slower) var(--tq-ease-out); }
.tqd-odo__col > span, .tqd-odo__c { display: block; block-size: var(--odo-h); line-height: var(--odo-h); text-align: center; }
.tqd-stat__n .tqd-odo, .tqd-count .tqd-odo { --odo-h: 12px; }


/* ── 11 · AVATARS ────────────────────────────────────────────────────────── */
.tqd-avatar {
  --s: 28px;
  --hue: var(--tqd-hue-6);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  inline-size: var(--s);
  block-size: var(--s);
  border-radius: 50%;
  background: color-mix(in srgb, rgb(var(--hue)) 22%, var(--tq-ink-150));
  color: color-mix(in srgb, rgb(var(--hue)) 72%, #FFFFFF);
  font: 700 calc(var(--s) * .38)/1 var(--tq-font-sans);
  letter-spacing: .01em;
  text-transform: uppercase;
  vertical-align: middle;
  user-select: none;
  -webkit-user-select: none;
}
.tqd-avatar > img { inline-size: 100%; block-size: 100%; border-radius: 50%; object-fit: cover; }
.tqd-avatar > .tqd-i { inline-size: 55%; block-size: 55%; }
.tqd-avatar--xs { --s: 18px; font-size: 8px; letter-spacing: 0; }
.tqd-avatar--sm { --s: 22px; font-size: 9px; }
.tqd-avatar--md { --s: 28px; }
.tqd-avatar--lg { --s: 36px; }
.tqd-avatar--xl { --s: 48px; }
.tqd-avatar--ai { background: linear-gradient(135deg, #3B2F9E, #6149D8); color: #FFFFFF; }
.tqd-hue-0 { --hue: var(--tqd-hue-0); }
.tqd-hue-1 { --hue: var(--tqd-hue-1); }
.tqd-hue-2 { --hue: var(--tqd-hue-2); }
.tqd-hue-3 { --hue: var(--tqd-hue-3); }
.tqd-hue-4 { --hue: var(--tqd-hue-4); }
.tqd-hue-5 { --hue: var(--tqd-hue-5); }
.tqd-hue-6 { --hue: var(--tqd-hue-6); }
.tqd-avatar[data-presence]::after {
  content: "";
  position: absolute;
  inset-inline-end: -1px;
  inset-block-end: -1px;
  inline-size: max(7px, calc(var(--s) * .28));
  block-size: max(7px, calc(var(--s) * .28));
  border-radius: 50%;
  background: var(--tq-ink-500);
  box-shadow: 0 0 0 2px var(--tqd-surface);
}
.tqd-avatar[data-presence="online"]::after { background: var(--tqd-ok); }
.tqd-avatar[data-presence="away"]::after { background: var(--tqd-warn); }
.tqd-avatar[data-presence="busy"]::after { background: var(--tqd-bad); }
.tqd-avatars { display: inline-flex; align-items: center; vertical-align: middle; --s: 28px; }
.tqd-avatars > .tqd-avatar { --s: inherit; box-shadow: 0 0 0 2px var(--tqd-surface); transition: margin var(--tq-d-base) var(--tq-ease-out); }
.tqd-avatars > .tqd-avatar + .tqd-avatar { margin-inline-start: calc(var(--s) * -.3); }
.tqd-avatars:hover > .tqd-avatar + .tqd-avatar { margin-inline-start: calc(var(--s) * -.12); }
.tqd-avatar--more { background: var(--tq-ink-300); color: var(--tqd-ink-2); font-weight: 700; letter-spacing: -.01em; text-transform: none; }
.tqd-avatars--sm { --s: 22px; }
.tqd-avatars--sm > .tqd-avatar { font-size: 9px; }
.tqd-avatars--lg { --s: 36px; }
.tqd-avatars--lg > .tqd-avatar { font-size: 13px; }
.tqd-person { display: inline-flex; align-items: center; gap: 10px; min-inline-size: 0; }
.tqd-person__text { display: flex; flex-direction: column; min-inline-size: 0; }
.tqd-person__name { color: var(--tqd-ink-1); font: 600 14px/19px var(--tq-font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-person__sub { color: var(--tqd-ink-5); font: 500 12px/16px var(--tq-font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ── 12 · TOOLTIPS ───────────────────────────────────────────────────────
   Inverted — the one light surface in the dash — so it is never confused
   with the content it describes. Opens on hover after a beat, at once on
   keyboard focus, instantly while another tip was just open; Esc closes;
   the pointer can travel onto it (WCAG 1.4.13).                          */
.tqd-tip {
  position: fixed;
  inset: auto;
  z-index: var(--tq-z-tooltip);
  box-sizing: border-box;
  max-inline-size: min(280px, calc(100vw - 16px));
  margin: 0;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--tq-ink-950);
  box-shadow: var(--tqd-shadow-tip);
  color: var(--tq-ink-100);
  font: 600 12px/16px var(--tq-font-sans);
  letter-spacing: .004em;
  text-align: start;
  overflow: visible;
  pointer-events: auto;
  opacity: 0;
  transform-origin: var(--tqd-origin, 50% 100%);
  transform: translate(var(--tx, 0), var(--ty, 4px)) scale(.96);
  transition: opacity var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-base) var(--tq-ease-out);
}
.tqd-tip[data-side="bottom"] { --ty: -4px; }
.tqd-tip[data-side="left"]   { --ty: 0; --tx: 4px; }
.tqd-tip[data-side="right"]  { --ty: 0; --tx: -4px; }
.tqd-tip.is-in { opacity: 1; transform: none; }
.tqd-tip.is-swap { transition-duration: var(--tq-d-instant), var(--tq-d-fast); }
.tqd-tip__in { display: block; }
.tqd-tip__row { display: flex; align-items: center; gap: 8px; }
.tqd-tip .tqd-kbd {
  margin-inline-end: -3px;
  background: rgb(var(--tq-black-rgb) / .07);
  box-shadow: inset 0 0 0 1px rgb(var(--tq-black-rgb) / .12);
  color: var(--tq-ink-500);
}
.tqd-tip__t { display: block; color: var(--tq-ink-050); font-weight: 700; font-size: 12.5px; line-height: 17px; }
.tqd-tip__b { display: block; margin-block-start: 2px; color: var(--tq-ink-500); font-weight: 500; }
.tqd-tip--rich { padding: 9px 11px 10px; max-inline-size: min(300px, calc(100vw - 16px)); }
.tqd-tip__arrow {
  position: absolute;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 1.5px;
  background: inherit;
  transform: rotate(45deg);
  pointer-events: none;
}
/* toggletip — click to open, stays until you are done */
.tqd-toggletip { max-inline-size: min(300px, calc(100vw - 16px)); padding: 10px 12px; color: var(--tqd-ink-3); font: 500 13px/19px var(--tq-font-sans); }
.tqd-toggletip strong { color: var(--tqd-ink-1); font-weight: 700; }
.tqd-infobtn {
  display: inline-grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--tqd-ink-5);
  vertical-align: middle;
  cursor: pointer;
  transition: color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-infobtn:hover, .tqd-infobtn[aria-expanded="true"] { color: var(--tqd-ink-1); background: var(--tqd-fill-3); }
.tqd-infobtn:focus-visible { outline: none; border-radius: 50%; box-shadow: var(--tq-ring); }
.tqd-infobtn > .tqd-i { inline-size: 16px; block-size: 16px; }


/* ── 13 · DATES — the kit field around the ported LitePicker ─────────────── */
/* the input spans the whole field (the icon sits over it), so the picker —
   which aligns to the input — lines up with the field's edge */
.tqd-control.tqd-date { padding-inline-start: 0; }
.tqd-date > .tqd-i { position: absolute; inset-inline-start: var(--px); pointer-events: none; }
.tqd-control.tqd-date > input { padding-inline-start: calc(var(--px) + 26px); cursor: pointer; }
.tqd-date > input::selection { background: transparent; }
.tqd-control:has(> .qp-input.is-open) {
  border-color: var(--tqd-focus-line);
  background-color: var(--tqd-fill-2);
  box-shadow: var(--tqd-focus-halo);
}
.tqd-control:has(> .qp-input.is-open) > .tqd-i { color: var(--tqd-ink-3); }


/* =========================================================================
   KIT 2 — LAYERS & DATA  (30 Sep 2026)
   Dialogs, drawers, confirm, toasts, menus+, peek cards, tabs, the data
   table, the pager, the filter bar, empty and error states, the timeline,
   progress, steps and record details.
   ========================================================================= */


/* ── 14 · DIALOGS — modal and drawer ─────────────────────────────────────
   Native <dialog> opened with showModal(): the top layer makes the page
   behind inert and keeps focus inside. A press on the backdrop never closes
   one (a half-written update is not lost to a stray click); Esc and the ×
   do — and a dialog holding unsaved text asks first. On a phone a modal
   rises from the bottom edge as a sheet.                                 */
.tqd-modal, .tqd-drawer {
  --w: 560px;
  --tqd-surface: var(--tqd-raised);
  box-sizing: border-box;
  flex-direction: column;
  inline-size: var(--w);
  max-inline-size: calc(100vw - 32px);
  max-block-size: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--tqd-line-2);
  border-radius: 18px;
  background: var(--tqd-raised);
  box-shadow: 0 0 0 1px rgb(var(--tq-black-rgb) / .45),
              0 40px 100px -24px rgb(var(--tq-black-rgb) / .80),
              0 12px 32px -10px rgb(var(--tq-black-rgb) / .55);
  color: var(--tqd-ink-3);
  font: 500 14px/21px var(--tq-font-sans);
  letter-spacing: -.003em;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.975);
  transition: opacity var(--tq-d-base) var(--tq-ease), transform var(--tq-d-slow) var(--tq-ease-out);
}
.tqd-modal[open], .tqd-drawer[open] { display: flex; }
.tqd-modal.is-in, .tqd-drawer.is-in { opacity: 1; transform: none; }
.tqd-modal.is-out { opacity: 0; transform: scale(.985); transition-duration: var(--tq-d-fast), var(--tq-d-base); }
.tqd-modal::backdrop, .tqd-drawer::backdrop {
  background: rgb(0 0 0 / .64);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--tq-d-base, 220ms) cubic-bezier(.4, 0, .2, 1);
}
.tqd-modal.is-in::backdrop, .tqd-drawer.is-in::backdrop { opacity: 1; }
.tqd-modal.is-out::backdrop, .tqd-drawer.is-out::backdrop { opacity: 0; }
.tqd-modal:focus, .tqd-drawer:focus { outline: none; }
.tqd-modal--sm { --w: 440px; }
.tqd-modal--lg { --w: 760px; }
.tqd-modal--xl { --w: 980px; }

.tqd-modal__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 14px 14px 22px;
  border-block-end: 1px solid transparent;
  transition: border-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-modal.is-scrolled .tqd-modal__head, .tqd-drawer.is-scrolled .tqd-modal__head { border-block-end-color: var(--tqd-line-1); }
.tqd-modal__titles { flex: 1 1 auto; min-inline-size: 0; padding-block-start: 1px; }
.tqd-modal__title { margin: 0; color: var(--tqd-ink-1); font: 700 17px/24px var(--tq-font-sans); letter-spacing: -.014em; word-spacing: .04em; }
.tqd-modal__sub { margin: 2px 0 0; color: var(--tqd-ink-4); font: 500 13px/19px var(--tq-font-sans); word-spacing: .04em; }
.tqd-modal__head > .tqd-avatar, .tqd-modal__head > .tqd-modal__icon { margin-block-start: 1px; }
.tqd-modal__x { flex: none; margin: -3px 0 0; }
.tqd-modal__tabs { flex: none; padding: 0 22px; }
.tqd-modal__body {
  position: relative;
  flex: 1 1 auto;
  min-block-size: 0;
  padding: 2px 22px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.tqd-modal__head + .tqd-modal__body { padding-block-start: 4px; }
.tqd-modal__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px;
  border-block-start: 1px solid var(--tqd-line-1);
  background: rgb(var(--tq-black-rgb) / .20);
}
.tqd-modal__aside { margin-inline-end: auto; color: var(--tqd-ink-5); font: 500 12.5px/18px var(--tq-font-sans); display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
.tqd-modal__icon {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  background: rgb(var(--tone-rgb, var(--tq-accent-text-rgb)) / .14);
  color: var(--tone, var(--tqd-acc-ink));
}
.tqd-modal__icon > .tqd-i { inline-size: 20px; block-size: 20px; stroke-width: 1.6; }
/* while its content loads over Ajax */
.tqd-modal__skel { display: none; flex-direction: column; gap: 14px; padding: 8px 0; }
.tqd-modal__body.is-loading > :not(.tqd-modal__skel) { display: none; }
.tqd-modal__body.is-loading > .tqd-modal__skel { display: flex; }
.tqd-modal__skel .tqd-skel:nth-child(3n+2) { inline-size: 82%; }
.tqd-modal__skel .tqd-skel:nth-child(3n) { inline-size: 64%; }

/* what a dialog's body (or a page's panel) is made of */
.tqd-stack { display: flex; flex-direction: column; gap: 16px; min-inline-size: 0; }
.tqd-form { display: flex; flex-direction: column; gap: 18px; min-inline-size: 0; }
.tqd-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.tqd-subhead { margin: 26px 0 12px; color: var(--tqd-ink-5); font: 600 10.5px/16px var(--tq-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tqd-subhead:first-child { margin-block-start: 0; }
.tqd-list { margin: 0; padding-inline-start: 20px; list-style: disc outside; color: var(--tqd-ink-3); font: 500 14px/22px var(--tq-font-sans); word-spacing: .02em; }
.tqd-list li + li { margin-block-start: 4px; }
.tqd-list li::marker { color: var(--tqd-ink-5); }
/* DD-B8: over tq.base.css's reset of a list with a class (ul[class]), which this kit loads after */
ul.tqd-list { padding-inline-start: 20px; list-style: disc outside; }
/* a dialog opened over another keeps the one under it readable */
.tqd-modal.is-stacked::backdrop, .tqd-drawer.is-stacked::backdrop { background: rgb(0 0 0 / .40); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* a dialog with tabs keeps one height from tab to tab */
.tqd-modal:has(> .tqd-modal__tabs) { block-size: min(600px, calc(100dvh - 48px)); }
/* tabs under the head carry their own line */
.tqd-modal__head:has(+ .tqd-modal__tabs) { border-block-end-color: transparent !important; padding-block-end: 8px; }

/* the drawer: full height, from the edge */
.tqd-drawer {
  --w: 480px;
  inline-size: var(--w);
  max-inline-size: 100vw;
  block-size: 100dvh;
  max-block-size: 100dvh;
  margin: 0 0 0 auto;
  border-width: 0 0 0 1px;
  border-radius: 0;
  opacity: 1;
  transform: translateX(100%);
  transition: transform var(--tq-d-slow) var(--tq-ease-out);
}
.tqd-drawer.is-in { transform: none; }
.tqd-drawer.is-out { transform: translateX(100%); transition-duration: var(--tq-d-base); }
.tqd-drawer--left { margin: 0 auto 0 0; border-width: 0 1px 0 0; transform: translateX(-100%); }
.tqd-drawer--left.is-out { transform: translateX(-100%); }
.tqd-drawer--sm { --w: 380px; }
.tqd-drawer--lg { --w: 640px; }
.tqd-drawer--xl { --w: 820px; }
.tqd-drawer .tqd-modal__head { padding-block-start: 20px; }
.tqd-drawer .tqd-modal__foot { padding-block-end: calc(14px + env(safe-area-inset-bottom)); }

@media (max-width: 560px) {
  .tqd-modal {
    inline-size: 100%;
    max-inline-size: 100%;
    max-block-size: 92dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    opacity: 1;
    transform: translateY(102%);
  }
  .tqd-modal.is-in { transform: none; }
  .tqd-modal.is-out { opacity: 1; transform: translateY(102%); }
  .tqd-modal::before {
    content: "";
    flex: none;
    align-self: center;
    inline-size: 36px;
    block-size: 4px;
    margin: 8px 0 0;
    border-radius: 4px;
    background: var(--tqd-line-4);
  }
  .tqd-modal .tqd-modal__head { padding: 12px 10px 12px 18px; }
  .tqd-modal .tqd-modal__body { padding-inline: 18px; }
  .tqd-modal .tqd-modal__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .tqd-modal .tqd-modal__foot > .tqd-btn { flex: 1 1 auto; }
  .tqd-modal .tqd-modal__aside { flex: 1 0 100%; margin: 0 0 2px; }
  .tqd-drawer { --w: 100vw; border: 0; }
  .tqd-form__row { grid-template-columns: minmax(0, 1fr); }
}


/* ── 15 · CONFIRM · ALERT · PROMPT ───────────────────────────────────────── */
.tqd-confirm { --w: 440px; }
.tqd-confirm .tqd-modal__body { padding-block-start: 22px; }
.tqd-confirm .tqd-modal__icon { margin-block-end: 14px; }
.tqd-confirm .tqd-modal__title { margin-block-end: 6px; }
.tqd-confirm__text { margin: 0; color: var(--tqd-ink-4); font: 500 14px/21px var(--tq-font-sans); word-spacing: .02em; text-wrap: pretty; }
.tqd-confirm__text b { color: var(--tqd-ink-2); font-weight: 600; }
.tqd-confirm .tqd-field { margin-block-start: 18px; }
.tqd-confirm__code { padding: 1px 6px; border-radius: 6px; background: var(--tqd-fill-3); color: var(--tqd-ink-1); font: 600 12.5px/1 var(--tq-font-mono); letter-spacing: .04em; }
.tqd-tone-ok   { --tone-rgb: var(--tqd-ok-rgb);   --tone: var(--tqd-ok); }
.tqd-tone-warn { --tone-rgb: var(--tqd-warn-rgb); --tone: var(--tqd-warn); }
.tqd-tone-bad  { --tone-rgb: var(--tqd-bad-rgb);  --tone: var(--tqd-bad); }
.tqd-tone-ai   { --tone-rgb: var(--tqd-ai-rgb);   --tone: var(--tqd-ai); }
.tqd-tone-info { --tone-rgb: var(--tqd-info-rgb); --tone: var(--tqd-info); }


/* ── 16 · TOASTS ─────────────────────────────────────────────────────────
   Bottom right on a desk, bottom edge on a phone. Each one pauses while the
   pointer or the keyboard is on it; errors stay longer; a promise toast
   turns from "Sending…" into what happened.                              */
.tqd-toasts {
  position: fixed;
  inset: auto 20px 20px auto;
  z-index: var(--tq-z-toast);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  inline-size: min(380px, calc(100vw - 24px));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
  pointer-events: none;
}
.tqd-toast {
  --tone-rgb: var(--tq-white-rgb);
  --tone: var(--tqd-ink-3);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  box-sizing: border-box;
  padding: 12px 8px 13px 14px;
  border: 1px solid var(--tqd-line-2);
  border-radius: 14px;
  background: var(--tq-ink-200);
  box-shadow: var(--tqd-shadow-pop);
  color: var(--tqd-ink-3);
  font: 500 13px/19px var(--tq-font-sans);
  letter-spacing: -.003em;
  overflow: hidden;
  pointer-events: auto;
  animation: tqd-toast-in var(--tq-d-slow) var(--tq-ease-out) both;
}
@keyframes tqd-toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.tqd-toast.is-shown { animation: none; }
.tqd-toast.is-out { animation: tqd-toast-out var(--tq-d-base) var(--tq-ease) forwards; }
@keyframes tqd-toast-out { to { opacity: 0; transform: translateX(18px); margin-block-end: calc(-1 * var(--h, 64px) - 10px); } }
.tqd-toast__icon { display: grid; place-items: center; inline-size: 20px; block-size: 20px; margin-block-start: 0; color: var(--tone); }
.tqd-toast__icon > .tqd-i { inline-size: 18px; block-size: 18px; }
.tqd-toast__icon > .tqd-spin { inline-size: 15px; block-size: 15px; color: var(--tqd-acc-ink); }
.tqd-toast__main { min-inline-size: 0; }
.tqd-toast__title { color: var(--tqd-ink-1); font: 600 14px/20px var(--tq-font-sans); word-spacing: .03em; overflow-wrap: anywhere; }
.tqd-toast__body { margin-block-start: 1px; color: var(--tqd-ink-4); word-spacing: .02em; overflow-wrap: anywhere; text-wrap: pretty; }
.tqd-toast__actions { display: flex; gap: 14px; margin-block-start: 8px; }
.tqd-toast__act {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--tqd-acc-ink);
  font: 600 13px/18px var(--tq-font-sans);
  cursor: pointer;
}
.tqd-toast__act:hover { text-decoration: underline; text-underline-offset: 3px; }
.tqd-toast__act:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-toast__x { margin: -4px 0 0; inline-size: 26px; block-size: 26px; }
.tqd-toast__x > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-toast__bar {
  position: absolute;
  inset: auto 0 0 0;
  block-size: 2px;
  background: var(--tone);
  opacity: .55;
  transform-origin: 0 50%;
  animation: tqd-toast-time var(--t, 5000ms) linear forwards;
}
.tqd-toast.is-paused .tqd-toast__bar { animation-play-state: paused; }
@keyframes tqd-toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.tqd-toast--ok   { --tone-rgb: var(--tqd-ok-rgb);   --tone: var(--tqd-ok); }
.tqd-toast--warn { --tone-rgb: var(--tqd-warn-rgb); --tone: var(--tqd-warn); }
.tqd-toast--bad  { --tone-rgb: var(--tqd-bad-rgb);  --tone: var(--tqd-bad); border-color: rgb(var(--tqd-bad-rgb) / .35); }
.tqd-toast--ai   { --tone-rgb: var(--tqd-ai-rgb);   --tone: var(--tqd-ai); }
.tqd-toast--info { --tone-rgb: var(--tqd-info-rgb); --tone: var(--tqd-info); }
.tqd-toast--busy .tqd-toast__title { color: var(--tqd-ink-2); }
@media (max-width: 560px) {
  .tqd-toasts { inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; inline-size: auto; }
}


/* ── 17 · MENUS+ — submenus, ticks, the right-click menu ─────────────────── */
.tqd-menu__chev { margin-inline-start: auto; inline-size: 14px !important; block-size: 14px !important; stroke-width: 2 !important; color: var(--tqd-ink-5) !important; }
.tqd-menu__item[aria-expanded="true"] { background: var(--tqd-fill-3); color: var(--tqd-ink-1); }
.tqd-menu__item[aria-checked] { padding-inline-start: 34px; position: relative; }
.tqd-menu__tick {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-start: 50%;
  inline-size: 16px !important;
  block-size: 16px !important;
  margin-block-start: -8px;
  color: var(--tqd-acc-ink) !important;
  stroke-width: 2.2 !important;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-slow) var(--tq-ease-spring);
}
.tqd-menu__item[aria-checked="true"] > .tqd-menu__tick { opacity: 1; transform: none; }
.tqd-menu__item[role="menuitemradio"] > .tqd-menu__tick { stroke-width: 0 !important; }
.tqd-menu__dot {
  position: absolute;
  inset-inline-start: 15px;
  inset-block-start: 50%;
  inline-size: 6px;
  block-size: 6px;
  margin-block-start: -3px;
  border-radius: 50%;
  background: var(--tqd-acc-ink);
  transform: scale(0);
  transition: transform var(--tq-d-slow) var(--tq-ease-spring);
}
.tqd-menu__item[aria-checked="true"] > .tqd-menu__dot { transform: scale(1); }
[data-tqd-context] { -webkit-touch-callout: none; }
/* a phone has no room beside a menu: a submenu takes its place, with a way back */
.tqd-menu.is-behind { visibility: hidden; }
.tqd-menu:not(.is-drill) > .tqd-menu__back, .tqd-menu:not(.is-drill) > .tqd-menu__back-sep { display: none; }
.tqd-menu__back { color: var(--tqd-ink-4); font-weight: 600; }
.tqd-menu__back > .tqd-i { color: var(--tqd-ink-5); }


/* ── 18 · PEEK CARD — a record, previewed on hover ───────────────────────── */
.tqd-peek { inline-size: 320px; padding: 14px 16px 12px; gap: 12px; }
.tqd-peek__head { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.tqd-peek__title { color: var(--tqd-ink-1); font: 700 15px/21px var(--tq-font-sans); letter-spacing: -.01em; }
.tqd-peek__sub { color: var(--tqd-ink-5); font: 500 12.5px/18px var(--tq-font-sans); word-spacing: .04em; }
.tqd-peek__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block-start: 10px; border-block-start: 1px solid var(--tqd-line-1); }
.tqd-peek .tqd-dl { gap: 10px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }


/* ── 19 · TABS — an underline that slides, or pills ──────────────────────── */
.tqd-tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-inline-size: 0;
  border-block-end: 1px solid var(--tqd-line-1);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-padding-inline: 16px;
}
.tqd-tabs::-webkit-scrollbar { display: none; }
.tqd-tab {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  block-size: 42px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: none;
  color: var(--tqd-ink-4);
  font: 600 13.5px/1 var(--tq-font-sans);
  letter-spacing: -.004em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-tab:hover { color: var(--tqd-ink-2); }
.tqd-tab[aria-selected="true"] { color: var(--tqd-ink-1); }
.tqd-tab:focus-visible { outline: none; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--tqd-acc-ink); }
.tqd-tab > .tqd-i { inline-size: 16px; block-size: 16px; }
.tqd-tab__n {
  display: inline-grid;
  place-items: center;
  min-inline-size: 20px;
  block-size: 18px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--tqd-fill-3);
  color: var(--tqd-ink-4);
  font: 700 11px/1 var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
}
.tqd-tab[aria-selected="true"] .tqd-tab__n { background: var(--tqd-acc-soft); color: var(--tqd-acc-ink); }
.tqd-tabs__bar {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  block-size: 2px;
  inline-size: var(--w, 0px);
  border-radius: 2px 2px 0 0;
  background: var(--tqd-acc-ink);
  transform: translateX(var(--x, 0px));
  transition: transform var(--tq-d-slow) var(--tq-ease-spring), inline-size var(--tq-d-slow) var(--tq-ease-spring);
  pointer-events: none;
}
.tqd-tabs.is-still .tqd-tabs__bar { transition: none; }
.tqd-tabpanel { padding-block-start: 18px; }
.tqd-tabpanel:focus-visible { outline: none; border-radius: 10px; box-shadow: var(--tq-ring); }
.tqd-tabs--pills { gap: 6px; border: 0; }
.tqd-tabs--pills .tqd-tab { block-size: 32px; padding: 0 14px; border-radius: 999px; }
.tqd-tabs--pills .tqd-tab:hover { background: var(--tqd-fill-2); }
.tqd-tabs--pills .tqd-tab[aria-selected="true"] { background: var(--tqd-fill-4); }
.tqd-tabs--pills .tqd-tab:focus-visible { border-radius: 999px; box-shadow: var(--tq-ring); }
.tqd-tabs--pills .tqd-tabs__bar { display: none; }


/* ── 20 · THE DATA TABLE ─────────────────────────────────────────────────
   A real <table>. The head sticks, the first column can stick, rows select
   (Shift for a range), sort, expand and open; while a page loads it shows
   shimmer rows the shape of the real ones. Cells are opaque so a sticky
   column slides over its neighbours cleanly.                             */
.tqd-datatable { position: relative; min-inline-size: 0; }
.tqd-table-wrap {
  --tqd-row-bg: var(--tqd-panel);
  --tqd-row-hover: color-mix(in srgb, #FFFFFF 3.5%, var(--tqd-panel));
  --tqd-row-sel: color-mix(in srgb, var(--tq-accent) 11%, var(--tqd-panel));
  --tqd-row-sel-hover: color-mix(in srgb, var(--tq-accent) 15%, var(--tqd-panel));
  position: relative;
  max-block-size: var(--tqd-table-max, none);
  border: 1px solid var(--tqd-line-1);
  border-radius: 14px;
  background: var(--tqd-panel);
  overflow: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--tq-ink-400) transparent;
}
.tqd-table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--tqd-ink-2);
  font: 500 13.5px/20px var(--tq-font-sans);
  letter-spacing: -.003em;
  font-variant-numeric: tabular-nums;
}
.tqd-table th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  box-sizing: border-box;
  block-size: 40px;
  padding: 0 14px;
  border-block-end: 1px solid var(--tqd-line-2);
  background: var(--tqd-row-bg);
  color: var(--tqd-ink-5);
  font: 600 10.5px/1 var(--tq-font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: start;
  white-space: nowrap;
  vertical-align: middle;
}
.tqd-table-wrap.is-scrolled-y th { box-shadow: 0 8px 16px -12px rgb(var(--tq-black-rgb) / .8); }
.tqd-table td {
  box-sizing: border-box;
  block-size: 56px;
  padding: 8px 14px;
  border-block-end: 1px solid var(--tqd-line-1);
  background: var(--tqd-row-bg);
  vertical-align: middle;
  transition: background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-table tbody tr:last-child > td { border-block-end: 0; }
.tqd-table tbody tr:hover > td { --tqd-row-bg: var(--tqd-row-hover); }
.tqd-table tbody tr.is-selected > td { --tqd-row-bg: var(--tqd-row-sel); }
.tqd-table tbody tr.is-selected:hover > td { --tqd-row-bg: var(--tqd-row-sel-hover); }
.tqd-table tbody tr.is-flash > td { animation: tqd-row-flash 1.4s var(--tq-ease-out); }
@keyframes tqd-row-flash { from { background-color: color-mix(in srgb, var(--tq-accent) 22%, var(--tqd-panel)); } }
.tqd-table tr[data-tqd-href] { cursor: pointer; }
.tqd-table .is-num { text-align: end; }
.tqd-table .is-center { text-align: center; }
.tqd-table .is-muted { color: var(--tqd-ink-5); }
.tqd-table .is-mono { color: var(--tqd-ink-2); font: 500 12.5px/20px var(--tq-font-mono); letter-spacing: .01em; }
.tqd-table .is-sticky { position: sticky; inset-inline-start: 0; z-index: 1; }
.tqd-table th.is-sticky { z-index: 3; }
.tqd-table .is-sticky + .is-sticky { inset-inline-start: var(--tqd-sticky-2, 44px); }
.tqd-table-wrap.is-scrolled-x .is-sticky:not(:has(+ .is-sticky))::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -14px;
  inline-size: 14px;
  background: linear-gradient(90deg, rgb(var(--tq-black-rgb) / .38), transparent);
  pointer-events: none;
}
/* the head's sort control */
.tqd-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 -6px;
  padding: 5px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-th-sort:hover { color: var(--tqd-ink-2); background: var(--tqd-fill-2); }
.tqd-th-sort:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-th-sort > .tqd-i { inline-size: 13px; block-size: 13px; stroke-width: 2; opacity: .6; transition: transform var(--tq-d-base) var(--tq-ease-out), opacity var(--tq-d-fast) var(--tq-ease); }
th[aria-sort="ascending"] .tqd-th-sort, th[aria-sort="descending"] .tqd-th-sort { color: var(--tqd-acc-ink); }
th[aria-sort="ascending"] .tqd-th-sort > .tqd-i, th[aria-sort="descending"] .tqd-th-sort > .tqd-i { opacity: 1; }
/* unsorted: both ways, faint; sorted: one chevron, down for descending */
.tqd-th-sort > .tqd-th-sort__on { display: none; }
th[aria-sort="ascending"] .tqd-th-sort__off, th[aria-sort="descending"] .tqd-th-sort__off { display: none; }
th[aria-sort="ascending"] .tqd-th-sort__on, th[aria-sort="descending"] .tqd-th-sort__on { display: block; }
th[aria-sort="ascending"] .tqd-th-sort__on { transform: rotate(180deg); }
.tqd-table th.is-num .tqd-th-sort { flex-direction: row-reverse; }
/* the tick column and the actions column */
.tqd-table .tqd-td-check, .tqd-table .tqd-th-check { inline-size: 44px; padding-inline: 16px 0; }
.tqd-table .tqd-td-check > .tqd-checkbox, .tqd-table .tqd-th-check > .tqd-checkbox { margin: 0; vertical-align: middle; }
.tqd-table .tqd-td-actions, .tqd-table .tqd-th-actions { inline-size: 52px; padding-inline: 4px 10px; text-align: end; }
.tqd-td-actions .tqd-btn { opacity: 0; transition: opacity var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease); }
.tqd-table tr:hover .tqd-td-actions .tqd-btn,
.tqd-table tr:focus-within .tqd-td-actions .tqd-btn,
.tqd-td-actions .tqd-btn[aria-expanded="true"] { opacity: 1; }
@media (pointer: coarse) { .tqd-td-actions .tqd-btn { opacity: 1; } }
/* cells */
.tqd-cell { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.tqd-cell__text { display: flex; flex-direction: column; min-inline-size: 0; }
.tqd-cell__title { color: var(--tqd-ink-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-cell__sub { color: var(--tqd-ink-5); font: 500 12px/17px var(--tq-font-sans); word-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tqd-cell__title, .tqd-cell__title > a { color: var(--tqd-ink-1); text-decoration: none; border-radius: 4px; }
a.tqd-cell__title:hover, .tqd-cell__title > a:hover { color: var(--tqd-acc-ink); }
a.tqd-cell__title:focus-visible, .tqd-cell__title > a:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-trunc { display: block; max-inline-size: var(--tqd-trunc, 240px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-cell-money { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-cell-money small { color: var(--tqd-ink-5); font: 500 11px/1 var(--tq-font-mono); margin-inline-start: 4px; letter-spacing: .03em; }
/* the row that opens under its row */
.tqd-row-toggle { margin: 0 -4px 0 -6px; inline-size: 24px !important; block-size: 24px !important; min-inline-size: 0 !important; }
.tqd-row-toggle > .tqd-i { inline-size: 14px !important; block-size: 14px !important; stroke-width: 2 !important; transition: transform var(--tq-d-base) var(--tq-ease-out); }
.tqd-row-toggle[aria-expanded="true"] > .tqd-i { transform: rotate(90deg); }
.tqd-table tr.tqd-row-detail > td { block-size: auto; padding: 0; background: color-mix(in srgb, #000000 28%, var(--tqd-panel)); }
.tqd-table tr.tqd-row-detail:hover > td { --tqd-row-bg: inherit; background: color-mix(in srgb, #000000 28%, var(--tqd-panel)); }
.tqd-row-detail__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--tq-d-slow) var(--tq-ease-out); }
.tqd-row-detail.is-open .tqd-row-detail__wrap { grid-template-rows: 1fr; }
.tqd-row-detail__in { min-block-size: 0; overflow: hidden; }
.tqd-row-detail__pad { padding: 16px 20px 18px 60px; }
.tqd-table tr.tqd-row-detail:not(.is-open) > td { border-block-end-color: transparent; }
/* shimmer rows */
.tqd-table tr.tqd-tr-skel > td { block-size: 56px; }
.tqd-table tbody tr.tqd-tr-skel:hover > td { --tqd-row-bg: var(--tqd-panel); }
.tqd-table tr.tqd-tr-skel .tqd-skel { inline-size: var(--sw, 70%); }
.tqd-table tr.tqd-tr-skel .tqd-skel--dot { inline-size: 28px; block-size: 28px; border-radius: 50%; }
.tqd-table tr.tqd-state-row > td { block-size: auto; padding: 0; }
.tqd-table tr.tqd-state-row:hover > td { --tqd-row-bg: var(--tqd-panel); }
/* compact */
[data-tqd-density="compact"] .tqd-table td, .tqd-table--compact td { block-size: 40px; padding-block: 4px; }
[data-tqd-density="compact"] .tqd-table th, .tqd-table--compact th { block-size: 34px; }
.tqd-table--compact tr.tqd-tr-skel > td { block-size: 40px; }

/* the bar that appears while rows are chosen */
.tqd-bulkbar {
  position: sticky;
  inset-block-end: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  inline-size: fit-content;
  max-inline-size: calc(100% - 24px);
  margin: 14px auto 0;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: var(--tq-ink-950);
  box-shadow: 0 16px 40px -12px rgb(var(--tq-black-rgb) / .7), 0 0 0 1px rgb(var(--tq-black-rgb) / .3);
  color: var(--tq-ink-050);
  font: 600 13px/1 var(--tq-font-sans);
  white-space: nowrap;
  animation: tqd-bulk-in var(--tq-d-slow) var(--tq-ease-spring);
}
@keyframes tqd-bulk-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.tqd-bulkbar__n { margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.tqd-bulkbar__sep { inline-size: 1px; block-size: 18px; margin: 0 4px; background: rgb(var(--tq-black-rgb) / .14); }
.tqd-bulkbar .tqd-btn {
  --bg: transparent; --bg-h: rgb(var(--tq-black-rgb) / .07); --bg-a: rgb(var(--tq-black-rgb) / .12);
  --fg: var(--tq-ink-050); --bd: transparent;
}
.tqd-bulkbar .tqd-btn--danger-soft { --fg: var(--tq-danger-fill); --bg-h: rgb(var(--tqd-bad-rgb) / .12); }
.tqd-bulkbar .tqd-btn:focus-visible { box-shadow: 0 0 0 2px var(--tq-ink-950), 0 0 0 4px var(--tqd-acc); }

/* a phone reads a table as cards */
@media (max-width: 560px) {
  .tqd-table--stack thead { display: none; }
  .tqd-table--stack, .tqd-table--stack tbody { display: block; }
  .tqd-table--stack tbody tr:not(.tqd-row-detail) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 12px 12px 12px 14px;
    border-block-end: 1px solid var(--tqd-line-1);
    background: var(--tqd-row-bg);
  }
  .tqd-table--stack tbody tr:last-child { border-block-end: 0; }
  .tqd-table--stack td { display: flex; align-items: center; justify-content: space-between; gap: 12px; block-size: auto; padding: 5px 0; border: 0; background: none; text-align: start; }
  .tqd-table--stack td.is-num { text-align: start; }
  .tqd-table--stack td::before { content: attr(data-label); flex: none; color: var(--tqd-ink-5); font: 600 10.5px/1 var(--tq-font-mono); letter-spacing: .07em; text-transform: uppercase; }
  .tqd-table--stack td:not([data-label])::before { content: none; }
  .tqd-table--stack td { grid-column: 2 / 4; }
  .tqd-table--stack td.tqd-td-check { grid-column: 1; grid-row: 1; padding: 0; inline-size: auto; align-items: center; }
  .tqd-table--stack td.tqd-td-main { grid-column: 2; grid-row: 1; padding-block: 0 6px; }
  .tqd-table--stack td.tqd-td-actions { grid-column: 3; grid-row: 1; padding: 0; inline-size: auto; align-items: center; }
  .tqd-table--stack .is-sticky { position: static; }
  .tqd-table--stack tr.tqd-row-detail { display: block; }
  .tqd-table--stack tr.tqd-row-detail > td { display: block; }
  .tqd-table--stack .tqd-row-detail__pad { padding: 14px; }
  .tqd-table--stack tr.tqd-tr-skel { display: block !important; }
  .tqd-table--stack tr.tqd-tr-skel > td { display: none; }
  .tqd-table--stack tr.tqd-tr-skel > td:nth-child(-n+2) { display: flex; }
}

/* the pager */
.tqd-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 2px 0;
  color: var(--tqd-ink-4);
  font: 500 13px/1 var(--tq-font-sans);
}
.tqd-pager__size { display: flex; align-items: center; gap: 10px; }
.tqd-pager__lab { color: var(--tqd-ink-4); font: 500 13px/1 var(--tq-font-sans); white-space: nowrap; }
.tqd-pager__size .tqd-trigger { inline-size: 78px; }
.tqd-pager__end { display: flex; align-items: center; gap: 16px; }
.tqd-pager__range { color: var(--tqd-ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tqd-pager__range b { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-pager__pages { display: flex; align-items: center; gap: 2px; }
.tqd-page {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-inline-size: 32px;
  block-size: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--tqd-ink-3);
  font: 600 13px/1 var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-page:hover { background: var(--tqd-fill-2); color: var(--tqd-ink-1); }
.tqd-page:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-page[aria-current="page"] { background: var(--tqd-fill-4); color: var(--tqd-ink-1); }
.tqd-page:disabled { opacity: .35; cursor: default; background: none; }
.tqd-page > .tqd-i { inline-size: 16px; block-size: 16px; }
.tqd-page--gap { cursor: default; color: var(--tqd-ink-5); }
.tqd-page--gap:hover { background: none; color: var(--tqd-ink-5); }
.tqd-pager__phone { display: none; color: var(--tqd-ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .tqd-pager__size, .tqd-pager__num { display: none; }
  .tqd-pager__phone { display: inline; padding: 0 8px; }
  .tqd-pager { justify-content: space-between; }
  .tqd-pager__end { flex: 1 1 auto; justify-content: space-between; }
}


/* ── 21 · THE FILTER BAR — views, search, pills, one query ───────────────── */
.tqd-filterbar { display: flex; flex-direction: column; gap: 12px; margin-block-end: 14px; min-inline-size: 0; }
.tqd-filterbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-inline-size: 0; }
.tqd-filterbar__search { flex: 1 1 240px; max-inline-size: 340px; }
.tqd-filterbar__end { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tqd-filterbar__count { color: var(--tqd-ink-5); font: 500 12.5px/1 var(--tq-font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tqd-views { display: flex; align-items: center; gap: 4px; min-inline-size: 0; margin: -4px; padding: 4px; overflow-x: auto; scrollbar-width: none; }  /* the padding keeps focus rings unclipped */
.tqd-views::-webkit-scrollbar { display: none; }
.tqd-view {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  block-size: 30px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--tqd-ink-4);
  font: 600 13px/1 var(--tq-font-sans);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-view:hover { background: var(--tqd-fill-2); color: var(--tqd-ink-2); }
.tqd-view[aria-pressed="true"] { background: var(--tqd-fill-4); color: var(--tqd-ink-1); }
.tqd-view:focus-visible { outline: none; border-radius: 999px; box-shadow: var(--tq-ring); }
.tqd-view__n { color: var(--tqd-ink-5); font-variant-numeric: tabular-nums; }
.tqd-view[aria-pressed="true"] .tqd-view__n { color: var(--tqd-ink-4); }
.tqd-view--save { color: var(--tqd-ink-5); }
.tqd-view--save > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
/* "More filters": a pill-shaped button that opens a menu of the hidden pills */
.tqd-filter--add { gap: 6px; margin: 0; padding: 0 12px 0 9px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tqd-filter--add > .tqd-i { inline-size: 14px; block-size: 14px; stroke-width: 2; }
.tqd-filter--add:focus-visible { outline: none; border-radius: 999px; box-shadow: var(--tq-ring); }
.tqd-filter--add[aria-expanded="true"] { border-style: solid; border-color: var(--tqd-focus-line); }
.tqd-filterbar .tqd-filter[hidden] { display: none; }
/* views that do not fit scroll under a fade; the fade sits on padding, so
   when they do fit it covers nothing */
.tqd-filterbar__row > .tqd-views {
  flex: 1 1 0;
  padding-inline-end: 28px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
@media (max-width: 560px) {
  .tqd-filterbar__search { flex-basis: 100%; max-inline-size: none; }
  .tqd-filterbar__count { display: none; }                 /* the pager says it at the bottom */
}


/* ── 22 · EMPTY · ERROR · SKELETONS ──────────────────────────────────────── */
.tqd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 44px 24px;
  text-align: center;
}
.tqd-empty__icon {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  margin-block-end: 10px;
  border-radius: 14px;
  background: var(--tqd-fill-2);
  box-shadow: inset 0 0 0 1px var(--tqd-line-1);
  color: var(--tqd-ink-4);
}
.tqd-empty__icon > .tqd-i { inline-size: 22px; block-size: 22px; stroke-width: 1.6; }
.tqd-empty__title { margin: 0; color: var(--tqd-ink-1); font: 700 15px/22px var(--tq-font-sans); letter-spacing: -.01em; word-spacing: .04em; }
.tqd-empty__text { margin: 0; max-inline-size: 44ch; color: var(--tqd-ink-4); font: 500 13px/20px var(--tq-font-sans); word-spacing: .02em; text-wrap: pretty; }
.tqd-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 14px; }
.tqd-empty--bad .tqd-empty__icon { background: rgb(var(--tqd-bad-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--tqd-bad-rgb) / .22); color: var(--tqd-bad); }
.tqd-empty--ai .tqd-empty__icon { background: rgb(var(--tqd-ai-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--tqd-ai-rgb) / .22); color: var(--tqd-ai); }
.tqd-empty--sm { padding: 24px 16px; }
.tqd-empty--sm .tqd-empty__icon { inline-size: 40px; block-size: 40px; border-radius: 12px; }
.tqd-skel--circle { inline-size: 32px; block-size: 32px; border-radius: 50%; }
.tqd-skel--block { block-size: 72px; border-radius: 12px; }
.tqd-skel--lg { block-size: 14px; }
.tqd-skel-row { display: flex; align-items: center; gap: 12px; }
.tqd-skel-stack { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }


/* ── 23 · THE TIMELINE — a project's updates, newest first ───────────────── */
.tqd-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.tqd-tl-day {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--tqd-ink-5);
  font: 600 10.5px/1 var(--tq-font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tqd-tl-day:first-child { margin-block-start: 0; }
.tqd-tl-day::after { content: ""; flex: 1 1 auto; block-size: 1px; background: var(--tqd-line-1); }
.tqd-tl-item { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding-block-end: 20px; }
.tqd-tl-item::before {
  content: "";
  position: absolute;
  inset-block: 38px 4px;
  inset-inline-start: 15.5px;
  inline-size: 1px;
  background: var(--tqd-line-2);
}
.tqd-tl-item:last-child::before, .tqd-tl-item:has(+ .tqd-tl-day)::before { display: none; }
.tqd-tl-mark {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  background: var(--tqd-raised);
  box-shadow: inset 0 0 0 1px var(--tqd-line-2);
  color: var(--tqd-ink-4);
}
.tqd-tl-mark > .tqd-i { inline-size: 16px; block-size: 16px; }
.tqd-tl-mark:has(> .tqd-avatar) { background: none; box-shadow: none; }
.tqd-tl-mark > .tqd-avatar { --s: 32px; font-size: 11.5px; }
.tqd-tl-mark.tqd-tone-ok, .tqd-tl-mark.tqd-tone-warn, .tqd-tl-mark.tqd-tone-bad, .tqd-tl-mark.tqd-tone-ai, .tqd-tl-mark.tqd-tone-info {
  background: rgb(var(--tone-rgb) / .13);
  box-shadow: inset 0 0 0 1px rgb(var(--tone-rgb) / .28);
  color: var(--tone);
}
.tqd-tl-main { min-inline-size: 0; padding-block-start: 5px; }
.tqd-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--tqd-ink-4); font: 500 13.5px/21px var(--tq-font-sans); word-spacing: .02em; }
.tqd-tl-who { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-tl-what b { color: var(--tqd-ink-2); font-weight: 600; }
.tqd-tl-time { margin-inline-start: auto; padding-inline-start: 12px; color: var(--tqd-ink-5); font: 500 12px/21px var(--tq-font-sans); white-space: nowrap; }
.tqd-tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 8px; }
.tqd-tl-body, .tqd-note {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tqd-fill-1);
  box-shadow: inset 0 0 0 1px var(--tqd-line-1);
  color: var(--tqd-ink-3);
  font: 500 14px/22px var(--tq-font-sans);
  word-spacing: .02em;
  overflow-wrap: anywhere;
}
.tqd-tl-body { margin-block-start: 8px; }
.tqd-tl-body p, .tqd-note p { margin: 0; }
.tqd-tl-body p + p, .tqd-note p + p { margin-block-start: 8px; }
.tqd-tl-body.is-clamped, .tqd-note.is-clamped { max-block-size: calc(22px * var(--lines, 4) + 24px); overflow: hidden; }
.tqd-tl-body.is-clamped::after, .tqd-note.is-clamped::after {
  content: "";
  position: absolute;
  inset: auto 1px 1px;
  block-size: 40px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(transparent, var(--tqd-surface));
  pointer-events: none;
}
.tqd-tl-more { margin-block-start: 6px; }
.tqd-tl-item--quiet { padding-block-end: 16px; }
.tqd-tl-item--quiet .tqd-tl-mark { inline-size: 32px; block-size: 24px; background: none; box-shadow: none; }
.tqd-tl-item--quiet .tqd-tl-mark::before { content: ""; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--tone, var(--tq-ink-500)); box-shadow: 0 0 0 4px var(--tqd-surface); }
.tqd-tl-item--quiet .tqd-tl-mark > .tqd-i { display: none; }
.tqd-tl-item--quiet .tqd-tl-main { padding-block-start: 1px; }
.tqd-tl-item--quiet::before { inset-block-start: 26px; }
.tqd-tl-item.is-new { animation: tqd-tl-in var(--tq-d-slower) var(--tq-ease-out); }
.tqd-tl-item.is-new .tqd-tl-body { animation: tqd-tl-glow 2.4s var(--tq-ease-out); }
@keyframes tqd-tl-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes tqd-tl-glow { from { background-color: rgb(var(--tq-accent-rgb) / .16); box-shadow: inset 0 0 0 1px var(--tqd-acc-line); } }
/* files attached to an update */
.tqd-files { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.tqd-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-inline-size: 100%;
  padding: 7px 12px 7px 8px;
  border-radius: 10px;
  background: var(--tqd-fill-1);
  box-shadow: inset 0 0 0 1px var(--tqd-line-2);
  color: var(--tqd-ink-2);
  font: 600 13px/18px var(--tq-font-sans);
  text-decoration: none;
  transition: background-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease);
}
.tqd-file:hover { background: var(--tqd-fill-2); box-shadow: inset 0 0 0 1px var(--tqd-line-3); }
.tqd-file:focus-visible { outline: none; border-radius: 10px; box-shadow: var(--tq-ring); }
.tqd-file__ic { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 8px; background: var(--tqd-fill-3); color: var(--tqd-ink-3); }
.tqd-file__ic > .tqd-i { inline-size: 16px; block-size: 16px; }
.tqd-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-inline-size: 0; }
.tqd-file__size { color: var(--tqd-ink-5); font: 500 11.5px/1 var(--tq-font-mono); white-space: nowrap; }


/* ── 24 · PROGRESS · STEPS ───────────────────────────────────────────────── */
.tqd-progress {
  --v: 0%;
  position: relative;
  block-size: 6px;
  border-radius: 999px;
  background: var(--tqd-fill-3);
  overflow: hidden;
}
.tqd-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: var(--v);
  border-radius: inherit;
  background: var(--tone, var(--tqd-acc));
  transition: inline-size var(--tq-d-slower) var(--tq-ease-out);
}
.tqd-progress--sm { block-size: 4px; }
.tqd-progress--lg { block-size: 10px; }
.tqd-progress.is-indeterminate .tqd-progress__bar { inline-size: 36%; animation: tqd-indet 1.3s var(--tq-ease-in-out) infinite; }
@keyframes tqd-indet { from { transform: translateX(-110%); } to { transform: translateX(290%); } }
.tqd-progress-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 8px; color: var(--tqd-ink-2); font: 600 13px/18px var(--tq-font-sans); }
.tqd-progress-row > span:last-child { color: var(--tqd-ink-4); font: 500 12px/18px var(--tq-font-mono); font-variant-numeric: tabular-nums; }

.tqd-steps { display: flex; margin: 0; padding: 0; list-style: none; min-inline-size: 0; overflow-x: auto; scrollbar-width: none; }
.tqd-steps::-webkit-scrollbar { display: none; }
.tqd-step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; min-inline-size: 132px; padding-inline-end: 14px; }
.tqd-step::after {
  content: "";
  position: absolute;
  inset-block-start: 14px;
  inset-inline: 40px 10px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--tqd-line-2);
}
.tqd-step:last-child { flex: 0 0 auto; padding-inline-end: 0; }
.tqd-step:last-child::after { display: none; }
.tqd-step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;   /* DD-B7: its 30px beside a label of several lines */
  place-items: center;
  box-sizing: border-box;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: var(--tqd-surface);
  box-shadow: inset 0 0 0 1.5px var(--tqd-line-3);
  color: var(--tqd-ink-5);
  font: 700 12px/1 var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
}
.tqd-step__dot > .tqd-i { inline-size: 15px; block-size: 15px; stroke-width: 2.4; }
.tqd-step__label { color: var(--tqd-ink-4); font: 600 13px/18px var(--tq-font-sans); word-spacing: .03em; }
.tqd-step__sub { margin-block-start: -6px; color: var(--tqd-ink-5); font: 500 12px/17px var(--tq-font-sans); }
.tqd-step.is-done .tqd-step__dot { background: var(--tqd-acc); box-shadow: none; color: #FFFFFF; }
.tqd-step.is-done::after { background: var(--tqd-acc); }
.tqd-step.is-done .tqd-step__label { color: var(--tqd-ink-2); }
.tqd-step.is-current .tqd-step__dot { background: var(--tqd-acc-soft); box-shadow: inset 0 0 0 1.5px var(--tqd-acc-ink), 0 0 0 4px rgb(var(--tq-accent-rgb) / .14); color: var(--tqd-acc-ink); }
.tqd-step.is-current .tqd-step__label { color: var(--tqd-ink-1); }
.tqd-step.is-current::after { background: linear-gradient(90deg, var(--tqd-acc), var(--tqd-line-2) 60%); }
.tqd-step.is-paused .tqd-step__dot { background: rgb(var(--tqd-warn-rgb) / .12); box-shadow: inset 0 0 0 1.5px var(--tqd-warn); color: var(--tqd-warn); }
.tqd-step.is-paused .tqd-step__label { color: var(--tqd-warn); }
.tqd-steps--v { flex-direction: column; overflow: visible; }
.tqd-steps--v .tqd-step { flex-direction: row; align-items: flex-start; gap: 14px; min-inline-size: 0; padding: 0 0 22px; }
.tqd-steps--v .tqd-step::after { inset: 36px auto 4px 14px; inline-size: 2px; block-size: auto; }
.tqd-steps--v .tqd-step__text { display: flex; flex-direction: column; gap: 2px; padding-block-start: 5px; }
.tqd-steps--v .tqd-step__sub { margin: 0; }
.tqd-steps--v .tqd-step.is-current::after { background: linear-gradient(180deg, var(--tqd-acc), var(--tqd-line-2) 60%); }


/* ── 25 · RECORD DETAILS — label over value, in a grid ───────────────────── */
.tqd-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 24px; margin: 0; }
.tqd-dl > div { min-inline-size: 0; }
.tqd-dl dt { margin: 0 0 5px; color: var(--tqd-ink-5); font: 600 10.5px/15px var(--tq-font-mono); letter-spacing: .07em; text-transform: uppercase; }
.tqd-dl dd { display: flex; align-items: center; gap: 6px; min-inline-size: 0; margin: 0; color: var(--tqd-ink-1); font: 500 14px/21px var(--tq-font-sans); overflow-wrap: anywhere; }
.tqd-dl dd:empty::before { content: "\2014"; color: var(--tqd-ink-5); }
.tqd-dl dd.is-mono { font: 500 13px/21px var(--tq-font-mono); color: var(--tqd-ink-2); }
.tqd-dl dd .tqd-fbtn { margin: -4px 0; inline-size: 24px; block-size: 24px; opacity: 0; }
.tqd-dl dd:hover .tqd-fbtn, .tqd-dl dd .tqd-fbtn:focus-visible { opacity: 1; }
@media (pointer: coarse) { .tqd-dl dd .tqd-fbtn { opacity: 1; } }
.tqd-dl--rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tqd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--tqd-ink-5); font: 500 12.5px/18px var(--tq-font-sans); word-spacing: .03em; }
.tqd-link { border-radius: 4px; color: var(--tqd-acc-ink); text-decoration: none; cursor: pointer; }
.tqd-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tqd-link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-link--quiet { color: inherit; }
.tqd-link--quiet:hover { color: var(--tqd-ink-1); text-decoration-color: var(--tqd-line-4); }
.tqd-dl--rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 11px 0; border-block-end: 1px solid var(--tqd-line-1); }
.tqd-dl--rows > div:last-child { border-block-end: 0; }
.tqd-dl--rows dt { margin: 0; }
@media (max-width: 560px) { .tqd-dl--rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }


/* ── 26 · DENSITY & TOUCH ────────────────────────────────────────────────── */
/* a keyboard hint has nothing to say to a finger */
@media (hover: none) and (pointer: coarse) { .tqd-keys { display: none !important; } }
[data-tqd-density="compact"] {
  --tqd-h-xs: 24px;
  --tqd-h-sm: 28px;
  --tqd-h:    32px;
  --tqd-h-lg: 40px;
  --tqd-fs:   13px;
  --tqd-fs-input: 13px;
  --tqd-opt-h: 28px;
}
[data-tqd-density="compact"] .tqd-seg { --seg-h: 26px; --seg-px: 12px; }
[data-tqd-density="compact"] .tqd-tag { block-size: 22px; font-size: 12.5px; }
[data-tqd-density="compact"] .tqd-tokens > input.tqd-tokens__input { block-size: 22px; }
[data-tqd-density="compact"] .tqd-fbtn { inline-size: 24px; block-size: 24px; }
@media (pointer: coarse) {
  :root, [data-tqd-density] {
    --tqd-h-xs: 30px;
    --tqd-h-sm: 36px;
    --tqd-h:    40px;
    --tqd-h-lg: 48px;
    --tqd-fs-input: 16px;
    --tqd-opt-h: 40px;
  }
  /* every surface you type into is 16px under a finger, whatever its size
     class, so iOS never zooms the page when it takes focus */
  .tqd-input, .tqd-textarea, .tqd-control, .tqd-trigger, select.tqd-select { --fs: 16px; }
  .tqd-seg { --seg-h: 34px; }
  .tqd-fbtn { inline-size: 32px; block-size: 32px; }
  .tqd-tag { block-size: 30px; }
  .tqd-tokens > input.tqd-tokens__input { block-size: 30px; }
  .tqd-lb__search > input { font-size: 16px; }
  .tqd-checkbox, .tqd-radio, .tqd-opt__box { inline-size: 18px; block-size: 18px; margin-block-start: 1px; }
  .tqd-filter { block-size: 32px; }
  .tqd-chip { block-size: 32px; }
}


/* ── 27 · MOTION ─────────────────────────────────────────────────────────
   The tokens already collapse under prefers-reduced-motion; the kit adds a
   switch a page (or the showroom) can throw by hand.                     */
:root[data-tqd-motion="reduce"] {
  --tq-d-instant: 1ms; --tq-d-fast: 1ms; --tq-d-base: 1ms;
  --tq-d-slow: 1ms; --tq-d-slower: 1ms; --tq-d-ambient: 1ms;
}
:root[data-tqd-motion="reduce"] .tqd-skel,
:root[data-tqd-motion="reduce"] .tqd-badge--live .tqd-badge__dot::after,
:root[data-tqd-motion="reduce"] .tqd-dot--live::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .tqd-skel, .tqd-badge--live .tqd-badge__dot::after, .tqd-dot--live::after { animation: none; }
  .tqd-pop, .tqd-tip { transform: none !important; }
}


/* ── 28 · TOTALS — the money at the foot of a quote or a receipt ─────────
   A Torque addition for the shop. Labels left, figures right, all tabular;
   the grand total stands on its own rule, larger, in the condensed face.
   Use it under a table of line items (--in-table draws the seam) or alone.
     <dl class="tqd-totals">
       <dt>Subtotal</dt><dd>$1,297.96</dd>
       <dt>GST 5%</dt><dd>$64.90</dd>
       <dt class="is-grand">Total</dt><dd class="is-grand">$1,362.86</dd>
     </dl>                                                                  */
.tqd-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 7px;
  margin: 0;
  padding: 12px 16px 14px;
  color: var(--tqd-ink-4);
  font: 500 var(--tqd-fs)/20px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
}
.tqd-totals dt { margin: 0; }
.tqd-totals dd { margin: 0; text-align: end; color: var(--tqd-ink-2); }
.tqd-totals .tqd-totals__note { color: var(--tqd-ink-5); font-size: var(--tqd-fs-xs); }
.tqd-totals .is-grand {
  margin-block-start: 5px;
  padding-block-start: 11px;
  border-block-start: 1px solid var(--tqd-line-2);
  color: var(--tqd-ink-1);
}
.tqd-totals dt.is-grand { font-weight: 600; }
.tqd-totals dd.is-grand {
  font: 700 24px/20px var(--tq-font-display);
  letter-spacing: .01em;
  font-feature-settings: "tnum" 1;
}
.tqd-totals--in-table { border-block-start: 1px solid var(--tqd-line-1); padding-inline-end: 16px; }
.tqd-totals--in-table dd, .tqd-totals--in-table dd.is-grand { padding-inline-end: 0; }


/* =========================================================================
   DASH DESIGN PASS · DD-1 (2026-10-17)
   Four things the dash's pages needed that the kit did not have. Each is
   built from the kit's own tokens, and shown in torque-dash-kit.html:
   29 to 31 in section 20 (page blocks), 32 in section 21 (charts). A page
   uses these; it never draws its own.
   ========================================================================= */


/* ── 29 · BANNER — one line over a page: what holds it, and the way on ────
   Who you are acting as (the founder in a shop's dash), what holds the shop
   (a refused card), or that the page is out of date. The tone carries the
   kind, on the icon and the leading edge; the words stay at full ink, so a
   banner is read, not decoded. One button at most, at its end; an offer of
   two ways (take back what was kept, or let it go) is the one banner with
   two, in .tqd-banner__btns (DD-B12, at the end of this file).
   The shell's own bars are banners too, whose markup the server and
   tq.dash.js draw: .tqd-founderbar (accent) and .tqd-planbar (bad, also the
   "page out of date" bar).                                                 */
.tqd-banner,
.tqd-founderbar,
.tqd-planbar {
  --tone-rgb: var(--tq-white-rgb);
  --tone: var(--tqd-ink-3);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-block-size: 46px;
  padding: 6px 6px 6px 16px;
  border: 0;
  border-radius: var(--tqd-r-field);
  background: rgb(var(--tone-rgb) / .075);
  box-shadow: inset 0 0 0 1px rgb(var(--tone-rgb) / .22);
  color: var(--tqd-ink-1);
  font: 500 13.5px/19px var(--tq-font-sans);
  overflow: hidden;
}
.tqd-banner::before,
.tqd-founderbar::before,
.tqd-planbar::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 3px;
  background: var(--tone);
}
.tqd-banner > .tqd-i,
.tqd-founderbar > .tqd-i,
.tqd-planbar > .tqd-i { flex: none; inline-size: 18px; block-size: 18px; color: var(--tone); }
.tqd-banner__text,
.tqd-founderbar__text,
.tqd-planbar__text { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; }
.tqd-banner__text b,
.tqd-founderbar__text b,
.tqd-planbar__text b { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-banner > .tqd-btn,
.tqd-founderbar > .tqd-btn,
.tqd-planbar > .tqd-btn { flex: none; }
.tqd-banner--accent, .tqd-founderbar { --tone-rgb: var(--tq-accent-text-rgb); --tone: var(--tqd-acc-ink); }
.tqd-banner--info   { --tone-rgb: var(--tqd-info-rgb); --tone: var(--tqd-info); }
.tqd-banner--ok     { --tone-rgb: var(--tqd-ok-rgb);   --tone: var(--tqd-ok); }
.tqd-banner--warn   { --tone-rgb: var(--tqd-warn-rgb); --tone: var(--tqd-warn); }
.tqd-banner--bad, .tqd-planbar { --tone-rgb: var(--tqd-bad-rgb); --tone: var(--tqd-bad); }
@media (max-width: 559.98px) {
  .tqd-banner, .tqd-founderbar, .tqd-planbar { flex-wrap: wrap; padding-block: 10px; }
  .tqd-banner__text, .tqd-founderbar__text, .tqd-planbar__text { flex-basis: calc(100% - 32px); }
  .tqd-banner > .tqd-btn, .tqd-founderbar > .tqd-btn, .tqd-planbar > .tqd-btn { margin-inline-start: 30px; }
}
@media (forced-colors: active) {
  .tqd-banner, .tqd-founderbar, .tqd-planbar { border: 1px solid CanvasText; }
  .tqd-banner::before, .tqd-founderbar::before, .tqd-planbar::before { background: CanvasText; }
}


/* ── 30 · KPI STRIP — the numbers a page opens with, each a way in ────────
   One surface cut into equal cells by hairlines, not a row of boxes: a
   condensed label with its icon, the number, one line under it. A cell is a
   link to where its number is changed, and the arrow says so on the
   pointer. A tone is a fact about the number: it lights the icon's chip,
   never the number. Two cells a row, an odd last one across the row; once
   the dash's page frame is 760px wide (a container query on .tqd-frame)
   the strip is one row of four, or of --tqd-kpis cells (3, 5...).          */
.tqd-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--tqd-line-1);
  border-radius: var(--tqd-r-card);
  background: var(--tqd-line-1);
  box-shadow: var(--tq-el-1);
  overflow: hidden;
}
.tqd-kpis > .tqd-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
@container tqd-frame (min-width: 760px) {
  .tqd-kpis { grid-template-columns: repeat(var(--tqd-kpis, 4), minmax(0, 1fr)); }
  .tqd-kpis > .tqd-kpi:last-child:nth-child(odd) { grid-column: auto; }
}
.tqd-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-inline-size: 0;
  padding: 16px 20px 18px;
  background: var(--tqd-panel);
  color: inherit;
  text-decoration: none;
}
a.tqd-kpi { -webkit-tap-highlight-color: transparent; transition: background-color var(--tq-d-fast) var(--tq-ease); }
a.tqd-kpi:hover { background: var(--tqd-raised); }
a.tqd-kpi:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tqd-focus-line); }
.tqd-kpi__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
  padding-inline-end: 18px;
  color: var(--tqd-ink-4);
  font: 700 13px/16px var(--tq-font-mono);
  letter-spacing: var(--tq-tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.tqd-kpi__label > span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.tqd-kpi__icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 26px;
  block-size: 26px;
  border-radius: var(--tqd-r-opt);
  background: var(--tqd-fill-2);
  color: var(--tqd-ink-3);
}
.tqd-kpi__icon > .tqd-i { inline-size: 15px; block-size: 15px; }
.tqd-kpi__value {
  color: var(--tqd-ink-1);
  font: 700 var(--tq-fs-3xl)/1.05 var(--tq-font-sans);
  letter-spacing: var(--tq-tr-head);
  font-variant-numeric: tabular-nums;
}
.tqd-kpi__foot { color: var(--tqd-ink-4); font: 500 13px/18px var(--tq-font-sans); }
/* DD-3: the change under a number (against the period before), as a chart's
   change (32): the arrow wears the tone, the words stay in ink. --warn for
   a fact to act on (tires to order). */
.tqd-kpi__change { display: inline-flex; align-items: flex-start; gap: 5px; }
.tqd-kpi__change > .tqd-i { flex: none; inline-size: 14px; block-size: 14px; margin-block-start: 2px; stroke-width: 2.2; color: var(--tqd-ink-4); }
.tqd-kpi__change--ok > .tqd-i   { color: var(--tqd-ok); }
.tqd-kpi__change--bad > .tqd-i  { color: var(--tqd-bad); }
.tqd-kpi__change--warn > .tqd-i { color: var(--tqd-warn); }
/* DD-3: a strip of long numbers (money: $260,463.71): each number as large
   as its cell lets it, from the strip's own size down to the large text
   size, so a month's takings fit a laptop's four cells and a phone's two. */
.tqd-kpis--long > .tqd-kpi { container-type: inline-size; }
.tqd-kpis--long .tqd-kpi__value { font-size: clamp(var(--tq-fs-lg), 12.5cqi, var(--tq-fs-3xl)); }
.tqd-kpi__go {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 16px;
  inline-size: 16px;
  block-size: 16px;
  color: var(--tqd-ink-5);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-base) var(--tq-ease-out);
}
a.tqd-kpi:hover > .tqd-kpi__go,
a.tqd-kpi:focus-visible > .tqd-kpi__go { opacity: 1; transform: none; }
.tqd-kpi--ok .tqd-kpi__icon   { background: rgb(var(--tqd-ok-rgb) / .14);   color: var(--tqd-ok); }
.tqd-kpi--warn .tqd-kpi__icon { background: rgb(var(--tqd-warn-rgb) / .14); color: var(--tqd-warn); }
.tqd-kpi--bad .tqd-kpi__icon  { background: rgb(var(--tqd-bad-rgb) / .14);  color: var(--tqd-bad); }
@media (max-width: 639.98px) {
  .tqd-kpi { padding: 14px 16px 16px; }
  .tqd-kpi__value { font-size: var(--tq-fs-2xl); }
}
@media (hover: none) {
  a.tqd-kpi:hover { background: var(--tqd-panel); }
  .tqd-kpi__go { display: none; }
  /* DD-4: no arrow on a touch screen, so its room goes to the name (CUSTOMERS, ONLY QUOTED on a 320px phone) */
  .tqd-kpi__label { padding-inline-end: 0; }
}
@media (forced-colors: active) {
  .tqd-kpis { border-color: CanvasText; }
  .tqd-kpi { outline: 1px solid CanvasText; }
}


/* ── 31 · EMPTY, ON ONE LINE — inside a card that has nothing yet ─────────
   The kit's empty state (22) laid on its side: the icon, the sentence and
   the one thing to do in a row, so an empty card is as short as a full one;
   it wraps on a narrow card. The title and the text sit in .tqd-empty__body.
   With --bad, a part that could not be read (role="alert", Try again); with
   --ok, nothing is wrong, and that is the news.                            */
.tqd-empty--line {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 14px;
  padding: 18px 20px;
  text-align: start;
}
.tqd-empty--line .tqd-empty__icon { inline-size: 36px; block-size: 36px; margin: 0; border-radius: var(--tqd-r-field); }
.tqd-empty--line .tqd-empty__icon > .tqd-i { inline-size: 18px; block-size: 18px; }
.tqd-empty__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 14rem; min-inline-size: 0; }
.tqd-empty--line .tqd-empty__title { font-size: 14px; line-height: 20px; }
.tqd-empty--line .tqd-empty__text { max-inline-size: 60ch; }
.tqd-empty--line .tqd-empty__actions { flex: none; justify-content: flex-start; margin: 0; }
.tqd-empty--ok .tqd-empty__icon { background: rgb(var(--tqd-ok-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--tqd-ok-rgb) / .22); color: var(--tqd-ok); }


/* ── 32 · CHARTS — a number, how it moved, and the days behind it ─────────
   A chart is a figure first: its label and its number lead, as in the KPI
   strip (30), the change against the period before says which way it went,
   and the drawing shows how. Scripts/tq.charts.js draws it on Apache
   ECharts (Scripts/echarts.tq.js, Tirqo's build, SVG), with the colours
   below, read from these tokens each time it draws: never typed in a page.
   THE COLOURS (checked with the data-viz palette validator, dark, on the
   panel, #0C0E11):
     · One series, one hue: the brand (--tqd-chart-1, the kit's "graphics"
       step), as on the Sales page. Text never wears it.
     · Context is gray: the period before is --tqd-chart-prev, dashed.
     · What has not happened yet is the brand, open: a soft fill inside a
       brand edge (booked ahead; not sold yet). The part that has happened
       fills it from the bottom.
     · Below 0 is the kit's bad tone, as on the Sales page: a line goes
       under the zero line in it; a bar hangs under it, rounded at its foot
       (DD-3).
     · How many (busy hours) is one hue, fewer to more, brighter is more:
       --tqd-chart-seq-1 to -5; none at all is the panel's own fill.
     · Steps in order (a funnel) are --tqd-chart-ord-1 to -3, first to last.
     · A status colour is never a series. The change line's arrow wears the
       tone (more sales: ok); its words stay in ink.
   Each chart has its table (the list button, in the space the drawing
   had), a sentence for a screen reader, and on the keyboard the same
   readout as under the pointer (arrows, Home, End, Esc).
     .tqd-charts   a strip of charts in a panel: equal cells cut by
                   hairlines; on a phone, a row you swipe. --wide: the
                   first cell takes two parts of three.
     .tqd-chart    a cell: __head (__label with __icon, __tools), __figure
                   (__value), __change (--ok, --bad), __plot (role="img",
                   tabindex="0"; --tall), __table, __legend (__key with a
                   __swatch: --line, --dash, --open, --step; __fact), and
                   __note when there is nothing to draw (--bad).        */
:root, .tq-dark {
  --tqd-chart-1:         var(--tq-brand-500);
  --tqd-chart-1-hi:      var(--tq-brand-glow);              /* the mark under the pointer   */
  --tqd-chart-1-wash:    rgb(var(--tq-brand-rgb) / .20);    /* an area's top; it fades out   */
  --tqd-chart-1-soft:    rgb(var(--tq-brand-rgb) / .16);    /* not yet: inside a brand edge  */
  --tqd-chart-1-soft-hi: rgb(var(--tq-brand-rgb) / .30);
  --tqd-chart-prev:      var(--tq-ink-600);                 /* the period before: 3.22:1     */
  --tqd-chart-neg:       var(--tqd-bad);
  --tqd-chart-neg-hi:    var(--tqd-bad-fill-hi);            /* a bar below 0, under the pointer */
  --tqd-chart-grid:      var(--tqd-line-1);
  --tqd-chart-base:      var(--tqd-line-3);                 /* the zero line                 */
  --tqd-chart-cursor:    var(--tqd-line-3);                 /* the crosshair                 */
  --tqd-chart-column:    var(--tqd-fill-1);                 /* the column under the pointer  */
  --tqd-chart-text:      var(--tqd-ink-5);                  /* axis words                    */
  --tqd-chart-none:      var(--tqd-fill-2);                 /* a busy-hours cell with none   */
  --tqd-chart-seq-1:     var(--tq-brand-800);               /* 2.36:1, then brighter         */
  --tqd-chart-seq-2:     var(--tq-brand-750);
  --tqd-chart-seq-3:     var(--tq-brand-500);
  --tqd-chart-seq-4:     var(--tq-brand-400);
  --tqd-chart-seq-5:     var(--tq-brand-300);
  --tqd-chart-ord-1:     var(--tq-brand-800);
  --tqd-chart-ord-2:     var(--tq-brand-600);
  --tqd-chart-ord-3:     var(--tq-brand-400);
  --tqd-chart-on-light:  var(--tq-ink-100);                 /* a number inside a bright cell */
  --tqd-chart-surface:   var(--tqd-panel);                  /* rings and gaps                */
}

/* the strip: one surface cut into equal cells, as the KPI strip */
.tqd-charts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--tqd-line-1);
}
.tqd-charts > .tqd-chart { background: var(--tqd-chart-surface); }
.tqd-charts--wide { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
@container tqd-frame (min-width: 960px) {
  .tqd-charts--wide { grid-auto-flow: column; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .tqd-charts--wide > :only-child { grid-column: 1 / -1; }
}
/* on a phone the strip is a row you swipe: one chart and the edge of the next */
@container tqd-frame (max-width: 719.98px) {
  .tqd-charts:not(.tqd-charts--wide) {
    grid-auto-columns: 86%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tqd-charts:not(.tqd-charts--wide)::-webkit-scrollbar { display: none; }
  .tqd-charts:not(.tqd-charts--wide):has(> :only-child) { grid-auto-columns: 100%; }
  .tqd-charts:not(.tqd-charts--wide) > .tqd-chart { scroll-snap-align: start; }
}

.tqd-chart {
  --tqd-chart-h: 148px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  padding: 16px 20px 18px;
}
.tqd-chart--tall { --tqd-chart-h: 232px; }
/* the head runs 6px into the cell's padding, so the last icon's glyph lines up with the cell's edge */
.tqd-chart__head { display: flex; align-items: center; gap: 10px; min-block-size: 30px; margin-inline-end: -6px; }
.tqd-chart__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-inline-size: 0;
  margin: 0;
  color: var(--tqd-ink-4);
  font: 700 13px/16px var(--tq-font-mono);
  letter-spacing: var(--tq-tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.tqd-chart__label > span:last-child { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.tqd-chart__icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 26px;
  block-size: 26px;
  border-radius: var(--tqd-r-opt);
  background: var(--tqd-fill-2);
  color: var(--tqd-ink-3);
}
.tqd-chart__icon > .tqd-i { inline-size: 15px; block-size: 15px; }
.tqd-chart__tools { display: flex; align-items: center; gap: 2px; flex: none; }
.tqd-chart__figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-block-size: 34px; margin-block-start: 8px; }
.tqd-chart__value {
  min-inline-size: 0;
  color: var(--tqd-ink-1);
  font: 700 var(--tq-fs-3xl)/1.05 var(--tq-font-sans);
  letter-spacing: var(--tq-tr-head);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* the change against the period before: the arrow wears the tone, the words stay in ink */
.tqd-chart__change {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-block-size: 18px;
  margin: 6px 0 0;
  color: var(--tqd-ink-3);
  font: 500 13px/18px var(--tq-font-sans);
}
.tqd-chart__change > .tqd-i { flex: none; inline-size: 14px; block-size: 14px; margin-block-start: 2px; stroke-width: 2.2; color: var(--tqd-ink-4); }
.tqd-chart__change--ok > .tqd-i { color: var(--tqd-ok); }
.tqd-chart__change--bad > .tqd-i { color: var(--tqd-bad); }
/* the drawing: the plot is the readout's keyboard target, and a screen reader's one sentence */
.tqd-chart__plot {
  position: relative;
  block-size: var(--tqd-chart-h);
  margin: 12px -4px 0;
  border-radius: var(--tqd-r-opt);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.tqd-chart__plot:focus-visible { box-shadow: var(--tq-ring); }
.tqd-chart__canvas { position: absolute; inset: 0; }
/* while the charts' scripts load: the page's shimmer, the shape of what comes */
.tqd-chart__value > .tqd-skel { inline-size: 132px; max-inline-size: 100%; block-size: 26px; margin-block: 4px; border-radius: 8px; }
.tqd-chart__plot > .tqd-skel { position: absolute; inset: 0; block-size: auto; border-radius: var(--tqd-r-opt); }
.tqd-chart__canvas text { font-variant-numeric: tabular-nums; }
/* nothing to draw: what that means, in the drawing's space (the Sales page's "No sales") */
.tqd-chart__note {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--tqd-ink-5);
  font: 500 13.5px/20px var(--tq-font-sans);
  text-align: center;
}
.tqd-chart__note > .tqd-i { inline-size: 22px; block-size: 22px; }
.tqd-chart__note > p { margin: 0; max-inline-size: 34ch; }
.tqd-chart__note--bad > .tqd-i { color: var(--tqd-bad); }
/* the table: the chart's numbers, in the space the drawing had */
.tqd-chart__table {
  --tqd-table-max: var(--tqd-chart-h);
  display: none;
  block-size: var(--tqd-chart-h);
  box-sizing: border-box;
  margin: 12px 0 0;
}
.tqd-chart.is-table > .tqd-chart__plot { display: none; }
.tqd-chart.is-table > .tqd-chart__table { display: block; }
.tqd-chart__table .tqd-table th { block-size: 32px; padding: 0 10px; }
.tqd-chart__table .tqd-table td,
.tqd-chart__table .tqd-table tbody th { block-size: 32px; padding: 4px 10px; font-size: 12.5px; line-height: 18px; white-space: nowrap; }
/* a row's own name (its day) reads as a cell, not as the table's head */
.tqd-chart__table .tqd-table tbody th {
  position: static;
  z-index: auto;
  border-block-end: 1px solid var(--tqd-line-1);
  background: var(--tqd-row-bg);
  color: var(--tqd-ink-2);
  font-family: var(--tq-font-sans);
  font-weight: 500;
  letter-spacing: -.003em;
  text-transform: none;
}
.tqd-chart__table .tqd-table tbody tr:last-child > th { border-block-end: 0; }
/* the legend: a mark of each series (as drawn), its words, and one fact at the end */
.tqd-chart__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  min-block-size: 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tqd-ink-4);
  font: 500 12.5px/18px var(--tq-font-sans);
}
.tqd-chart__key { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tqd-chart__key b, .tqd-chart__fact b { color: var(--tqd-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.tqd-chart__fact { margin-inline-start: auto; white-space: nowrap; }
.tqd-chart__swatch { flex: none; inline-size: 12px; block-size: 10px; border-radius: 3px; background: var(--tqd-chart-1); }
.tqd-chart__swatch--line { inline-size: 14px; block-size: 2px; border-radius: 2px; }
.tqd-chart__swatch--dash { inline-size: 14px; block-size: 0; border-radius: 0; background: none; border-block-start: 2px dashed var(--tqd-chart-prev); }
.tqd-chart__swatch--open { background: var(--tqd-chart-1-soft); box-shadow: inset 0 0 0 1px var(--tqd-chart-1); }
.tqd-chart__swatch--step { background: var(--s, var(--tqd-chart-1)); }
.tqd-chart__swatch--neg { background: var(--tqd-chart-neg); }
.tqd-chart__steps { display: inline-flex; gap: 2px; }
/* a funnel's words: beside each step, in line with its middle (the kit sets where they start: past the funnel) */
.tqd-chart__stages { position: absolute; inset-block: 0; inset-inline: 58% 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.tqd-chart__stage { position: absolute; inset-inline: 0; display: grid; gap: 1px; transform: translateY(-50%); }
.tqd-chart__stagehead { display: flex; align-items: baseline; gap: 7px; min-inline-size: 0; color: var(--tqd-ink-3); font: 600 13px/18px var(--tq-font-sans); white-space: nowrap; }
.tqd-chart__stagehead > b { color: var(--tqd-ink-1); font: 700 16px/20px var(--tq-font-sans); font-variant-numeric: tabular-nums; }
.tqd-chart__stageshare { color: var(--tqd-ink-5); font: 500 12px/16px var(--tq-font-sans); white-space: nowrap; }
/* the readout under the pointer: the dash's own card (the Sales page's), values first */
.tqd-chart__tip {
  display: grid;
  gap: 3px;
  min-inline-size: 132px;
  max-inline-size: min(280px, calc(100vw - 16px));
  box-sizing: border-box;
  padding: 8px 11px 9px;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--tqd-r-field);
  background: var(--tq-ink-200);
  box-shadow: var(--tq-el-3);
  color: var(--tqd-ink-4);
  font: 500 12px/17px var(--tq-font-sans);
  text-align: start;
  white-space: nowrap;
}
.tqd-chart__tiphead { margin: 0 0 1px; color: var(--tqd-ink-3); font-weight: 600; }
.tqd-chart__tiprow { display: flex; align-items: center; gap: 8px; }
.tqd-chart__tiprow > b { color: var(--tqd-ink-1); font: 700 14px/19px var(--tq-font-sans); font-variant-numeric: tabular-nums; }
.tqd-chart__tipkey { flex: none; inline-size: 12px; block-size: 2px; border-radius: 2px; background: var(--tqd-chart-1); }
.tqd-chart__tipkey--prev { block-size: 0; border-radius: 0; background: none; border-block-start: 2px dashed var(--tqd-chart-prev); }
.tqd-chart__tipkey--open { block-size: 0; border-radius: 0; background: none; border-block-start: 2px dotted var(--tqd-chart-1); }
.tqd-chart__tipkey--none { visibility: hidden; inline-size: 0; margin-inline-end: -8px; }
@container tqd-frame (max-width: 999.98px) {
  .tqd-charts .tqd-chart__value { font-size: var(--tq-fs-2xl); }
}
@media (max-width: 639.98px) {
  .tqd-chart { --tqd-chart-h: 132px; padding: 14px 16px 16px; }
  .tqd-chart--tall { --tqd-chart-h: 212px; }
  .tqd-chart__value { font-size: var(--tq-fs-2xl); }
}
@media (forced-colors: active) {
  .tqd-chart__swatch, .tqd-chart__tipkey { background: CanvasText; }
  .tqd-chart__swatch--open { background: Canvas; box-shadow: inset 0 0 0 1px CanvasText; }
  .tqd-chart__tip { border-color: CanvasText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-2 (2026-10-17)
   What a long list of records needed (the Quotes page first): status tabs
   that keep the search, the words a search found, a way through the list
   without closing the record, and a list that pages on the server and grows
   with the page. Built from the kit's own tokens; shown in section 16 of
   torque-dash-kit.html.
   ========================================================================= */


/* ── 33 · STATUS TABS THAT KEEP THE SEARCH ───────────────────────────────
   A .tqd-view with data-tqd-keep is a scope, not a saved view: pressing
   it keeps the search and the filters (Scripts/tq.kit.js, 19). While a
   search or a filter narrows the list, each tab's number is what it found
   there (.is-found), in the accent's ink; a tab where it found nothing
   steps back (.is-none). */
.tqd-view__n.is-found { color: var(--tqd-acc-ink); }
.tqd-view[aria-pressed="true"] .tqd-view__n.is-found { color: var(--tqd-acc-ink); }
.tqd-view.is-none { color: var(--tqd-ink-5); }
.tqd-view.is-none .tqd-view__n { color: var(--tqd-ink-5); }


/* ── 34 · THE WORDS A SEARCH FOUND ───────────────────────────────────────
   tqd.marks(text, words, kind) marks each place a word was found, the way
   the server's search found it (capitals and accents aside; a phone by its
   figures, a size by its letters and figures, a reference without its
   dashes). The look is a list option's (07): the accent's ink, bold, no
   fill. A cell can add a line that says where else a word was found
   (.tqd-cell__hit: its field in small capitals, then the words around
   it). */
mark.tqd-mark { background: none; color: var(--tqd-acc-ink); font-weight: 700; }
/* DD-8: a photo's mark (53, IN-1) is this class's ring; the words a search found are a <mark> of the same class,
   never a ring: they read in their line, as they did */
mark.tqd-mark { position: static; inline-size: auto; block-size: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; pointer-events: auto; }
mark.tqd-mark::before, mark.tqd-mark::after { content: none; }
.tqd-cell__hit {
  display: block;
  max-inline-size: 46ch;
  margin-block-start: 2px;
  color: var(--tqd-ink-4);
  font: 500 12px/17px var(--tq-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tqd-cell__hit-k {
  margin-inline-end: 6px;
  color: var(--tqd-ink-5);
  font: 600 10px/1 var(--tq-font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
@media (forced-colors: active) {
  mark.tqd-mark { color: Highlight; text-decoration: underline; }
}


/* ── 35 · THE RECORD PAGER — the one before, the one after ───────────────
   <div class="tqd-modal__nav" data-tqd-nav-label="quote" hidden> in a
   dialog's head, before its ×: the kit puts the two buttons in it, the page
   says where the record is (tqd.modal.nav(d, {index, total})), and J and K
   press them. Each press raises tqd:nav {dir} on the dialog. */
.tqd-modal__nav { flex: none; display: flex; align-items: center; gap: 2px; margin: -3px 0 0; }
.tqd-modal__nav[hidden] { display: none; }
.tqd-modal__pos {
  min-inline-size: 60px;
  padding-inline: 4px;
  color: var(--tqd-ink-4);
  font: 500 12.5px/1 var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.tqd-modal__pos:empty { min-inline-size: 0; padding: 0; }
.tqd-modal__nav + .tqd-modal__x { margin-inline-start: 2px; }
@media (max-width: 419.98px) {
  .tqd-modal__pos { display: none; }
}


/* ── 36 · A LIST THAT GROWS WITH THE PAGE ────────────────────────────────
   .tqd-datatable--flow: a list that pages on the server and is read with
   the page's own scroll. Its table never scrolls on its own: the head
   sticks under the top of what scrolls (the dash's page; --tqd-flow-top
   moves it) and casts its shadow once it does (.is-stuck, from the script). So nothing scrolls
   sideways, the list is its own container: a column that needs room
   (.tqd-col--wide) gives way under 760px, and a line only a narrow list
   shows (.tqd-col--narrow, inside a cell) takes its place. Under 560px it
   reads as cards, as any table with .tqd-table--stack. */
.tqd-datatable--flow { container: tqd-list / inline-size; }
.tqd-datatable--flow .tqd-table-wrap { overflow: visible; }
/* a sticky head stops at the scroller's content edge: in the dash that is under the page's padding (--tqd-pad),
   so it sticks that much higher, at the top bar, with nothing showing above it */
.tqd-datatable--flow .tqd-table thead th { inset-block-start: var(--tqd-flow-top, calc(0px - var(--tqd-pad, 0px))); }
.tqd-datatable--flow .tqd-table thead th:first-child { border-start-start-radius: 13px; }
.tqd-datatable--flow .tqd-table thead th:last-child { border-start-end-radius: 13px; }
.tqd-datatable--flow .tqd-table tbody tr:last-child > td:first-child { border-end-start-radius: 13px; }
.tqd-datatable--flow .tqd-table tbody tr:last-child > td:last-child { border-end-end-radius: 13px; }
.tqd-datatable--flow .tqd-table-wrap.is-stuck th { border-radius: 0; box-shadow: 0 8px 16px -12px rgb(var(--tq-black-rgb) / .8); }
.tqd-datatable--flow .tqd-col--narrow { display: none; }
@container tqd-list (max-width: 759.98px) {
  .tqd-datatable--flow .tqd-col--wide { display: none; }
  .tqd-datatable--flow .tqd-col--narrow { display: block; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-3 (2026-10-17)
   What the Sales page needed: the parts a total is made of. Built from the
   kit's own tokens; shown in section 21 of torque-dash-kit.html.
   ========================================================================= */


/* ── 37 · PARTS OF A WHOLE — each with its number and its share ──────────
   A short list of the parts a total is made of (how the money was paid):
   each part's name with its icon and its number on one line, a bar for its
   share of the whole under it (--v, from 0% to 100%: the page works it
   out), and one line of what it counts. The bar is the chart colour
   (--tqd-chart-1), never a status. A part with nothing steps back
   (.is-none); one below 0 (an undo took off more than came in) says its
   number in the bad tone and draws no bar (.is-neg). In a chart cell (32)
   it sits where a drawing would.                                          */
.tqd-shares { display: grid; gap: 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.tqd-share { display: grid; gap: 0; min-inline-size: 0; }
.tqd-share__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-inline-size: 0; }
.tqd-share__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
  color: var(--tqd-ink-2);
  font: 600 14px/20px var(--tq-font-sans);
}
.tqd-share__name > .tqd-i { flex: none; inline-size: 16px; block-size: 16px; color: var(--tqd-ink-4); }
.tqd-share__value { flex: none; color: var(--tqd-ink-1); font: 700 15px/20px var(--tq-font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tqd-share__track { position: relative; block-size: 8px; margin-block: 8px 6px; border-radius: 999px; background: var(--tqd-fill-2); overflow: hidden; }
.tqd-share__fill {
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: var(--v, 0%);
  border-radius: inherit;
  background: var(--tqd-chart-1);
  transition: inline-size var(--tq-d-slower) var(--tq-ease-out);
}
.tqd-share__meta { margin: 0; color: var(--tqd-ink-5); font: 500 12.5px/18px var(--tq-font-sans); font-variant-numeric: tabular-nums; }
.tqd-share.is-none .tqd-share__value { color: var(--tqd-ink-5); font-weight: 600; }
.tqd-share.is-neg .tqd-share__value { color: var(--tqd-bad); }
@media (forced-colors: active) {
  .tqd-share__track { outline: 1px solid CanvasText; }
  .tqd-share__fill { background: CanvasText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-5 (2026-10-18)
   What the Messages page needed: a conversation (38) and a picture viewer
   (39). Built from the kit's own tokens; shown in section 22 of
   torque-dash-kit.html.
   ========================================================================= */


/* ── 38 · CHAT — a conversation, as it was written ───────────────────────
   .tqd-chat is the log: it scrolls on its own, the newest at its foot, in a
   .tqd-chat-wrap that also holds Jump to latest (.tqd-chat__jump: it waits
   at the foot, with how many came since in its count). A day's messages are
   one .tqd-chat__daygroup under its day (.tqd-chat__day, which sticks to the
   top while that day is read). Each message is a row (.tqd-chat__row, .is-in
   on the left or .is-out on the right): a bubble (.tqd-chat__bubble) with its
   time and what became of it at its corner (.tqd-chat__stamp, its tick:
   .tqd-chat__tick--sending · sent · delivered · failed · unsure). Rows of one
   side a few minutes apart are one group: the second has .is-cont (the gap
   closes, the corner on that side squares off) and the one before it
   .is-goes; the page decides. The first message not read has the New line
   above it (.tqd-chat__new). An email is a card (.tqd-chat__bubble--email:
   its subject, its words, where it went). A message that did not go says why
   under it (.tqd-chat__why, the tone on its icon, with Send again).
   Pictures are thumbnails (.tqd-chat__pics; --2 and --3 for two and three a row) that the
   viewer (39) opens. A row's own buttons sit beside its bubble on hover and
   focus (.tqd-chat__acts; on a touch screen when the bubble is tapped,
   .is-picked). The find bar (.tqd-chat__find) rings the message it found
   (.is-found). The composer (.tqd-composer) is a field (03): its subject,
   its words that grow with them, and its bar inside it.                  */
.tqd-chat-wrap { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-block-size: 0; container: tqd-chat / inline-size; }
.tqd-chat {
  --tqd-chat-w: 560px;
  --tqd-chat-in: var(--tq-ink-200);
  --tqd-chat-out: color-mix(in srgb, var(--tqd-acc) 16%, var(--tq-ink-150));
  --tqd-chat-out-line: rgb(var(--tq-accent-rgb) / .34);
  position: relative;
  flex: 1 1 auto;
  min-block-size: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 14px;
  scroll-padding-block: 52px 16px;
  outline: none;
}
.tqd-chat:focus-visible { box-shadow: inset 0 0 0 2px var(--tqd-focus-line); }
@container tqd-chat (max-width: 559.98px) {
  .tqd-chat { padding-inline: 12px; }
}
.tqd-chat__daygroup { display: flex; flex-direction: column; }
.tqd-chat__day {
  position: sticky;
  inset-block-start: 8px;
  z-index: 2;
  align-self: center;
  margin: 16px 0 4px;
  padding: 3px 12px;
  border: 1px solid var(--tqd-line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tq-ink-150) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px -10px rgb(var(--tq-black-rgb) / .9);
  color: var(--tqd-ink-3);
  font: 600 12px/18px var(--tq-font-sans);
  white-space: nowrap;
}
.tqd-chat__new {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 2px;
  color: var(--tqd-acc-ink);
  font: 600 11px/16px var(--tq-font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tqd-chat__new::before, .tqd-chat__new::after { content: ""; flex: 1 1 0; block-size: 1px; background: var(--tqd-acc-line); }

.tqd-chat__row { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-block-start: 10px; }
.tqd-chat__row.is-out { align-items: flex-end; }
.tqd-chat__row.is-cont { margin-block-start: 2px; }
.tqd-chat__line { display: flex; align-items: center; gap: 4px; min-inline-size: 0; max-inline-size: min(var(--tqd-chat-w), 88%); }
.tqd-chat__row.is-out > .tqd-chat__line { flex-direction: row-reverse; }
.tqd-chat__bubble {
  position: relative;
  min-inline-size: 0;
  padding: 7px 11px 6px 12px;
  border: 1px solid var(--tqd-line-1);
  border-radius: 16px;
  background: var(--tqd-chat-in);
  box-shadow: 0 1px 0 rgb(var(--tq-black-rgb) / .28);
  color: var(--tqd-ink-1);
  font: 400 14px/20px var(--tq-font-sans);
  overflow-wrap: anywhere;
  transition: box-shadow var(--tq-d-base) var(--tq-ease-out), border-color var(--tq-d-base) var(--tq-ease-out);
}
.tqd-chat__row.is-out .tqd-chat__bubble { border-color: var(--tqd-chat-out-line); background: var(--tqd-chat-out); }
.tqd-chat__row.is-in.is-cont .tqd-chat__bubble { border-start-start-radius: 6px; }
.tqd-chat__row.is-in.is-goes .tqd-chat__bubble { border-end-start-radius: 6px; }
.tqd-chat__row.is-out.is-cont .tqd-chat__bubble { border-start-end-radius: 6px; }
.tqd-chat__row.is-out.is-goes .tqd-chat__bubble { border-end-end-radius: 6px; }
.tqd-chat__row.is-bad .tqd-chat__bubble { border-color: rgb(var(--tqd-bad-rgb) / .55); background: color-mix(in srgb, var(--tqd-bad) 9%, var(--tq-ink-150)); }
.tqd-chat__text { white-space: pre-wrap; }
.tqd-chat__text a { color: var(--tqd-acc-ink); text-decoration: underline; text-decoration-color: var(--tqd-acc-line); text-underline-offset: 2px; }
.tqd-chat__text a:hover { text-decoration-color: currentColor; }
.tqd-chat__text--emoji { font-size: 30px; line-height: 38px; }
/* the time sits in the last line when there is room, else under it */
.tqd-chat__stamp {
  position: relative;
  inset-block-end: -4px;
  float: inline-end;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 3px -3px 0 12px;
  color: var(--tqd-ink-4);
  font: 500 11px/16px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.tqd-chat__row.is-out .tqd-chat__stamp { color: rgb(var(--tq-white-rgb) / .62); }
.tqd-chat__tick {
  --m: none;
  display: inline-block;
  flex: none;
  inline-size: 16px;
  block-size: 12px;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.tqd-chat__tick--sending { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Ccircle cx='8' cy='6' r='4.6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M8 3.6V6l1.7 1.1' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tqd-chat__tick--sent { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M3.5 6.4l2.8 2.8L12.5 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tqd-chat__tick--delivered { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6.4l2.8 2.8L10 3M6.6 8.4l.8.8L13.6 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); color: var(--tqd-ok); }
.tqd-chat__tick--failed { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Ccircle cx='8' cy='6' r='5.4' fill='%23000'/%3E%3Cpath d='M8 3.2v3.3' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='8.7' r='.85' fill='%23fff'/%3E%3C/svg%3E"); color: var(--tqd-bad); }
.tqd-chat__tick--unsure { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Ccircle cx='8' cy='6' r='4.8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M6.5 4.7a1.6 1.6 0 1 1 2.2 1.5c-.5.2-.7.5-.7 1' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='8.8' r='.75' fill='%23000'/%3E%3C/svg%3E"); color: var(--tqd-warn); }
.tqd-chat__row.is-out .tqd-chat__tick--delivered { color: var(--tqd-ok); }

/* an email: a card with its subject, its words, and where it went */
.tqd-chat__bubble--email { inline-size: min(600px, 100%); padding: 0; overflow: hidden; }
.tqd-chat__mailhd { display: flex; align-items: center; gap: 8px; padding: 9px 14px 8px; border-block-end: 1px solid var(--tqd-line-1); color: var(--tqd-ink-1); font: 600 14px/20px var(--tq-font-sans); }
.tqd-chat__mailhd > .tqd-i { flex: none; inline-size: 16px; block-size: 16px; color: var(--tqd-ink-4); }
.tqd-chat__mailhd > span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-chat__row.is-out .tqd-chat__mailhd { border-block-end-color: var(--tqd-chat-out-line); }
.tqd-chat__mailbd { padding: 10px 14px 6px; }
.tqd-chat__mailft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 2px 14px 8px; color: var(--tqd-ink-4); font: 500 11.5px/16px var(--tq-font-sans); }
.tqd-chat__mailto { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqd-chat__mailft > .tqd-chat__stamp { float: none; inset-block-end: 0; flex: none; margin: 0; }

/* the pictures a text came with */
/* a set width (not a share of the bubble's), so each thumbnail has its height before its picture comes */
.tqd-chat__pics { --n: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; inline-size: var(--pics-w, 280px); max-inline-size: calc(100% + 17px); margin: -3px -8px 6px -9px; }
.tqd-chat__pics:last-child { margin-block-end: -3px; }
.tqd-chat__bubble > .tqd-chat__pics:first-child { margin-block-start: -4px; }
.tqd-chat__pic {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--tqd-fill-3);
  overflow: hidden;
  cursor: zoom-in;
}
.tqd-chat__pics--2 { --n: 2; }
.tqd-chat__pics--3 { --n: 3; }
.tqd-chat__pics--2 .tqd-chat__pic, .tqd-chat__pics--3 .tqd-chat__pic { aspect-ratio: 1; }
.tqd-chat__pic > img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--tq-d-slow) var(--tq-ease-out); }
.tqd-chat__pic:hover > img { transform: scale(1.03); }
.tqd-chat__pic:focus-visible { outline: none; box-shadow: var(--tqd-focus-halo); }
.tqd-chat__pic.is-broken { display: grid; place-items: center; align-content: center; gap: 4px; padding: 8px; color: var(--tqd-ink-4); font: 500 12px/16px var(--tq-font-sans); text-align: center; cursor: pointer; }
.tqd-chat__pic.is-broken > .tqd-i { inline-size: 20px; block-size: 20px; }

/* why a message did not go, or what it is waiting for */
.tqd-chat__why {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-inline-size: min(var(--tqd-chat-w), 88%);
  margin: 0;
  color: var(--tqd-ink-3);
  font: 500 12.5px/18px var(--tq-font-sans);
}
.tqd-chat__row.is-out .tqd-chat__why { justify-content: flex-end; text-align: end; }
.tqd-chat__why > .tqd-i { flex: none; inline-size: 15px; block-size: 15px; margin-block-start: 1.5px; color: var(--tqd-info); }
.tqd-chat__why--bad > .tqd-i { color: var(--tqd-bad); }
.tqd-chat__why--warn > .tqd-i { color: var(--tqd-warn); }
.tqd-chat__why > span { min-inline-size: 0; }
.tqd-chat__why > .tqd-btn { margin-block: -2px; }

/* a row's own buttons, beside its bubble */
.tqd-chat__acts { display: flex; flex: none; gap: 2px; opacity: 0; transition: opacity var(--tq-d-fast) var(--tq-ease); }
.tqd-chat__row:hover .tqd-chat__acts, .tqd-chat__row:focus-within .tqd-chat__acts, .tqd-chat__row.is-picked .tqd-chat__acts { opacity: 1; }
@media (hover: none) {
  .tqd-chat__acts { display: none; }
  .tqd-chat__row.is-picked .tqd-chat__acts { display: flex; }
}

/* what the find bar found */
.tqd-chat__row.is-found .tqd-chat__bubble { border-color: var(--tqd-acc-line); box-shadow: 0 0 0 2px rgb(var(--tq-accent-rgb) / .38), 0 1px 0 rgb(var(--tq-black-rgb) / .28); }
.tqd-chat__row.is-found.is-flash .tqd-chat__bubble { animation: tqd-chat-found var(--tq-d-ambient) var(--tq-ease-out) 1; }
@keyframes tqd-chat-found { 0% { box-shadow: 0 0 0 7px rgb(var(--tq-accent-rgb) / .0); } 30% { box-shadow: 0 0 0 5px rgb(var(--tq-accent-rgb) / .45); } 100% { box-shadow: 0 0 0 2px rgb(var(--tq-accent-rgb) / .38); } }
.tqd-chat__find {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 12px 8px 16px;
  border-block-end: 1px solid var(--tqd-line-1);
  background: var(--tqd-panel);
}
.tqd-chat__find[hidden] { display: none; }
.tqd-chat__find > .tqd-control { flex: 1 1 auto; min-inline-size: 0; }
.tqd-chat__findn { flex: none; min-inline-size: 76px; color: var(--tqd-ink-4); font: 500 12.5px/18px var(--tq-font-sans); font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.tqd-chat__findn.is-none { color: var(--tqd-ink-5); }

/* the first message, and the ones before it on their way */
.tqd-chat__older { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0 4px; color: var(--tqd-ink-4); font: 500 12.5px/18px var(--tq-font-sans); }
.tqd-chat__older > .tqd-spin { inline-size: 14px; block-size: 14px; }
.tqd-chat__start { display: grid; justify-items: center; gap: 6px; padding: 26px 12px 6px; color: var(--tqd-ink-4); font: 500 12.5px/18px var(--tq-font-sans); text-align: center; }
.tqd-chat__start > .tqd-avatar { margin-block-end: 2px; }
.tqd-chat__start b { color: var(--tqd-ink-2); font-weight: 600; }

/* Jump to latest */
.tqd-chat__jump {
  position: absolute;
  inset-inline-end: 18px;
  inset-block-end: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border: 1px solid var(--tqd-line-3);
  border-radius: 50%;
  background: var(--tqd-pop);
  box-shadow: var(--tqd-shadow-pop);
  color: var(--tqd-ink-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(.92);
  pointer-events: none;
  transition: opacity var(--tq-d-base) var(--tq-ease-out), transform var(--tq-d-base) var(--tq-ease-out), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-chat__jump.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tqd-chat__jump:hover { background: var(--tq-ink-300); color: var(--tqd-ink-1); }
.tqd-chat__jump:focus-visible { outline: none; box-shadow: var(--tqd-focus-halo), var(--tqd-shadow-pop); }
.tqd-chat__jump > .tqd-i { inline-size: 18px; block-size: 18px; }
.tqd-chat__jump > .tqd-count { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; }
.tqd-chat__jump > .tqd-count:empty { display: none; }

/* the composer: a field with its subject, its words and its bar inside */
.tqd-composer { display: grid; gap: 8px; flex: none; padding: 10px 14px 12px; border-block-start: 1px solid var(--tqd-line-1); background: var(--tqd-panel); container: tqd-composer / inline-size; }
.tqd-composer__to { display: flex; align-items: center; gap: 10px; min-inline-size: 0; }
.tqd-composer__label { flex: none; color: var(--tqd-ink-5); font: 600 11px/1 var(--tq-font-mono); letter-spacing: .09em; text-transform: uppercase; }
.tqd-composer__to > .tqd-selectwrap, .tqd-composer__to > select { flex: 0 1 340px; min-inline-size: 0; }
.tqd-composer__to > .tqd-composer__hint { margin-inline-start: auto; }
.tqd-composer__box {
  display: grid;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--tqd-r-field);
  background: var(--tqd-fill-1);
  transition: border-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease);
}
.tqd-composer__box:hover { border-color: var(--tqd-line-3); }
.tqd-composer__box:focus-within { border-color: var(--tqd-focus-line); box-shadow: var(--tqd-focus-halo); }
.tqd-composer__subject, .tqd-composer__words {
  display: block;
  inline-size: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--tqd-ink-1);
  outline: none;
}
.tqd-composer__subject { padding: 10px 14px 8px; border-block-end: 1px solid var(--tqd-line-1); font: 600 14px/20px var(--tq-font-sans); }
.tqd-composer__subject[hidden] { display: none; }
.tqd-composer__words { min-block-size: 44px; max-block-size: 260px; padding: 11px 14px 6px; font: 400 14px/20px var(--tq-font-sans); resize: none; overflow-y: auto; }
.tqd-composer__subject::placeholder, .tqd-composer__words::placeholder { color: var(--tqd-ink-5); opacity: 1; }
.tqd-composer__words:disabled { cursor: not-allowed; }
.tqd-composer__bar { display: flex; align-items: center; gap: 6px; min-inline-size: 0; padding: 2px 6px 6px 8px; }
.tqd-composer__count { margin-inline-start: auto; color: var(--tqd-ink-5); font: 500 12px/16px var(--tq-font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; }
.tqd-composer__count.is-many { color: var(--tqd-ink-3); }
.tqd-composer__count.is-over { color: var(--tqd-bad); }
.tqd-composer__keys { color: var(--tqd-ink-5); font: 500 12px/16px var(--tq-font-sans); white-space: nowrap; }
@media (hover: none) { .tqd-composer__keys { display: none; } }
/* a narrow conversation: who it goes to has the room, not the hint */
@container tqd-composer (max-width: 519.98px) { .tqd-composer__keys { display: none; } }
.tqd-composer__note { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--tqd-ink-3); font: 500 12.5px/18px var(--tq-font-sans); }
.tqd-composer__note[hidden] { display: none; }
.tqd-composer__note > .tqd-i { flex: none; inline-size: 15px; block-size: 15px; margin-block-start: 1.5px; color: var(--tqd-info); }
.tqd-composer__note--warn > .tqd-i { color: var(--tqd-warn); }
.tqd-composer__note--bad > .tqd-i { color: var(--tqd-bad); }
@media (forced-colors: active) {
  .tqd-chat__bubble { border-color: CanvasText; }
  .tqd-chat__tick { background: CanvasText; }
  .tqd-chat__new::before, .tqd-chat__new::after { background: CanvasText; }
}


/* ── 39 · THE PICTURE VIEWER ─────────────────────────────────────────────
   tqd.viewer.open(items, index, {label, opener}) shows pictures at their
   full size over the page, in a <dialog> of its own (the top layer: it is
   over every other layer, and the page behind it does not take the keys).
   ← and → (or a swipe) move between them, Esc closes; each can be opened on
   its own or saved. A picture that cannot be shown says so, with a way to
   open it on its own.                                                     */
.tqd-viewer {
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tqd-ink-2);
  overflow: hidden;
}
.tqd-viewer::backdrop { background: rgb(var(--tq-black-rgb) / .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tqd-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: tqd-viewer-in var(--tq-d-base) var(--tq-ease-out); }
@keyframes tqd-viewer-in { from { opacity: 0; } to { opacity: 1; } }
.tqd-viewer__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.tqd-viewer__title { flex: 1 1 auto; min-inline-size: 0; margin: 0; overflow: hidden; color: var(--tqd-ink-1); font: 600 14px/20px var(--tq-font-sans); text-overflow: ellipsis; white-space: nowrap; }
.tqd-viewer__pos { flex: none; color: var(--tqd-ink-4); font: 500 13px/18px var(--tq-font-sans); font-variant-numeric: tabular-nums; }
.tqd-viewer__stage { position: relative; display: grid; place-items: center; min-block-size: 0; padding: 4px 72px 8px; touch-action: pan-y; }
.tqd-viewer__img {
  display: block;
  max-inline-size: 100%;
  max-block-size: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 90px -24px rgb(var(--tq-black-rgb) / .95);
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-viewer__img.is-loading { opacity: .35; }
.tqd-viewer__spin { position: absolute; inset: 0; margin: auto; inline-size: 26px; block-size: 26px; }
.tqd-viewer__spin[hidden] { display: none; }
.tqd-viewer__broken { display: grid; justify-items: center; gap: 10px; color: var(--tqd-ink-3); font: 500 14px/20px var(--tq-font-sans); text-align: center; }
.tqd-viewer__broken[hidden] { display: none; }
.tqd-viewer__broken > .tqd-i { inline-size: 32px; block-size: 32px; color: var(--tqd-ink-4); }
.tqd-viewer__nav {
  position: absolute;
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-block-start: -22px;
  padding: 0;
  border: 1px solid var(--tqd-line-3);
  border-radius: 50%;
  background: rgb(var(--tq-black-rgb) / .45);
  color: var(--tqd-ink-1);
  cursor: pointer;
  transition: background-color var(--tq-d-fast) var(--tq-ease), opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-viewer__nav:hover { background: rgb(var(--tq-white-rgb) / .12); }
.tqd-viewer__nav:focus-visible { outline: none; box-shadow: var(--tqd-focus-halo); }
.tqd-viewer__nav:disabled { opacity: 0; pointer-events: none; }
.tqd-viewer__nav--prev { inset-inline-start: 14px; }
.tqd-viewer__nav--next { inset-inline-end: 14px; }
.tqd-viewer__nav > .tqd-i { inline-size: 20px; block-size: 20px; }
.tqd-viewer__strip { display: flex; justify-content: center; gap: 8px; padding: 10px 14px 16px; overflow-x: auto; }
.tqd-viewer__strip[hidden] { display: none; }
.tqd-viewer__thumb { flex: none; inline-size: 56px; block-size: 42px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--tqd-fill-2); overflow: hidden; opacity: .6; cursor: pointer; transition: opacity var(--tq-d-fast) var(--tq-ease), border-color var(--tq-d-fast) var(--tq-ease); }
.tqd-viewer__thumb > img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.tqd-viewer__thumb:hover { opacity: .9; }
.tqd-viewer__thumb.is-on { border-color: var(--tqd-acc-hi); opacity: 1; }
.tqd-viewer__thumb:focus-visible { outline: none; box-shadow: var(--tqd-focus-halo); }
@media (max-width: 560px) {
  .tqd-viewer__stage { padding-inline: 8px; }
  .tqd-viewer__nav { inset-block-start: auto; inset-block-end: 12px; margin: 0; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B3 (2026-10-18)
   What the Activity page needed: a time of day, to the minute. Built from
   the kit's own tokens; shown in section 07 of torque-dash-kit.html.
   ========================================================================= */


/* ── 40 · A TIME OF DAY — the browser's own time input, in the kit's field ─
   <div class="tqd-control tqd-time"><span class="tqd-affix">From</span>
   <input type="time" step="60"></div> (or the clock icon first, as a date
   field has its calendar). Hours and minutes, typed or picked: a computer
   edits each part with its keys (the arrows step it) and opens the
   browser's own list from the clock at the end; a phone opens its own
   wheel. The value is "14:37" however the screen shows it (2:37 PM, or
   14:37). Its parts wear the kit's selection, the clock the field's quiet
   ink. With .tqd-control--sm it stands in a filter bar.                  */
.tqd-time > input { font-variant-numeric: tabular-nums; cursor: text; }
.tqd-time > input::-webkit-datetime-edit,
.tqd-time > input::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.tqd-time > input::-webkit-datetime-edit-text { padding: 0 1px; color: var(--tqd-ink-5); }
.tqd-time > input::-webkit-datetime-edit-hour-field,
.tqd-time > input::-webkit-datetime-edit-minute-field,
.tqd-time > input::-webkit-datetime-edit-ampm-field { padding: 0 2px; border-radius: 4px; }
.tqd-time > input::-webkit-datetime-edit-hour-field:focus,
.tqd-time > input::-webkit-datetime-edit-minute-field:focus,
.tqd-time > input::-webkit-datetime-edit-ampm-field:focus { background-color: var(--tqd-acc-soft-2); color: var(--tqd-ink-1); outline: none; }
.tqd-time > input::-webkit-calendar-picker-indicator {
  margin: 0 -4px 0 2px;
  padding: 3px;
  border-radius: 6px;
  opacity: .55;
  cursor: pointer;
  transition: opacity var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-time > input::-webkit-calendar-picker-indicator:hover { opacity: .9; background-color: var(--tqd-fill-3); }
.tqd-time:has(> input:disabled) { cursor: not-allowed; }
.tqd-time:has(> input:disabled) > .tqd-affix { color: var(--tqd-ink-5); }
.tqd-time > input:disabled::-webkit-calendar-picker-indicator { opacity: .3; cursor: not-allowed; }
@media (forced-colors: active) {
  .tqd-time > input::-webkit-datetime-edit-hour-field:focus,
  .tqd-time > input::-webkit-datetime-edit-minute-field:focus,
  .tqd-time > input::-webkit-datetime-edit-ampm-field:focus { background-color: Highlight; color: HighlightText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B4 (2026-10-18)
   What Prices & hours needed: the bar while a page's settings are not saved
   (and a tab's dot), and a week of opening hours. Built from the kit's own
   tokens; shown in torque-dash-kit.html: 41 in section 20, 42 in section 07.
   ========================================================================= */


/* ── 41 · UNSAVED CHANGES — the bar at the foot of a page of settings ─────
   <div class="tqd-savebar" role="region" aria-label="Unsaved changes" hidden>
     <span class="tqd-savebar__icon"><svg class="tqd-i">…</svg></span>
     <p class="tqd-savebar__text"><b>Unsaved changes</b> in Prices</p>
     <div class="tqd-savebar__btns"><button class="tqd-btn tqd-btn--ghost">
     Discard</button><button class="tqd-btn tqd-btn--primary">Save changes
     </button></div></div>
   At the foot of the page while something typed is not saved: it rides
   over the page as it scrolls (sticky, on the scroller's own padding at its
   foot: 24px in the dash) and goes once all is saved. Where:
   the parts that hold it, in words. A tab whose part holds something not
   saved shows .tqd-tab__dot; --bad when it holds a problem. While the bar
   shows, the toasts stand above it.                                        */
.tqd-savebar {
  position: sticky;
  inset-block-end: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  margin-block-start: 20px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--tqd-r-card);
  background: var(--tqd-pop);
  box-shadow: var(--tqd-shadow-pop);
  animation: tqd-savebar-in var(--tq-d-base) var(--tq-ease-out);
}
.tqd-savebar[hidden] { display: none; }
.tqd-savebar__icon {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: var(--tqd-r-field);
  background: rgb(var(--tqd-warn-rgb) / .14);
  color: var(--tqd-warn);
}
.tqd-savebar__icon > .tqd-i { inline-size: 17px; block-size: 17px; }
.tqd-savebar__text {
  flex: 1 1 auto;
  min-inline-size: 0;
  margin: 0;
  color: var(--tqd-ink-3);
  font: 500 13.5px/19px var(--tq-font-sans);
  overflow-wrap: anywhere;
}
.tqd-savebar__text b { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-savebar__btns { flex: none; display: flex; align-items: center; gap: 8px; }
@keyframes tqd-savebar-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 559.98px) {
  .tqd-savebar { flex-wrap: wrap; padding: 10px; }
  .tqd-savebar__text { flex-basis: calc(100% - 44px); }
  .tqd-savebar__btns { flex: 1 1 100%; }
  .tqd-savebar__btns > .tqd-btn { flex: 1 1 0; }
}
/* while the bar shows, the toasts (16) stand above it: 100px up (148px on a phone) while it rides at the
   foot of the window; where it sits higher (the very foot of a page, over the footer), tq.kit.js sets
   --tqd-toasts-lift so they stand 12px above it (DD-B5) */
body:has(.tqd-savebar:not([hidden])) .tqd-toasts { inset-block-end: var(--tqd-toasts-lift, calc(100px + env(safe-area-inset-bottom))); }
@media (max-width: 559.98px) {
  body:has(.tqd-savebar:not([hidden])) .tqd-toasts { inset-block-end: var(--tqd-toasts-lift, calc(148px + env(safe-area-inset-bottom))); }
}
/* DD-6b: and what is brought into view (a box as it is focused, the line being typed) stays above it: the scroller's
   padding at its foot, as far up as the toasts' usual place */
html:has(.tqd-savebar:not([hidden])), body:has(.tqd-savebar:not([hidden])) .tqd-main { scroll-padding-block-end: calc(100px + env(safe-area-inset-bottom)); }
@media (max-width: 559.98px) {
  html:has(.tqd-savebar:not([hidden])), body:has(.tqd-savebar:not([hidden])) .tqd-main { scroll-padding-block-end: calc(148px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .tqd-savebar { animation: none; } }
@media (forced-colors: active) { .tqd-savebar { border-color: CanvasText; } }
/* a tab whose part holds something not saved; --bad: a problem */
.tqd-tab__dot {
  flex: none;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--tqd-warn);
  box-shadow: 0 0 0 3px rgb(var(--tqd-warn-rgb) / .18);
}
.tqd-tab__dot--bad { background: var(--tqd-bad); box-shadow: 0 0 0 3px rgb(var(--tqd-bad-rgb) / .2); }
.tqd-tab__dot[hidden] { display: none; }


/* ── 42 · A WEEK OF HOURS — a day a row: open or not, from and to ────────
   <ul class="tqd-week"><li class="tqd-week__day">
     <label class="tqd-check tqd-week__name"><input type="checkbox"
     class="tqd-checkbox" checked><span>Monday</span></label>
     <div class="tqd-week__times"><div class="tqd-control tqd-time"><span
     class="tqd-affix">Opens</span><input type="time" step="60"></div><span
     class="tqd-week__to">to</span><div class="tqd-control tqd-time">…</div>
     </div><span class="tqd-week__closed">Closed</span>
     <button class="tqd-btn tqd-btn--ghost tqd-btn--icon tqd-btn--sm
     tqd-week__more" data-tqd-menu="…">…</button>
     <p class="tqd-msg tqd-msg--bad tqd-week__msg" hidden></p></li></ul>
   A day that is not ticked (.is-closed) says Closed where its times were
   (they keep what was typed, for when it opens again) and has no copy
   button. A day's problem is said under its row. The times are the kit's
   time fields (40), never narrower than "12:45 PM" beside its word needs:
   176px, and 196px under a finger (16px). The week is its own container:
   under 624px the times go under the day, under 408px one under the other
   (664px and 448px under a finger).
   A day's tick is a 24px row (40px under a finger).                         */
.tqd-week {
  --tqd-week-time: 176px;
  container: tqd-week / inline-size;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--tqd-line-1);
  border-radius: var(--tqd-r-card);
  overflow: hidden;
}
.tqd-week__day {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-block-size: 56px;
  box-sizing: border-box;
  padding: 9px 10px 9px 16px;
  border-block-start: 1px solid var(--tqd-line-1);
  transition: background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-week__day:first-child { border-block-start: 0; }
.tqd-week__day.is-closed { background: var(--tqd-fill-1); }
.tqd-week__name { min-inline-size: 0; padding-block: 2px; color: var(--tqd-ink-1); font-weight: 600; }   /* a 24px row to tap (WCAG 2.5.8) */
.tqd-week__times { display: flex; align-items: center; gap: 10px; min-inline-size: 0; }
.tqd-week__times > .tqd-time { flex: 0 0 var(--tqd-week-time); inline-size: var(--tqd-week-time); box-sizing: border-box; }
.tqd-week__to { flex: none; color: var(--tqd-ink-5); font: 500 13px/1 var(--tq-font-sans); }
.tqd-week__closed { display: none; color: var(--tqd-ink-5); font: 500 13.5px/20px var(--tq-font-sans); }
.tqd-week__day.is-closed .tqd-week__times { display: none; }
.tqd-week__day.is-closed .tqd-week__closed { display: block; }
.tqd-week__day.is-closed .tqd-week__more { visibility: hidden; }
.tqd-week__msg { grid-column: 1 / -1; margin-block-start: -2px; }
.tqd-week__msg[hidden] { display: none; }
@media (pointer: coarse) {
  .tqd-week { --tqd-week-time: 196px; }
  .tqd-week__name { padding-block: 10px; }      /* a 40px row under a finger */
}
/* the times under the day, the name and the copy button on the first line: under 624px (664px under a
   finger), where a row has no room for both times beside the day */
@container tqd-week (max-width: 623.98px) {
  .tqd-week__day { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 12px 8px; }
  .tqd-week__times, .tqd-week__closed { grid-column: 1 / -1; grid-row: 2; }
  .tqd-week__more { grid-column: 2; grid-row: 1; }
}
@media (pointer: coarse) {
  @container tqd-week (max-width: 663.98px) {
    .tqd-week__day { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 12px 8px; }
    .tqd-week__times, .tqd-week__closed { grid-column: 1 / -1; grid-row: 2; }
    .tqd-week__more { grid-column: 2; grid-row: 1; }
  }
}
/* one under the other, each its whole line (its word says which): under 408px (448px under a finger) */
@container tqd-week (max-width: 407.98px) {
  .tqd-week__times { flex-direction: column; align-items: stretch; gap: 8px; }
  .tqd-week__to { display: none; }
  .tqd-week__times > .tqd-time { flex: none; inline-size: auto; }
  .tqd-week__times .tqd-affix { min-inline-size: 3.6em; }   /* Opens and Closes: their times in line */
}
@media (pointer: coarse) {
  @container tqd-week (max-width: 447.98px) {
    .tqd-week__times { flex-direction: column; align-items: stretch; gap: 8px; }
    .tqd-week__to { display: none; }
    .tqd-week__times > .tqd-time { flex: none; inline-size: auto; }
    .tqd-week__times .tqd-affix { min-inline-size: 3.6em; }   /* Opens and Closes: their times in line */
  }
}
@media (prefers-reduced-motion: reduce) { .tqd-week__day { transition: none; } }


/* =========================================================================
   DASH DESIGN PASS · DD-B5 (2026-10-19)
   What Install prices needed: a list of things, each one line that says
   what it does, opened to be changed. Built from the kit's own tokens;
   shown in torque-dash-kit.html, section 20.
   ========================================================================= */


/* ── 43 · ONE LINE EACH — a list of things, each opened to be changed ─────
   <ul class="tqd-items"><li class="tqd-item">
     <div class="tqd-item__head">
       <label class="tqd-switch tqd-switch--sm tqd-item__lead">…</label>
       <button type="button" class="tqd-item__open" aria-expanded="false"
       aria-controls="i1"><span class="tqd-item__text"><span
       class="tqd-item__title">Fall special</span><span class="tqd-item__sum">
       Free installation · 4 tires or more</span></span><span class="tqd-badge
       tqd-badge--sm tqd-badge--ok tqd-item__badge">Running now</span><svg
       class="tqd-i tqd-item__chev">…chevron-down…</svg></button>
       <div class="tqd-item__end"><button class="tqd-btn tqd-btn--icon
       tqd-btn--ghost tqd-btn--sm" data-tqd-menu="…">…</button></div></div>
     <div class="tqd-item__body" id="i1" hidden>its boxes</div></li></ul>
   Each line says in words what the thing does, with its state (a badge, in
   the button, so it is read with the line) and its ⋯ menu; the switch in
   front is optional. Every line's chevron sits at the same place, before its
   menu. The page's script opens and closes a line (aria-expanded on the
   button, hidden on the body) and keeps its words in step with its boxes; a
   new one opens ready to type.
   .is-open: its body shows, on a lifted ground, with the accent on its
   edge. .is-bad: a problem in its boxes (it opens; its edge turns red).
   .is-off steps back (switched off). A title not given yet says so in its
   own tone (.tqd-item__title.is-empty). The list sits flush in its card.
   It is its own container: under 520px the badge goes under the words.
   DD-B12: a line's body may hold a list of its own (Home page: a pane and
   its lines); each line's state rides on its own head (> .tqd-item__head),
   so the lines inside keep theirs.
   A line is 60px tall, 64px under a finger.                               */
.tqd-items {
  container: tqd-items / inline-size;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tqd-item {
  position: relative;
  border-block-start: 1px solid var(--tqd-line-1);
  transition: background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-items > li:first-child { border-block-start: 0; }
.tqd-item::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 2px;
  background: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-item.is-open { background: var(--tqd-fill-1); }
.tqd-item.is-open::before { background: var(--tqd-acc-ink); }
.tqd-item.is-bad::before { background: var(--tqd-bad); }
.tqd-item__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "open end";
  align-items: center;
  column-gap: 10px;
  box-sizing: border-box;
  min-block-size: 60px;
  padding: 8px 10px 8px 18px;
}
.tqd-item__head:has(> .tqd-item__lead) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "lead open end";
  column-gap: 14px;
}
.tqd-item__lead { grid-area: lead; }
.tqd-item__open {
  grid-area: open;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "text badge chev";
  align-items: center;
  column-gap: 12px;
  min-inline-size: 0;
  min-block-size: 40px;
  margin: 0;
  padding: 4px 6px 4px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tqd-item__open:focus-visible { outline: none; box-shadow: var(--tq-ring); }
.tqd-item__text { grid-area: text; display: grid; gap: 3px; min-inline-size: 0; }
.tqd-item__title {
  color: var(--tqd-ink-1);
  font: 600 14px/20px var(--tq-font-sans);
  letter-spacing: -.004em;
  overflow-wrap: anywhere;
}
.tqd-item__title.is-empty { color: var(--tqd-ink-4); font-weight: 500; font-style: italic; }
.tqd-item__sum {
  color: var(--tqd-ink-4);
  font: 500 12.5px/18px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tqd-item__badge { grid-area: badge; justify-self: end; }
.tqd-item__chev {
  grid-area: chev;
  inline-size: 16px;
  block-size: 16px;
  color: var(--tqd-ink-4);
  transition: transform var(--tq-d-base) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-item__open:hover .tqd-item__chev { color: var(--tqd-ink-2); }
.tqd-item.is-open > .tqd-item__head .tqd-item__chev { transform: rotate(180deg); color: var(--tqd-ink-2); }
.tqd-item__end { grid-area: end; display: flex; align-items: center; }
.tqd-item.is-off > .tqd-item__head .tqd-item__title { color: var(--tqd-ink-4); }
.tqd-item.is-off > .tqd-item__head .tqd-item__sum { color: var(--tqd-ink-5); }
.tqd-item__body { padding: 4px 18px 20px; }
@container tqd-items (max-width: 519.98px) {
  .tqd-item__head { padding-inline-start: 14px; }
  .tqd-item__open { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text chev" "badge chev"; row-gap: 6px; }
  .tqd-item__badge { justify-self: start; }
  .tqd-item__body { padding-inline: 14px; }
}
@media (pointer: coarse) {
  .tqd-item__head { min-block-size: 64px; }
  .tqd-item__open { min-block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tqd-item, .tqd-item::before, .tqd-item__chev { transition: none; }
}
@media (forced-colors: active) {
  .tqd-item.is-open::before { background: Highlight; }
  .tqd-item.is-bad::before { background: CanvasText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B6 (2026-10-19)
   What Shop profile needed: a card a picture can be dropped on (its logo).
   Built from the kit's tokens; shown in torque-dash-kit.html, section 20.
   ========================================================================= */


/* ── 44 · A DROP AREA — a picture dropped on its card ─────────────────────
   <div class="tqd-drop" data-tqd-drop>
     …the card's own content (the picture as it is now)…
     <div class="tqd-drop__veil" aria-hidden="true"><svg class="tqd-i">…
     arrow-up-tray…</svg>Drop your logo here</div></div>
   A file dragged over the card lights it (.is-over: the accent's dashed
   line and the veil with its words); dropped there, the card says tqd:drop
   {files} (tq.kit.js) and the page takes it from there (.is-busy while it
   works). A drop area is never the only way in: the card has its own button
   (Upload…), the way a keyboard or a phone chooses the file. While a page
   has one, a file dropped anywhere else on it is not opened by the browser,
   which would leave the page. aria-disabled on the card: nothing is taken. */
.tqd-drop {
  position: relative;
  border-radius: var(--tqd-r-card);
  transition: box-shadow var(--tq-d-fast) var(--tq-ease);
}
.tqd-drop__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: inherit;
  background: rgb(var(--tq-black-rgb) / .82);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--tqd-ink-1);
  font: 600 13.5px/19px var(--tq-font-sans);
  text-align: center;
  pointer-events: none;
}
.tqd-drop__veil > .tqd-i { inline-size: 22px; block-size: 22px; color: var(--tqd-acc-ink); }
.tqd-drop.is-over { box-shadow: 0 0 0 2px var(--tqd-panel), 0 0 0 4px var(--tqd-acc); }
.tqd-drop.is-over > .tqd-drop__veil { display: flex; outline: 2px dashed var(--tqd-acc-ink); outline-offset: -10px; }
.tqd-drop.is-busy { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tqd-drop { transition: none; } }
@media (forced-colors: active) {
  .tqd-drop.is-over { outline: 3px solid Highlight; outline-offset: 2px; }
  .tqd-drop__veil { background: Canvas; color: CanvasText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B7 (2026-10-19)
   What Web address needed: a part of a card kept closed until it is wanted
   (the founder's steps in Azure). Built from the kit's tokens; shown in
   torque-dash-kit.html, section 20.
   ========================================================================= */


/* ── 45 · A PART FOLDED AWAY — a card's extra part, opened on its line ────
   <details class="tqd-fold">
     <summary><svg class="tqd-i">…</svg><span>For you, the founder: add it
     in Azure</span><svg class="tqd-i tqd-fold__chev">…chevron-down…</svg>
     </summary>
     <div class="tqd-fold__body">…</div></details>
   At a card's foot, under its list: what only one reader needs, or needs
   only now and then. Its line says what it holds, as the card's "more"
   line does (an icon, the words, the chevron at its end); pressed, or Enter
   or Space on it, the part opens under it on a darker ground and the
   chevron turns. The browser opens and closes it (a <details>), so it works
   by keyboard and without the script, and a screen reader says whether it
   is open. A page draws it closed.                                        */
.tqd-fold { border-block-start: 1px solid var(--tqd-line-1); }
.tqd-fold > summary {
  display: flex;
  align-items: center;
  gap: var(--tq-sp-4);
  min-block-size: 44px;
  box-sizing: border-box;
  padding: var(--tq-sp-4) var(--tq-sp-7);
  color: var(--tqd-ink-3);
  font: 600 13px/18px var(--tq-font-sans);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-fold > summary::-webkit-details-marker { display: none; }
.tqd-fold > summary::marker { content: ""; }
.tqd-fold > summary > .tqd-i { flex: none; color: var(--tqd-ink-5); }
.tqd-fold > summary > span { flex: 1 1 auto; min-inline-size: 0; }
.tqd-fold__chev { transition: transform var(--tq-d-base) var(--tq-ease-out), color var(--tq-d-fast) var(--tq-ease); }
.tqd-fold > summary:hover { background: var(--tqd-fill-1); color: var(--tqd-ink-1); }
.tqd-fold > summary:hover > .tqd-fold__chev { color: var(--tqd-ink-2); }
.tqd-fold > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tqd-focus-line); }
.tqd-fold[open] { background: rgb(var(--tq-black-rgb) / .14); }
.tqd-fold[open] > summary { color: var(--tqd-ink-1); }
.tqd-fold[open] > summary > .tqd-fold__chev { transform: rotate(180deg); color: var(--tqd-ink-2); }
.tqd-fold__body { padding: var(--tq-sp-2) var(--tq-sp-7) var(--tq-sp-7); }
@media (max-width: 639.98px) {
  .tqd-fold > summary, .tqd-fold__body { padding-inline: var(--tq-sp-6); }   /* as the dash's rows there */
}
@media (hover: none) {   /* a tap leaves :hover on: the line stays as it was */
  .tqd-fold > summary:hover { background: transparent; color: var(--tqd-ink-3); }
  .tqd-fold > summary:hover > .tqd-fold__chev { color: var(--tqd-ink-5); }
  .tqd-fold[open] > summary:hover { color: var(--tqd-ink-1); }
  .tqd-fold[open] > summary:hover > .tqd-fold__chev { color: var(--tqd-ink-2); }
}
@media (prefers-reduced-motion: reduce) { .tqd-fold > summary, .tqd-fold__chev { transition: none; } }
@media (forced-colors: active) { .tqd-fold > summary:focus-visible { outline: 2px solid CanvasText; outline-offset: -2px; } }


/* =========================================================================
   APPOINTMENTS PASS · AP-1 (2026-10-19)
   What the Appointments page needed: the floor (46): bays over time, each
   appointment a lift bed exactly as long as its time with a car on it, the
   time now, a press to book, moving a car to another time, bay or day, and
   a KPI that lights what it counts on the floor. Built from the kit's own
   tokens; shown in section 23 of torque-dash-kit.html.
   ========================================================================= */


/* ── 46 · THE FLOOR — bays over time, a car on each booking ──────────────
   <div class="tqd-floor" data-tqd-floor>
     <div class="tqd-floor__scroll"><div class="tqd-floor__grid"
       style="--tqd-floor-w:1440px; --tqd-floor-hour:144px">
       <div class="tqd-floor__corner">Bays</div>
       <div class="tqd-floor__ruler">ticks · hours · closed · the now pill</div>
       <div class="tqd-floor__bay">BAY 1 · its jobs · its use</div>
       <div class="tqd-floor__lane" data-lane="1">
         <button class="tqd-floor__bed is-booked is-wide" data-id="12"
         style="left:144px;width:144px"><svg class="tqd-car is-ghost">…</svg>
         <span class="tqd-floor__txt">…</span></button></div>
       … a bay and its lane a row …
       <div class="tqd-floor__now"></div></div></div></div>
   Time runs left to right on one scale: a whole number of pixels every 5
   minutes (Detail 12, 2.4 px a minute; Fit the largest whole number that
   shows the day), so a bed starts and ends on its minute, under the
   ruler's ticks (every 15 minutes; the hour tall, the half medium). The
   page draws the beds where tqd.floor.scale() says. The car is the same
   size on every bed of its kind; the bed's length is the time.
   A bed's state is a class: is-booked (still to come: the car in outline),
   is-late (dashed amber, its tab says how late), is-arrived (here: the car
   painted, lights on; .tqd-floor__prog fills to now), is-done (the car
   parked, a tick), is-noshow (a dashed outline behind the others: its bay is
   free). Its size: is-wide (car, who, when, what), is-mid (car, who, when),
   is-tiny (the car alone); every bed has the kit's peek card (18).
   .is-over marks a bed booked over the bays or outside the hours; a part
   outside them is hatched (.tqd-floor__out). Two beds in one bay at once
   share its row (--tqd-floor-sub, --tqd-floor-subs).
   Moving (tqd.floor.drag): the bed's place stays as .is-origin, the car
   rides on .tqd-floor__lift, and .tqd-floor__target says where it lands
   (is-fits, is-warn, is-taken) with its words on a tab. Moving to another
   day: .tqd-tow at the foot of the window holds the car; each day shown
   lights the places it fits (.tqd-floor__fit).                            */
.tqd-floor {
  --tqd-floor-bays: 152px;
  --tqd-floor-ruler: 40px;
  --tqd-floor-lane: 96px;
  --tqd-floor-inset: 12px;
  --tqd-floor-hour: 144px;
  --tqd-floor-w: 1440px;
  --tqd-floor-bed-r: 12px;
  position: relative;
  min-inline-size: 0;
  color: var(--tqd-ink-2);
  font: 500 14px/20px var(--tq-font-sans);
}
.tqd-floor__scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--tq-ink-400) transparent;
}
.tqd-floor__scroll:focus { outline: none; }
.tqd-floor__scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--tqd-focus-line); }
.tqd-floor__grid {
  position: relative;
  display: grid;
  grid-template-columns: var(--tqd-floor-bays) minmax(var(--tqd-floor-w), 1fr);
  inline-size: max-content;
  min-inline-size: 100%;
}

/* the corner and the ruler */
.tqd-floor__corner {
  position: sticky;
  inset-inline-start: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  block-size: var(--tqd-floor-ruler);
  padding-inline: 16px;
  border-block-end: 1px solid var(--tqd-line-1);
  border-inline-end: 1px solid var(--tqd-line-1);
  background: var(--tqd-panel);
  color: var(--tqd-ink-5);
  font: 700 11px/14px var(--tq-font-mono);
  letter-spacing: var(--tq-tr-caps);
  text-transform: uppercase;
}
.tqd-floor__ruler {
  position: relative;
  box-sizing: border-box;
  block-size: var(--tqd-floor-ruler);
  border-block-end: 1px solid var(--tqd-line-1);
  overflow: hidden;
}
.tqd-floor__tick {
  position: absolute;
  inset-block-end: 0;
  inline-size: 1px;
  block-size: 4px;
  background: var(--tqd-line-2);
}
.tqd-floor__tick.is-half { block-size: 7px; background: var(--tqd-line-3); }
.tqd-floor__tick.is-hour { block-size: 12px; background: var(--tqd-ink-5); }
.tqd-floor__hour {
  position: absolute;
  inset-block-start: 8px;
  transform: translateX(-50%);
  color: var(--tqd-ink-3);
  font: 600 12px/14px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tqd-floor__hour.is-first { transform: none; margin-inline-start: 6px; }
.tqd-floor__hour.is-last { transform: translateX(-100%); margin-inline-start: -6px; }
.tqd-floor__nowpill {
  position: absolute;
  inset-block-start: 7px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tqd-acc);
  box-shadow: 0 0 0 3px var(--tqd-panel);
  color: var(--tq-on-accent, #fff);
  font: 700 11.5px/14px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* a bay: its name, what it holds, its share of the open time, its number */
.tqd-floor__bay {
  position: sticky;
  inset-inline-start: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  block-size: var(--tqd-floor-lane);
  padding: 0 14px 0 16px;
  border-block-end: 1px solid var(--tqd-line-1);
  border-inline-end: 1px solid var(--tqd-line-1);
  background: var(--tqd-panel);
  overflow: hidden;
}
.tqd-floor__bay.is-last { border-block-end: 0; }
.tqd-floor__bayno {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-start: 50%;
  transform: translateY(-52%);
  color: rgb(var(--tq-white-rgb) / .045);
  font: 700 64px/1 var(--tq-font-display);
  letter-spacing: -.02em;
  pointer-events: none;
}
.tqd-floor__bayname {
  position: relative;
  color: var(--tqd-ink-1);
  font: 700 14px/18px var(--tq-font-mono);
  letter-spacing: var(--tq-tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.tqd-floor__baymeta {
  position: relative;
  color: var(--tqd-ink-4);
  font: 500 12px/16px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tqd-floor__bayuse {
  position: relative;
  inline-size: min(96px, 100%);
  block-size: 3px;
  margin-block-start: 8px;
  border-radius: 3px;
  background: var(--tqd-fill-2);
  overflow: hidden;
}
.tqd-floor__bayuse > i {
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: var(--v, 0%);
  border-radius: inherit;
  background: var(--tqd-ink-4);
  transition: inline-size var(--tq-d-slower) var(--tq-ease-out);
}

/* a bay's lane: the hours and half hours, the closed time, the lift's rails */
.tqd-floor__lane {
  position: relative;
  box-sizing: border-box;
  block-size: var(--tqd-floor-lane);
  border-block-end: 1px solid var(--tqd-line-1);
  background-image:
    linear-gradient(to right, var(--tqd-line-1) 1px, transparent 1px),
    linear-gradient(to right, rgb(var(--tq-white-rgb) / .022) 1px, transparent 1px),
    linear-gradient(to bottom, transparent calc(var(--tqd-floor-inset) - 5px), rgb(var(--tqd-warn-rgb) / .07) calc(var(--tqd-floor-inset) - 5px) calc(var(--tqd-floor-inset) - 4px), transparent calc(var(--tqd-floor-inset) - 4px) calc(100% - var(--tqd-floor-inset) + 4px), rgb(var(--tqd-warn-rgb) / .07) calc(100% - var(--tqd-floor-inset) + 4px) calc(100% - var(--tqd-floor-inset) + 5px), transparent calc(100% - var(--tqd-floor-inset) + 5px));
  background-size: var(--tqd-floor-hour) 100%, calc(var(--tqd-floor-hour) / 2) 100%, 100% 100%;
  background-repeat: repeat-x, repeat-x, no-repeat;
}
.tqd-floor__lane.is-last { border-block-end: 0; }
.tqd-floor__closed {
  position: absolute;
  inset-block: 0;
  background: repeating-linear-gradient(135deg, rgb(var(--tq-white-rgb) / .032) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.tqd-floor__closed > span {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  color: var(--tqd-ink-5);
  font: 700 11px/14px var(--tq-font-mono);
  letter-spacing: var(--tq-tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}

/* the time now: a line through the bays, and its time on the ruler. The floor's layers, low to high: where a car fits
   (0), the free part's ghost (1), a no-show (1), the beds (2; one in focus or open, 3), the now line (4), the tabs (5),
   where a moved car lands (7), the car in the air (8), the bays' names (10) and the corner (11), which stay as the
   floor scrolls under them */
.tqd-floor__now {
  position: absolute;
  inset-block: var(--tqd-floor-ruler) 0;
  z-index: 4;
  inline-size: 2px;
  margin-inline-start: -1px;
  background: var(--tqd-acc);
  box-shadow: 0 0 12px rgb(var(--tq-accent-rgb) / .5);
  pointer-events: none;
}

/* ── an appointment: the lift bed (its time, to the pixel) with its car ── */
.tqd-floor__bed {
  --tone: var(--tqd-acc-ink);
  --tone-rgb: var(--tq-accent-text-rgb);
  --bed-fill: rgb(var(--tq-accent-rgb) / .09);
  --bed-line: rgb(var(--tq-accent-text-rgb) / .34);
  --sub: 0;
  --subs: 1;
  position: absolute;
  inset-block-start: calc(var(--tqd-floor-inset) + var(--sub) * (var(--tqd-floor-lane) - 2 * var(--tqd-floor-inset) + 4px) / var(--subs));
  block-size: calc((var(--tqd-floor-lane) - 2 * var(--tqd-floor-inset) + 4px) / var(--subs) - 4px);
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 4px;
  margin: 0;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: var(--tqd-floor-bed-r);
  background: var(--bed-fill);
  box-shadow: inset 0 0 0 1px var(--bed-line);
  color: var(--tqd-ink-2);
  font: inherit;
  text-align: start;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: box-shadow var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease), opacity var(--tq-d-base) var(--tq-ease), filter var(--tq-d-base) var(--tq-ease);
}
.tqd-floor__bed:hover { --bed-line: rgb(var(--tone-rgb) / .62); background: rgb(var(--tone-rgb) / .14); }
.tqd-floor__bed:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--bed-line), 0 0 0 2px var(--tqd-panel), 0 0 0 4px var(--tqd-focus-line); z-index: 3; }
.tqd-floor__bed.is-open { box-shadow: inset 0 0 0 1.5px rgb(var(--tone-rgb) / .9), 0 0 0 2px var(--tqd-panel), 0 0 0 4px rgb(var(--tone-rgb) / .55); z-index: 3; }
.tqd-floor__bed.is-arrived { --tone: var(--tqd-warn); --tone-rgb: var(--tqd-warn-rgb); --bed-fill: rgb(var(--tqd-warn-rgb) / .07); --bed-line: rgb(var(--tqd-warn-rgb) / .38); }
.tqd-floor__bed.is-done    { --tone: var(--tqd-ok); --tone-rgb: var(--tqd-ok-rgb); --bed-fill: rgb(var(--tqd-ok-rgb) / .06); --bed-line: rgb(var(--tqd-ok-rgb) / .28); }
.tqd-floor__bed.is-late    { --tone: var(--tqd-warn); --tone-rgb: var(--tqd-warn-rgb); --bed-fill: rgb(var(--tqd-warn-rgb) / .05); --bed-line: transparent; outline: 1px dashed rgb(var(--tqd-warn-rgb) / .65); outline-offset: -1px; }
.tqd-floor__bed.is-noshow  {
  --tone: var(--tqd-bad); --tone-rgb: var(--tqd-bad-rgb); --bed-fill: transparent; --bed-line: transparent;
  z-index: 1;
  outline: 1px dashed rgb(var(--tqd-bad-rgb) / .5);
  outline-offset: -1px;
}
.tqd-floor__bed.is-noshow:hover { background: rgb(var(--tqd-bad-rgb) / .06); }
/* the time it is here for so far, and what is left */
.tqd-floor__prog {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: var(--v, 0px);
  background: rgb(var(--tqd-warn-rgb) / .13);
  box-shadow: inset -2px 0 0 rgb(var(--tqd-warn-rgb) / .8);
  pointer-events: none;
}
.tqd-floor__bed.is-overrun .tqd-floor__prog { box-shadow: none; }
/* the part outside the hours (booked on purpose) */
.tqd-floor__out {
  position: absolute;
  inset-block: 0;
  background: repeating-linear-gradient(135deg, rgb(var(--tqd-warn-rgb) / .22) 0 5px, transparent 5px 10px);
  pointer-events: none;
}
.tqd-floor__bed > .tqd-car { position: relative; flex: none; overflow: visible; }
.tqd-floor__txt { position: relative; display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.tqd-floor__who {
  display: flex;
  align-items: center;
  gap: 5px;
  min-inline-size: 0;
  color: var(--tqd-ink-1);
  font: 700 14px/18px var(--tq-font-sans);
  white-space: nowrap;
}
.tqd-floor__who > span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.tqd-floor__who > .tqd-i { flex: none; inline-size: 14px; block-size: 14px; color: var(--tqd-info); }
.tqd-floor__who > .tqd-floor__short { color: var(--tqd-bad); }
.tqd-floor__when { color: var(--tqd-ink-3); font: 600 12px/16px var(--tq-font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tqd-floor__what { color: var(--tqd-ink-4); font: 500 12px/16px var(--tq-font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tqd-floor__bed.is-noshow .tqd-floor__who > span,
.tqd-floor__bed.is-noshow .tqd-floor__what { color: var(--tqd-ink-4); text-decoration: line-through; text-decoration-color: var(--tqd-ink-5); }
.tqd-floor__bed.is-mid { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 0 10px; }
.tqd-floor__bed.is-mid .tqd-floor__txt { inline-size: 100%; }
.tqd-floor__bed.is-mid .tqd-floor__who { font-size: 13px; line-height: 16px; }
.tqd-floor__bed.is-mid .tqd-floor__when { font-size: 11.5px; line-height: 14px; }
.tqd-floor__bed.is-small,
.tqd-floor__bed.is-tiny { justify-content: center; padding: 0; }
.tqd-floor__bed.is-sub { gap: 6px; padding-inline: 6px 8px; }
.tqd-floor__bed.is-sub .tqd-floor__who { font-size: 12.5px; line-height: 16px; }
/* a tab over a bed: how late, past closing, over the bays */
.tqd-floor__flag {
  position: absolute;
  z-index: 5;
  margin-block-start: -8px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tqd-pop);
  box-shadow: 0 0 0 2px var(--tqd-panel), inset 0 0 0 1px rgb(var(--flag-rgb, var(--tqd-warn-rgb)) / .5);
  color: rgb(var(--flag-rgb, var(--tqd-warn-rgb)));
  font: 700 10.5px/14px var(--tq-font-mono);
  letter-spacing: var(--tq-tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.tqd-floor__flag.is-bad { --flag-rgb: var(--tqd-bad-rgb); }
/* what a KPI counts (47): the others step back */
.tqd-floor.is-spot .tqd-floor__bed:not(.is-spot) { opacity: .26; filter: saturate(.35); }
.tqd-floor.is-spot .tqd-floor__bed.is-spot { z-index: 3; }

/* a free part of a bay: book it there */
.tqd-floor__ghost {
  position: absolute;
  inset-block: var(--tqd-floor-inset);
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed var(--tqd-acc-line);
  border-radius: var(--tqd-floor-bed-r);
  background: rgb(var(--tq-accent-rgb) / .05);
  color: var(--tqd-acc-ink);
  font: 700 12.5px/16px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}
.tqd-floor__ghost > .tqd-i { flex: none; inline-size: 15px; block-size: 15px; }
.tqd-floor__lane.is-bookable { cursor: copy; }

/* where a car fits, while one is on the tow bar */
.tqd-floor__fit {
  position: absolute;
  inset-block: calc(var(--tqd-floor-inset) - 4px);
  z-index: 0;
  box-sizing: border-box;
  border-radius: calc(var(--tqd-floor-bed-r) + 4px);
  background: rgb(var(--tqd-ok-rgb) / .07);
  box-shadow: inset 0 0 0 1px rgb(var(--tqd-ok-rgb) / .38);
  pointer-events: none;
}
.tqd-floor.is-towing .tqd-floor__lane { cursor: copy; }
.tqd-floor.is-towing .tqd-floor__bed { cursor: default; }

/* moving: the place it left, the car in the air, and where it would land */
.tqd-floor__bed.is-origin { opacity: .35; outline: 1.5px dashed var(--tqd-line-3); outline-offset: -1px; box-shadow: none; background: transparent; }
.tqd-floor__lift {
  position: absolute;
  z-index: 8;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 8px;
  border-radius: var(--tqd-floor-bed-r);
  background: var(--tqd-raised);
  box-shadow: inset 0 0 0 1px var(--tqd-line-3), 0 14px 28px -8px rgb(var(--tq-black-rgb) / .7), 0 2px 6px rgb(var(--tq-black-rgb) / .45);
  transform: translateY(-3px) scale(1.02);
  pointer-events: none;
  overflow: hidden;
  transition: left 90ms linear, top 90ms linear;
}
.tqd-floor__lift.is-settling { transition: left var(--tq-d-base) var(--tq-ease-out), top var(--tq-d-base) var(--tq-ease-out), transform var(--tq-d-base) var(--tq-ease-out), opacity var(--tq-d-base) var(--tq-ease); transform: none; }
.tqd-floor__target {
  position: absolute;
  z-index: 7;
  box-sizing: border-box;
  border-radius: var(--tqd-floor-bed-r);
  pointer-events: none;
}
.tqd-floor__target.is-fits  { background: rgb(var(--tqd-ok-rgb) / .1);   box-shadow: inset 0 0 0 1.5px rgb(var(--tqd-ok-rgb) / .85); }
.tqd-floor__target.is-warn  { background: rgb(var(--tqd-warn-rgb) / .1); box-shadow: inset 0 0 0 1.5px rgb(var(--tqd-warn-rgb) / .85); }
.tqd-floor__target.is-taken { background: rgb(var(--tqd-bad-rgb) / .1);  box-shadow: inset 0 0 0 1.5px rgb(var(--tqd-bad-rgb) / .85); }
.tqd-floor__targettab {
  position: absolute;
  inset-block-end: calc(100% + 4px);
  inset-inline-start: 0;
  z-index: 9;
  max-inline-size: 360px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--tqd-pop);
  box-shadow: 0 0 0 1px var(--tqd-line-2), 0 6px 16px -6px rgb(var(--tq-black-rgb) / .6);
  font: 700 11.5px/16px var(--tq-font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.tqd-floor__target.is-fits  .tqd-floor__targettab { color: var(--tqd-ok); }
.tqd-floor__target.is-warn  .tqd-floor__targettab { color: var(--tqd-warn); }
.tqd-floor__target.is-taken .tqd-floor__targettab { color: var(--tqd-bad); }
.tqd-floor__target.is-low .tqd-floor__targettab { inset-block: calc(100% + 4px) auto; }
.tqd-floor.is-dragging, .tqd-floor.is-dragging * { cursor: grabbing !important; }
/* while a car is in the air or the card asks where it lands, no tooltip or peek card opens over the floor */
body:has(.tqd-floor.is-dragging) .tqd-tip, body:has(.tqd-floor.is-busy) .tqd-tip,
body:has(.tqd-floor.is-dragging) .tqd-peek, body:has(.tqd-floor.is-busy) .tqd-peek { display: none !important; }
.tqd-floor.is-dragging .tqd-floor__ghost { display: none; }
.tqd-floor.is-busy .tqd-floor__lift { opacity: .8; }

/* a change that came from someone else: the car slides there, a new one comes in */
.tqd-floor__bed.is-new { animation: tqd-floor-in var(--tq-d-slow) var(--tq-ease-out) both; }
.tqd-floor__bed.is-gone { z-index: 0; animation: tqd-floor-out var(--tq-d-slow) var(--tq-ease) both; pointer-events: none; }
@keyframes tqd-floor-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes tqd-floor-out { from { opacity: 1; } to { opacity: 0; transform: scale(.94); } }

/* ── the car: top-down, its nose to the right (it drives forward in time) ── */
.tqd-car .tqd-car__tire { fill: var(--tq-ink-050); stroke: rgb(var(--tq-white-rgb) / .16); stroke-width: .8; }
.tqd-car .tqd-car__tread { fill: none; stroke: rgb(var(--tq-white-rgb) / .1); stroke-width: .8; }
.tqd-car .tqd-car__lamp--head { fill: var(--tqd-ink-1); }
.tqd-car .tqd-car__lamp--tail { fill: var(--tqd-bad); }
.tqd-car .tqd-car__beam { fill: url(#tqd-car-beam); }
/* painted, its lights on: in the bay */
.tqd-car.is-solid .tqd-car__body { fill: url(#tqd-car-steel); stroke: rgb(var(--tq-black-rgb) / .35); stroke-width: .8; }
.tqd-car.is-solid .tqd-car__roof { fill: url(#tqd-car-roof); }
.tqd-car.is-solid .tqd-car__glass { fill: var(--tq-ink-100); }
.tqd-car.is-solid .tqd-car__glint { fill: rgb(var(--tq-white-rgb) / .2); }
.tqd-car.is-solid .tqd-car__mirror { fill: var(--tq-ink-700); }
/* parked: done */
.tqd-car.is-dim .tqd-car__body { fill: url(#tqd-car-dim); stroke: rgb(var(--tq-black-rgb) / .4); stroke-width: .8; }
.tqd-car.is-dim .tqd-car__roof { fill: var(--tq-ink-500); }
.tqd-car.is-dim .tqd-car__glass { fill: var(--tq-ink-100); }
.tqd-car.is-dim .tqd-car__glint { fill: rgb(var(--tq-white-rgb) / .08); }
.tqd-car.is-dim .tqd-car__mirror { fill: var(--tq-ink-500); }
.tqd-car.is-dim .tqd-car__lamp--head { fill: var(--tqd-ink-4); }
.tqd-car.is-dim .tqd-car__lamp--tail { fill: rgb(var(--tqd-bad-rgb) / .45); }
/* in outline: still to come (the bed's tone) */
.tqd-car.is-ghost .tqd-car__body { fill: rgb(var(--tq-white-rgb) / .025); stroke: var(--tone, var(--tqd-acc-ink)); stroke-width: 1.3; stroke-dasharray: 3.2 2.4; }
.tqd-car.is-ghost .tqd-car__roof { fill: none; stroke: var(--tone, var(--tqd-acc-ink)); stroke-opacity: .45; stroke-width: 1; }
.tqd-car.is-ghost .tqd-car__glass { fill: none; stroke: var(--tone, var(--tqd-acc-ink)); stroke-opacity: .55; stroke-width: 1; }
.tqd-car.is-ghost .tqd-car__mirror { fill: none; stroke: var(--tone, var(--tqd-acc-ink)); stroke-opacity: .5; stroke-width: .9; }
.tqd-car.is-ghost .tqd-car__tire { fill: none; stroke: var(--tone, var(--tqd-acc-ink)); stroke-opacity: .45; }
.tqd-car.is-ghost .tqd-car__glint,
.tqd-car.is-ghost .tqd-car__tread,
.tqd-car.is-ghost .tqd-car__lamp { display: none; }
.tqd-car .tqd-car__ok { fill: var(--tqd-ok); }
.tqd-car .tqd-car__okmark { fill: none; stroke: var(--tq-ink-050); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tqd-car .tqd-car__x { fill: none; stroke: var(--tqd-bad); stroke-width: 2.2; stroke-linecap: round; }

/* ── the tow bar: a car held to be put on another day ── */
.tqd-tow {
  position: fixed;
  inset-inline: 0;
  inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--tq-z-sticky) + 20);
  display: flex;
  align-items: center;
  gap: 12px 14px;
  box-sizing: border-box;
  inline-size: max-content;
  max-inline-size: calc(100% - 32px);
  margin-inline: auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--tqd-line-2);
  border-radius: 999px;
  background: var(--tqd-pop);
  box-shadow: var(--tqd-shadow-pop);
  color: var(--tqd-ink-2);
  font: 500 13.5px/20px var(--tq-font-sans);
  animation: tqd-tow-in var(--tq-d-slow) var(--tq-ease-out) both;
}
.tqd-tow[hidden] { display: none; }
.tqd-tow > .tqd-car { flex: none; --tone: var(--tqd-acc-ink); }
.tqd-tow__text { min-inline-size: 0; }
.tqd-tow__text b { color: var(--tqd-ink-1); font-weight: 700; }
.tqd-tow__text span { color: var(--tqd-ink-4); }
.tqd-tow__acts { display: flex; align-items: center; gap: 6px; flex: none; }
@keyframes tqd-tow-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body:has(.tqd-tow:not([hidden])) .tqd-toasts { inset-block-end: var(--tqd-toasts-lift, calc(88px + env(safe-area-inset-bottom, 0px))); }
@media (max-width: 759.98px) {
  .tqd-tow { inset-inline: 8px; inline-size: auto; max-inline-size: none; flex-wrap: wrap; border-radius: var(--tqd-r-card); padding: 10px 10px 10px 14px; }
  .tqd-tow__acts { inline-size: 100%; justify-content: flex-end; }
  body:has(.tqd-tow:not([hidden])) .tqd-toasts { inset-block-end: var(--tqd-toasts-lift, calc(136px + env(safe-area-inset-bottom, 0px))); }
}

/* ── the card where a car lands: what happens next, in one question ── */
.tqd-dropcard { inline-size: 376px; padding: 14px 16px 12px; gap: 10px; }
.tqd-dropcard__title { margin: 0; color: var(--tqd-ink-1); font: 700 14.5px/20px var(--tq-font-sans); }
.tqd-dropcard__text { margin: 0; color: var(--tqd-ink-3); font: 500 13px/19px var(--tq-font-sans); }
.tqd-dropcard__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-block-start: 4px; }
.tqd-dropcard.is-warn { border-color: rgb(var(--tqd-warn-rgb) / .45); }
.tqd-dropcard.is-bad { border-color: rgb(var(--tqd-bad-rgb) / .45); }

/* ── 47 · A KPI THAT LIGHTS WHAT IT COUNTS (a button, as 30 is a link) ── */
button.tqd-kpi {
  appearance: none;
  margin: 0;
  border: 0;
  font: inherit;
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease);
}
button.tqd-kpi:hover { background: var(--tqd-raised); }
button.tqd-kpi:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tqd-focus-line); }
button.tqd-kpi[aria-pressed="true"] { background: var(--tqd-raised); box-shadow: inset 0 -2px 0 var(--tqd-acc); }
button.tqd-kpi[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--tqd-focus-line), inset 0 -4px 0 var(--tqd-acc); }
button.tqd-kpi[aria-pressed="true"] .tqd-kpi__label { color: var(--tqd-ink-2); }
button.tqd-kpi:disabled { cursor: default; }
button.tqd-kpi:disabled:hover { background: var(--tqd-panel); }
@media (hover: none) { button.tqd-kpi:hover { background: var(--tqd-panel); } button.tqd-kpi[aria-pressed="true"] { background: var(--tqd-raised); } }

@media (max-width: 759.98px) {
  .tqd-floor { --tqd-floor-bays: 104px; }
  .tqd-floor__bay { padding-inline: 12px 8px; }
  .tqd-floor__bayno { font-size: 48px; }
}
@media (pointer: coarse) {
  .tqd-floor__bed { touch-action: pan-x; }
}
@media (prefers-reduced-motion: reduce) {
  .tqd-floor__bed, .tqd-floor__lift, .tqd-floor__bayuse > i, .tqd-tow { transition: none; animation: none; }
  .tqd-floor__bed.is-new, .tqd-floor__bed.is-gone { animation: none; }
}
@media (forced-colors: active) {
  .tqd-floor__bed { border: 1px solid CanvasText; }
  .tqd-floor__now { background: Highlight; }
  .tqd-floor__target { outline: 2px solid Highlight; }
}

/* ── WB-1 · 48 · THE SHOP FROM ABOVE ──────────────────────────────────────
   The Work board's floor (tq.kit.js 48: tqd.shop). The branch's building
   from above, to scale, in the dash's greys: walls, the office, the bays
   (a bench, a tire changer, a balancer, a two-post lift, a door each, their
   numbers painted on the apron), the lot (the stalls where cars wait, an
   island, the pickup stalls, IN and OUT), the sidewalk and the street. Only
   the cars and their words carry a tone: a car here glows amber, one ready
   green with its headlights on, one over its time red; one still to come is
   drawn in outline, the accent's ink (amber dashed when late), as on the
   Appointments floor (46). The page scales .tqd-shop__stage to its card.
     <div class="tqd-shop">                   the floor (a card's whole width)
      <div class="tqd-shop__fit">             the drawing's size once scaled (what a narrow floor scrolls over)
       <div class="tqd-shop__stage">          the drawing's px, scaled
         <svg class="tqd-shop__plan">         tqd.shop.plan(L)
         <div class="tqd-shop__marks">        the words on it (HTML: sharp)
         (<div class="tqd-shop__drag">        while a car is moved: the places it could go, its ghost)
         <div class="tqd-shop__cars">         a <button class="tqd-shop__car
                    is-waiting | is-working | is-ready | is-coming [is-late]
                    [is-over] [is-up] [is-p1..3]"> each: tqd.shop.car(look, o)
   The bays' groups take .is-busy (its light on), .is-over, .is-up (its lift
   under the car) and the doors .is-open; while a car moves the floor says
   .is-dragging; while a number lights what it counts, .is-lighting, and
   each of those cars and words .is-lit.                                    */
.tqd-shop {
  --sh-floor: rgb(var(--tq-white-rgb) / .045);
  --sh-bay: rgb(var(--tq-white-rgb) / .018);
  --sh-tile: rgb(var(--tq-white-rgb) / .035);
  --sh-wall: var(--tq-ink-300);
  --sh-paint: rgb(var(--tq-white-rgb) / .2);
  --sh-paint-2: rgb(var(--tq-white-rgb) / .09);
  --sh-stencil: rgb(var(--tq-white-rgb) / .11);
  --sh-lot: rgb(var(--tq-black-rgb) / .14);
  --sh-road: rgb(var(--tq-black-rgb) / .3);
  --sh-walk: rgb(var(--tq-white-rgb) / .03);
  --sh-curb: rgb(var(--tq-white-rgb) / .1);
  --sh-steel: var(--tq-ink-300);
  --sh-steel-2: var(--tq-ink-400);
  --sh-post: var(--tq-ink-500);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tq-ink-100);
  box-shadow: inset 0 0 0 1px var(--tqd-line-1);
  -webkit-tap-highlight-color: transparent;
}
.tqd-shop.is-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* a scaled drawing keeps its own size in the page's flow: this box is its size once scaled */
.tqd-shop__fit { position: relative; overflow: hidden; }
.tqd-shop__drag { position: absolute; inset: 0; pointer-events: none; }
/* the page sets --sh-k (its scale) on the stage: under .82 its words grow in the drawing's px, so they stay readable
   (--sh-t: how much) */
.tqd-shop__stage { --sh-t: max(1, calc(.82 / var(--sh-k, 1))); position: relative; transform-origin: 0 0; }
.tqd-shop__plan { display: block; overflow: visible; }
.tqd-shop__road { fill: var(--sh-road); }
.tqd-shop__laneline { stroke: var(--sh-paint); stroke-width: 2; stroke-dasharray: 18 14; }
.tqd-shop__curb { fill: var(--sh-curb); }
.tqd-shop__walk { fill: var(--sh-walk); }
.tqd-shop__joint { stroke: rgb(var(--tq-black-rgb) / .3); stroke-width: 1; }
.tqd-shop__lamp { fill: url(#tqd-shop-pool); opacity: .55; }
.tqd-shop__lot { fill: var(--sh-lot); }
.tqd-shop__paint { fill: none; stroke: var(--sh-paint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tqd-shop__stop { fill: var(--sh-steel-2); }
.tqd-shop__island { fill: rgb(var(--tq-white-rgb) / .025); stroke: var(--sh-paint-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tqd-shop__grass { fill: rgb(var(--tqd-ok-rgb) / .06); stroke: rgb(var(--tqd-ok-rgb) / .16); stroke-width: 1; }
.tqd-shop__treeshade { fill: rgb(var(--tq-black-rgb) / .32); }
.tqd-shop__lobe { fill: rgb(var(--tqd-ok-rgb) / .13); }
.tqd-shop__crown { fill: rgb(var(--tqd-ok-rgb) / .12); }
/* each place's number, painted in it (a car parked there hides it) */
.tqd-shop__num { fill: rgb(var(--tq-white-rgb) / .16); font: 700 16px/1 var(--tq-font-mono); letter-spacing: .04em; }
.tqd-shop__median { stroke: var(--sh-curb); stroke-width: 3; stroke-linecap: round; }
.tqd-shop__parkedge { stroke: var(--sh-paint-2); stroke-width: 1.5; }
.tqd-shop__drive { fill: rgb(var(--tq-white-rgb) / .035); }
.tqd-shop__hallfloor { fill: rgb(var(--tq-white-rgb) / .02); }
.tqd-shop__stencil { fill: var(--sh-stencil); font: 700 15px/1 var(--tq-font-mono); letter-spacing: .22em; }
.tqd-shop__stencil--sm { font-size: 11px; letter-spacing: .2em; }
.tqd-shop__number { fill: rgb(var(--tq-white-rgb) / .08); font: 700 38px/1 var(--tq-font-mono); }
.tqd-shop__number--sm { font-size: 24px; }
.tqd-shop__floor { fill: var(--sh-floor); }
.tqd-shop__tiles { fill: var(--sh-tile); }
.tqd-shop__counter { fill: var(--sh-steel); }
.tqd-shop__seat { fill: rgb(var(--tq-white-rgb) / .05); stroke: var(--sh-paint-2); stroke-width: 1; }
.tqd-shop__pot { fill: rgb(var(--tq-white-rgb) / .04); stroke: var(--sh-paint-2); stroke-width: 1; }
.tqd-shop__frond { fill: rgb(var(--tqd-ok-rgb) / .32); }
.tqd-shop__frond--c { fill: rgb(var(--tqd-ok-rgb) / .5); }
.tqd-shop__screen { fill: rgb(var(--tq-accent-text-rgb) / .55); }
.tqd-shop__bayfloor { fill: var(--sh-bay); transition: fill var(--tq-d-slow) var(--tq-ease); }
.tqd-shop__light { fill: url(#tqd-shop-pool); opacity: .3; transition: opacity var(--tq-d-slow) var(--tq-ease); }
.tqd-shop__bay.is-busy .tqd-shop__light { opacity: 1; }
.tqd-shop__bay.is-over .tqd-shop__bayfloor { fill: rgb(var(--tqd-bad-rgb) / .07); }
.tqd-shop__bayline { stroke: var(--sh-paint-2); stroke-width: 1.5; stroke-dasharray: 10 6; }
.tqd-shop__steel { fill: var(--sh-steel); }
.tqd-shop__steel2 { fill: var(--sh-steel-2); }
.tqd-shop__jaw { stroke: var(--sh-post); stroke-width: 2; stroke-linecap: round; }
.tqd-shop__bench { fill: var(--sh-steel); }
.tqd-shop__rack { fill: rgb(var(--tq-white-rgb) / .03); stroke: var(--sh-paint-2); stroke-width: 1; }
.tqd-shop__tire { fill: var(--tq-ink-200); stroke: rgb(var(--tq-white-rgb) / .12); stroke-width: .8; }
.tqd-shop__plate { fill: rgb(var(--tq-white-rgb) / .03); stroke: var(--sh-paint-2); stroke-width: 1; }
.tqd-shop__post { fill: var(--sh-post); }
.tqd-shop__arm { fill: var(--tq-ink-400); stroke: rgb(var(--tq-black-rgb) / .4); stroke-width: .6; transform: rotate(var(--fold)); transition: transform 420ms var(--tq-ease); }
.tqd-shop__bay.is-up .tqd-shop__arm { transform: rotate(var(--up)); }
.tqd-shop__wall { fill: var(--sh-wall); }
.tqd-shop__wall--in { fill: var(--tq-ink-200); }
.tqd-shop__swing { fill: none; stroke: var(--sh-paint-2); stroke-width: 1; stroke-dasharray: 3 3; }
.tqd-shop__leaf { stroke: var(--sh-paint); stroke-width: 2; }
.tqd-shop__doorleaf { fill: var(--tq-ink-400); transform-box: fill-box; transform-origin: 50% 0; transition: opacity 260ms var(--tq-ease), transform 260ms var(--tq-ease); }
.tqd-shop__door.is-open .tqd-shop__doorleaf { opacity: 0; transform: scaleY(.2); }
.tqd-shop__track { stroke: rgb(var(--tq-black-rgb) / .5); stroke-width: 1; stroke-dasharray: 2 3; }
.tqd-shop__pool0 { stop-color: rgb(var(--tq-white-rgb)); stop-opacity: .075; }
.tqd-shop__pool1 { stop-color: rgb(var(--tq-white-rgb)); stop-opacity: 0; }

/* the words laid over the drawing */
.tqd-shop__marks, .tqd-shop__cars { position: absolute; inset: 0; pointer-events: none; }
.tqd-shop__cars > * { pointer-events: auto; }
.tqd-shop__marks > * { transition: opacity var(--tq-d-base) var(--tq-ease); }
.tqd-shop__marks > .is-away { opacity: 0; }
.tqd-shop__baylabel { position: absolute; display: flex; align-items: center; gap: 8px; box-sizing: border-box; padding: 0 10px; pointer-events: auto; }
.tqd-shop__baylabel.is-narrow { gap: 6px; padding: 0 6px; }
.tqd-shop__who { display: flex; flex: 1 1 auto; flex-direction: column; min-inline-size: 0; }
.tqd-shop__who b { overflow: hidden; color: var(--tqd-ink-1); font: 600 calc(13px * var(--sh-t))/1.25 var(--tq-font-sans); text-overflow: ellipsis; white-space: nowrap; }
.tqd-shop__who span { overflow: hidden; color: var(--tqd-ink-4); font: 500 calc(11.5px * var(--sh-t))/1.3 var(--tq-font-sans); text-overflow: ellipsis; white-space: nowrap; }
.tqd-shop__free { color: var(--tqd-ok); font: 700 calc(12px * var(--sh-t))/1 var(--tq-font-mono); letter-spacing: .14em; text-transform: uppercase; }
.tqd-shop__tech { flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.tqd-shop__tech:focus-visible { outline: none; box-shadow: var(--tq-ring); }
.tqd-shop__tech.is-none {
  display: grid;
  background: none;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  border: 1.5px dashed var(--tqd-line-4);
  color: var(--tqd-ink-4);
}
.tqd-shop__tech.is-none > .tqd-i { inline-size: 14px; block-size: 14px; }
.tqd-shop__tech.is-none:hover { border-color: var(--tqd-acc-line); color: var(--tqd-acc-ink); }
span.tqd-shop__tech { cursor: default; }
.tqd-shop__stalllabel { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; padding: 0 3px; text-align: center; }
.tqd-shop__stalllabel b { max-inline-size: 100%; overflow: hidden; color: var(--tqd-ink-2); font: 600 calc(12px * var(--sh-t))/1.25 var(--tq-font-sans); text-overflow: ellipsis; white-space: nowrap; }
.tqd-shop__stalllabel span { display: inline-flex; align-items: center; gap: 3px; max-inline-size: 100%; overflow: hidden; color: var(--tqd-ink-4); font: 600 calc(11.5px * var(--sh-t))/1.3 var(--tq-font-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* its place's number, before its name */
.tqd-shop__spot { margin-inline-end: 4px; padding: 0 3px; border-radius: 4px; background: rgb(var(--tq-white-rgb) / .08); color: var(--tqd-ink-3); font: 700 calc(10px * var(--sh-t))/1.45 var(--tq-font-mono); font-style: normal; }
/* a car along the curb wears its name on its roof */
.tqd-shop__curbtag { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0 4px; pointer-events: none; }
.tqd-shop__curbtag b { max-inline-size: 100%; overflow: hidden; padding: 0 6px; border-radius: 999px; background: rgb(var(--tq-black-rgb) / .55); color: var(--tqd-ink-1); font: 600 calc(11px * var(--sh-t))/1.6 var(--tq-font-sans); text-overflow: ellipsis; white-space: nowrap; }
.tqd-shop__curbtag.is-long b { color: var(--tqd-warn); }
.tqd-shop__stalllabel span > .tqd-i { inline-size: 11px; block-size: 11px; }
.tqd-shop__stalllabel.is-long span { color: var(--tqd-warn); }
.tqd-shop__stalllabel.is-ready span { color: var(--tqd-ok); }
/* a car still to come wears its time on its roof: over the parked cars, under one driving by */
.tqd-shop__qtime { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; color: var(--tqd-acc-ink); font: 700 calc(13px * var(--sh-t))/1 var(--tq-font-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tqd-shop__qtime.is-late { color: var(--tqd-warn); }
.tqd-shop__qwho { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tqd-shop__qwho b { max-inline-size: 100%; overflow: hidden; color: var(--tqd-ink-3); font: 600 calc(11.5px * var(--sh-t))/1.3 var(--tq-font-sans); text-overflow: ellipsis; white-space: nowrap; }
.tqd-shop__qwho span { color: var(--tqd-warn); font: 600 calc(11px * var(--sh-t))/1.3 var(--tq-font-sans); white-space: nowrap; }
.tqd-shop__more { position: absolute; display: flex; align-items: center; justify-content: center; color: var(--tqd-ink-4); font: 600 calc(12px * var(--sh-t))/1.3 var(--tq-font-sans); white-space: nowrap; }

/* a car: its glow is its tone; the kit's car (46) on it, painted one of four neutral paints */
.tqd-shop__car {
  --tone-rgb: var(--tqd-warn-rgb);
  --ca: 0deg;
  position: absolute;
  left: 0;
  top: 0;
  inline-size: 86px;
  block-size: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  transform-origin: 50% 50%;
  touch-action: manipulation;
  transition: opacity var(--tq-d-base) var(--tq-ease);
}
.tqd-shop__car > .tqd-car {
  position: relative;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgb(var(--tq-black-rgb) / .5));
  transition: transform 600ms var(--tq-ease), filter 600ms var(--tq-ease), opacity var(--tq-d-base) var(--tq-ease);
}
.tqd-shop__glow {
  position: absolute;
  inset: -16px -14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--tone-rgb) / .34), rgb(var(--tone-rgb) / .12) 55%, rgb(var(--tone-rgb) / 0));
  pointer-events: none;
  transition: opacity var(--tq-d-slow) var(--tq-ease);
}
.tqd-shop__car.is-working .tqd-shop__glow { opacity: .75; }
.tqd-shop__car.is-ready { --tone-rgb: var(--tqd-ok-rgb); }
.tqd-shop__car.is-over { --tone-rgb: var(--tqd-bad-rgb); }
.tqd-shop__car.is-over .tqd-shop__glow { opacity: 1; }
.tqd-shop__car.is-coming .tqd-shop__glow { opacity: 0; }
.tqd-shop__car.is-coming > .tqd-car { --tone: var(--tqd-acc-ink); filter: none; }
.tqd-shop__car.is-late > .tqd-car { --tone: var(--tqd-warn); }
.tqd-shop__car.is-p1 .tqd-car__body { fill: url(#tqd-shop-pearl); }
.tqd-shop__car.is-p2 .tqd-car__body { fill: url(#tqd-shop-slate); stroke: rgb(var(--tq-white-rgb) / .14); }
.tqd-shop__car.is-p3 .tqd-car__body { fill: url(#tqd-shop-graphite); stroke: rgb(var(--tq-white-rgb) / .2); }
.tqd-shop__car.is-p2 .tqd-car__roof, .tqd-shop__car.is-p3 .tqd-car__roof { fill: var(--tq-ink-300); }
.tqd-shop__car.is-up > .tqd-car { transform: scale(1.06); filter: drop-shadow(0 8px 8px rgb(var(--tq-black-rgb) / .6)); }
.tqd-shop__car .tqd-car__beam { opacity: .9; }
.tqd-shop__car.is-flash .tqd-car__beam { animation: tqd-shop-flash 1.2s var(--tq-ease) 1; }
.tqd-shop__car.is-flash .tqd-car__lamp--head { animation: tqd-shop-flashlamp 1.2s var(--tq-ease) 1; }
@keyframes tqd-shop-flash { 0%, 26%, 54% { opacity: .9; } 12%, 40% { opacity: 0; } 100% { opacity: .9; } }
@keyframes tqd-shop-flashlamp { 0%, 26%, 54%, 100% { fill: var(--tqd-ink-1); } 12%, 40% { fill: var(--tq-ink-500); } }
.tqd-shop__car.is-driving { will-change: transform; z-index: 2; }
.tqd-shop__car.is-driving .tqd-shop__ok { opacity: 0; }
.tqd-shop__car.is-gone { opacity: 0; transition-duration: 480ms; }
.tqd-shop__car.is-new { animation: tqd-shop-in var(--tq-d-slow) var(--tq-ease-out) both; }
.tqd-shop__car.is-leaving { opacity: 0; }
@keyframes tqd-shop-in { from { opacity: 0; } }
/* its tick, upright whichever way the car faces */
.tqd-shop__ok {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--tqd-ok);
  color: var(--tq-ink-050);
  box-shadow: 0 0 0 2px rgb(var(--tq-black-rgb) / .35);
  transform: rotate(calc(var(--ca) * -1));
  transition: opacity var(--tq-d-base) var(--tq-ease);
}
.tqd-shop__ok > .tqd-i { inline-size: 13px; block-size: 13px; stroke-width: 3; }
.tqd-shop__car:focus-visible { outline: none; }
.tqd-shop__car:focus-visible::after { content: ""; position: absolute; inset: -6px; border-radius: 14px; box-shadow: 0 0 0 2px var(--tqd-focus-line); pointer-events: none; }
@media (hover: hover) {
  .tqd-shop__car:hover > .tqd-car { filter: drop-shadow(0 2px 2px rgb(var(--tq-black-rgb) / .5)) brightness(1.12); }
  .tqd-shop__car.is-up:hover > .tqd-car { filter: drop-shadow(0 8px 8px rgb(var(--tq-black-rgb) / .6)) brightness(1.12); }
}
/* a number lights what it counts (47): the rest steps back */
.tqd-shop.is-lighting .tqd-shop__car:not(.is-lit), .tqd-shop.is-lighting .tqd-shop__marks > [data-for]:not(.is-lit) { opacity: .26; }
.tqd-shop.is-lighting .tqd-shop__car.is-lit .tqd-shop__glow { opacity: 1; }

/* moving a car: the places it could go, its ghost */
.tqd-shop.is-dragging .tqd-shop__car { cursor: grabbing; }
.tqd-shop__car.is-origin { opacity: .35; }
.tqd-shop__zone {
  position: absolute;
  box-sizing: border-box;
  border: 1.5px dashed var(--tqd-line-4);
  border-radius: 10px;
  background: rgb(var(--tq-white-rgb) / .02);
  transition: background var(--tq-d-fast) var(--tq-ease), border-color var(--tq-d-fast) var(--tq-ease), opacity var(--tq-d-base) var(--tq-ease);
}
.tqd-shop__zone.is-fits { border-color: rgb(var(--tqd-ok-rgb) / .55); }
.tqd-shop__zone.is-warn { border-color: rgb(var(--tqd-warn-rgb) / .55); }
.tqd-shop__zone.is-taken { border-color: rgb(var(--tqd-bad-rgb) / .35); }
.tqd-shop__zone.is-here.is-fits { border-style: solid; background: rgb(var(--tqd-ok-rgb) / .1); }
.tqd-shop__zone.is-here.is-warn { border-style: solid; background: rgb(var(--tqd-warn-rgb) / .1); }
.tqd-shop__zone.is-here.is-taken { border-style: solid; background: rgb(var(--tqd-bad-rgb) / .08); }
/* the place it is over says what it would come to: over the cars beside it when the place is small */
.tqd-shop__zone.is-here { z-index: 4; }
.tqd-shop__zonetab {
  position: absolute;
  left: 50%;
  top: 6px;
  box-sizing: border-box;
  inline-size: max-content;
  max-inline-size: max(calc(100% - 8px), calc(250px * var(--sh-t)));
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--tq-ink-300);
  box-shadow: 0 4px 12px rgb(var(--tq-black-rgb) / .4);
  color: var(--tqd-ink-2);
  font: 600 calc(11.5px * var(--sh-t))/1.3 var(--tq-font-sans);
  text-wrap: balance;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-shop__zone.is-here .tqd-shop__zonetab { opacity: 1; }
.tqd-shop__zone.is-here.is-taken .tqd-shop__zonetab { color: var(--tqd-bad); }
.tqd-shop__ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  inline-size: 86px;
  block-size: 42px;
  pointer-events: none;
  transform-origin: 50% 50%;
  opacity: .9;
}
.tqd-shop__ghost > .tqd-car { position: relative; display: block; overflow: visible; filter: drop-shadow(0 10px 10px rgb(var(--tq-black-rgb) / .6)); transform: scale(1.08); }
.tqd-shop__ghost > .tqd-shop__glow { opacity: 1; }
.tqd-shop__ghost.is-settling { transition: transform 240ms var(--tq-ease-out); }
.tqd-shop.is-busy .tqd-shop__ghost { animation: tqd-shop-busy 900ms var(--tq-ease) infinite alternate; }
@keyframes tqd-shop-busy { to { opacity: .55; } }

/* the card where a car lands (46): a one-of choice and a box to tick */
.tqd-dropcard__choices { display: flex; flex-wrap: wrap; gap: 6px; }
.tqd-dropcard__label { flex: 1 0 100%; margin: 0; color: var(--tqd-ink-4); font: 600 11.5px/1.3 var(--tq-font-sans); }
.tqd-dropcard__chip[aria-checked="true"] { background: var(--tqd-acc-soft); box-shadow: inset 0 0 0 1px rgb(var(--tq-accent-text-rgb) / .35); color: var(--tqd-acc-ink); }
.tqd-dropcard__check { margin-block-start: 2px; }

/* ── WB-1 · 49 · THE LUG RING (tq.kit.js 49: tqd.lug) ── */
.tqd-lug { position: relative; display: inline-block; flex: none; inline-size: var(--s, 40px); block-size: var(--s, 40px); vertical-align: middle; }
.tqd-lug > svg { display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
.tqd-lug__track { fill: none; stroke: rgb(var(--tq-white-rgb) / .1); stroke-width: 3.2; }
.tqd-lug__fill { fill: none; stroke: var(--tqd-warn); stroke-width: 3.2; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 20px 20px; transition: stroke-dasharray var(--tq-d-slow) var(--tq-ease); }
.tqd-lug__hub { fill: var(--tq-ink-150); }
.tqd-lug__nut { fill: var(--tq-ink-300); stroke: rgb(var(--tq-white-rgb) / .16); stroke-width: .8; transition: fill var(--tq-d-slow) var(--tq-ease); }
.tqd-lug__nut.is-on { fill: var(--tqd-warn); stroke: rgb(var(--tqd-warn-rgb) / .6); }
.tqd-lug__num { fill: var(--tqd-ink-1); font: 700 12.5px/1 var(--tq-font-mono); font-variant-numeric: tabular-nums; }
.tqd-lug__num.is-long { font-size: 10.5px; }
.tqd-lug.is-over .tqd-lug__fill { stroke: var(--tqd-bad); }
.tqd-lug.is-over .tqd-lug__nut { fill: var(--tqd-bad); stroke: rgb(var(--tqd-bad-rgb) / .6); }
.tqd-lug.is-over .tqd-lug__num { fill: var(--tqd-bad); }

/* ── WB-1 · 50 · FLIP LETTERS (tq.kit.js 50: tqd.flip) ── */
.tqd-flip { display: inline-flex; gap: 2px; perspective: 400px; }
.tqd-flip__c {
  display: inline-grid;
  place-items: center;
  inline-size: 1ch;
  min-inline-size: .62em;
  padding: .12em .14em;
  border-radius: 3px;
  background: linear-gradient(var(--tq-ink-200) 0 49%, rgb(var(--tq-black-rgb) / .6) 49% 51%, var(--tq-ink-150) 51%);
  color: var(--tqd-ink-1);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  white-space: pre;
  backface-visibility: hidden;
}
.tqd-flip__c.is-turning { animation: tqd-flip-turn 240ms var(--tq-ease) both; }
@keyframes tqd-flip-turn { 0% { transform: rotateX(0); } 46% { transform: rotateX(-90deg); } 54% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .tqd-shop__car, .tqd-shop__car > .tqd-car, .tqd-shop__arm, .tqd-shop__doorleaf, .tqd-shop__light, .tqd-shop__zone, .tqd-lug__fill, .tqd-lug__nut { transition: none; }
  .tqd-shop__car.is-flash .tqd-car__beam, .tqd-shop__car.is-flash .tqd-car__lamp--head, .tqd-shop__car.is-new, .tqd-shop.is-busy .tqd-shop__ghost, .tqd-flip__c.is-turning { animation: none; }
}
@media (forced-colors: active) {
  .tqd-shop__car:focus-visible::after { box-shadow: none; outline: 2px solid Highlight; }
  .tqd-shop__zone.is-here { outline: 2px solid Highlight; }
  .tqd-lug__fill { stroke: Highlight; }
}

/* =========================================================================
   INSPECTIONS · IN-1 (2026-10-20)
   What the inspection needed: the car on the lift, its tread as a gauge,
   a number for gloved hands, and a photo's mark. Built from the kit's own
   tokens; shown in section 25 of torque-dash-kit.html.
   ========================================================================= */

/* ── IN-1 · 51 · THE CAR ON THE LIFT — an inspection's tires ─────────────
   tq.kit.js 51 (tqd.lift) draws it: the car from above, front up, on a
   two-post lift in its bay, its four tires (and the spare, in the trunk)
   lit by their ratings, and a button for each beside it.
     <div class="tqd-lift" role="group">       its shape: 420 by 470
       <svg class="tqd-lift__draw">            the bay, the lift, the car
         <g class="tqd-lift__tire is-good|is-soon|is-now" data-tire="lf">
         <g class="tqd-lift__halo … is-open" data-halo="lf">  its rings
       <button class="tqd-lift__wheel is-lf … is-open" aria-pressed>
         name · value <small>unit</small> · sub · state (icon and word)
   A wheel's rating is its tone and its word (never the tone alone); the
   one open has the accent's ring. Its condition: .tqd-rate, three toned
   buttons (press the one pressed again: not rated); .tqd-rate--sm.      */
.tqd-lift {
  --lf-floor: rgb(var(--tq-white-rgb) / .025);
  --lf-paint: rgb(var(--tq-white-rgb) / .1);
  --lf-stencil: rgb(var(--tq-white-rgb) / .1);
  --lf-steel: var(--tq-ink-300);
  --lf-post: var(--tq-ink-500);
  --lf-arm: var(--tq-ink-400);
  --lf-tone: var(--tqd-line-4);
  position: relative;
  inline-size: 100%;
  max-inline-size: 460px;
  margin-inline: auto;
  aspect-ratio: var(--lift-ar, 420 / 460);
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}
.tqd-lift__draw { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
.tqd-lift__floor { fill: var(--lf-floor); stroke: var(--tqd-line-1); stroke-width: 1; }
.tqd-lift__bayline { fill: none; stroke: var(--lf-paint); stroke-width: 2; stroke-dasharray: 12 8; }
.tqd-lift__stencil { fill: var(--lf-stencil); font: 700 16px/1 var(--tq-font-mono); letter-spacing: .22em; }
.tqd-lift__plate { fill: rgb(var(--tq-white-rgb) / .03); stroke: rgb(var(--tq-white-rgb) / .09); stroke-width: 1; }
.tqd-lift__post { fill: var(--lf-post); }
.tqd-lift__arm { stroke: var(--lf-arm); stroke-width: 7; stroke-linecap: round; }
.tqd-lift__pad { fill: var(--tq-ink-500); stroke: rgb(var(--tq-black-rgb) / .45); stroke-width: 1; }
.tqd-lift__shade { fill: rgb(var(--tq-black-rgb) / .45); filter: blur(8px); }
.tqd-lift__body { fill: url(#tqd-lift-paint); stroke: rgb(var(--tq-black-rgb) / .4); stroke-width: 1.2; }
.tqd-lift__crease { fill: none; stroke: rgb(var(--tq-black-rgb) / .22); stroke-width: 1.2; stroke-linecap: round; }
.tqd-lift__glass { fill: var(--tq-ink-100); stroke: rgb(var(--tq-black-rgb) / .3); stroke-width: 1; }
.tqd-lift__glint { fill: rgb(var(--tq-white-rgb) / .14); }
.tqd-lift__roof { fill: url(#tqd-lift-roof); stroke: rgb(var(--tq-black-rgb) / .2); stroke-width: 1; }
.tqd-lift__mirror { fill: var(--tq-ink-600); stroke: rgb(var(--tq-black-rgb) / .35); stroke-width: 1; }
.tqd-lift__head { fill: var(--tqd-ink-1); }
.tqd-lift__tail { fill: var(--tqd-bad); }
.tqd-lift__well { fill: rgb(var(--tq-black-rgb) / .55); stroke: rgb(var(--tq-black-rgb) / .35); stroke-width: 1; }
.tqd-lift__rubber { fill: var(--tq-ink-150); stroke: rgb(var(--tq-white-rgb) / .14); stroke-width: 1; }
.tqd-lift__tread { fill: none; stroke: rgb(var(--tq-white-rgb) / .1); stroke-width: 1.4; stroke-linecap: round; }
.tqd-lift__rim { fill: var(--tq-ink-400); stroke: rgb(var(--tq-black-rgb) / .3); stroke-width: 1; }
.tqd-lift__hub { fill: var(--tq-ink-600); }
.tqd-lift__tire.is-good .tqd-lift__rubber { stroke: rgb(var(--tqd-ok-rgb) / .55); }
.tqd-lift__tire.is-soon .tqd-lift__rubber { stroke: rgb(var(--tqd-warn-rgb) / .6); }
.tqd-lift__tire.is-now .tqd-lift__rubber { stroke: rgb(var(--tqd-bad-rgb) / .65); }
/* the rating's ring and its light; the open wheel's ring */
.tqd-lift__ring { fill: none; stroke: var(--tqd-line-3); stroke-width: 2; stroke-dasharray: 4 4; transition: stroke var(--tq-d-slow) var(--tq-ease), opacity var(--tq-d-slow) var(--tq-ease); }
.tqd-lift__halo.is-good .tqd-lift__ring { stroke: var(--tqd-ok); stroke-dasharray: none; stroke-width: 2.6; filter: drop-shadow(0 0 6px rgb(var(--tqd-ok-rgb) / .65)); }
.tqd-lift__halo.is-soon .tqd-lift__ring { stroke: var(--tqd-warn); stroke-dasharray: none; stroke-width: 2.6; filter: drop-shadow(0 0 6px rgb(var(--tqd-warn-rgb) / .65)); }
.tqd-lift__halo.is-now .tqd-lift__ring { stroke: var(--tqd-bad); stroke-dasharray: none; stroke-width: 2.6; filter: drop-shadow(0 0 7px rgb(var(--tqd-bad-rgb) / .75)); }
.tqd-lift__focus { fill: none; stroke: var(--tqd-acc-hi); stroke-width: 2; stroke-dasharray: 6 5; opacity: 0; transition: opacity var(--tq-d-base) var(--tq-ease); }
.tqd-lift__halo.is-open .tqd-lift__focus { opacity: 1; }

/* the wheels' buttons, beside their tires (the left ones at the left, the spare under the car) */
.tqd-lift__wheel {
  position: absolute;
  inset-block-start: var(--y, auto);
  inline-size: 27.5%;
  translate: 0 -50%;
  display: grid;
  gap: 1px;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px 9px;
  border: 1px solid var(--tqd-line-2);
  border-radius: 12px;
  background: rgb(var(--tq-black-rgb) / .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--tqd-ink-2);
  font: 500 12px/16px var(--tq-font-sans);
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), border-color var(--tq-d-fast) var(--tq-ease), box-shadow var(--tq-d-fast) var(--tq-ease);
}
.tqd-lift__wheel.is-lf, .tqd-lift__wheel.is-lr { inset-inline-start: 1.5%; }
.tqd-lift__wheel.is-rf, .tqd-lift__wheel.is-rr { inset-inline-end: 1.5%; text-align: end; justify-items: end; }
.tqd-lift__wheel.is-sp { inset-block: auto 1.5%; inset-inline-start: 50%; inline-size: 34%; translate: -50% 0; text-align: center; justify-items: center; }
.tqd-lift__wheel:hover { border-color: var(--tqd-line-4); background: rgb(var(--tq-white-rgb) / .06); }
/* its shadow from three parts, so none hides another: the rated edge, the open ring, the focus halo */
.tqd-lift__wheel { --lift-edge: inset 0 0 0 0 transparent; --lift-ring: 0 0 0 0 transparent; --lift-halo: 0 0 0 0 transparent; box-shadow: var(--lift-edge), var(--lift-ring), var(--lift-halo); }
.tqd-lift__wheel:focus-visible { outline: none; --lift-halo: var(--tq-ring); }
.tqd-lift__wheel.is-open { border-color: var(--tqd-acc-hi); background: var(--tqd-acc-soft); --lift-ring: 0 0 0 1px var(--tqd-acc-hi); }
.tqd-lift__name { color: var(--tqd-ink-3); font-weight: 650; letter-spacing: .01em; overflow-wrap: anywhere; }
.tqd-lift__val { color: var(--tqd-ink-1); font: 700 22px/26px var(--tq-font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.tqd-lift__val small { margin-inline-start: 2px; color: var(--tqd-ink-4); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.tqd-lift__wheel.is-empty .tqd-lift__val { color: var(--tqd-ink-5); }
.tqd-lift__sub { color: var(--tqd-ink-4); font-variant-numeric: tabular-nums; }
.tqd-lift__sub:empty { display: none; }
.tqd-lift__state { display: inline-flex; align-items: center; gap: 4px; margin-block-start: 3px; color: var(--tqd-ink-4); font-weight: 650; }
.tqd-lift__state > .tqd-i { inline-size: 14px; block-size: 14px; flex: none; }
.tqd-lift__wheel.is-good .tqd-lift__state { color: var(--tqd-ok); }
.tqd-lift__wheel.is-soon .tqd-lift__state { color: var(--tqd-warn); }
.tqd-lift__wheel.is-now .tqd-lift__state { color: var(--tqd-bad); }
/* the rated edge, toward the car (the open one has its ring instead) */
.tqd-lift__wheel.is-lf.is-good, .tqd-lift__wheel.is-lr.is-good { --lift-edge: inset -3px 0 0 var(--tqd-ok); }
.tqd-lift__wheel.is-lf.is-soon, .tqd-lift__wheel.is-lr.is-soon { --lift-edge: inset -3px 0 0 var(--tqd-warn); }
.tqd-lift__wheel.is-lf.is-now, .tqd-lift__wheel.is-lr.is-now { --lift-edge: inset -3px 0 0 var(--tqd-bad); }
.tqd-lift__wheel.is-rf.is-good, .tqd-lift__wheel.is-rr.is-good { --lift-edge: inset 3px 0 0 var(--tqd-ok); }
.tqd-lift__wheel.is-rf.is-soon, .tqd-lift__wheel.is-rr.is-soon { --lift-edge: inset 3px 0 0 var(--tqd-warn); }
.tqd-lift__wheel.is-rf.is-now, .tqd-lift__wheel.is-rr.is-now { --lift-edge: inset 3px 0 0 var(--tqd-bad); }
.tqd-lift__wheel.is-sp.is-good { --lift-edge: inset 0 -3px 0 var(--tqd-ok); }
.tqd-lift__wheel.is-sp.is-soon { --lift-edge: inset 0 -3px 0 var(--tqd-warn); }
.tqd-lift__wheel.is-sp.is-now { --lift-edge: inset 0 -3px 0 var(--tqd-bad); }
.tqd-lift__wheel.is-open.is-good, .tqd-lift__wheel.is-open.is-soon, .tqd-lift__wheel.is-open.is-now { --lift-edge: inset 0 0 0 0 transparent; }
/* a narrow car: its words smaller, its buttons a little wider */
@container (max-width: 360px) {
  .tqd-lift__wheel { padding: 5px 7px 6px; border-radius: 10px; font-size: 11px; line-height: 14px; }
  .tqd-lift__val { font-size: 17px; line-height: 21px; }
  .tqd-lift__val small { font-size: 11px; }
  .tqd-lift__state { margin-block-start: 1px; }
  .tqd-lift__state > .tqd-i { inline-size: 12px; block-size: 12px; }
  .tqd-lift__wheel.is-sp { inline-size: 36%; }
}
@container (max-width: 300px) {
  .tqd-lift__wheel { padding: 4px 6px 5px; font-size: 10.5px; line-height: 13px; }
  .tqd-lift__name { letter-spacing: 0; }
  .tqd-lift__val { font-size: 15px; line-height: 19px; }
}

/* its condition: three toned buttons, large for a finger */
.tqd-rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tqd-rate__b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-block-size: 48px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--tqd-line-2);
  border-radius: 12px;
  background: var(--tqd-fill-1);
  color: var(--tqd-ink-2);
  font: 650 15px/1.2 var(--tq-font-sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), border-color var(--tq-d-fast) var(--tq-ease), color var(--tq-d-fast) var(--tq-ease);
}
.tqd-rate__b > .tqd-i { inline-size: 18px; block-size: 18px; flex: none; }
.tqd-rate__b:hover { border-color: var(--tqd-line-4); background: var(--tqd-fill-2); }
.tqd-rate__b:focus-visible { outline: none; box-shadow: var(--tqd-focus-halo); }
.tqd-rate__b.is-good[aria-pressed="true"] { border-color: var(--tqd-ok); background: rgb(var(--tqd-ok-rgb) / .16); color: var(--tqd-ok); }
.tqd-rate__b.is-soon[aria-pressed="true"] { border-color: var(--tqd-warn); background: rgb(var(--tqd-warn-rgb) / .16); color: var(--tqd-warn); }
.tqd-rate__b.is-now[aria-pressed="true"] { border-color: var(--tqd-bad); background: rgb(var(--tqd-bad-rgb) / .16); color: var(--tqd-bad); }
.tqd-rate__b:disabled, .tqd-rate__b[aria-disabled="true"] { cursor: default; opacity: .55; }
.tqd-rate--sm .tqd-rate__b { min-block-size: 40px; font-size: 14px; border-radius: 10px; }
.tqd-rate--sm .tqd-rate__b > .tqd-i { inline-size: 16px; block-size: 16px; }

/* ── IN-1 · 52 · THE TREAD GAUGE · A NUMBER FOR GLOVED HANDS ──────────────
   tq.kit.js 52 (tqd.tread): a tire's tread as a cross-section, the rubber
   as deep as its readings, the limits across it, each reading's probe; the
   boxes under it. .tqd-bignum: − box +, each 48px (the spare's one reading,
   a pressure).
     <div class="tqd-tread [is-one] [is-off]" data-tqd-tread data-unit
          data-now data-soon data-side>
       <div class="tqd-tread__pic"><svg class="tqd-tread__draw">
       <div class="tqd-tread__cols"> a .tqd-tread__col each: its label and
          its .tqd-bignum                                                  */
.tqd-tread { display: grid; gap: 10px; min-inline-size: 0; container-type: inline-size; }
/* a finger scrolls the page past the drawing; a mouse or a pen drags a handle (the cursor says so near one) */
.tqd-tread__pic { position: relative; inline-size: 100%; aspect-ratio: 356 / 124; cursor: default; user-select: none; -webkit-user-select: none; }
.tqd-tread.is-near .tqd-tread__pic, .tqd-tread.is-dragging .tqd-tread__pic { cursor: ns-resize; }
.tqd-tread__draw { display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
.tqd-tread__band.is-now { fill: rgb(var(--tqd-bad-rgb) / .07); }
.tqd-tread__band.is-soon { fill: rgb(var(--tqd-warn-rgb) / .05); }
.tqd-tread__casing { fill: var(--tq-ink-100); stroke: rgb(var(--tq-white-rgb) / .08); stroke-width: 1; }
.tqd-tread__rubber { fill: url(#tqd-tread-rubber); stroke: rgb(var(--tq-white-rgb) / .1); stroke-width: 1; transition: d var(--tq-d-base) var(--tq-ease); }
.tqd-tread__rubber.is-ghost { fill: rgb(var(--tq-white-rgb) / .03); stroke: var(--tqd-line-3); stroke-dasharray: 5 4; }
.tqd-tread__sipe { fill: none; stroke: rgb(var(--tq-black-rgb) / .38); stroke-width: 1.2; stroke-linecap: round; }
.tqd-tread__groove { fill: var(--tq-ink-050); }
.tqd-tread__edge { stroke: var(--tqd-line-4); stroke-width: 3; stroke-linecap: round; }
.tqd-tread__edge.is-good { stroke: var(--tqd-ok); }
.tqd-tread__edge.is-soon { stroke: var(--tqd-warn); }
.tqd-tread__edge.is-now { stroke: var(--tqd-bad); }
.tqd-tread__limit { stroke-width: 1.2; stroke-dasharray: 5 4; }
.tqd-tread__new { stroke: var(--tqd-line-3); stroke-width: 1; stroke-dasharray: 2 4; }
.tqd-tread__newt { fill: var(--tqd-ink-5); font: 600 9.5px/1 var(--tq-font-sans); letter-spacing: .02em; paint-order: stroke; stroke: var(--tq-ink-050); stroke-width: 3px; stroke-linejoin: round; }
.tqd-tread__limit.is-now { stroke: rgb(var(--tqd-bad-rgb) / .8); }
.tqd-tread__limit.is-soon { stroke: rgb(var(--tqd-warn-rgb) / .7); }
.tqd-tread__lim { font: 700 10px/1 var(--tq-font-mono); letter-spacing: .04em; }
.tqd-tread__lim.is-now { fill: var(--tqd-bad); }
.tqd-tread__lim.is-soon { fill: var(--tqd-warn); }
.tqd-tread__pin { stroke: var(--tqd-ink-3); stroke-width: 1.5; stroke-dasharray: 2 2; }
.tqd-tread__handle { fill: var(--tq-ink-900); stroke: var(--tq-ink-050); stroke-width: 2; transition: r var(--tq-d-fast) var(--tq-ease); }
.tqd-tread__probe.is-good .tqd-tread__handle { fill: var(--tqd-ok); }
.tqd-tread__probe.is-soon .tqd-tread__handle { fill: var(--tqd-warn); }
.tqd-tread__probe.is-now .tqd-tread__handle { fill: var(--tqd-bad); }
.tqd-tread__probe.is-unknown .tqd-tread__handle { fill: var(--tq-ink-300); stroke: var(--tqd-line-4); }
.tqd-tread__num { fill: var(--tqd-ink-1); font: 700 14px/1 var(--tq-font-mono); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--tq-ink-050); stroke-width: 4px; stroke-linejoin: round; }
.tqd-tread__probe.is-unknown .tqd-tread__num { fill: var(--tqd-ink-4); }
.tqd-tread.is-dragging .tqd-tread__handle { r: 9px; }
.tqd-tread.is-off .tqd-tread__handle { r: 5px; }
/* under the grooves: the drawing's margin for the limits' numbers (36 of 356) kept clear, so each box sits under its groove */
.tqd-tread__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-inline-end: calc(100% * 36 / 356); }
.tqd-tread__cols .tqd-bignum { justify-self: center; }
.tqd-tread.is-one .tqd-tread__cols { grid-template-columns: minmax(0, 220px); justify-content: center; }
.tqd-tread__col { display: grid; gap: 4px; justify-items: center; min-inline-size: 0; }
.tqd-tread__at { color: var(--tqd-ink-3); font: 600 12.5px/16px var(--tq-font-sans); text-align: center; }

/* a number for gloved hands: − box +, each 48px; a press on − or + never opens the keyboard */
.tqd-bignum { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; gap: 4px; inline-size: 100%; max-inline-size: 220px; }
.tqd-bignum__step {
  display: grid;
  place-items: center;
  min-block-size: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tqd-line-2);
  border-radius: 10px;
  background: var(--tqd-fill-2);
  color: var(--tqd-ink-1);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--tq-d-fast) var(--tq-ease), border-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-bignum__step > .tqd-i { inline-size: 18px; block-size: 18px; stroke-width: 2.2; }
.tqd-bignum__step:hover { border-color: var(--tqd-line-4); background: var(--tqd-fill-3); }
.tqd-bignum__step:active { background: var(--tqd-fill-4); }
.tqd-bignum__step:disabled { opacity: .4; cursor: default; }
.tqd-bignum__box { min-block-size: 44px; padding-inline: 8px 6px; }
.tqd-bignum__input { min-inline-size: 0; font: 700 18px/1 var(--tq-font-sans) !important; font-variant-numeric: tabular-nums; text-align: center; }
.tqd-bignum__unit { font-size: 12px; }
.tqd-bignum.is-off .tqd-bignum__step { visibility: hidden; }
.tqd-bignum__input[aria-invalid="true"] { color: var(--tqd-bad); }
.tqd-control:has(> .tqd-bignum__input[aria-invalid="true"]) { border-color: var(--tqd-bad); box-shadow: var(--tqd-bad-halo); }
@media (pointer: coarse) {
  .tqd-bignum { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .tqd-bignum__step, .tqd-bignum__box { min-block-size: 48px; }
}
/* three readings in a narrow gauge: each box over its − and + */
@container (max-width: 519px) {
  .tqd-tread__cols .tqd-bignum { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "box box" "less more"; }
  .tqd-tread__cols .tqd-bignum__box { grid-area: box; }
  .tqd-tread__cols .tqd-bignum__step[data-d="-1"] { grid-area: less; }
  .tqd-tread__cols .tqd-bignum__step[data-d="1"] { grid-area: more; }
  .tqd-tread.is-one .tqd-tread__cols .tqd-bignum { grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-areas: "less box more"; }
}

/* ── IN-1 · 53 · A PHOTO'S MARK ──────────────────────────────────────────
   tq.kit.js 53 (tqd.mark): where on the photo it is, a ring at x, y (0 to
   1 across and down). On a tile the photo covers, tqd.mark.cover(img, x,
   y) says where; the picture viewer (39) shows a photo's mark and, asked,
   marks it (.tqd-viewer.is-marking).                                     */
.tqd-mark {
  position: absolute;
  inline-size: 30px;
  block-size: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--tqd-acc-hi);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(var(--tq-black-rgb) / .55), inset 0 0 0 2px rgb(var(--tq-black-rgb) / .45);
  pointer-events: none;
}
.tqd-mark::after { content: ""; position: absolute; inset: 0; margin: auto; inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--tqd-acc-hi); }
.tqd-mark--sm { inline-size: 16px; block-size: 16px; margin: -8px 0 0 -8px; border-width: 2px; box-shadow: 0 0 0 1.5px rgb(var(--tq-black-rgb) / .6); }
.tqd-mark--sm::after { inline-size: 3px; block-size: 3px; }
.tqd-mark.is-new::before { content: ""; position: absolute; inset: -3px; border: 2px solid var(--tqd-acc-hi); border-radius: 50%; animation: tqd-mark-ping 900ms var(--tq-ease-out) 1 both; }
@keyframes tqd-mark-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.tqd-mark[hidden] { display: none; }
.tqd-viewer[open].is-marking { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.tqd-viewer__hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0 14px 6px; color: var(--tqd-ink-3); font: 500 13px/18px var(--tq-font-sans); text-align: center; }
.tqd-viewer__hint[hidden] { display: none; }
/* a pressed chip keeps its focus ring (the pressed look's own shadow came later and covered it) */
.tqd-chip[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 1px rgb(var(--tq-accent-text-rgb) / .35), var(--tq-ring); }
/* the viewer never wider than the screen: on a phone its bar takes two lines (the title and Close; then the photo's
   buttons, their words kept) */
.tqd-viewer[open] { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) {
  .tqd-viewer__bar { flex-wrap: wrap; row-gap: 2px; padding-block: 10px 6px; }
  .tqd-viewer__title { flex: 1 1 calc(100% - 52px); }
  .tqd-viewer__bar > [data-v="close"] { order: 1; }
  .tqd-viewer__bar > .tqd-btn:not([data-v="close"]) { order: 2; }
}
.tqd-viewer.is-marking .tqd-viewer__img { cursor: crosshair; }
.tqd-viewer.is-marking .tqd-viewer__img:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tqd-focus-line), 0 30px 90px -24px rgb(var(--tq-black-rgb) / .95); }

@media (prefers-reduced-motion: reduce) {
  .tqd-lift__ring, .tqd-lift__focus, .tqd-lift__wheel, .tqd-rate__b, .tqd-tread__rubber, .tqd-tread__handle, .tqd-bignum__step { transition: none; }
  .tqd-mark.is-new::before { animation: none; display: none; }
}
@media (forced-colors: active) {
  .tqd-lift__wheel.is-open, .tqd-rate__b[aria-pressed="true"] { outline: 2px solid Highlight; }
  .tqd-lift__halo.is-good .tqd-lift__ring, .tqd-lift__halo.is-soon .tqd-lift__ring, .tqd-lift__halo.is-now .tqd-lift__ring { stroke: CanvasText; }
  .tqd-mark { border-color: Highlight; }
}

/* ── IN-1 · 46 · the floor's car: its tires lit by its inspection ──────────
   tqd.floor.car(L, W, look, {tires: {lf, rf, lr, rr}}): a tire rated Good,
   Soon or Now is filled in its tone (the Work board's cars, a row's car on
   Inspections). Its words say it too, wherever it is shown.               */
.tqd-car .tqd-car__tire.is-good { fill: var(--tqd-ok); stroke: rgb(var(--tqd-ok-rgb) / .55); }
.tqd-car .tqd-car__tire.is-soon { fill: var(--tqd-warn); stroke: rgb(var(--tqd-warn-rgb) / .55); }
.tqd-car .tqd-car__tire.is-now { fill: var(--tqd-bad); stroke: rgb(var(--tqd-bad-rgb) / .6); }
.tqd-car.is-ghost .tqd-car__tire.is-good, .tqd-car.is-ghost .tqd-car__tire.is-soon, .tqd-car.is-ghost .tqd-car__tire.is-now { fill-opacity: .6; }


/* =========================================================================
   DASH DESIGN PASS · DD-B8 (2026-10-20)
   What FAQs needed: a list the owner puts in order by hand, one line at a
   time, with the pointer, a finger or the keys. Built from the kit's own
   tokens; shown in torque-dash-kit.html, section 20.
   ========================================================================= */


/* ── DD-B8 · 54 · A LIST PUT IN ORDER BY HAND — a grip on each line ───────
   <ul class="tqd-items"><li class="tqd-item"><div class="tqd-item__head">
     <button type="button" class="tqd-grip tqd-item__lead" aria-label="Move
     “How long does a tire change take?”"><svg class="tqd-i">…grip…</svg>
     </button> …the line's button and its menu (43)… </div>…</li></ul>
   tqd.reorder(list, {label, drop}) (tq.kit.js) moves a line by its grip.
   Pressed and moved (the pointer or a finger, 4px before it lifts), the
   line rides under it and the others make room; let go, it is down. On
   the keys, Space or Enter on the grip lifts it, the arrows move it a
   place, Home and End to the top and the foot, Space or Enter puts it
   down, Escape puts it back; a screen reader hears where it is ("3 of
   12"). The page saves the order and may send it back.
   .is-sorting on the list while a line moves; .is-lifted on that line
   (the pop's ground and shadow, the accent on its edge); .is-busy on the
   list while the page saves the order (no line moves then). The grip is
   24 by 36px, 32 by 44px under a finger, where it takes no scrolling.    */
.tqd-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: 24px;
  block-size: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--tqd-ink-5);
  font: inherit;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--tq-d-fast) var(--tq-ease), background-color var(--tq-d-fast) var(--tq-ease);
}
.tqd-grip > .tqd-i { inline-size: 16px; block-size: 16px; fill: currentColor; stroke-width: 2; }
.tqd-grip:hover { background: var(--tqd-fill-2); color: var(--tqd-ink-2); }
.tqd-grip:focus-visible { outline: none; box-shadow: var(--tq-ring); }
.tqd-grip:active { cursor: grabbing; }
.tqd-items.is-sorting { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.tqd-items.is-sorting > .tqd-item { transition: transform var(--tq-d-base) var(--tq-ease); }
.tqd-items.is-sorting > .tqd-item.is-lifted { transition: none; }
.tqd-item.is-lifted { z-index: 2; background: var(--tqd-pop); box-shadow: var(--tqd-shadow-pop); }
.tqd-item.is-lifted::before { background: var(--tqd-acc-ink); }
.tqd-item.is-lifted > .tqd-item__head .tqd-grip { color: var(--tqd-acc-ink); cursor: grabbing; }
.tqd-item.is-settling { transition: transform var(--tq-d-base) var(--tq-ease-out); }
.tqd-items.is-busy > .tqd-item > .tqd-item__head .tqd-grip { opacity: .5; cursor: progress; }
@media (pointer: coarse) {
  .tqd-grip { inline-size: 32px; block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tqd-grip, .tqd-items.is-sorting > .tqd-item, .tqd-item.is-settling { transition: none; }
}
@media (forced-colors: active) {
  .tqd-item.is-lifted { outline: 2px solid Highlight; outline-offset: -2px; }
}


/* ── DD-B9 · 55 · STARS — a rating, stars to pick, and a customer's review ─
   A rating as five stars lit to the tenth: .tqd-rating, its number in --v
   (style="--v:4.7"), read out by its role="img" and aria-label ("4.7 out
   of 5 stars"); --sm and --lg. The stars a box picks: .tqd-rating-pick, a
   radio in each star (.tqd-rating-pick__star › input + the star icon and
   its words for a screen reader), so the arrows move it and Tab stops on
   the one picked, as the browser's own radios; the pointer over a star
   lights it and the ones before it; .tqd-rating-pick__words beside them
   says the pick ("4 stars", the page fills it). A customer's review as it
   reads: .tqd-review (figure) › .tqd-rating, blockquote.tqd-review__text,
   figcaption.tqd-review__who › .tqd-avatar, .tqd-review__by ›
   .tqd-review__name and .tqd-review__when. Stars are amber (the warning's
   colour, as Google's are gold), the rest the panel's ink.                 */
.tqd-rating {
  --s: 16px;
  --tqd-star-on: var(--tqd-warn);
  --tqd-star-off: rgb(var(--tq-white-rgb) / .16);
  --tqd-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z'/%3E%3C/svg%3E");
  display: inline-block;
  flex: none;
  inline-size: calc(var(--s) * 5);
  block-size: var(--s);
  background: linear-gradient(90deg, var(--tqd-star-on) calc(var(--v, 0) * 20%), var(--tqd-star-off) 0);
  -webkit-mask: var(--tqd-star) 0 0 / var(--s) var(--s) repeat-x;
  mask: var(--tqd-star) 0 0 / var(--s) var(--s) repeat-x;
  vertical-align: middle;
}
.tqd-rating--sm { --s: 13px; }
.tqd-rating--lg { --s: 22px; }

/* the stars a box picks: a radio in each, over its star */
.tqd-rating-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-inline-size: 0; }
.tqd-rating-pick__stars { display: inline-flex; gap: 2px; }
.tqd-rating-pick__star {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--tqd-r-opt);
  color: var(--tqd-ink-5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--tq-d-fast) var(--tq-ease);
}
.tqd-rating-pick__star > input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.tqd-rating-pick__star > .tqd-i {
  inline-size: 24px;
  block-size: 24px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: fill var(--tq-d-fast) var(--tq-ease), transform var(--tq-d-base) var(--tq-ease-out);
}
/* lit: the star picked and the ones before it */
.tqd-rating-pick__star:has(> input:checked),
.tqd-rating-pick__star:has(~ .tqd-rating-pick__star > input:checked) { color: var(--tqd-warn); }
.tqd-rating-pick__star:has(> input:checked) > .tqd-i,
.tqd-rating-pick__star:has(~ .tqd-rating-pick__star > input:checked) > .tqd-i { fill: currentColor; }
/* the pointer over a star: it and the ones before it, the others dark */
@media (hover: hover) {
  .tqd-rating-pick__stars:hover > .tqd-rating-pick__star { color: var(--tqd-ink-5); }
  .tqd-rating-pick__stars:hover > .tqd-rating-pick__star > .tqd-i { fill: transparent; }
  .tqd-rating-pick__stars:hover > .tqd-rating-pick__star:hover,
  .tqd-rating-pick__stars:hover > .tqd-rating-pick__star:has(~ .tqd-rating-pick__star:hover) { color: var(--tqd-warn); }
  .tqd-rating-pick__stars:hover > .tqd-rating-pick__star:hover > .tqd-i,
  .tqd-rating-pick__stars:hover > .tqd-rating-pick__star:has(~ .tqd-rating-pick__star:hover) > .tqd-i { fill: currentColor; }
  .tqd-rating-pick__star:hover > .tqd-i { transform: scale(1.12); }
}
.tqd-rating-pick__star:has(> input:focus-visible) { box-shadow: var(--tq-ring); }
.tqd-rating-pick__words { color: var(--tqd-ink-3); font: 600 13.5px/20px var(--tq-font-sans); font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .tqd-rating-pick__star { inline-size: 44px; block-size: 44px; }
}

/* a customer's review as it reads */
.tqd-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-inline-size: 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--tqd-line-1);
  border-radius: var(--tqd-r-card);
  background: var(--tqd-raised);
}
.tqd-review__text {
  margin: 0;
  color: var(--tqd-ink-2);
  font: 500 14px/22px var(--tq-font-sans);
  overflow-wrap: anywhere;
  quotes: "\201C" "\201D";
}
.tqd-review__text::before { content: open-quote; }
.tqd-review__text::after { content: close-quote; }
/* in a row of reviews of unequal length, each one's name sits at its foot */
.tqd-review__who { display: flex; align-items: center; gap: 10px; min-inline-size: 0; margin-block-start: auto; }
.tqd-review__by { display: flex; flex-direction: column; min-inline-size: 0; }
.tqd-review__name { color: var(--tqd-ink-1); font: 600 13.5px/18px var(--tq-font-sans); overflow-wrap: anywhere; }
.tqd-review__when { color: var(--tqd-ink-4); font: 500 12.5px/17px var(--tq-font-sans); }
@media (prefers-reduced-motion: reduce) {
  .tqd-rating-pick__star, .tqd-rating-pick__star > .tqd-i { transition: none; }
}
:root[data-tqd-motion="reduce"] .tqd-rating-pick__star,
:root[data-tqd-motion="reduce"] .tqd-rating-pick__star > .tqd-i { transition: none; }


/* ── DD-B10 · 56 · A LONG TEXT'S WRITING BOX ─────────────────────────────
   <div class="tqd-field">
     <label class="tqd-label" for="t">Page text</label>
     <div class="tqd-writebox">
       <div class="tqd-writebox__bar" role="group" aria-label="Write the page text">
         <button type="button" class="tqd-btn tqd-btn--ghost tqd-btn--xs"
           data-tqd-write="heading" aria-controls="t"><svg class="tqd-i">…h2
           </svg>Heading</button>
         … data-tqd-write="bullet" (list-bullet) Bullet point
         … data-tqd-write="paragraph" (bars-3-bottom-left) New paragraph
       </div>
       <textarea class="tqd-writebox__text" id="t" rows="12"
         data-tqd-autosize data-tqd-count="20000"></textarea>
     </div>
     <p class="tqd-help">…</p>
   </div>
   A field (03) for a text of several paragraphs, written with the
   website's marks: an empty line starts a paragraph, "- " a bullet point,
   "## " a small heading (SitePages.BodyHtml). Its buttons, over the words,
   write those marks: Heading and Bullet point mark the lines the caret or
   the selection is on (or take the mark off them, when every one has it);
   New paragraph starts one at the caret. They keep the words' undo, and
   the words keep the focus. The box is the field: its edge, its focus and
   its problem (aria-invalid on the words) are the field's; data-tqd-count
   and data-tqd-autosize work as on any field. A page may call
   tqd.write(textarea, kind) itself.                                       */
.tqd-writebox {
  display: grid;
  box-sizing: border-box;
  min-inline-size: 0;
  border: 1px solid var(--tqd-line-2);
  border-radius: var(--tqd-r-field);
  background: var(--tqd-fill-1);
  transition: border-color var(--tq-d-fast) var(--tq-ease),
              background-color var(--tq-d-fast) var(--tq-ease),
              box-shadow var(--tq-d-base) var(--tq-ease-out);
}
.tqd-writebox:hover { border-color: var(--tqd-line-3); }
.tqd-writebox:focus-within { border-color: var(--tqd-focus-line); background-color: var(--tqd-fill-2); box-shadow: var(--tqd-focus-halo); }
.tqd-writebox:has(> .tqd-writebox__text[aria-invalid="true"]) { border-color: rgb(var(--tqd-bad-rgb) / .72); }
.tqd-writebox:has(> .tqd-writebox__text[aria-invalid="true"]):focus-within { border-color: rgb(var(--tqd-bad-rgb) / .9); box-shadow: var(--tqd-bad-halo); }
.tqd-writebox:has(> .tqd-writebox__text:disabled) { opacity: .5; }
.tqd-writebox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-inline-size: 0;
  padding: 4px;
  border-block-end: 1px solid var(--tqd-line-1);
}
.tqd-writebox__text {
  display: block;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 88px;
  margin: 0;
  padding: 10px 12px 12px;
  border: 0;
  border-radius: 0 0 calc(var(--tqd-r-field) - 1px) calc(var(--tqd-r-field) - 1px);
  background: transparent;
  color: var(--tqd-ink-1);
  font: 400 var(--tqd-fs-input)/22px var(--tq-font-sans);
  letter-spacing: -.003em;
  resize: vertical;
  outline: none;
  scrollbar-width: thin;
}
.tqd-writebox__text::placeholder { color: var(--tqd-ink-5); opacity: 1; }
.tqd-writebox__text[data-tqd-autosize] { min-block-size: 0; resize: none; overflow-y: hidden; }
.tqd-writebox__text:disabled { cursor: not-allowed; }
/* under a finger: the words are 16px by the kit's own size for what is typed
   (--tqd-fs-input, so iOS never zooms); the buttons take a control's 40px */
@media (pointer: coarse) {
  .tqd-writebox__bar > .tqd-btn { --h: var(--tqd-h); }
}
@media (forced-colors: active) {
  .tqd-writebox { border-color: CanvasText; }
  .tqd-writebox:focus-within { outline: 2px solid Highlight; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B12 (2026-10-30)
   What the Home page editor needed: a photo cropped to its frame before it
   uploads (57, until now the tire editor's own, in tq.tires.css), a banner
   that offers two ways (29), and a file that is a picture (23). Built from
   the kit's tokens; shown in torque-dash-kit.html, sections 11, 17 and 20.
   ========================================================================= */


/* ── DD-B12 · 29 · a banner that offers two ways ─────────────────────────
   <div class="tqd-banner tqd-banner--warn" role="status">…<p class=
   "tqd-banner__text">…</p><div class="tqd-banner__btns"><button class=
   "tqd-btn tqd-btn--sm tqd-btn--ghost">Throw them away</button><button
   class="tqd-btn tqd-btn--sm tqd-btn--primary">Bring them back</button>
   </div></div>
   One button at most stays the rule. An offer is the one banner with two:
   take back what this browser kept, or let it go (Home page: changes not
   saved last time). The two sit together at its end, the way on last, as
   in a dialog's foot; on a phone they go under the words.                 */
.tqd-banner__btns { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 559.98px) {
  .tqd-banner__btns { margin-inline-start: 30px; }
}


/* ── DD-B12 · 23 · a file that is a picture ──────────────────────────────
   <div class="tqd-files"><button type="button" class="tqd-file
   tqd-file--pic"><img class="tqd-file__pic" src="…" alt=""><span class=
   "tqd-file__name">The storefront, with the services on its window</span>
   </button></div>
   Its own small copy where a file's icon would be (48 by 36, filled), and
   its words on as many lines as they need. A logo sits on white, as it is
   made for (--plate: the whole logo, 64 by 28). A file to press is a
   button: the photos that came with the site, on Home page, put back with
   one press (its words start at its left, as a link's do; tq.base.css
   gives it the rest of a button's reset).                                 */
button.tqd-file { text-align: start; }
.tqd-file--pic { padding: 5px 12px 5px 5px; }
.tqd-file--pic .tqd-file__name { white-space: normal; overflow-wrap: anywhere; }
.tqd-file__pic {
  display: block;
  flex: none;
  inline-size: 48px;
  block-size: 36px;
  border-radius: 6px;
  background: var(--tqd-fill-3);
  object-fit: cover;
}
.tqd-file__pic--plate {
  inline-size: 64px;
  block-size: 28px;
  box-sizing: border-box;
  padding: 3px 5px;
  background: var(--tq-paper-0);
  object-fit: contain;
}


/* ── DD-B12 · 57 · THE CROP — a photo cropped to its frame, then uploaded ─
   <dialog class="tqd-modal tqd-modal--lg tqd-crop" data-tqd-guard="off">
     …the head (14)…
     <div class="tqd-modal__body tqd-crop__body">
       <div class="tqd-crop__err" hidden></div>
       <div class="tqd-crop__stage"><div class="tqd-crop__host"></div>
         <div class="tqd-crop__wait" hidden><span class="tqd-spin"></span>…
         </div></div>
       <div class="tqd-crop__tools">
         <div class="tqd-crop__zoom">− <input type="range" class=
         "tqd-crop__slider"> +</div>
         <div class="tqd-crop__turn">…</div> <div class="tqd-crop__frame">
         Whole photo · Fill the frame</div>
         <div class="tqd-crop__bg" role="radiogroup"><span class=
         "tqd-crop__k">Background</span><label class="tqd-crop__swatch
         tqd-crop__swatch--clear"><input type="radio"><span class=
         "tqd-crop__dot"></span></label>…</div>
         <button class="tqd-btn tqd-btn--sm tqd-btn--ghost
         tqd-crop__guidebtn" aria-pressed="true">Screens</button></div>
       <p class="tqd-help tqd-crop__help">…</p> <p class="tqd-help tqd-keys
       tqd-crop__keys">…</p></div>
     <div class="tqd-modal__foot"><p class="tqd-modal__aside tqd-crop__out">
     Saves as 1400 × 1050 px</p> Cancel · Use this crop</div></dialog>
   Croppie (Scripts/croppie.min.js, its croppie.min.css) draws the photo in
   the host; a page's crop script runs it (Scripts/tq.crop.js on Home page;
   the tire editor's own in tq.tires.js). The frame is a white edge, the
   rest dimmed; while the photo moves, the rule of thirds shows on it. Where
   the photo does not reach, the frame shows the background chosen, as it
   is saved; a checkerboard for what stays see-through (.is-clear on the
   boundary, a logo). Dashed frames show what each screen shows of the
   photo, each named at a corner (.tqd-crop__view --tl --tr --bl --br, with
   its .tqd-crop__viewtag); Screens hides them (.is-noguide on the stage).
   .is-ready: a photo on show; .is-moving: it is being dragged. The dialog
   rises without growing (Croppie measures the stage as it opens); on a
   phone it rises from the foot. Croppie's own look gives way to the dash
   here whichever stylesheet loads last.                                   */
.tqd-modal.tqd-crop { --w: 900px; transform: translateY(14px); }
.tqd-modal.tqd-crop.is-in { transform: none; }
.tqd-modal.tqd-crop.is-out { transform: translateY(8px); }
.tqd-crop .tqd-modal__sub { overflow-wrap: anywhere; }
.tqd-crop__body { display: flex; flex-direction: column; gap: 12px; }

.tqd-crop__stage {
  position: relative;
  flex: none;
  min-inline-size: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tqd-fill-1);
}
.tqd-crop__host.is-next { position: absolute; inset-block-start: 0; inset-inline-start: 0; visibility: hidden; }
.tqd-crop .croppie-container { block-size: auto; }
.tqd-crop .croppie-container .cr-boundary { border-radius: 12px; background-color: var(--tqd-fill-2); }
.tqd-crop .croppie-container .cr-slider-wrap { display: none; }
.tqd-crop .croppie-container .cr-viewport {
  border: 0;
  outline: 2px solid var(--tq-paper-0);
  outline-offset: 0;
  box-shadow: 0 0 0 4000px rgb(var(--tq-black-rgb) / .6);
}
.tqd-crop .croppie-container .cr-viewport:focus-visible {
  box-shadow: 0 0 0 5px var(--tqd-acc-ink), 0 0 0 4000px rgb(var(--tq-black-rgb) / .6);
}
/* the photo can be held anywhere on the stage, not only where it is */
.tqd-crop .croppie-container .cr-overlay {
  inset: 0 !important;
  inline-size: auto !important;
  block-size: auto !important;
  cursor: grab;
}
.tqd-crop__stage.is-moving .croppie-container .cr-overlay { cursor: grabbing; }
/* what is see-through stays so (a logo): a checkerboard where the photo does not reach */
.tqd-crop .croppie-container .cr-boundary.is-clear {
  background-color: var(--tq-paper-100);
  background-image: conic-gradient(var(--tq-paper-400) 25%, transparent 0 50%, var(--tq-paper-400) 0 75%, transparent 0);
  background-size: 16px 16px;
}
/* no photo on show (it is opening, or it could not be opened): an empty stage, no frame */
.tqd-crop__stage:not(.is-ready) .croppie-container .cr-viewport { outline-color: transparent; box-shadow: none; }

/* the rule of thirds, while the photo moves */
.tqd-crop__grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(100% / 3 - .5px), rgb(var(--tq-white-rgb) / .55) calc(100% / 3 - .5px) calc(100% / 3 + .5px), transparent calc(100% / 3 + .5px) calc(200% / 3 - .5px), rgb(var(--tq-white-rgb) / .55) calc(200% / 3 - .5px) calc(200% / 3 + .5px), transparent calc(200% / 3 + .5px)),
    linear-gradient(to bottom, transparent calc(100% / 3 - .5px), rgb(var(--tq-white-rgb) / .55) calc(100% / 3 - .5px) calc(100% / 3 + .5px), transparent calc(100% / 3 + .5px) calc(200% / 3 - .5px), rgb(var(--tq-white-rgb) / .55) calc(200% / 3 - .5px) calc(200% / 3 + .5px), transparent calc(200% / 3 + .5px));
  transition: opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-crop__stage.is-moving .tqd-crop__grid { opacity: 1; }

/* what each screen shows of the photo: a dashed frame, named at a corner. White dashes over a dark line, so it
   shows on a white photo and on a dark one alike */
.tqd-crop__view {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  border: 1.5px dashed var(--tq-paper-0);
  box-shadow: 0 0 0 1px rgb(var(--tq-black-rgb) / .5), inset 0 0 0 1px rgb(var(--tq-black-rgb) / .35);
  transition: opacity var(--tq-d-fast) var(--tq-ease);
}
.tqd-crop__viewtag {
  position: absolute;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(var(--tq-black-rgb) / .74);
  color: var(--tq-paper-0);
  font: 600 11px/16px var(--tq-font-sans);
  white-space: nowrap;
}
.tqd-crop__view--tl .tqd-crop__viewtag { inset-block-start: 5px; inset-inline-start: 5px; }
.tqd-crop__view--tr .tqd-crop__viewtag { inset-block-start: 5px; inset-inline-end: 5px; }
.tqd-crop__view--bl .tqd-crop__viewtag { inset-block-end: 5px; inset-inline-start: 5px; }
.tqd-crop__view--br .tqd-crop__viewtag { inset-block-end: 5px; inset-inline-end: 5px; }
.tqd-crop__stage.is-noguide .tqd-crop__view { display: none; }
.tqd-crop__stage:not(.is-ready) .tqd-crop__view { opacity: 0; }
.tqd-crop__stage.is-moving .tqd-crop__view { opacity: .55; }

/* while the photo opens or saves, the stage is covered (with words, or without for a quick redraw) */
.tqd-crop__wait {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tqd-raised) 86%, transparent);
  color: var(--tqd-ink-1);
  font-weight: 600;
}
.tqd-crop__wait.is-quiet { background: transparent; }
.tqd-crop__wait.is-quiet > * { display: none; }

/* one row of tools when the dialog is wide enough; on a phone they wrap, the zoom first */
.tqd-crop__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tqd-crop__zoom { display: flex; flex: 1 1 190px; align-items: center; gap: 6px; max-inline-size: 380px; min-inline-size: 0; }
.tqd-crop__turn, .tqd-crop__frame { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tqd-crop__bg { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.tqd-crop__k { margin-inline-end: 6px; color: var(--tqd-ink-3); font-size: 13px; }
.tqd-crop__swatch {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.tqd-crop__swatch > input {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 50%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tqd-crop__dot {
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgb(var(--tq-white-rgb) / .3), 0 0 0 1px rgb(var(--tq-black-rgb) / .45);
  pointer-events: none;
}
.tqd-crop__swatch--clear .tqd-crop__dot {
  background-color: var(--tq-paper-100);
  background-image: conic-gradient(var(--tq-paper-400) 25%, transparent 0 50%, var(--tq-paper-400) 0 75%, transparent 0);
  background-size: 8px 8px;
}
.tqd-crop__swatch:has(> input:checked) { box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-crop__swatch:has(> input:focus-visible) { box-shadow: 0 0 0 2px var(--tqd-acc-ink), var(--tq-ring); }
.tqd-crop__swatch:has(> input:disabled) { opacity: .45; cursor: default; }
.tqd-crop__guidebtn[aria-pressed="true"] { background: var(--tqd-fill-2); color: var(--tqd-ink-1); }

.tqd-crop__slider {
  --p: 0%;
  flex: 1 1 auto;
  min-inline-size: 64px;
  block-size: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tqd-crop__slider::-webkit-slider-runnable-track {
  block-size: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--tqd-acc-ink) 0 var(--p), var(--tqd-line-3) var(--p) 100%);
}
.tqd-crop__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  inline-size: 16px;
  block-size: 16px;
  margin-block-start: -6px;
  border: 0;
  border-radius: 50%;
  background: var(--tqd-ink-1);
  box-shadow: 0 1px 3px rgb(var(--tq-black-rgb) / .5);
}
.tqd-crop__slider::-moz-range-track { block-size: 4px; border-radius: 4px; background: var(--tqd-line-3); }
.tqd-crop__slider::-moz-range-progress { block-size: 4px; border-radius: 4px; background: var(--tqd-acc-ink); }
.tqd-crop__slider::-moz-range-thumb {
  inline-size: 16px;
  block-size: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--tqd-ink-1);
  box-shadow: 0 1px 3px rgb(var(--tq-black-rgb) / .5);
}
.tqd-crop__slider:focus { outline: none; }
.tqd-crop__slider:focus-visible::-webkit-slider-thumb { box-shadow: var(--tq-ring); }
.tqd-crop__slider:focus-visible::-moz-range-thumb { box-shadow: var(--tq-ring); }
.tqd-crop__slider:disabled { opacity: .45; cursor: default; }

.tqd-crop__help, .tqd-crop__keys { margin: 0; }
.tqd-crop__keys { color: var(--tqd-ink-4); }
/* a short screen gives the frame the room the keys' line took (the frame says them to a screen reader) */
@media (max-height: 819.98px) { .tqd-crop__keys { display: none; } }
.tqd-crop__out { color: var(--tqd-ink-3); font-variant-numeric: tabular-nums; }
.tqd-crop__out.is-low { color: var(--tqd-warn); }
.tqd-crop__out > .tqd-i { inline-size: 16px; block-size: 16px; }

@media (max-width: 560px) {
  .tqd-modal.tqd-crop { transform: translateY(102%); }
  .tqd-modal.tqd-crop.is-in { transform: none; }
  .tqd-modal.tqd-crop.is-out { transform: translateY(102%); }
  .tqd-crop__bg { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tqd-crop__grid, .tqd-crop__view { transition: none; }
}
@media (forced-colors: active) {
  .tqd-crop__view { border-color: CanvasText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B13 (2026-10-31)
   What Sign-in & security needed: steps to follow that are sentences
   (24), a name the server keeps in a banner's words (29), and two-step
   sign-in's own parts (58): the code an app scans, the key typed by hand
   and the recovery codes shown once. Built from the kit's tokens; shown in
   torque-dash-kit.html, sections 18 and 20.
   ========================================================================= */


/* ── DD-B13 · 24 · steps that are sentences ──────────────────────────────
   <ol class="tqd-steps tqd-steps--v tqd-steps--say"><li class="tqd-step">
   <span class="tqd-step__dot" aria-hidden="true">1</span><span class=
   "tqd-step__text"><span class="tqd-step__label">Open your authenticator
   app and add an account.</span></span></li>…</ol>
   Steps to follow, each a sentence (Sign-in & security: setting up the
   app; Web address: the founder's steps in Azure). Its words are the
   body's; a name of a button or a box is bright (<b>), and a name the
   server keeps, a setting or a file, is in the read-out font (<code>).
   The list ends at its last words: no room is kept for a line after the
   last step. The dot keeps its number for the eye; the list says it to a
   screen reader.                                                          */
.tqd-steps--say .tqd-step__label {
  color: var(--tqd-ink-3);
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.tqd-steps--say .tqd-step__label b { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-steps--say .tqd-step__label code { color: var(--tqd-ink-1); font: 500 12.5px/1 var(--tq-font-mono); }
.tqd-steps--v.tqd-steps--say > .tqd-step:last-child { padding-block-end: 0; }


/* ── DD-B13 · 29 · a name the server keeps, in a banner's words ──────────
   <p class="tqd-banner__text"><b>Two-step sign-in needs its key.</b> Add
   the setting <code>Tirqo:TwoStepKey</code> in Azure.</p>
   A setting, a file or a table the reader must find as it is written: in
   the read-out font, at the banner's full ink, and it may break anywhere
   rather than widen the banner.                                           */
.tqd-banner__text code { color: var(--tqd-ink-1); font: 500 13px/1 var(--tq-font-mono); overflow-wrap: anywhere; }


/* ── DD-B13 · 58 · A CODE TO SCAN, A KEY TO TYPE, CODES TO KEEP ──────────
   Two-step sign-in's parts, as Sign-in & security sets it up.

   <div class="tqd-qr" role="img" aria-label="QR code for your
   authenticator app"><svg …>…</svg></div>
   The code an app scans: black on white, as an app reads it best (the one
   white of the dash that is not a role: a QR code is its own ink), on its
   card. The page draws its picture (Scripts/qrcode.js makes the SVG), and
   it fills the card. When it could not be drawn, .is-none says so in its
   middle, in the ink of words on white.

   <p class="tqd-key"><code>JBSW Y3DP EHPK 3PXP</code><button type=
   "button" class="tqd-fbtn" data-tqd-copy="…" aria-label="Copy the key"
   data-tqd-tip="Copy the key">…</button></p>
   The key typed by hand when the code cannot be scanned (on the phone the
   app is on): the read-only field's dashed edge, the key in the read-out
   font, in the groups it is typed in, a long one wrapping between them
   (never cut short, never scrolled); its copy button at its end, always
   shown, as a field's own small button.

   <div class="tqd-control tqd-control--code">…<input type="text"
   inputmode="numeric" autocomplete="one-time-code" /></div>
   The code the app shows, typed back: the kit's field, its digits apart
   and in figures of one width, so six read as six.

   <ol class="tqd-codes"><li><code>7KQ2-M9XD-4HTB</code></li>…</ol>
   Codes shown once, to keep (the recovery codes): numbered, two to a row
   and one in a frame narrower than 640px, each in the read-out font, on a
   field's ground as wide as they are.                                                         */
.tqd-qr {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 216px;
  block-size: 216px;
  max-inline-size: 100%;
  border-radius: var(--tqd-r-pop);
  background: var(--tq-paper-0);
  box-shadow: inset 0 0 0 1px rgb(var(--tq-white-rgb) / .14);
  overflow: hidden;
}
.tqd-qr > svg { display: block; inline-size: 100%; block-size: 100%; }
.tqd-qr.is-none {
  padding: 16px;
  color: var(--tq-t-body);
  font: 500 13px/19px var(--tq-font-sans);
  text-align: center;
  text-wrap: balance;
}

.tqd-key {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  min-inline-size: 0;
  min-block-size: var(--tqd-h);
  margin: 0;
  padding: 0 12px;
  border: 1px dashed var(--tqd-line-2);
  border-radius: var(--tqd-r-field);
}
.tqd-key > code {
  flex: 1 1 auto;
  min-inline-size: 0;
  padding-block: 7px;
  color: var(--tqd-ink-1);
  font: 600 15px/20px var(--tq-font-mono);
  letter-spacing: .08em;
  word-spacing: .16em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;   /* a key on two lines: half its groups on each */
}
.tqd-key > .tqd-fbtn { margin-block-start: 4px; }

.tqd-control.tqd-control--code > input { font-variant-numeric: tabular-nums; letter-spacing: .12em; }   /* over 03's input in a field */

ol.tqd-codes {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 44px;
  box-sizing: border-box;
  inline-size: fit-content;   /* as wide as its codes */
  max-inline-size: 100%;
  margin: 0;
  padding: 14px 20px 14px 46px;
  border-radius: var(--tqd-r-field);
  background: var(--tqd-fill-1);
  box-shadow: inset 0 0 0 1px var(--tqd-line-1);
  list-style: decimal outside;
  color: var(--tqd-ink-5);
  font: 500 12px/24px var(--tq-font-mono);
  font-variant-numeric: tabular-nums;
}
.tqd-codes > li { padding-inline-start: 6px; }
.tqd-codes code {
  color: var(--tqd-ink-1);
  font: 600 16px/24px var(--tq-font-mono);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
@container tqd-frame (max-width: 639.98px) {
  ol.tqd-codes { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .tqd-qr { border: 1px solid CanvasText; forced-color-adjust: none; }   /* the code stays black on white */
  ol.tqd-codes { border: 1px solid CanvasText; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B14 (2026-10-31)
   What the founder's Shops page needed: a value typed as it is written
   (03). Built from the kit's tokens; shown in torque-dash-kit.html,
   section 03.
   ========================================================================= */


/* ── DD-B14 · 03 · a value typed as it is written ────────────────────────
   <input class="tqd-input tqd-input--mono" type="text" value="20.48.204.7">
   An address, an ID or a key, pasted or typed exactly as another service
   gives it (Shops: Tirqo's three values from Azure): the field's own look,
   its words in the read-out font, so each character stands apart.        */
.tqd-input.tqd-input--mono { font-family: var(--tq-font-mono); letter-spacing: .02em; }



/* =========================================================================
   DASH DESIGN PASS · DD-B15 (2026-10-31)
   What the founder's Billing page needed: a value to copy (03). Built from
   the kit's tokens; shown in torque-dash-kit.html, section 03.
   ========================================================================= */


/* ── DD-B15 · 03 · a value to copy ──────────────────────────────────────
   <div class="tqd-control tqd-control--mono is-readonly"><input type="text"
   readonly value="https://sample.example/stripe/hook"><button type="button"
   class="tqd-fbtn" data-tqd-copy="#id" aria-label="Copy the address"
   data-tqd-tip="Copy">…document-duplicate…</button></div>
   An address, a link or a key the dash gives, to paste somewhere else
   (Billing: the webhook's address for Stripe, the invite link, a one-time
   sign-up link): the kit's read-only box (03: its dashed edge), its words
   in the read-out font as a value typed as it is written, its copy button
   at its end, always shown (the kit copies the box's value and says so).
   Without .is-readonly and the button, .tqd-control--mono is a box with
   its icon where such a value is typed (as .tqd-input--mono, DD-B14, is a
   bare one).                                                              */
.tqd-control.tqd-control--mono > input { font-family: var(--tq-font-mono); letter-spacing: .02em; }


/* =========================================================================
   DASH DESIGN PASS · DD-B16 (2026-10-31)
   What the founder's Connections page needed: a value's quiet line (25).
   Built from the kit's tokens; shown in torque-dash-kit.html, section 17.
   ========================================================================= */


/* ── DD-B16 · 25 · a value's quiet line ─────────────────────────────────
   <dd>1,234 of 5,000<span class="tqd-dl__sub">counted since 9:05 a.m.
   </span></dd>
   When a value happened, what it is counted from, or what it is made of,
   under it in the quiet ink (Connections: Lookups today, Last problem,
   Stopped at sign-in, which has two). The value keeps the record's ink and
   size; each quiet line takes the width of the value's column.           */
.tqd-dl dd:has(> .tqd-dl__sub) { flex-wrap: wrap; row-gap: 2px; }
.tqd-dl__sub { flex: 1 0 100%; min-inline-size: 0; color: var(--tqd-ink-4); font: 500 12.5px/18px var(--tq-font-sans); }



/* =========================================================================
   DASH DESIGN PASS · DD-B17 (2026-10-31)
   What the final sweep needed: a banner with more to say (29: the tire
   editor's), and steps in a part folded away (45: Web address's). Built
   from the kit's tokens; shown in torque-dash-kit.html, section 20.
   ========================================================================= */


/* ── DD-B17 · 29 · a banner with more to say ─────────────────────────────
   <div class="tqd-banner tqd-banner--warn tqd-banner--more" role="alert">
   <svg class="tqd-i">…</svg><div class="tqd-banner__text"><p><b>You
   already have this tire.</b> Same brand, model and size.</p><ul class=
   "tqd-list"><li>…</li></ul><p>…</p><div class="tqd-banner__btns">
   <button class="tqd-btn tqd-btn--sm">…</button></div></div></div>
   When one line is not enough (the tire editor: a tire like one already in
   the list, a save from a page that was out of date, what a tire's page
   needs): its words are a block, short paragraphs 8px apart, the kit's
   list in it a step quieter than its words; its icon stays by its first
   line, and its button (one at most, or an offer's two) comes under its
   words. Its tone, its edge and its words' ink are the banner's.          */
.tqd-banner--more { align-items: flex-start; padding: 12px 16px; }
.tqd-banner--more > .tqd-banner__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tqd-banner--more .tqd-list { color: var(--tqd-ink-2); font: inherit; }
.tqd-banner--more .tqd-banner__text > .tqd-banner__btns { margin: 0; }


/* ── DD-B17 · 45 · steps in a part folded away ───────────────────────────
   <div class="tqd-fold__body"><ol class="tqd-steps tqd-steps--v
   tqd-steps--say">…</ol></div>
   Steps one under the other, in a part folded away (Web address: the
   founder's steps in Azure, steps that are sentences), start a little
   under its line.                                                         */
.tqd-fold__body > .tqd-steps--v { padding-block-start: var(--tq-sp-4); }



/* =========================================================================
   DASH DESIGN PASS · DD-B18 (2026-10-31)
   What Quotes needed, each drawn until now by a page of its own (Quotes,
   and Sales, Invoices, Payments and Customers the same way): a dialog's
   delete (14); a list's time, a sub line that says how it stands, the row
   open in the drawer and a table whose words wrap (20); a value not given,
   a value's line that warns and someone's words as they wrote them (25).
   Built from the kit's tokens; shown in torque-dash-kit.html, sections 11,
   16 and 17.
   ========================================================================= */


/* ── DD-B18 · 14 · a dialog's delete ─────────────────────────────────────
   <div class="tqd-modal__foot"><button class="tqd-btn tqd-btn--ghost
   tqd-btn--icon tqd-modal__del" aria-label="Delete this quote">…</button>
   <button class="tqd-btn">Mark lost</button>…</div>
   What cannot be undone stands apart from the ways on, at the foot's other
   end: a quiet icon, red as it is pointed at or focused. It asks first.   */
.tqd-modal__foot > .tqd-modal__del { margin-inline-end: auto; color: var(--tqd-ink-4); }
.tqd-modal__foot > .tqd-modal__del:hover,
.tqd-modal__foot > .tqd-modal__del:focus-visible { color: var(--tqd-bad); }


/* ── DD-B18 · 20 · a list's time, a sub line's tone, the open row ────────
   <td><span class="tqd-cell__text"><time class="tqd-cell__time">Oct 28,
   9:12 a.m.</time><span class="tqd-cell__sub is-warn">waiting 2 days</span>
   </span></td>
   A list's time reads a step quieter than its record and never breaks. A
   sub line says how something stands in its tone (.is-ok, .is-warn, .is-bad:
   a request that has waited a day), or one word of it does (a span with the
   tone in it: "225/65R17 · 2 on the rack, 2 short"). The row whose record
   is open in the drawer is lit as a ticked one and said as the current one
   (aria-current="true"). In a narrow place (a drawer) a table's words wrap
   instead of being cut (.tqd-table--wrap).                                */
.tqd-cell__time { color: var(--tqd-ink-3); white-space: nowrap; }
.tqd-cell__sub.is-ok, .tqd-cell__sub > .is-ok { color: var(--tqd-ok); }
.tqd-cell__sub.is-warn, .tqd-cell__sub > .is-warn { color: var(--tqd-warn); }
.tqd-cell__sub.is-bad, .tqd-cell__sub > .is-bad { color: var(--tqd-bad); }
.tqd-table tbody tr[aria-current="true"] > td { --tqd-row-bg: var(--tqd-row-sel); }
.tqd-table--wrap .tqd-cell__title,
.tqd-table--wrap .tqd-cell__sub { white-space: normal; }


/* ── DD-B18 · 25 · a value not given, a line that warns, words as written ─
   <dd><span class="is-muted">None given</span></dd>
   <dd><a class="tqd-link" href="mailto:…">ana@example.com</a><span
   class="tqd-dl__sub is-warn">Their copy of the quote did not go out.</span></dd>
   <p class="tqd-words">Winter tires only. I keep the rims.</p>
   A value nobody gave says so in the quiet ink, as a table's does. A
   value's line (DD-B16) that warns takes the warning's tone. Someone's words
   (a customer's note, why a quote was lost) keep their lines as they were
   typed and break a long word rather than leave their place; as a record's
   value (dd.tqd-words) they take the value's ink and size.                */
.tqd-dl .is-muted, .tqd-words .is-muted { color: var(--tqd-ink-5); }
.tqd-dl__sub.is-warn { color: var(--tqd-warn); }
.tqd-words { margin: 0; color: var(--tqd-ink-3); font: 400 14px/21px var(--tq-font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }


/* =========================================================================
   DASH DESIGN PASS · DD-B19 (2026-10-31)
   What the Transfers page needed, built from the kit's own tokens; shown in
   sections 16 and 03 of torque-dash-kit.html.
   ========================================================================= */

/* ── DD-B19 · 20 · a table in a card, a row's own button, a cell's few things ─
   <section class="tqd-panel">…<div class="tqd-datatable tqd-datatable--flow">
   <div class="tqd-table-wrap tqd-table-wrap--card"><table class="tqd-table
   tqd-table--stack tqd-table--wrap">…<th class="tqd-th-act">…
   <td class="tqd-td-act"><button class="tqd-btn tqd-btn--sm">…</button></td>
   <td data-label="Tires"><div class="tqd-cell__text"><ul class="tqd-cell__lines">
   <li><span class="tqd-cell__n">4 &times;</span> Sonix Winter Pro <span
   class="tqd-cell__meta">225/65R17</span></li></ul><p class="tqd-words
   tqd-words--sm">For Saturday's bookings</p></div></td>
   A table in a card leaves its own edge off: the card is its frame (every
   page that sets a list in its card). A row's own button, always shown
   (not the row's menu, which waits to be pointed at): at the row's end, its
   column as narrow as the button (th.tqd-th-act, the head's cell); on a
   phone's card, under the row's words.
   A cell's few things, one a line: how many and what, in the title's ink;
   what tells it apart (a size, how many came) quiet and small, never
   broken but on a phone.
   Someone's words under them at the list's size; the two together as the
   cell's text, so a phone's card keeps them under each other.             */
.tqd-table-wrap--card { border: 0; border-radius: 0; }
.tqd-table .tqd-th-act { inline-size: 1%; }
.tqd-table .tqd-td-act { text-align: end; white-space: nowrap; }
.tqd-cell__lines { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; color: var(--tqd-ink-1); }
.tqd-cell__n { font-weight: 700; }
.tqd-cell__meta { color: var(--tqd-ink-4); font-size: var(--tqd-fs-sm); white-space: nowrap; }
.tqd-words--sm { font-size: var(--tqd-fs-sm); line-height: 20px; }
.tqd-cell__lines + .tqd-words { margin-block-start: 4px; }
@media (max-width: 560px) {
  .tqd-table--stack td.tqd-td-act { padding-block-start: 6px; white-space: normal; }
  .tqd-cell__meta { white-space: normal; }
}


/* ── DD-B19 · 04 · a search's results to pick, in the form; the lines picked, each with how many ─
   <div class="tqd-lb tqd-lb--inline" aria-live="polite"><div class="tqd-lb__list">
   <button type="button" class="tqd-opt"><span class="tqd-opt__main"><span
   class="tqd-opt__label">Sonix Winter Pro</span><span class="tqd-opt__desc">
   225/65R17 · 6 on the rack</span></span><span class="tqd-opt__go"><svg
   class="tqd-i">…plus…</svg>Add</span></button></div></div>
   <ul class="tqd-lines"><li class="tqd-line"><span class="tqd-line__main">
   <span class="tqd-line__title">Sonix Winter Pro</span><span
   class="tqd-line__sub">225/65R17 · 6 on the rack</span></span><div
   class="tqd-control tqd-line__num"><input type="text" data-tqd-number …>
   <span class="tqd-affix">tires</span></div><button class="tqd-btn
   tqd-btn--ghost tqd-btn--icon tqd-btn--sm" aria-label="Take … off">…trash…
   </button></li></ul>
   A search's results sit in the form, under the search, in the kit's list
   (not a layer): each one the kit's option as a button (tq.base.css draws a
   button bare: it only spans its list, its words from its start), lit as it is
   pointed at or reached, with its way at its end in the accent's ink; one
   already taken is off (aria-disabled), its way saying so (…check… In the
   list). Nothing found: p.tqd-lb__empty in the list. What was picked is a
   line each: its words, its number box and the way to take it off; under
   560px the box goes under the words.                                     */
.tqd-lb--inline { display: flex; flex-direction: column; border: 1px solid var(--tqd-line-2); border-radius: var(--tqd-r-field); font: 500 14px/20px var(--tq-font-sans); letter-spacing: -.003em; }
.tqd-lb--inline button.tqd-opt { inline-size: 100%; text-align: start; }
.tqd-lb--inline .tqd-opt:not([aria-disabled="true"]):hover,
.tqd-lb--inline .tqd-opt:focus-visible { background: var(--tqd-fill-3); color: var(--tqd-ink-1); }
.tqd-opt__go { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--tqd-acc-ink); font-size: var(--tqd-fs-sm); font-weight: 600; white-space: nowrap; }
.tqd-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.tqd-line { display: flex; align-items: center; gap: 8px; padding-block: 6px; border-block-end: 1px solid var(--tqd-line-1); }
.tqd-line:last-child { border-block-end: 0; }
.tqd-line__main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-inline-size: 0; }
.tqd-line__title { color: var(--tqd-ink-1); font-weight: 600; overflow-wrap: anywhere; }
.tqd-line__sub { color: var(--tqd-ink-4); font-size: var(--tqd-fs-sm); }
.tqd-line__num { flex: none; inline-size: 156px; }
@media (max-width: 560px) {
  .tqd-line { flex-wrap: wrap; }
  .tqd-line__num { inline-size: 100%; }
}


/* =========================================================================
   DASH DESIGN PASS · DD-B20 (2026-10-31)
   What the Stock movements page needed, built from the kit's own tokens;
   shown in sections 16 and 21 of torque-dash-kit.html.
   ========================================================================= */

/* ── DD-B20 · 20 · a title that filters, its badge, a change, who; a card's figure at its end ─
   <td class="tqd-td-main"><span class="tqd-cell__text"><span class="tqd-cell__head">
   <button type="button" class="tqd-cell__title">Sonix Ice Grip</button><span
   class="tqd-badge tqd-badge--sm tqd-badge--muted">Deleted</span></span><span
   class="tqd-cell__sub">195/65R15</span><span class="tqd-cell__sub
   tqd-col--narrow">Counted · Tirqo support<span class="tqd-col--card"> ·
   Oct 27, 9:10 AM</span></span></span></td>
   <td class="is-num tqd-td-end" data-label="Change"><span class="tqd-cell__change
   is-out">−2</span></td>
   <td data-label="By"><span class="tqd-trunc tqd-cell__who is-key">You</span></td>
   <td class="tqd-col--table" data-label="When"><span class="tqd-cell__text"><time
   class="tqd-cell__time" datetime="…">Oct 27, 9:10 AM</time></span></td>
   A record's title that shows only its own lines is a button drawn as the
   title, lit as a title's link is when pointed at or reached. What it
   carries (a badge) sits beside it, under it when narrow. A change in a
   count says which way by its sign: one that adds in the title's ink, one
   that takes away a step quieter, bold, never broken. Who did it, in the
   cell's ink; the reader themselves, or Tirqo support acting in the shop,
   in the title's. On a phone's card the change sits at the end of its
   first line, level with the title; a cell or a part of one is said only
   on a phone's card (.tqd-col--card) or only in the table (.tqd-col--table). */
button.tqd-cell__title { border-radius: 4px; text-align: start; }
button.tqd-cell__title:hover { color: var(--tqd-acc-ink); }
button.tqd-cell__title:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tqd-acc-ink); }
.tqd-cell__head { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-inline-size: 0; }
.tqd-cell__change { color: var(--tqd-ink-1); font-weight: 600; white-space: nowrap; }
.tqd-cell__change.is-out { color: var(--tqd-ink-2); }
.tqd-cell__who.is-key { color: var(--tqd-ink-1); font-weight: 600; }
.tqd-col--card { display: none; }
@media (max-width: 560px) {
  .tqd-table--stack td.tqd-td-end { grid-column: 3; grid-row: 1; align-self: start; padding: 0; }
  .tqd-table--stack td.tqd-col--table { display: none; }
  .tqd-table--stack .tqd-col--card { display: inline; }
}


/* ── DD-B20 · 21 · a line under the filter bar ────────────────────────────
   <p class="tqd-filterbar__note">The search read the newest 5,000 changes of
   the period. Pick fewer days to search the rest.</p>
   What the list holds, said under its filter bar when it is not all of it:
   quiet and small (Stock movements: a search that read only the newest).  */
.tqd-filterbar__note { margin: 0; color: var(--tqd-ink-4); font: 500 12.5px/18px var(--tq-font-sans); }


/* ── DD-B20 · 32 · parts of a whole in a chart's cell; numbers that dim while they load ─
   <div class="tqd-chart tqd-chart--tall"><div class="tqd-chart__head">…</div>
   <div class="tqd-chart__shares"><ul class="tqd-shares">…</ul></div><ul
   class="tqd-chart__legend">…</ul></div>
   <section class="tqd-loads">…the KPI strip…</section>
   The kit's parts of a whole (37) where a chart's drawing would be: as tall
   as a drawing at least, so two cells side by side keep their legends
   level; while it loads, a skeleton the drawing's height; nothing to show,
   the kit's empty line. While new numbers load, the ones there stay,
   dimmed (is-loading on the part, or on the page's root).                 */
.tqd-chart__shares { flex-grow: 1; min-block-size: var(--tqd-chart-h); }
.tqd-chart__shares > .tqd-skel { block-size: var(--tqd-chart-h); margin-block-start: 12px; border-radius: var(--tqd-r-opt); }
.tqd-chart__shares .tqd-share__name .tqd-trunc { --tqd-trunc: 100%; min-inline-size: 0; }
.tqd-chart__shares > .tqd-empty--line { margin-block-start: 12px; padding-inline: 0; }
.tqd-loads { transition: opacity var(--tq-d-base) var(--tq-ease); }
.is-loading .tqd-loads, .tqd-loads.is-loading { opacity: .55; }


/* =========================================================================
   DASH DESIGN PASS · DD-B21 (2026-10-31)
   What Stock counts needed, built from the kit's own tokens; shown in
   sections 03 and 16 of torque-dash-kit.html.
   ========================================================================= */

/* ── DD-B21 · 25 · someone's words with the note's mark ──────────────────
   <p class="tqd-words tqd-words--sm tqd-words--note"><svg class="tqd-i">…
   pencil-square…</svg>Month-end count: racks 1 to 4 and the back room</p>
   A record's note as whoever wrote it typed it (a count's note): the note's
   mark quiet before it, its words wrapping beside the mark. Right under a
   card's head it is a band of its own, as wide as the head's words, a line
   under it (a done count read); in a card's body it is one of its parts
   (the open count).                                                       */
.tqd-words--note { display: flex; gap: 8px; }
.tqd-words--note > .tqd-i { margin-block-start: 2px; color: var(--tqd-ink-5); }
.tqd-panel > .tqd-words--note { padding: var(--tq-sp-4) var(--tq-sp-7); border-block-end: 1px solid var(--tqd-line-1); }
@media (max-width: 639.98px) {
  .tqd-panel > .tqd-words--note { padding-inline: var(--tq-sp-6); }
}


/* ── DD-B21 · 04 · a line done, a line not kept ───────────────────────────
   <li class="tqd-line is-done">…<span class="tqd-line__sub">Counted 6 by
   You, 2:40 PM</span>…</li>
   <span class="tqd-line__sub is-bad">Not kept: no connection.</span>
   A line whose work is done steps back, its title a step quieter (a tire
   counted). A line's own line says it in the bad tone when what was typed
   in it was not kept.                                                     */
.tqd-line.is-done .tqd-line__title { color: var(--tqd-ink-2); }
.tqd-line__sub.is-bad { color: var(--tqd-bad); }


/* ── DD-B21 · 20 · a row with a problem ──────────────────────────────────
   <tr class="is-bad">…</tr>
   The row a refusal names (a count's finish stopped on its tire): its
   first cell's edge in the bad tone; on a phone, its card's edge.         */
.tqd-table tbody tr.is-bad > td:first-child { box-shadow: inset 3px 0 0 var(--tqd-bad); }
@media (max-width: 560px) {
  .tqd-table--stack tbody tr.is-bad { box-shadow: inset 3px 0 0 var(--tqd-bad); }
  .tqd-table--stack tbody tr.is-bad > td:first-child { box-shadow: none; }
}
