/* pansophiq_look shared components (contract v1.43.0, shared look v12; portfolio polish).
 *
 * One stylesheet every PansophIQ application screen loads after its look sheet
 * (/look/<v>/<etag>.css). Every value is a --pq-* role or a size; no colour,
 * brand or string lives here, so a tenant's Studio look restyles all of it.
 * Scope: elements inside .pq-ui (a product adds the class to <body> or to the
 * root of the region it has moved over).
 *
 * Rows: aria-current marks the current row; class is-pending a queued one.
 * Rules carried (owner, 2026-11-06): ink (--pq-solid) for primary buttons, done
 * states, gauges and marks; the select colour only for live and needs-you;
 * caution in secondary ink; control borders at 3:1; type 11/12/14/24/26; swatch
 * legends; bars from a zero baseline; a pending row state; 44px targets on
 * coarse pointers; no sideways scroll (tables stack as cards below 720px of
 * their own width); every column sorts.
 */

/* Focus: one 2px ring in ink, on every focusable thing. */
.pq-ui :focus-visible { outline: 2px solid var(--pq-solid); outline-offset: 2px; }

/* Type: label 11, meta 12, body and figures 14, title 24, KPI 26. */
.pq-ui .pq-label { font-size: var(--pq-fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pq-ink2); }
.pq-ui .pq-meta { font-size: var(--pq-fs-meta); color: var(--pq-ink2); }
.pq-ui .pq-title { margin: 0; font-size: var(--pq-fs-title); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.pq-ui .pq-kpi { font-size: var(--pq-fs-kpi); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pq-ui .pq-figure { font-size: var(--pq-fs-body); font-variant-numeric: tabular-nums; }

/* Long values wrap; nothing pushes the page sideways. */
.pq-ui td, .pq-ui dd, .pq-ui .pq-wrap { overflow-wrap: anywhere; }

/* Buttons: one primary per view, filled with ink. */
.pq-ui .pq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--pq-field); border-radius: var(--pq-radius-sm); background: var(--pq-surface); color: var(--pq-ink);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.pq-ui .pq-btn:hover { border-color: var(--pq-ink2); }
.pq-ui .pq-btn--primary { background: var(--pq-solid); border-color: var(--pq-solid); color: var(--pq-solid-ink); }
.pq-ui .pq-btn--primary:hover { background: var(--pq-solid-strong); border-color: var(--pq-solid-strong); color: var(--pq-solid-ink);
  box-shadow: inset 0 0 0 1px var(--pq-solid-ink); }
.pq-ui .pq-btn[disabled], .pq-ui .pq-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Fields: a border that can be seen (3:1), ink when focused. */
.pq-ui .pq-field, .pq-ui input.pq-field, .pq-ui select.pq-field, .pq-ui textarea.pq-field {
  min-height: 34px; box-sizing: border-box; padding: 6px 10px; border: 1px solid var(--pq-field); border-radius: var(--pq-radius-sm);
  background: var(--pq-surface); color: var(--pq-ink); font: inherit; }
.pq-ui .pq-field:focus, .pq-ui .pq-field:focus-within { border-color: var(--pq-solid); box-shadow: 0 0 0 1px var(--pq-solid);
  outline: 2px solid transparent; /* shows in forced colours, where box-shadow is dropped */ }

/* State chips. Live and needs-you take the select colour; nothing else does. */
.pq-ui .pq-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--pq-radius-pill); border: 1px solid var(--pq-field);
  background: var(--pq-surface); color: var(--pq-ink2); font-size: var(--pq-fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pq-ui .pq-chip--live, .pq-ui .pq-chip--needs { color: var(--pq-sel); border-color: var(--pq-sel); background: var(--pq-sel-tint); }
.pq-ui .pq-chip--done { color: var(--pq-solid-ink); border-color: var(--pq-solid); background: var(--pq-solid); }
.pq-ui .pq-chip--caution { color: var(--pq-caution); border-color: var(--pq-caution); background: var(--pq-caution-bg); }

/* Tabs wrap onto a second line rather than scroll. */
.pq-ui .pq-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--pq-grid); overflow: visible; }
.pq-ui .pq-tabs a, .pq-ui .pq-tabs button { padding: 8px 12px; color: var(--pq-ink2); text-decoration: none; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; background: none; font: inherit; cursor: pointer; }
.pq-ui .pq-tabs [aria-current] { color: var(--pq-ink); border-bottom-color: var(--pq-solid); font-weight: 600; }

/* Navigation (.pq-nav, markup from pansophiq_look.navigation.render): grouped
   links, native <details> groups, one "Menu" disclosure on a phone. Without the
   script the whole list simply shows. Nothing scrolls sideways at any width. */
.pq-ui .pq-nav { display: block; }
.pq-ui .pq-nav__toggle { display: none; width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--pq-field); border-radius: var(--pq-radius-sm);
  background: var(--pq-surface); color: var(--pq-ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.pq-ui .pq-nav__toggle::after { content: "\25BE" / ""; float: right; }
.pq-ui .pq-nav__toggle[aria-expanded="true"]::after { content: "\25B4" / ""; }
.pq-ui .pq-nav__group { margin: 0 0 4px; }
.pq-ui .pq-nav__group > summary { padding: 8px 12px; cursor: pointer; font-size: var(--pq-fs-label); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--pq-ink2); }
.pq-ui .pq-nav ul { list-style: none; margin: 0; padding: 0; }
.pq-ui .pq-nav li a { display: block; min-height: 32px; padding: 6px 12px; border-left: 3px solid transparent; color: var(--pq-ink2); text-decoration: none;
  overflow-wrap: anywhere; }
.pq-ui .pq-nav li a:hover { color: var(--pq-ink); background: var(--pq-surface-muted); }
.pq-ui .pq-nav li a[aria-current] { color: var(--pq-ink); font-weight: 600; background: var(--pq-sel-tint); border-left-color: var(--pq-solid); }
@media (max-width: 720px) {
  .pq-ui .pq-nav[data-pq-ready] .pq-nav__toggle { display: block; }
  .pq-ui .pq-nav[data-pq-ready] .pq-nav__panel { display: none; margin-top: 4px; border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-sm); background: var(--pq-surface); }
  .pq-ui .pq-nav[data-pq-ready] .pq-nav__toggle[aria-expanded="true"] + .pq-nav__panel { display: block; }
  .pq-ui .pq-nav li a, .pq-ui .pq-nav__group > summary { min-height: 44px; display: flex; align-items: center; }
}
/* .pq-nav--menu keeps the list behind the Menu button at every width: for a nav placed
   in a top bar whose product picks its own switch point. */
.pq-ui .pq-nav--menu[data-pq-ready] .pq-nav__toggle { display: block; }
.pq-ui .pq-nav--menu[data-pq-ready] .pq-nav__panel { display: none; margin-top: 4px; border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-sm); background: var(--pq-surface); }
.pq-ui .pq-nav--menu[data-pq-ready] .pq-nav__toggle[aria-expanded="true"] + .pq-nav__panel { display: block; }
.pq-ui .pq-nav--menu li a, .pq-ui .pq-nav--menu .pq-nav__group > summary { min-height: 44px; display: flex; align-items: center; }

/* Legends: a swatch beside every colour a chart uses. Set the colour with
   style="--pq-swatch: var(--pq-c1)" (a role, never a literal). */
.pq-ui .pq-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--pq-fs-meta); color: var(--pq-ink2); }
.pq-ui .pq-legend > * { display: inline-flex; align-items: center; gap: 6px; }
.pq-ui .pq-swatch { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--pq-swatch, var(--pq-solid)); }

/* Bars start at zero: the baseline is drawn, bars grow up from it. */
.pq-ui .pq-bars { display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--pq-grid-strong); }
.pq-ui .pq-bars > * { flex: 1; min-width: 0; }
.pq-ui .pq-bars .pq-bar { display: block; background: var(--pq-swatch, var(--pq-solid)); border-radius: 3px 3px 0 0; }

/* Tables. The wrapper is a size container, never a scroller. */
.pq-ui .pq-table-wrap { overflow: visible; container-type: inline-size; }
.pq-ui .pq-table { width: 100%; border-collapse: collapse; }
.pq-ui .pq-table th { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--pq-grid); font-size: var(--pq-fs-label); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--pq-ink2); }
.pq-ui .pq-table td { padding: 11px 14px; border-bottom: 1px solid var(--pq-grid); vertical-align: top; }
.pq-ui .pq-table tbody tr:last-child td { border-bottom: 0; }
.pq-ui .pq-table th.num, .pq-ui .pq-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pq-ui .pq-table tbody tr:hover td { background: var(--pq-surface-muted); }
/* The current row: a tint and an ink rule, so it is not told by colour alone. */
.pq-ui .pq-table tr[aria-current] td { background: var(--pq-sel-tint); }
.pq-ui .pq-table tr[aria-current] td:first-child { box-shadow: inset 3px 0 0 var(--pq-solid); }
/* A pending row: queued, not yet started. Secondary ink, italic, a grey rule
   (not colour alone); components.js adds the spoken state from data-pending-label. */
.pq-ui .pq-table tr.is-pending td { color: var(--pq-ink2); background: var(--pq-surface-muted); font-style: italic; }
.pq-ui .pq-table tr.is-pending td:first-child { box-shadow: inset 3px 0 0 var(--pq-grid-strong); }
.pq-ui .pq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Every column sorts: the header holds a button; aria-sort says the order. */
.pq-ui .pq-table th button.pq-sort { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; letter-spacing: inherit;
  text-transform: inherit; color: inherit; border-radius: var(--pq-radius-sm); padding: 2px 0; min-height: 24px; }
.pq-ui .pq-table th button.pq-sort:hover { color: var(--pq-ink); }
.pq-ui .pq-table th button.pq-sort:focus-visible { outline: 2px solid var(--pq-solid); outline-offset: 2px; }
.pq-ui .pq-table th button.pq-sort::after { content: "\2195" / ""; font-size: 10px; opacity: .7; }
.pq-ui .pq-table th[aria-sort="ascending"] button.pq-sort::after { content: "\2191" / ""; opacity: 1; }
.pq-ui .pq-table th[aria-sort="descending"] button.pq-sort::after { content: "\2193" / ""; opacity: 1; }
.pq-ui .pq-table th[aria-sort="ascending"], .pq-ui .pq-table th[aria-sort="descending"] { color: var(--pq-ink); }
.pq-ui .pq-table th.num button.pq-sort { flex-direction: row-reverse; }

/* Narrow (the table's own width under 720px): rows become cards, each cell
   labelled from its header (data-label), and the header row becomes a sort bar. */
@container (max-width: 720px) {
  .pq-ui .pq-table, .pq-ui .pq-table tbody, .pq-ui .pq-table tr { display: block; width: auto; }
  .pq-ui .pq-table thead { display: block; border-bottom: 1px solid var(--pq-grid); }
  .pq-ui .pq-table thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 14px; }
  .pq-ui .pq-table thead tr::before { content: attr(data-sort-label); font-size: var(--pq-fs-label); font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--pq-ink2); }
  .pq-ui .pq-table thead th { display: block; position: static; padding: 0; border: 0; text-align: left; background: none; }
  .pq-ui .pq-table thead th:not([aria-sort]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pq-ui .pq-table tbody tr { padding: 10px 14px; border-bottom: 1px solid var(--pq-grid); }
  .pq-ui .pq-table tbody tr:last-child { border-bottom: 0; }
  .pq-ui .pq-table tbody tr:hover, .pq-ui .pq-table tr.is-pending { background: var(--pq-surface-muted); }
  .pq-ui .pq-table tr[aria-current] { background: var(--pq-sel-tint); box-shadow: inset 3px 0 0 var(--pq-solid); }
  .pq-ui .pq-table tr.is-pending { box-shadow: inset 3px 0 0 var(--pq-grid-strong); }
  .pq-ui .pq-table tbody tr:hover td, .pq-ui .pq-table tr.is-pending td, .pq-ui .pq-table tr[aria-current] td { background: transparent; box-shadow: none; }
  .pq-ui .pq-table td [data-pq-full]:focus-visible::after { left: auto; right: 0; }
  .pq-ui .pq-table td, .pq-ui .pq-table td.num { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .pq-ui .pq-table td::before { content: attr(data-label); flex: none; max-width: 45%; font-size: var(--pq-fs-label); font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--pq-ink2); text-align: left; }
  .pq-ui .pq-table td:first-child { padding: 0 0 6px; text-align: left; font-size: var(--pq-fs-body); }
  .pq-ui .pq-table td:first-child::before { content: none; }
}

/* Numbers: tabular figures everywhere a figure sits; numeric columns right-aligned
   with the unit in the header ("Cost (USD)"), formatted by components.js. */
.pq-ui [data-pq-number], .pq-ui [data-pq-money], .pq-ui time.pq-time, .pq-ui .num { font-variant-numeric: tabular-nums; }

/* Status marks: an icon and a word, never colour alone. components.js sets
   data-state from the outcome against its expectation. Default (data-pq-marks
   "green"): every completed step good; "tested": good only where a test
   verified it (data-tested), other completed steps ink; "shape": everything
   ink, told apart by the icon. A failure is bad; live and needs-you stay the
   select colour. */
.pq-ui .pq-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; color: var(--pq-ink2); }
.pq-ui .pq-icon { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pq-ui .pq-icon--live circle, .pq-ui .pq-icon--needs circle { fill: currentColor; stroke: none; }
.pq-ui .pq-icon--pending circle { stroke-dasharray: 2 2; }
.pq-ui .pq-mark[data-state="ok"] { color: var(--pq-good); }
.pq-ui .pq-mark[data-state="bad"] { color: var(--pq-bad); }
/* Live and needs-you: the claret icon (non-text, 3:1 in every look), the word in ink
   (the select colour falls under 4.5:1 as text in some looks). */
.pq-ui .pq-mark[data-state="live"], .pq-ui .pq-mark[data-state="needs"] { color: var(--pq-ink); }
.pq-ui .pq-mark[data-state="live"] .pq-icon, .pq-ui .pq-mark[data-state="needs"] .pq-icon { color: var(--pq-sel); }
.pq-ui[data-pq-marks="shape"] .pq-mark[data-state] .pq-icon { color: inherit; }
.pq-ui[data-pq-marks="tested"] .pq-mark[data-state="ok"]:not([data-tested]) { color: var(--pq-solid); }
.pq-ui[data-pq-marks="shape"] .pq-mark[data-state] { color: var(--pq-ink); }
.pq-ui .pq-chip.pq-mark[data-state="ok"], .pq-ui .pq-chip.pq-mark[data-state="bad"] { border-color: currentColor; }
.pq-ui .pq-chip.pq-mark[data-state="live"], .pq-ui .pq-chip.pq-mark[data-state="needs"] { border-color: var(--pq-sel); background: var(--pq-sel-tint); }
.pq-ui[data-pq-marks="tested"] .pq-chip.pq-mark[data-state="ok"]:not([data-tested]),
.pq-ui[data-pq-marks="shape"] .pq-chip.pq-mark[data-state] { border-color: var(--pq-field); background: var(--pq-surface); }

/* Who or what did an action, and how it was verified. */
.pq-ui .pq-attrib { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--pq-fs-meta); color: var(--pq-ink2); }
.pq-ui .pq-attrib > * + *::before { content: "\00B7" / ""; margin-right: 8px; }

/* Freshness line and times: the full date on hover and keyboard focus. */
.pq-ui [data-pq-updated] { font-size: var(--pq-fs-meta); color: var(--pq-ink2); }
.pq-ui [data-pq-full] { text-decoration: underline dotted var(--pq-grid-strong); text-underline-offset: 3px; cursor: help; }
/* The title shows on hover; keyboard focus gets the same text as a visible tip
   (WCAG 1.4.13), anchored to the end a numeric column is aligned to. */
.pq-ui [data-pq-full]:not(.pq-truncate) { position: relative; }
.pq-ui [data-pq-full]:not(.pq-truncate):focus-visible::after { content: attr(data-pq-full); position: absolute; left: 0; top: calc(100% + 4px); z-index: 30;
  width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 6px 10px; border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-sm);
  background: var(--pq-surface); color: var(--pq-ink); box-shadow: var(--pq-shadow-md); font-size: var(--pq-fs-meta); font-weight: 400;
  white-space: normal; text-align: left; text-decoration: none; }
.pq-ui .num [data-pq-full]:focus-visible::after { left: auto; right: 0; }
/* Rows the filter hides stay hidden in the stacked (display: block) layout too. */
.pq-ui [hidden] { display: none !important; }
.pq-ui .pq-truncate { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; text-decoration: none; }
.pq-ui .pq-truncate:hover, .pq-ui .pq-truncate:focus { overflow: visible; white-space: normal; overflow-wrap: anywhere; }

/* Copy buttons beside IDs and SHAs. */
.pq-ui [data-pq-copy] { display: inline-flex; align-items: center; gap: 2px; font-family: var(--pq-font-mono); }
.pq-ui .pq-copy { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0; border: 0;
  border-radius: var(--pq-radius-sm); background: none; color: var(--pq-ink2); cursor: pointer; }
.pq-ui .pq-copy:hover { color: var(--pq-ink); background: var(--pq-surface-muted); }

/* Table tools: filter, "Showing N of M", export, all above the table. */
.pq-ui .pq-table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.pq-ui .pq-table-tools .pq-field { flex: 1 1 200px; max-width: 320px; }
.pq-ui .pq-table-tools [data-pq-count-for] { font-size: var(--pq-fs-meta); color: var(--pq-ink2); }
.pq-ui .pq-table-tools [data-pq-export-for] { margin-left: auto; }
.pq-ui .pq-no-match { margin: 0; padding: 16px 14px; color: var(--pq-ink2); }
/* Sticky headers while the table is wide enough to be a table. */
.pq-ui .pq-table thead th { position: sticky; top: var(--pq-sticky-top, 0); z-index: 1; background: var(--pq-surface); }

/* Menus (export): a disclosure opened by click or keyboard, not by hover. */
.pq-ui .pq-menu { position: relative; display: inline-block; }
.pq-ui .pq-menu > summary { list-style: none; }
.pq-ui .pq-menu > summary::-webkit-details-marker { display: none; }
.pq-ui .pq-menu > summary::after { content: "\25BE" / ""; font-size: 10px; }
.pq-ui .pq-menu-list { position: absolute; right: 0; z-index: 20; min-width: 200px; margin-top: 4px; padding: 4px; display: grid;
  border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-md); background: var(--pq-surface); box-shadow: var(--pq-shadow-md); }
.pq-ui .pq-menu-item { all: unset; box-sizing: border-box; padding: 8px 10px; min-height: 34px; border-radius: var(--pq-radius-sm); color: var(--pq-ink); cursor: pointer; }
.pq-ui .pq-menu-item:hover, .pq-ui .pq-menu-item:focus-visible { background: var(--pq-surface-muted); }
.pq-ui .pq-menu-item:focus-visible { outline: 2px solid var(--pq-solid); outline-offset: -2px; }

/* Jargon: a dotted term that is a real button, and a tip with a help link. */
.pq-ui button.pq-term { all: unset; cursor: help; border-bottom: 1px dotted var(--pq-ink2); }
.pq-ui button.pq-term:focus-visible { outline: 2px solid var(--pq-solid); outline-offset: 2px; }
.pq-ui .pq-tip { position: absolute; z-index: 30; max-width: min(320px, calc(100vw - 32px)); margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-md); background: var(--pq-surface); color: var(--pq-ink);
  box-shadow: var(--pq-shadow-md); font-size: var(--pq-fs-meta); font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; }
.pq-ui .pq-tip a { color: var(--pq-ink); font-weight: 600; }

/* Toasts: bottom of the viewport, with an undo for reversible actions. */
.pq-ui .pq-toasts { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.pq-ui .pq-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 8px 8px 8px 14px;
  border-radius: var(--pq-radius-md); background: var(--pq-solid); color: var(--pq-solid-ink); box-shadow: var(--pq-shadow-lg); }
.pq-ui .pq-toast-undo { min-height: 30px; border-color: var(--pq-solid-ink); background: transparent; color: var(--pq-solid-ink); font-weight: 600; }
.pq-ui .pq-toast-undo:hover { border-color: var(--pq-solid-ink); background: var(--pq-solid-strong); }
.pq-ui .pq-toast-close { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; border: 0; padding: 0;
  border-radius: var(--pq-radius-sm); background: none; color: var(--pq-solid-ink); cursor: pointer; }
.pq-ui .pq-toast :focus-visible { outline-color: var(--pq-solid-ink); }

/* View states: a designed empty, loading and error state for every view. */
.pq-ui .pq-state { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--pq-ink2); }
.pq-ui .pq-state > :first-child { margin: 0; font-size: var(--pq-fs-body); font-weight: 600; color: var(--pq-ink); }
.pq-ui .pq-state--error > :first-child { color: var(--pq-bad); }
.pq-ui .pq-skeleton { display: block; height: 12px; margin: 8px 0; border-radius: var(--pq-radius-sm);
  background: linear-gradient(90deg, var(--pq-surface-muted) 25%, var(--pq-grid) 50%, var(--pq-surface-muted) 75%) 0 0 / 200% 100%;
  animation: pq-shimmer 1.4s linear infinite; }
.pq-ui .pq-skeleton--short { width: 40%; }
@keyframes pq-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pq-ui .pq-skeleton { animation: none; } }

/* Portfolio polish (v1.43.0; shared look canvases v16 to v18, owner 2026-11-07):
   what one product learned, every product wears. */

/* Button rows centre their children, so a 28px control sits level with a 34px button. */
.pq-ui .pq-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pq-ui .pq-btns > * { min-width: 0; }
/* Segmented controls (density, view): one group of 28px buttons; the pressed one in ink. */
.pq-ui .pq-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--pq-field); border-radius: var(--pq-radius-sm); background: var(--pq-surface); }
.pq-ui .pq-seg button { height: 28px; padding: 0 10px; border: 0; border-radius: var(--pq-radius-sm); background: none; color: var(--pq-ink2); font: inherit;
  font-size: var(--pq-fs-meta); font-weight: 500; white-space: nowrap; cursor: pointer; }
.pq-ui .pq-seg button[aria-pressed="true"] { background: var(--pq-solid); color: var(--pq-solid-ink); }
.pq-ui .pq-seg button:focus-visible { outline-color: var(--pq-solid); }

/* Progress steps: never the segmented-control class. Done in ink, live in the select colour. */
.pq-ui .pq-steps { display: flex; gap: 3px; }
.pq-ui .pq-steps > i { flex: 1; height: 4px; border-radius: 2px; background: var(--pq-grid); }
.pq-ui .pq-steps > i.is-done { background: var(--pq-solid); }
.pq-ui .pq-steps > i.is-live { background: var(--pq-sel); }

/* Figure panels: cells wrap at about 96px; labels and figures never break mid-word;
   a hairline (box-shadow, so wrapped rows stay ruled) divides the cells. */
.pq-ui .pq-panel { display: flex; flex-wrap: wrap; margin: 0; overflow: hidden; border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-md); background: var(--pq-surface); }
.pq-ui .pq-panel > div { flex: 1 1 96px; min-width: 0; padding: 10px 14px; box-shadow: -1px 0 0 var(--pq-grid), 0 -1px 0 var(--pq-grid); }
.pq-ui .pq-panel dt { margin: 0; white-space: nowrap; font-size: var(--pq-fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pq-ink2); }
.pq-ui .pq-panel dd { margin: 2px 0 0; white-space: nowrap; overflow-wrap: normal; font-size: var(--pq-fs-body); font-variant-numeric: tabular-nums; color: var(--pq-ink); }
.pq-ui .pq-panel--wide > div:first-child { flex: 1.7 1 150px; }
.pq-ui .pq-panel--wide dd { white-space: normal; overflow-wrap: anywhere; }

/* A setting in a narrow pane is a select: 30px, a visible border, the ink ring. */
.pq-ui select.pq-setting, .pq-ui select[data-pq-setting] { height: 30px; max-width: 100%; padding: 0 8px; box-sizing: border-box; border: 1px solid var(--pq-field);
  border-radius: var(--pq-radius-sm); background: var(--pq-surface); color: var(--pq-ink); font: inherit; font-size: var(--pq-fs-meta); }
.pq-ui select.pq-setting:focus-visible, .pq-ui select[data-pq-setting]:focus-visible { outline: 2px solid var(--pq-solid); outline-offset: 2px; }

/* Chips: the line box is the font's own; an ID chip keeps its real case, in mono. */
.pq-ui .pq-chip { line-height: normal; }
.pq-ui .pq-chip--id { font-family: var(--pq-font-mono); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Section headers: title left, a hint right in normal case, 12px apart. */
.pq-ui .pq-sec { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pq-ui .pq-sec > * { min-width: 0; }
.pq-ui .pq-sec .pq-meta { letter-spacing: 0; text-transform: none; text-align: right; }

/* Eyebrow and breadcrumb links: a target larger than the text, the layout unmoved;
   a long crumb ends in an ellipsis rather than pushing the page sideways. */
.pq-ui .pq-eyebrow { display: flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.pq-ui .pq-eyebrow a { padding: 5px 5px 5px 0; margin: -5px -5px -5px 0; color: inherit; }
.pq-ui .pq-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-ui .pq-eyebrow .pq-copy { flex: none; }

/* A selected row in a phone list: an inset 3px mark in the select colour. */
.pq-ui .pq-list > [aria-current], .pq-ui .pq-list > .is-selected { box-shadow: inset 3px 0 0 var(--pq-sel); background: var(--pq-sel-tint); }

/* Top-bar icon buttons: 18px icons in a 34px target. */
.pq-ui .pq-iconbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0; border: 0;
  border-radius: var(--pq-radius-sm); background: none; color: var(--pq-ink2); cursor: pointer; }
.pq-ui .pq-iconbtn:hover { color: var(--pq-ink); background: var(--pq-surface-muted); }
.pq-ui .pq-iconbtn svg { width: 18px; height: 18px; flex: none; }

/* Tips stay inside a phone screen. */
.pq-ui .pq-tip { width: auto; min-width: min(200px, calc(100vw - 32px)); }

/* Sort buttons never wrap their label. */
.pq-ui .pq-table th button.pq-sort { white-space: nowrap; }

/* Overrun guard: media and controls never exceed their box; flex children may shrink. */
.pq-ui img, .pq-ui svg, .pq-ui video, .pq-ui canvas, .pq-ui select, .pq-ui input, .pq-ui textarea { max-width: 100%; }
.pq-ui .pq-field > *, .pq-ui .pq-table-tools > * { min-width: 0; }
.pq-ui code, .pq-ui .pq-mono { overflow-wrap: anywhere; }

/* Card mode: the sort bar on one 20px line box, its label set off by a hairline;
   a numeric column's sort button reads left to right like the others. */
@container (max-width: 720px) {
  .pq-ui .pq-table thead tr { align-items: center; min-height: 36px; }
  .pq-ui .pq-table thead tr::before { display: inline-flex; align-items: center; line-height: 20px; padding: 2px 6px 2px 0; margin-right: 4px;
    border-right: 1px solid var(--pq-grid); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: var(--pq-fs-meta); }
  .pq-ui .pq-table thead th { display: flex; align-items: center; line-height: 20px; }
  .pq-ui .pq-table thead th button.pq-sort { line-height: 20px; padding: 2px 0; }
  .pq-ui .pq-table th.num { text-align: left; }
  .pq-ui .pq-table th.num button.pq-sort { flex-direction: row; }
}

/* Page shell, forms and sign-in (batch A look rows). One markup for a page that
   stands alone (sign-in, landing, a viewing room, a queue): a head with the
   product name, a main, and a footer with the trust links, so no product ships
   a bare card or a document outside the shell. Forms: a label above its field
   with a gap, fields 40px tall, and the submit is always the one solid action. */
.pq-ui.pq-page, .pq-ui .pq-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--pq-canvas); color: var(--pq-ink); }
.pq-ui .pq-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; background: var(--pq-surface); border-bottom: 1px solid var(--pq-grid); }
.pq-ui .pq-page-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; color: var(--pq-ink); text-decoration: none; }
.pq-ui .pq-page-brand img { display: block; max-height: 28px; width: auto; }
.pq-ui .pq-page-main { flex: 1 1 auto; box-sizing: border-box; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 20px; }
.pq-ui .pq-page-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 16px 20px;
  border-top: 1px solid var(--pq-grid); background: var(--pq-surface); font-size: var(--pq-fs-meta); color: var(--pq-ink2); }
.pq-ui .pq-page-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pq-ui .pq-page-foot a { color: var(--pq-ink2); text-decoration: underline; text-underline-offset: 2px; }
.pq-ui .pq-page-foot a:hover { color: var(--pq-ink); }

/* Sign-in and landing: the card sits beside a short statement of what the
   product is for; below 720px they stack, statement first. */
.pq-ui .pq-auth { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px 40px; justify-content: center; padding: 24px 0; }
.pq-ui .pq-auth-about { flex: 1 1 280px; max-width: 460px; min-width: 0; align-self: center; }
.pq-ui .pq-auth-about h1 { margin: 0 0 8px; font-size: var(--pq-fs-title); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.pq-ui .pq-auth-about p { margin: 0 0 8px; color: var(--pq-ink2); }
.pq-ui .pq-auth-card { flex: 1 1 320px; max-width: 420px; min-width: 0; box-sizing: border-box; padding: 24px; background: var(--pq-surface);
  border: 1px solid var(--pq-grid); border-radius: var(--pq-radius-md); }
.pq-ui .pq-auth-card h2 { margin: 0 0 16px; font-size: var(--pq-fs-title); font-weight: 600; line-height: 1.25; }

.pq-ui .pq-form { display: grid; gap: 16px; }
.pq-ui .pq-form > label, .pq-ui .pq-form .pq-field-row { display: grid; gap: 6px; font-weight: 600; color: var(--pq-ink); }
.pq-ui .pq-form .pq-field-row > .pq-meta { font-weight: 400; }
.pq-ui .pq-form input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"])), .pq-ui .pq-form select, .pq-ui .pq-form textarea {
  width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--pq-field); border-radius: var(--pq-radius-sm);
  background: var(--pq-surface); color: var(--pq-ink); font: inherit; font-weight: 400; }
.pq-ui .pq-form textarea { min-height: 96px; }
.pq-ui .pq-form input:focus, .pq-ui .pq-form select:focus, .pq-ui .pq-form textarea:focus { border-color: var(--pq-solid); box-shadow: 0 0 0 1px var(--pq-solid);
  outline: 2px solid transparent; }
.pq-ui .pq-form input[aria-invalid="true"], .pq-ui .pq-form select[aria-invalid="true"], .pq-ui .pq-form textarea[aria-invalid="true"] { border-color: var(--pq-bad); }
/* A checkbox or radio keeps its box and its text on one row, in body weight. */
.pq-ui .pq-form label:has(> input[type="checkbox"]), .pq-ui .pq-form label:has(> input[type="radio"]) { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.pq-ui .pq-form input[type="checkbox"], .pq-ui .pq-form input[type="radio"] { flex: none; width: auto; margin: 3px 0 0; }
/* A field's error: the message sits under the field and the field names it with
   aria-describedby (and aria-invalid="true"); the word carries it, not colour alone. */
.pq-ui .pq-field-error { margin: 0; font-size: var(--pq-fs-meta); font-weight: 600; color: var(--pq-bad); }
.pq-ui .pq-form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-top: 8px; }
.pq-ui .pq-form-actions .pq-btn { min-height: 40px; padding: 0 18px; }
/* The submit is the one solid action, whatever class the product gave it; a
   secondary action is quiet (pq-btn--quiet) and never fills. */
.pq-ui .pq-form-actions .pq-btn[type="submit"], .pq-ui .pq-form-actions button[type="submit"] { background: var(--pq-solid); border-color: var(--pq-solid); color: var(--pq-solid-ink); }
.pq-ui .pq-form-actions .pq-btn[type="submit"]:hover, .pq-ui .pq-form-actions button[type="submit"]:hover { background: var(--pq-solid-strong); border-color: var(--pq-solid-strong); }
.pq-ui .pq-btn--quiet { background: transparent; border-color: transparent; color: var(--pq-ink2); }
.pq-ui .pq-btn--quiet:hover { color: var(--pq-ink); border-color: var(--pq-field); }

/* Overrun guard, v1.44 (owner, 2026-11-07: no container overruns, and the page stays
   polished when it gets tight). On by default for every .pq-ui screen. */
.pq-ui p, .pq-ui li, .pq-ui dd, .pq-ui td { overflow-wrap: anywhere; }
.pq-ui .pq-chip { white-space: nowrap; }
.pq-ui .pq-btns > *, .pq-ui .pq-card, .pq-ui .pq-panel > *, .pq-ui .pq-sec > * { min-width: 0; }
.pq-ui .pq-toast:empty { display: none !important; }
.pq-ui .pq-toast { max-width: min(560px, calc(100vw - 32px)); }
.pq-ui .pq-toast > span { min-width: 0; }
/* Skip link: one pixel and clipped (never parked off-screen) until it has focus. */
.pq-ui .pq-skip { position: absolute; left: 12px; top: 12px; z-index: 60; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pq-ui .pq-skip:focus { width: auto; height: auto; clip-path: none; padding: 8px 12px; border-radius: var(--pq-radius-sm);
  background: var(--pq-surface); color: var(--pq-ink); box-shadow: var(--pq-shadow-md); outline: 2px solid var(--pq-solid); outline-offset: 2px; }
/* Tables sit on the panel surface, so cards read as one panel on a tinted page. */
.pq-ui .pq-table-wrap { background: var(--pq-surface); }
/* Card mode: each cell a label/value grid, labels in one 7.5rem column. */
@container (max-width: 720px) {
  .pq-ui .pq-table td, .pq-ui .pq-table td.num { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 12px; text-align: left; }
  .pq-ui .pq-table td.num { justify-items: end; }
  .pq-ui .pq-table td.num::before { justify-self: start; }
  .pq-ui .pq-table td::before { max-width: none; }
  .pq-ui .pq-table td:first-child { display: block; }
}

/* Density: a per-user setting on the root. */
.pq-ui[data-pq-density="compact"] .pq-table th, .pq-ui[data-pq-density="compact"] .pq-table td { padding: 6px 10px; }
.pq-ui[data-pq-density="compact"] .pq-btn, .pq-ui[data-pq-density="compact"] .pq-field { min-height: 28px; }

/* Coarse pointers (phones, tablets, touch laptops): every target at least 44px. */
@media (pointer: coarse), (any-pointer: coarse) {
  .pq-ui .pq-btn, .pq-ui .pq-field, .pq-ui .pq-tabs a, .pq-ui .pq-tabs button, .pq-ui .pq-target { min-height: var(--pq-target-min); }
  .pq-ui .pq-table th button.pq-sort { min-height: var(--pq-target-min); padding: 0 4px; }
}

/* Forced colours: keep chart marks and swatches visible. */
@media (forced-colors: active) {
  .pq-ui .pq-bar, .pq-ui .pq-swatch { forced-color-adjust: none; }
}

/* Print: the content, not the chrome. */
@media print {
  .pq-ui .pq-table-tools, .pq-ui .pq-copy, .pq-ui .pq-toasts, .pq-ui .pq-menu, .pq-ui [data-pq-setting], .pq-ui .pq-no-print { display: none !important; }
  .pq-ui .pq-table thead th { position: static; }
  .pq-ui .pq-table tr { break-inside: avoid; }
  .pq-ui .pq-truncate { overflow: visible; white-space: normal; }
  .pq-ui [data-pq-full] { text-decoration: none; }
}
