/* PhiNode components: the landing's parts as the product's controls. Built on tokens.css and right in both themes;
   every class starts with pn-. Each is drawn, in every state, on the hub's UI page, Components view (ui/index.html#components).
   What they do (the glitch, the gliding pill, the sliding tab) is in components.js. */

/* Every part measures its edge and padding inside its size, on any page: a page need not set box-sizing itself
   (the hub sets it for everything; the website does not). :where() keeps it from outweighing anything */
:where([class^="pn-"], [class*=" pn-"]) { box-sizing: border-box; }

/* Control heights, on the 4/8 scale */
:root { --ctl-sm: 32px; --ctl-md: 40px; --ctl-lg: 48px; }
/* Built from the colours, so declared wherever a theme is */
:root, [data-theme] {
  --pn-focus: 0 0 0 3px color-mix(in srgb, var(--g1) 24%, transparent);  /* a field's focus ring */
  --pn-edge: color-mix(in srgb, var(--mu) 75%, var(--bg));               /* an empty box's edge: 3:1 on the page */
  --pn-glass: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 40%), color-mix(in srgb, var(--bg) 84%, transparent);  /* floating glass: menu, tooltip, sheet */
  --pn-hover: linear-gradient(110deg, color-mix(in srgb, var(--g1) 13%, transparent), color-mix(in srgb, var(--g2) 11%, transparent));  /* the soft pill under the pointer, as in the side panel */
  --pn-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.3 4.9 8.6 9.5 3.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --pn-dash: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6h6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>");
  --pn-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --pn-chevrons: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 6.25 8 3.5l3 2.75M5 9.75 8 12.5l3-2.75' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Icons in controls: a 1.75 stroke in the text's colour, as the landing draws its arrow */
.pn-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* The chevron, the system's one: 16px, the select's stroke, in muted text. Down for a dropdown (it turns when open);
   .ud points both ways, for a switcher: a row that opens a list to switch to, the client or the account */
.pn-chev { flex: none; width: 16px; height: 16px; background: var(--mu); -webkit-mask: var(--pn-chevron) center / 16px no-repeat; mask: var(--pn-chevron) center / 16px no-repeat;
  transition: background-color var(--dur-hover), transform var(--dur-state) var(--ease-out); }
.pn-chev.ud { -webkit-mask-image: var(--pn-chevrons); mask-image: var(--pn-chevrons); }
/* turned to point on: between the steps of a way (Findings › a finding). In running words it sits on the text's middle */
.pn-chev.fwd { rotate: -90deg; }
:not(.pn-ref) > .pn-chev.fwd { display: inline-block; width: 14px; height: 14px; margin-inline: var(--sp-1); vertical-align: -2px; -webkit-mask-size: 14px; mask-size: 14px; }
/* the arrow nudges toward where it goes */
.pn-go { transition: transform var(--dur-hover) var(--ease-out); }
:is(.pn-btn, .pn-link):not(:disabled, [aria-disabled="true"]):hover .pn-go { transform: translateX(3px); }
:is(.pn-btn, .pn-link):not(:disabled, [aria-disabled="true"]):hover .pn-go.up { transform: translate(2px, -2px); }

/* One focus mark for everything you press: a coral outline. .is-focus draws it for the Components page */
:is(.pn-btn, .pn-link, .pn-chip, .pn-seg > *, .pn-vtabs > *, .pn-menu > *, .pn-check, .pn-radio, .pn-switch):is(:focus-visible, .is-focus) { outline: 2px solid var(--g1); outline-offset: 2px; }
.pn-link:is(:focus-visible, .is-focus) { outline-offset: 0; }

/* ——— Buttons ———
   primary: the landing's solid pill, one per view; secondary: tinted, with a coral edge; ghost: a hairline; link: words in accent */
.pn-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: var(--ctl-md); padding: 0 var(--sp-5); border: 1px solid transparent; border-radius: var(--r-pill);
  font: var(--w-semi) var(--fs-body)/1 var(--sans); color: var(--fg); background: none; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-hover), border-color var(--dur-hover), color var(--dur-hover), transform var(--dur-hover) var(--ease-spring); }
.pn-btn > svg { width: 16px; height: 16px; flex: none; }
/* pressed, it gives a little and springs back */
:is(.pn-btn, .pn-chip):not(:disabled, [aria-disabled="true"]):active { transform: scale(.97); }
.pn-btn.sm { height: var(--ctl-sm); padding: 0 var(--sp-4); font-size: var(--fs-ui); }
.pn-btn.lg { height: var(--ctl-lg); padding: 0 var(--sp-6); font-size: var(--fs-md); }
.pn-btn.icon { width: var(--ctl-md); padding: 0; }
.pn-btn.icon.sm { width: var(--ctl-sm); }
.pn-btn.icon.lg { width: var(--ctl-lg); }
.pn-btn.pri { background: var(--fg); color: var(--bg); }
.pn-btn.pri:not(:disabled, [aria-disabled="true"]):hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.pn-btn.sec { background: color-mix(in srgb, var(--g1) 10%, var(--fa)); border-color: color-mix(in srgb, var(--g1) 60%, transparent); }
.pn-btn.sec:not(:disabled, [aria-disabled="true"]):hover { background: color-mix(in srgb, var(--g1) 18%, var(--fa)); border-color: var(--g1); }
/* a ghost's hairline is the text's colour, see-through, so it shows on any ground: the page, a glass panel, a tinted bar.
   It was the lines' colour (--ln), solid, and sank into a tinted bar (Eduard) */
.pn-btn.ghost { border-color: color-mix(in srgb, var(--fg) 22%, transparent); color: var(--mu); }
.pn-btn.ghost:not(:disabled, [aria-disabled="true"]):hover { border-color: color-mix(in srgb, var(--fg) 45%, transparent); color: var(--fg); }
/* Icon buttons: no words to glitch, so the icon does what it says: a plus or a cross turns a quarter, the dots run one wave.
   Under the pointer a ghost one fills with a soft coral tint, as a row in the side panel */
.pn-btn.icon:not(:disabled, [aria-disabled="true"]):active { transform: scale(.92); }
.pn-btn.ghost.icon:not(:disabled, [aria-disabled="true"]):hover { background-color: color-mix(in srgb, var(--g1) 12%, transparent); }
.pn-turn { transition: rotate var(--dur-state) var(--ease-spring); }
.pn-btn:not(:disabled, [aria-disabled="true"]):hover .pn-turn { rotate: 90deg; }
.pn-btn:not(:disabled, [aria-disabled="true"]):hover .pn-wave path { animation: pn-wave .5s var(--ease-io) var(--wd, 0s); }
.pn-wave path:nth-child(2) { --wd: .07s; }
.pn-wave path:nth-child(3) { --wd: .14s; }
@keyframes pn-wave { 40% { translate: 0 -2.5px; } }
/* disabled: faded, the no-entry cursor, and nothing under the pointer (components.js keeps a disabled link from going) */
.pn-btn:disabled, .pn-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* the glitch (components.js): the words hold their width while three letters run across them in coral */
.pn-gtx { display: inline-block; white-space: pre; }
.pn-gtx[style*="width"] { overflow-x: clip; }   /* only while the letters run, while its width holds still, and only the sides: a line as tight as a button's has no room below for a g or a p */
.pn-gtx .pn-gc { color: var(--g1); }
/* words already in accent (a link) glitch in the text's colour, so the letters still show */
.pn-link .pn-gtx .pn-gc { color: var(--fg); }
/* a pill of room around the words (taken back by the margin), so the focus ring is a pill like a button's; it never stretches to fill a column */
.pn-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: var(--sp-1) var(--sp-2); margin: calc(-1 * var(--sp-1)) calc(-1 * var(--sp-2)); border: 0; border-radius: var(--r-pill); background: none; font: var(--w-semi) var(--fs-ui)/1.3 var(--sans); color: var(--gt); text-decoration: none; cursor: pointer;  text-align: start;}

/* ——— Badges and status ———
   A badge names a severity or a state: tinted in its colour; critical is the one in the gradient pill.
   A dot with words tells a state; a live dot breathes while the engine works. */
:is(.pn-badge, .pn-dot, .pn-note).crit { --c: var(--crit); }
:is(.pn-badge, .pn-dot, .pn-note).high { --c: var(--high); }
:is(.pn-badge, .pn-dot, .pn-note).med { --c: var(--med); }
:is(.pn-badge, .pn-dot, .pn-note).low { --c: var(--low); }
:is(.pn-badge, .pn-dot, .pn-note).ok { --c: var(--ok); }
:is(.pn-badge, .pn-dot, .pn-note).info { --c: var(--info); }
/* the tint is 10%: small words keep 4.5:1 on it in both themes; a hairline inside, in the badge's colour, gives it an edge
   (as the tinted button's coral edge), clearest in dark */
.pn-badge { --c: var(--low); display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 var(--sp-2); border-radius: var(--r-pill);
  font: var(--w-semi) var(--fs-xs)/1 var(--sans); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); }
/* the gradient pill, with its light along the top, as every gradient pill has */
.pn-badge.crit { color: var(--on); background: var(--grad-text); box-shadow: var(--sh-pill); }
.pn-dot { --c: var(--low); display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pn-badge .pn-dot { --c: currentColor; width: 6px; height: 6px; }  /* in a badge, the dot is the badge's colour */
.pn-dot.live { animation: pn-live 1.6s var(--ease-io) infinite; }
@keyframes pn-live { 0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 24%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pn-check, .pn-radio, .pn-wave path { animation: none !important; } .pn-dot.live { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); } }
.pn-status { display: inline-flex; align-items: center; gap: var(--sp-2); font: var(--w-medium) var(--fs-ui)/1.3 var(--sans); color: var(--mu); white-space: nowrap; }
/* a count beside a name: a soft well with a hairline inside, the number in the text's colour, in Geist's even figures.
   On (new, waiting for you), the gradient pill with its light along the top. No border, so the gradient fills it to the edge */
.pn-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent);
  font: var(--w-semi) var(--fs-xs)/1 var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.pn-count.on { background: var(--grad-text); color: var(--on); box-shadow: var(--sh-pill); }

/* ——— Tabs ———
   Segmented: the landing's tabs. A well of fill; the current one is the solid pill. Views of one place. */
.pn-seg { position: relative; isolation: isolate; display: inline-flex; gap: 2px; padding: var(--sp-1); border: 1px solid var(--ln); border-radius: var(--r-pill); background: var(--fa); }
.pn-seg > * { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: none;
  font: var(--w-semi) var(--fs-ui)/1 var(--sans); color: var(--mu); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-hover), color var(--dur-hover); }
.pn-seg > :hover { color: var(--fg); }
.pn-seg > :is([aria-selected="true"], [aria-pressed="true"], [aria-current="page"]) { background: var(--fg); color: var(--bg); }
.pn-seg small { font: var(--w-medium) var(--fs-xs)/1 var(--mono); opacity: .7; }
.pn-seg.sm { padding: 2px; }
.pn-seg.sm > * { height: 26px; padding: 0 var(--sp-3); font-size: var(--fs-sm); }
/* the thumb (components.js): the current tab's pill as one piece that slides to the next; its words change colour as it arrives */
.pn-seg > .pn-thumb { position: absolute; z-index: -1; top: 0; left: 0; height: 0; padding: 0; border-radius: var(--r-pill); background: var(--fg); pointer-events: none;
  transition: transform var(--dur-state) var(--ease-glide), width var(--dur-state) var(--ease-glide); }
.pn-seg.is-slide > :is([aria-selected="true"], [aria-pressed="true"], [aria-current="page"]) { background: none; transition-delay: .06s; }
/* Filter chips: the landing's contact choices. Hairline pills; a chosen one is the gradient pill. As links (the hub's sections),
   the page you are on is the chosen one */
.pn-chip { display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-sm); padding: 0 var(--sp-4); border: 1px solid var(--ln); border-radius: var(--r-pill); background: none;
  font: var(--w-medium) var(--fs-ui)/1 var(--sans); color: var(--mu); white-space: nowrap; cursor: pointer; transition: border-color var(--dur-hover), color var(--dur-hover); }
.pn-chip:hover { border-color: color-mix(in srgb, var(--g1) 60%, transparent); color: var(--fg); }
/* the gradient starts at the border's edge: from the padding, it would repeat under the clear border as a dark line on top */
.pn-chip:is([aria-pressed="true"], [aria-current="page"], [aria-current="true"]) { border-color: transparent; background: var(--grad-text) border-box; color: var(--on); box-shadow: var(--sh-pill); }
/* Side menu: rows like the side panel's, an icon and a name, for a long page of settings. Rows are pills 32 high; a holder 4px
   around them takes the pill's radius and the gap, 16 + 4 = 20, so the corners run together (as in a menu) */
.pn-vtabs { position: relative; isolation: isolate; display: grid; gap: 2px; }
.pn-vtabs > * { display: flex; align-items: center; gap: var(--sp-2); height: var(--ctl-sm); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: none;
  font: var(--w-medium) var(--fs-ui)/1 var(--sans); color: var(--mu); text-align: left; text-decoration: none; cursor: pointer; transition: color var(--dur-hover); }
.pn-vtabs > :hover { color: var(--fg); }
.pn-vtabs svg { width: 16px; height: 16px; flex: none; stroke-width: 1.75; }
/* without components.js, the row under the pointer lights up; with it, one pill glides from row to row */
:is(.pn-vtabs, .pn-menu):not(.is-glide) > :not(hr, .pn-menu-k, .pn-menu-note):hover { background: var(--pn-hover); }
:is(.pn-vtabs, .pn-menu) > .pn-glide { position: absolute; z-index: -1; top: 0; left: 0; height: 0; padding: 0; border-radius: var(--r-pill); background: var(--pn-hover); opacity: 0; scale: .82; pointer-events: none;
  transition: transform var(--dur-state) var(--ease-glide), width var(--dur-state) var(--ease-glide), height var(--dur-state) var(--ease-glide), opacity var(--dur-hover) ease, scale var(--dur-state) var(--ease-glide); }
:is(.pn-vtabs, .pn-menu) > .pn-glide.is-on { opacity: 1; scale: 1; }
.pn-vtabs > :is([aria-current="page"], [aria-selected="true"]) { color: var(--on); background: var(--grad-text); box-shadow: var(--sh-pill); }

/* ——— Fields ———
   The landing's form: a soft well with a mono label above. Focus lights the edge in coral; an error turns the edge and the hint red. */
.pn-field { display: grid; gap: var(--sp-2); align-content: start; min-width: 0; }
.pn-label { font: var(--w-medium) var(--fs-micro)/var(--lh-snug) var(--mono); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--mu); }
.pn-hint { font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--mu); }
.pn-input { display: block; width: 100%; height: var(--ctl-md); margin: 0; padding: 0 var(--sp-3); border: 1px solid var(--ln); border-radius: var(--r-md); background: var(--ce);
  font: var(--w-regular) var(--fs-body)/1.3 var(--sans); color: var(--fg); text-align: left; transition: border-color var(--dur-hover), box-shadow var(--dur-hover); }
.pn-input::placeholder { color: var(--mu); opacity: 1; }
.pn-input:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--ln)); }
.pn-input:is(:focus, .is-focus), .pn-input[aria-expanded="true"] { outline: none; border-color: var(--g1); box-shadow: var(--pn-focus); }
.pn-input:disabled { opacity: .5; cursor: not-allowed; }
.pn-input.sm { height: var(--ctl-sm); font-size: var(--fs-ui); }
textarea.pn-input { height: auto; min-height: 88px; padding: var(--sp-3); line-height: var(--lh-text); resize: vertical; }
.pn-field.is-error .pn-input { border-color: var(--crit); }
.pn-field.is-error .pn-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit) 24%, transparent); }
.pn-field.is-error .pn-hint { color: var(--crit); }
/* Select: a field with a chevron. Around a native <select>, or around a button that opens a .pn-menu */
.pn-select { position: relative; display: block; }
.pn-select > .pn-input { padding-right: 36px; appearance: none; cursor: pointer; }
.pn-select::after { content: ""; position: absolute; right: var(--sp-3); top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--mu); pointer-events: none;
  -webkit-mask: var(--pn-chevron) center / 16px no-repeat; mask: var(--pn-chevron) center / 16px no-repeat; transition: transform var(--dur-state) var(--ease-out); }
.pn-select:has(> [aria-expanded="true"])::after { transform: rotate(180deg); }
/* Menu: floating glass, for a dropdown's choices or a row's actions; the chosen one is ticked. Its rows are pills 32 high, 4px in,
   so its radius is 16 + 4 = 20, a glass panel's, and the pill under the pointer runs round its corners */
.pn-menu { position: absolute; z-index: 30; top: calc(100% + var(--sp-2)); left: 0; min-width: 100%; display: grid; gap: 2px; padding: var(--sp-1); border: 1px solid var(--ed); border-radius: var(--r-xl);
  background: var(--pn-glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--sh-float), var(--sh-edge);
  transition: opacity var(--dur-hover) ease, translate var(--dur-state) var(--ease-out); }
/* opening, it drops in from just above */
@starting-style { .pn-menu { opacity: 0; translate: 0 -6px; } }
.pn-menu[hidden] { display: none; }
.pn-menu > * { display: flex; align-items: center; gap: var(--sp-2); height: var(--ctl-sm); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: none;
  font: var(--w-medium) var(--fs-ui)/1 var(--sans); color: var(--fg); text-align: left; white-space: nowrap; cursor: pointer; }
.pn-menu > [aria-selected="true"]::after { content: ""; margin-left: auto; width: 12px; height: 12px; background: var(--gt); -webkit-mask: var(--pn-check) center / 12px no-repeat; mask: var(--pn-check) center / 12px no-repeat; }
.pn-menu > * > svg { width: 16px; height: 16px; flex: none; stroke-width: 1.75; color: var(--mu); }
/* a menu's own words: a mono label on top, a note under the choices; neither is pressed */
.pn-menu > :is(.pn-menu-k, .pn-menu-note) { height: auto; margin: 0; cursor: default; }
.pn-menu > .pn-menu-k { padding: var(--sp-2) var(--sp-3) var(--sp-1); font: var(--w-semi) var(--fs-micro)/1 var(--mono); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--mu); }
.pn-menu > .pn-menu-note { padding: var(--sp-1) var(--sp-3) var(--sp-2); font: var(--w-regular) var(--fs-xs)/var(--lh-snug) var(--sans); color: var(--mu); white-space: normal; }
.pn-menu > hr { height: 1px; margin: var(--sp-1) var(--sp-2); padding: 0; border: 0; background: var(--ln); cursor: default; }
/* Search: a field with the magnifier inside and its key on the right */
.pn-search { position: relative; display: flex; align-items: center; min-width: 0; }
.pn-search > svg { position: absolute; left: var(--sp-3); width: 16px; height: 16px; color: var(--mu); pointer-events: none; }
.pn-search > .pn-input { padding-left: 36px; }
.pn-search > .pn-kbd { position: absolute; right: 10px; }
.pn-search > .pn-input:has(~ .pn-kbd) { padding-right: calc(var(--pn-kbd, 24px) + 10px + var(--sp-2)); }  /* the key's width (components.js) and its place */

/* ——— Choices ———
   Checkbox, radio and switch: an empty box with an edge you can see; on, the gradient pill with the mark in --on */
.pn-check, .pn-radio { appearance: none; position: relative; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--pn-edge);
  background: var(--ce); cursor: pointer; vertical-align: middle; transition: border-color var(--dur-hover), background-color var(--dur-hover), transform var(--dur-hover) var(--ease-spring); }
:is(.pn-check, .pn-radio):active { transform: scale(.86); }
.pn-check { border-radius: var(--r-xs); }
.pn-radio { border-radius: 50%; }
.pn-check:hover, .pn-radio:hover { border-color: var(--g1); }
.pn-check:is(:checked, :indeterminate), .pn-radio:checked { border-color: transparent; background: var(--grad-text); animation: pn-pop var(--dur-state) var(--ease-spring); }
@keyframes pn-pop { from { transform: scale(.8); } }
/* the tick draws in from the left */
.pn-check::after { content: ""; width: 12px; height: 12px; background: var(--on); clip-path: inset(0 100% 0 0); -webkit-mask: var(--pn-check) center / 12px no-repeat; mask: var(--pn-check) center / 12px no-repeat;
  transition: clip-path var(--dur-state) var(--ease-out) .05s; }
.pn-check:indeterminate::after { -webkit-mask-image: var(--pn-dash); mask-image: var(--pn-dash); }
.pn-check:is(:checked, :indeterminate)::after { clip-path: inset(0); }
/* the dot pops in */
.pn-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on); transform: scale(0); transition: transform var(--dur-state) var(--ease-spring); }
.pn-radio:checked::after { transform: none; }
/* Switch: the landing's pressed-in well; on, the gradient pill, and the knob slides over */
.pn-switch { appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0; border-radius: var(--r-pill); background: var(--fa); box-shadow: var(--sh-well);
  cursor: pointer; vertical-align: middle; transition: background-color var(--dur-state); }
/* the knob slides over with a little spring, and stretches while held */
.pn-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: var(--r-pill); background: var(--knob); box-shadow: 0 1px 2px rgba(0,0,0,.35);
  transition: transform var(--dur-state) var(--ease-spring), width var(--dur-hover) var(--ease-out); }
.pn-switch:checked { background: var(--grad-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.pn-switch:checked::after { transform: translateX(16px); }
.pn-switch:active::after { width: 18px; }
.pn-switch:checked:active::after { transform: translateX(12px); }
:is(.pn-check, .pn-radio, .pn-switch):disabled { opacity: .45; cursor: not-allowed; }

/* Theme switch: light or dark for the whole page. The system's switch in size and knob, with the sun and the moon in the knob.
   Its hover and its morph belong to this control alone: nothing else in the system takes them (Eduard, 2026-11-06). */
.pn-theme { position: relative; flex: none; width: 36px; height: 20px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--fa); box-shadow: var(--sh-well), inset 0 0 0 1px var(--ln); cursor: pointer; }
.pn-theme:empty { display: none; }   /* without scripts it could do nothing */
.pn-theme:is(:focus-visible, .is-focus) { outline: 2px solid var(--g1); outline-offset: 2px; }
.pn-theme > i { position: absolute; left: 3px; top: 3px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: var(--r-pill); background: var(--knob); box-shadow: 0 1px 2px rgba(0,0,0,.35); color: var(--fg); transition: transform var(--dur-state) var(--ease-spring), width var(--dur-hover) var(--ease-out), color var(--dur-state); }
.pn-theme[data-now="dark"] > i { transform: translateX(16px); color: var(--bg); }
.pn-theme:is(:active, .is-press) > i { width: 18px; }
.pn-theme[data-now="dark"]:is(:active, .is-press) > i { transform: translateX(12px); }
/* the morph: it rolls half a turn on its way, and the disc, the bite and the rays change inside that one movement */
.pn-theme-ic { display: block; width: 10px; height: 10px; overflow: visible; transition: transform var(--dur-state) var(--ease-out); }
.pn-theme-ic .core { fill: currentColor; transform-box: view-box; transform-origin: 8px 8px; transition: transform var(--dur-state) var(--ease-out); }
.pn-theme-ic .cut { transition: transform var(--dur-state) var(--ease-out); }
.pn-theme-ic .rays { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; transform-box: view-box; transform-origin: 8px 8px; transition: transform var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out); }
[data-now="dark"] .pn-theme-ic { transform: rotate(-20deg); }
[data-now="dark"] .pn-theme-ic .rays { transform: scale(.45) rotate(-45deg); opacity: 0; }
[data-now="light"] .pn-theme-ic { transform: rotate(-200deg); }
[data-now="light"] .pn-theme-ic .core { transform: scale(.58); }
[data-now="light"] .pn-theme-ic .cut { transform: translate(7px, -7px); }
[data-now="light"] .pn-theme-ic .rays { transform: rotate(20deg); }
/* under the pointer the landing's glint (its gradient, its blur, its curve) runs once round the edge and leaves the coral edge behind it,
   drawn at the light's pace; the edge stays while the pointer does, and fades after */
.pn-theme-run { position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pn-theme-run > u { position: absolute; left: 0; top: 0; width: 18px; height: 6px; background: linear-gradient(90deg, transparent, var(--g1), transparent); filter: blur(.5px); opacity: 0; offset-path: path("M10 .75H26A9.25 9.25 0 0 1 26 19.25H10A9.25 9.25 0 0 1 10 .75Z"); offset-rotate: auto; }
.pn-theme-edge { position: absolute; inset: 0; width: 36px; height: 20px; overflow: visible; pointer-events: none; }
.pn-theme-edge rect { fill: none; stroke: color-mix(in srgb, var(--g1) 60%, transparent); stroke-dasharray: 102; opacity: 0; transition: opacity var(--dur-hover); }
.pn-theme:is(:hover, .is-hover) .pn-theme-edge rect { opacity: 1; transition: none; }
.pn-theme:hover .pn-theme-edge rect { animation: pn-theme-draw .7s var(--ease-io) 1; }
.pn-theme:hover .pn-theme-run > u { animation: pn-theme-run .7s var(--ease-io) 1; }
@keyframes pn-theme-draw { from { stroke-dashoffset: 102; } to { stroke-dashoffset: 0; } }
@keyframes pn-theme-run { 0% { offset-distance: 0%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pn-theme:hover .pn-theme-edge rect, .pn-theme:hover .pn-theme-run > u { animation: none; } }
/* a choice with its words; the whole row is the target */
.pn-choice { display: inline-flex; align-items: center; gap: 10px; font: var(--w-regular) var(--fs-body)/1.3 var(--sans); color: var(--fg); cursor: pointer; }
.pn-choice:has(:disabled) { color: var(--mu); cursor: not-allowed; }

/* ——— Keyboard ———
   A key is a small well in mono. A shortcut shows the key this computer has (components.js); a control with one names it in
   its tooltip (below), and every shortcut stands on one sheet, opened with ?. */
/* a key; with data-mod, components.js writes the modifier this computer has: ⌘K on a Mac, Ctrl K elsewhere */
.pn-kbd { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 20px; height: 20px; padding: 0 var(--sp-1); border: 1px solid var(--ln); border-radius: var(--r-xs); background: var(--ce);
  font: var(--w-semi) var(--fs-xs)/1 var(--mono); color: var(--mu); }
/* ⌘ as an icon: the font's own is small and thin beside the letter. This one has the letter's stroke and is a little under its height: wider and fuller, at full height it reads bigger */
.pn-cmd { flex: none; width: .75em; height: .75em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Shortcuts sheet: every shortcut, by group, the action on the left and its keys on the right. It opens on ? in a dialog */
.pn-shortcuts { display: grid; gap: var(--sp-2); width: min(100%, 400px); padding: var(--sp-5) var(--sp-6) var(--sp-4); border: 1px solid var(--ed); border-radius: var(--r-xl);
  background: var(--pn-glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--sh-panel), var(--sh-edge); }
.pn-shortcuts h3 { margin: 0 0 var(--sp-2); font: var(--w-semi) var(--fs-md)/1.3 var(--sans); color: var(--fg); }
.pn-shortcuts dl { display: grid; margin: 0 0 var(--sp-2); }
.pn-shortcuts dl > div { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 40px; border-bottom: 1px solid var(--ln); }
.pn-shortcuts dl > div:last-child { border-bottom: 0; }
.pn-shortcuts dt { font: var(--w-regular) var(--fs-ui)/1.3 var(--sans); color: var(--fg); }
.pn-shortcuts dd { display: flex; align-items: center; gap: 6px; margin: 0; font: var(--w-regular) var(--fs-sm)/1 var(--sans); color: var(--mu); }

/* ——— Reference ———
   Names a control on a screen, or a way through the product (Findings › a finding): in a walkthrough, the assistant's words, the docs.
   One pill with a hairline; it is not a button, so it does not react. The steps part with the chevron turned to point on. A badge
   inside says what is odd about it (only in the demo, no link); it sits 4px in, so it is a pill too. 28 high, as the tooltip's label;
   corners of 14 make it a pill at 28 and a soft box when a long name wraps: between its steps, the badge by the first line. --c tints the edge for a reference with a badge. */
.pn-ref { --c: var(--fg); display: inline-flex; align-items: center; gap: 2px var(--sp-1); max-width: 100%; min-height: 28px; margin: 0; padding: 4px var(--sp-3) 2px;
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); border-radius: var(--r-lg); font: var(--w-medium) var(--fs-ui)/1.3 var(--sans); color: var(--fg); }
/* Geist at a line height of 1.3 (kept, so a long name can wrap) sets its capitals 1px above the middle: the words take 1px more on top,
   and what sits beside them gives it back, so the badge stays 4px in */
.pn-ref > .pn-badge:first-child { align-self: flex-start; margin: -1px var(--sp-1) 0 calc(var(--sp-1) - var(--sp-3)); }
.pn-ref > .pn-chev { width: 14px; height: 14px; -webkit-mask-size: 14px; mask-size: 14px; }
/* a way that may wrap keeps its words in one span: its second line then starts under its first word, not under the badge */
.pn-ref > span:not(.pn-badge) { min-width: 0; padding-block: calc((20px - 1.3em) / 2); }   /* one line is the badge's 20, so the first line stays on the badge's middle when it wraps */
.pn-ref > span:not(.pn-badge) > span { display: inline-block; }   /* a step of a way, its chevron in it (› step): the line breaks between steps, never before a chevron alone, inside a step only when it is wider than the line */
.pn-ref > .pn-badge { flex: none; }
/* a dot between the parts of one name (01 · a scenario, a screen · its state): 4px, in the words' colour, faded, 8px from each */
.pn-sep { display: inline-block; flex: none; width: 4px; height: 4px; margin-inline: var(--sp-2); border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }
.pn-link > .pn-sep { margin-inline: 2px; }   /* the link's gap is 6 */
.pn-ref > .pn-sep { margin-inline: var(--sp-1); }   /* the reference's gap is 4 */

/* ——— Notice ———
   Says what is wrong, or worth knowing, about the place it sits in: a badge for its kind, then a line or two. Built as a badge is,
   larger: a tint of its colour (--c) and a hairline inside in it; the words keep the text's colour. Its corners are a glass panel's
   20, so they follow the badge's round end 12px in. Without a colour it is the muted text's, so it never reads as switched off. */
.pn-note { --c: var(--mu); display: grid; justify-items: start; gap: var(--sp-2); margin: 0; padding: var(--sp-3); border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--c) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent);
  font: var(--w-regular) var(--fs-ui)/var(--lh-text) var(--sans); color: var(--fg); }
.pn-note > p { margin: 0; }

/* ——— Tooltip ———
   It names a control, or shows what the pointer is on; nothing in it is pressed. Two kinds: a label, a few words and the key if
   the action has one; and a card, a title and a few lines, for what a node on a map or a point on a chart holds.
   One floats per page (components.js): above its control, below when there is no room, kept 8px in from the screen's edges. */
.pn-tip { display: inline-flex; align-items: center; gap: var(--sp-2); width: max-content; max-width: 280px; min-height: 28px; margin: 0; padding: 0 var(--sp-1) 0 var(--sp-3);
  border: 1px solid var(--ed); border-radius: var(--r-pill); background: var(--pn-glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--sh-float), var(--sh-edge);
  font: var(--w-medium) var(--fs-sm)/1.3 var(--sans); color: var(--fg); white-space: nowrap; }
.pn-tip:not(:has(.pn-kbd)) { padding-right: var(--sp-3); }
/* its words sit 1px low, as a reference's do (Geist at 1.3 sets its capitals 1px high); the key gives it back */
.pn-tip:not(.card) { padding-top: 2px; }
.pn-tip:not(.card) > .pn-kbd { margin-top: -2px; }
/* its key sits 4px in from the edge, so it is a pill too: the holder's radius less the gap */
.pn-tip .pn-kbd { border-radius: var(--r-pill); }
/* the card: a title with its kind, a line, then name and value rows */
.pn-tip.card { display: grid; gap: var(--sp-2); min-width: 200px; padding: var(--sp-3); border-radius: var(--r-lg); white-space: normal; }
.pn-tip-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.pn-tip-head b { font-size: var(--fs-ui); font-weight: var(--w-semi); }
.pn-tip.card p { margin: 0; font-weight: var(--w-regular); line-height: var(--lh-snug); color: var(--mu); }
.pn-tip-row { display: flex; align-items: center; gap: var(--sp-3); color: var(--mu); }
.pn-tip-row > :last-child { margin-left: auto; font: var(--w-medium) var(--fs-xs)/1 var(--mono); color: var(--fg); }
/* floating: components.js fills it, sets it by its control and turns it on. It comes in from its control's side; a tooltip that
   follows the pointer from one control to the next glides there, as the pill in a menu does */
.pn-tip.is-float { position: fixed; z-index: 1000; left: 0; top: 0; pointer-events: none; opacity: 0; translate: 0 4px;
  transition: opacity .15s ease, translate var(--dur-hover) var(--ease-out), left var(--dur-state) var(--ease-glide), top var(--dur-state) var(--ease-glide); }
@media (prefers-reduced-motion: reduce) { .pn-tip.is-float { transition: none; } }
.pn-tip.is-float.is-below { translate: 0 -4px; }
.pn-tip.is-float.is-on { opacity: 1; translate: none; }


/* ——— Panel ———
   The glass panel: it holds a table, a list or a form, on a product page or a hub page. What is inside answers to the
   panel's width (a container: a table stacks under 560). It stands off the page with the glass cards' shadow */
.pn-panel { container: pn-panel / inline-size; min-width: 0; overflow: hidden; border: 1px solid var(--ed); border-radius: var(--r-xl); background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--sh-card), var(--sh-edge); }

/* ——— Table ———
   Records in a glass panel (.pn-panel): a bar on top (views and search), a bar for what is selected, the table, a foot.
   A row is a record: its first words open it (the link covers the row), the arrow at its end says so and nudges under the pointer.
   Hairlines between rows, as the landing's findings; under the pointer a row lights a little, a selected one takes the coral tint
   and its box the gradient pill. A sortable column's head is a button. Under 560 a row stacks: the box, the record and the arrow,
   then its other cells in one line under the words. .sm is a data table: one line a row, mono IDs, it scrolls sideways when narrow. */
/* separate borders: a collapsed one is shared half and half by two rows, so every row and its words sat half a pixel off */
.pn-table { width: 100%; border-collapse: separate; border-spacing: 0; font: var(--w-regular) var(--fs-ui)/var(--lh-snug) var(--sans); color: var(--fg); }
.pn-table caption { caption-side: top; padding: var(--sp-4) var(--sp-4) var(--sp-3); text-align: left;
  font: var(--w-medium) var(--fs-micro)/var(--lh-snug) var(--mono); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--mu); }
.pn-table th { height: 36px; padding: 0 var(--sp-3); border-block: 1px solid var(--ln); text-align: left; vertical-align: middle; white-space: nowrap;
  font: var(--w-medium) var(--fs-micro)/1 var(--mono); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--mu); }
.pn-table td { padding: var(--sp-3); vertical-align: middle; }
.pn-table :is(th, td):first-child { padding-left: var(--sp-4); }
.pn-table :is(th, td):last-child { padding-right: var(--sp-4); }
.pn-table tbody tr { position: relative; transition: background-color var(--dur-hover); }
.pn-table tbody td { border-bottom: 1px solid color-mix(in srgb, var(--ln) 65%, transparent); }
.pn-table tbody tr:last-child td { border-bottom-color: var(--ln); }
.pn-table tbody tr:is(:hover, .is-hover) { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.pn-table tbody tr.is-sel { background: color-mix(in srgb, var(--g1) 8%, transparent); }
.pn-table tbody tr.is-sel:is(:hover, .is-hover) { background: color-mix(in srgb, var(--g1) 12%, transparent); }
/* cells that hold a part keep to its width; the record's cell takes the rest */
.pn-table :is(.pn-cell-check, .pn-cell-go) { width: 16px; }
.pn-table td:not(.pn-cell-main) { width: 1%; white-space: nowrap; }
/* a part alone in a cell stands as a block, so the cell centres its box exactly; inline, it sat on the text's baseline,
   and a place (an icon and a name) rode 2px high (Eduard) */
.pn-table td > :is(.pn-check, .pn-badge, .pn-status, .pn-cell-place) { display: flex; width: max-content; }
.pn-table td > .pn-check { display: grid; }
/* every line of words in a row is 20 high, as the badge is: centred, their words stand on one baseline */
.pn-table :is(.pn-status, .pn-cell-place) { line-height: 20px; }
.pn-table .pn-check { z-index: 1; }
.pn-table td :is(button, a:not(.pn-row-link), input, select) { position: relative; z-index: 1; }
/* the record: its title (a link that covers the row) and a line under it, an ID in mono and its kind */
/* whole-pixel lines (20 and 16), so a row is 60 high and its hairlines stay sharp */
.pn-cell-main b { display: block; font-weight: var(--w-semi); line-height: 20px; letter-spacing: -.01em; }
.pn-cell-main span { display: block; font-size: var(--fs-sm); line-height: 16px; color: var(--mu); }
.pn-table code { font: var(--w-medium) var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-mono); }
.pn-row-link { color: inherit; text-decoration: none; outline: none; }
.pn-row-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.pn-row-link:is(:focus-visible, .is-focus)::after { outline: 2px solid var(--g1); outline-offset: -3px; }
/* the arrow: muted at rest; with the row under the pointer it takes the text's colour and moves toward where it goes */
.pn-cell-go .pn-ic { display: block; color: var(--mu); transition: color var(--dur-hover), transform var(--dur-hover) var(--ease-out); }
.pn-table tr:is(:hover, .is-hover) .pn-cell-go .pn-ic { color: var(--fg); transform: translate(2px, -2px); }
/* a place: an icon, a name, and how many more */
.pn-cell-place { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--fg); }
.pn-cell-place .pn-ic { width: 14px; height: 14px; color: var(--mu); }
.pn-cell-place small { font: var(--w-medium) var(--fs-xs)/1 var(--mono); color: var(--mu); }
/* numbers line up on the right, in even figures */
.pn-table .pn-cell-num { text-align: right; font-variant-numeric: tabular-nums; }
/* a column that sorts: its head is a button. Its mark is two chevrons, up and down, faint: the column sorts either way. Sorted,
   the one up slides into the one down and goes, and that one takes the accent; the other way, it turns over. So every step moves:
   the mark was one picture swapped for another, and the first click jumped (Eduard) */
.pn-sort { display: inline-flex; align-items: center; gap: var(--sp-1); margin: 0 calc(-1 * var(--sp-1)); padding: var(--sp-1); border: 0; border-radius: var(--r-xs); background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; transition: color var(--dur-hover); }
.pn-sort .pn-chev { position: relative; width: 14px; height: 14px; background: none; -webkit-mask: none; mask: none; }
.pn-sort .pn-chev::before, .pn-sort .pn-chev::after { content: ""; position: absolute; inset: 0; background: var(--mu); opacity: .6;
  -webkit-mask: var(--pn-chevron) center / 14px no-repeat; mask: var(--pn-chevron) center / 14px no-repeat;
  transition: transform var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out), background-color var(--dur-hover); }
.pn-sort .pn-chev::before { transform: translateY(-3px) rotate(180deg) scale(.8); }
.pn-sort .pn-chev::after { transform: translateY(3px) scale(.8); }
.pn-sort:is(:hover, .is-hover) { color: var(--fg); }
.pn-sort:is(:hover, .is-hover) .pn-chev::before, .pn-sort:is(:hover, .is-hover) .pn-chev::after { opacity: 1; }
.pn-sort:is(:focus-visible, .is-focus) { outline: 2px solid var(--g1); outline-offset: 0; }
:is([aria-sort="ascending"], [aria-sort="descending"]) > .pn-sort { color: var(--fg); }
:is([aria-sort="ascending"], [aria-sort="descending"]) > .pn-sort .pn-chev::before { transform: rotate(180deg) scale(.8); opacity: 0; }
:is([aria-sort="ascending"], [aria-sort="descending"]) > .pn-sort .pn-chev::after { transform: none; background: var(--gt); opacity: 1; }
[aria-sort="ascending"] > .pn-sort .pn-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .pn-sort .pn-chev, .pn-sort .pn-chev::before, .pn-sort .pn-chev::after { transition: none; } }
/* the bar on top: views on the left, search on the right. Its controls are 32 high and 4px in, so they are pills: the panel's
   radius less the gap (20 − 4 = 16), as rows in a menu are */
.pn-table-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-1); }
.pn-table-bar .pn-search { flex: 0 1 240px; }
.pn-table-bar .pn-input { border-radius: var(--r-pill); }
/* what is selected: a coral bar that opens under the top bar while a row is chosen, the count and what can be done with them */
.pn-table-bulk { display: grid; grid-template-rows: 0fr; background: color-mix(in srgb, var(--g1) 6%, transparent); transition: grid-template-rows var(--dur-state) var(--ease-out); }
.pn-table-bulk > div { display: flex; align-items: center; gap: var(--sp-2); min-height: 0; overflow: hidden; padding: 0 var(--sp-1) 0 var(--sp-4); border-top: 1px solid transparent;
  opacity: 0; transition: opacity var(--dur-hover), padding var(--dur-state) var(--ease-out), border-color var(--dur-state); }
.pn-table-bulk > div > span { margin-right: auto; font-size: var(--fs-ui); color: var(--mu); }
.pn-table-bulk b { font-weight: var(--w-semi); color: var(--fg); font-variant-numeric: tabular-nums; }
.pn-table-bulk.is-open { grid-template-rows: 1fr; }
.pn-table-bulk.is-open > div { padding-block: var(--sp-1); border-top-color: var(--ln); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pn-table-bulk, .pn-table-bulk > div { transition: none; } }
/* the foot: how many are shown, and a note */
.pn-table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4);
  font: var(--w-medium) var(--fs-xs)/var(--lh-snug) var(--mono); letter-spacing: var(--tr-mono); color: var(--mu); }
.pn-table-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.pn-table-foot .pn-ic { width: 14px; height: 14px; }
/* a data table: rows of one line, smaller room; wider than its panel, it scrolls sideways */
.pn-table.sm td { padding-block: var(--sp-2); }
.pn-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* the side it runs on past fades out, as the side panel's list does (components.js marks the sides) */
.pn-table-scroll.is-cut-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.pn-table-scroll.is-cut-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.pn-table-scroll.is-cut-start.is-cut-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.pn-table-scroll > .pn-table td { white-space: nowrap; }
/* narrow: a row stacks. The record and the arrow on the first line, its other cells under the words; the box stays at the
   row's start, so every line keeps the words' edge. The heads go: a phone sorts and selects from the bar, not the column */
@container pn-panel (max-width: 559px) {
  .pn-table:not(.sm), .pn-table:not(.sm) tbody { display: block; }
  .pn-table:not(.sm) thead { display: none; }
  .pn-table:not(.sm) tr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid color-mix(in srgb, var(--ln) 65%, transparent); }
  .pn-table:not(.sm) tr:last-child { border-bottom-color: var(--ln); }
  .pn-table:not(.sm) tr:has(> .pn-cell-check) { padding-left: calc(var(--sp-4) + 16px + var(--sp-3)); }
  .pn-table:not(.sm) td { display: block; width: auto; padding: 0; border: 0; }
  .pn-table:not(.sm) td.pn-cell-check { position: absolute; left: var(--sp-4); top: calc(var(--sp-3) + 2px); }
  .pn-table:not(.sm) td.pn-cell-main { flex: 1 0 calc(100% - 16px - var(--sp-3)); min-width: 0; }
  .pn-table:not(.sm) td.pn-cell-go { order: -1; margin-left: auto; }
  .pn-table:not(.sm) td.pn-cell-main { order: -2; }
  .pn-table-bar .pn-search { flex-basis: 100%; }
  /* the bulk bar's buttons go under its count, so it keeps the rows' room around it: 12 above and below, 16 at the sides */
  .pn-table-bulk > div { flex-wrap: wrap; row-gap: var(--sp-3); }
  .pn-table-bulk > div > span { flex-basis: 100%; }
  .pn-table-bulk.is-open > div { padding: var(--sp-3) var(--sp-4); }
}
}
