/* The app pieces (plan 2026-11-09-kit-app-pieces): the frame of a signed-in app and the parts its screens are made
   of. Colours: the theme's roles only (60% main, 30% secondary, 10% accent); the accent marks only what must stand
   out. Motion: the kit's tokens (kit.css); nothing moves for people who ask for less motion. */

/* The light/dark switch: a pill in the secondary colour, the chosen side marked by one thumb in the main colour that
   slides across. Narrow screens show the icons only. */
.kit-theme { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px;
  border-radius: 999px; background: var(--kit-secondary); font-family: var(--kit-font); }
.kit-theme button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--kit-quiet); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color var(--kit-enter) var(--kit-ease-in-out), transform var(--kit-press) var(--kit-ease-out); }
.kit-theme button[aria-pressed="true"], .kit-theme button[aria-checked="true"] { color: var(--kit-on-main); }
@media (hover: hover) { .kit-theme button:hover { color: var(--kit-on-main); } }
.kit-theme button:active { transform: scale(0.97); }
.kit-theme button:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 1px; }
.kit-theme svg { width: 15px; height: 15px; flex: none; }
.kit-theme-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--kit-main); box-shadow: 0 1px 2px color-mix(in srgb, var(--kit-on-main) 14%, transparent);
  transition: transform var(--kit-enter) var(--kit-ease-in-out); }
.kit-theme-dark .kit-theme-thumb { transform: translateX(100%); }
@media (max-width: 700px) {
  .kit-theme button { width: 44px; padding: 0; }
  .kit-theme-word { display: none; }
}

/* The app frame: a bar across the top, the menu down the left, the screen beside it, and (the desktop app) a panel on
   the right. Under 900 px the menu is a sheet from the left behind the bar's menu button and the right panel is
   not shown. The current screen sits on the secondary colour with a short accent mark
   at its left edge. */
/* Anything scrolled to (a focused control, a jump) stops below the sticky bar, never hidden under it. */
html:has(.kit-app) { scroll-padding-top: 72px; }
.kit-app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr);
  background: var(--kit-main);
  color: var(--kit-on-main); font-family: var(--kit-font); font-size: 14px; line-height: 20px; }
.kit-app-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px;
  min-width: 0;
  padding: 0 24px; box-sizing: border-box; border-bottom: 1px solid var(--kit-line); background: var(--kit-main); }
.kit-app-logo { flex: none; }
.kit-app-bar-end { margin-inline-start: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  min-width: 0; }
.kit-app-bar-end > * { min-width: 0; }
/* Words in the bar (company, role) give way first: one line, cut with an ellipsis. The bar's controls keep their size. */
.kit-app-bar-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kit-quiet); }
.kit-app-bar-end > .kit-theme, .kit-app-bar-end > button { flex: none; }
.kit-app-menu-button { display: none; flex: none; align-items: center; justify-content: center; width: 44px;
  height: 44px; margin-inline-start: -8px; border: 0; border-radius: 10px; background: transparent; color: var(--kit-on-main);
  cursor: pointer; transition: transform var(--kit-press) var(--kit-ease-out); }
.kit-app-menu-button svg { width: 20px; height: 20px; }
.kit-app-menu-button:active { transform: scale(0.97); }
.kit-app-body { display: grid; grid-template-columns: var(--kit-menu-width, 240px) 1px minmax(0, 1fr); align-items: start; }
.kit-app-menu { position: sticky; top: 64px; height: calc(100vh - 64px); box-sizing: border-box; overflow: auto;
  padding: 16px 12px; background: var(--kit-main); }
/* The right panel (the desktop app's), beside the middle; the middle keeps at least 360 px. */
.kit-app-body-side { grid-template-columns: var(--kit-menu-width, 240px) 1px minmax(360px, 1fr) 1px
  max(0px, min(var(--kit-side-width, 400px), calc(100vw - var(--kit-menu-width, 240px) - 362px))); }
.kit-app-side { position: sticky; top: 64px; height: calc(100vh - 64px); box-sizing: border-box; overflow: auto;
  min-width: 0; padding: 16px; background: var(--kit-main); }
.kit-app-side[hidden] { display: none; }
/* The line between panels is the drag handle: a wider grip than it looks, the pointer's resize arrows on it. */
.kit-app-handle { position: sticky; top: 64px; z-index: 5; width: 1px; height: calc(100vh - 64px);
  background: var(--kit-line); cursor: col-resize; touch-action: none; }
.kit-app-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -4px; right: -4px; }
@media (hover: hover) { .kit-app-handle:hover { background: var(--kit-quiet); } }
.kit-app-handle:focus-visible { outline: 0; background: var(--kit-focus, var(--kit-accent)); box-shadow: 0 0 0 1px var(--kit-focus, var(--kit-accent)); }
.kit-app-side-button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px;
  height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--kit-quiet); cursor: pointer;
  transition: transform var(--kit-press) var(--kit-ease-out); }
.kit-app-side-button svg { width: 20px; height: 20px; }
.kit-app-side-button[aria-pressed="true"] { color: var(--kit-on-main); background: var(--kit-secondary); }
@media (hover: hover) { .kit-app-side-button:hover { color: var(--kit-on-main); background: var(--kit-secondary); } }
.kit-app-side-button:active { transform: scale(0.97); }
.kit-app-side-button:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 1px; }
/* The menu, laid out like the UN Global Marketplace's (operator, 14 Nov 2026: "Check how good it's organized here"):
   a plain list in a calm readable size, a thin line in the secondary colour under every item (inset from the left),
   each group's heading larger and bold with a line under it across the menu, every group open, no icons, the page on
   show in bold, and a count as a small pill after the name, in the accent's role (work waiting on a person). */
.kit-app-menu ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kit-app-menu-item { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px;
  padding: 9px 12px; box-sizing: border-box; border: 0; border-radius: 0; background: transparent;
  color: var(--kit-on-main); font: inherit; font-size: 14px; font-weight: 400; line-height: 1.35; text-align: start;
  overflow-wrap: anywhere; cursor: pointer;
  transition: background-color var(--kit-enter) var(--kit-ease-out), transform var(--kit-press) var(--kit-ease-out); }
.kit-app-menu-item::after { content: ""; position: absolute; inset-inline-start: 12px; inset-inline-end: 0; bottom: 0; height: 1px;
  background: var(--kit-secondary); }
@media (hover: hover) { .kit-app-menu-item:hover { background: color-mix(in srgb, var(--kit-secondary) 55%, transparent); } }
.kit-app-menu-item[aria-current="page"] { font-weight: 700; }
.kit-app-menu-item:active { transform: scale(0.97); }
.kit-app-menu-name { flex: 1; min-width: 0; }
.kit-app-menu-count { flex: none; min-width: 20px; height: 20px; padding: 0 7px; box-sizing: border-box; border-radius: 999px;
  background: var(--kit-mark, var(--kit-accent)); color: var(--kit-on-mark, var(--kit-on-accent)); font-size: 12px;
  font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
/* A group: its heading larger and bold, a line under it across the menu, its items under it. */
.kit-app-group { display: grid; margin-top: 18px; }
.kit-app-group ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kit-app-group-head { display: block; padding: 0 12px 8px; border-bottom: 1px solid var(--kit-secondary);
  color: var(--kit-on-main); font-size: 18px; font-weight: 700; line-height: 1.3; }
/* The menu scrolls when it is longer than the window; its scrollbar is thin and in the line colour. */
.kit-app-menu { scrollbar-width: thin; scrollbar-color: var(--kit-line) transparent; }
.kit-app-menu-item:focus-visible, .kit-app-menu-button:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 1px; }
.kit-app-scrim { display: none; }
.kit-app-content { min-width: 0; padding: 32px; box-sizing: border-box; }
.kit-app-content-inner { display: grid; gap: 16px; max-width: 1100px; min-width: 0; }
@media (max-width: 900px) {
  .kit-app-bar { gap: 8px; padding: 0 12px; }
  .kit-app-menu-button { display: inline-flex; }
  .kit-app-body, .kit-app-body-side { grid-template-columns: minmax(0, 1fr); }
  .kit-app-handle, .kit-app-side, .kit-app-side-button { display: none; }
  .kit-app-menu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 40; width: min(300px, 85vw); height: auto;
    padding-top: 20px; border-inline-end: 0; box-shadow: 0 8px 32px color-mix(in srgb, var(--kit-on-main) 18%, transparent);
    transform: translateX(-100%); visibility: hidden;
    transition: transform var(--kit-exit) var(--kit-ease-exit), visibility var(--kit-exit) step-end; }
  /* A right-to-left page: the sheet comes from the right, its start side. */
  .kit-app-menu:dir(rtl):not(.kit-app-menu-open) { transform: translateX(100%); }
  .kit-app-menu-open { transform: none; visibility: visible;
    transition: transform var(--kit-enter) var(--kit-ease-out), visibility var(--kit-enter) step-start; }
  .kit-app-scrim-open { display: block; position: fixed; inset: 0; z-index: 30;
    background: color-mix(in srgb, var(--kit-on-main) 35%, transparent); animation: kit-fade-in var(--kit-enter) var(--kit-ease-out); }
  .kit-app-content { padding: 20px 16px; }
}
/* A phone: the bar's words (company, role) get a line of their own under the controls, whole, wrapping when long,
   never cut to "C...". The bar's end lets its items join the bar, so the words can take the full width. */
@media (max-width: 600px) {
  .kit-app-bar { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 4px; padding: 10px 12px; }
  .kit-app-bar-end { display: contents; }
  .kit-app-logo { margin-inline-end: auto; }
  .kit-app-bar-text { order: 1; flex: 1 0 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere;
    font-size: 13px; line-height: 18px; }
}

/* Text to copy exactly (a key shown once, a policy file): monospace on the secondary colour; long lines scroll inside
   the block, or break anywhere in a wrapping one (a key). */
.kit-code { margin: 0; max-width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px;
  background: var(--kit-secondary); color: var(--kit-on-secondary); font-family: var(--kit-mono); font-size: 13px;
  line-height: 20px; white-space: pre; overflow-x: auto; }
.kit-code code { font: inherit; }
.kit-code-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.kit-code:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 1px; }

/* The screen's header, cards, notices and status chips. Cards sit on the main colour with a hairline; notices and calm
   chips on the secondary colour; the accent only for a strong notice's mark and a strong chip. */
.kit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
  margin: 0 0 8px; }
.kit-head-words { min-width: 0; flex: 1 1 320px; }
.kit-head-title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em;
  text-wrap: balance; overflow-wrap: anywhere; }
.kit-head-line { margin: 6px 0 0; color: var(--kit-quiet); max-width: 68ch; }
.kit-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-card { border: 1px solid var(--kit-line); border-radius: 14px; background: var(--kit-raised, var(--kit-main)); padding: 20px;
  box-sizing: border-box; min-width: 0; }
.kit-card + .kit-card { margin-top: 16px; }
.kit-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-bottom: 14px; }
/* A part of a card with its own heading: a hairline above, the heading one step below the card's title (14 px, 600). */
.kit-subsection { display: grid; gap: 12px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--kit-line); }
.kit-subsection-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; text-wrap: balance; }
/* The first part at the top of a card needs no line above it: the card's own edge is there. */
.kit-card-body > .kit-subsection:first-child { padding-top: 0; border-top: 0; }
/* Steps in order (Steps): the number on the secondary colour, the words beside it, the note in monospace below. */
.kit-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.kit-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.kit-step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--kit-secondary);
  color: var(--kit-on-secondary); font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kit-step-body { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
.kit-step-title { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.kit-step-note { font-family: var(--kit-mono); font-size: 12px; line-height: 16px; color: var(--kit-quiet); overflow-wrap: anywhere; }
.kit-card-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; text-wrap: balance;
  overflow-wrap: anywhere; }
.kit-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: var(--kit-secondary); color: var(--kit-on-secondary); box-sizing: border-box;
  animation: kit-rise-in var(--kit-enter) var(--kit-ease-out); }
.kit-notice + .kit-notice { margin-top: 8px; }
.kit-notice--strong { box-shadow: inset 3px 0 0 var(--kit-mark, var(--kit-accent)); }
.kit-notice-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.kit-notice--strong .kit-notice-icon, .kit-notice--strong .kit-notice-title { color: var(--kit-mark-text, var(--kit-accent-text)); }
.kit-notice-words { min-width: 0; overflow-wrap: anywhere; }
.kit-notice-title { margin: 0 0 2px; font-weight: 600; }
.kit-notice-body > :first-child { margin-top: 0; }
.kit-notice-body > :last-child { margin-bottom: 0; }
.kit-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--kit-mark, var(--kit-secondary)); color: var(--kit-on-mark, var(--kit-on-secondary)); font-size: 12px; line-height: 16px; font-weight: 600;
  white-space: nowrap; }
.kit-badge--strong { background: var(--kit-mark, var(--kit-accent)); color: var(--kit-on-mark, var(--kit-on-accent)); }

/* Numbers, the empty state and the loading placeholder. */
.kit-figure { display: grid; gap: 2px; min-width: 0; }
.kit-figure-value { font-size: 30px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; overflow-wrap: anywhere; }
.kit-figure-label { color: var(--kit-quiet); font-size: 13px; line-height: 18px; }
.kit-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 16px; text-align: center;
  border: 1px dashed var(--kit-line); border-radius: 14px; }
.kit-empty-title { margin: 0; font-weight: 600; text-wrap: balance; }
.kit-empty-line { margin: 0; color: var(--kit-quiet); max-width: 52ch; text-wrap: balance; }
.kit-empty-action { margin-top: 12px; }
.kit-skeleton { display: grid; gap: 14px; padding: 4px 0; }
.kit-skeleton-row { display: grid; gap: 8px; }
.kit-skeleton-bar { display: block; height: 10px; width: 64%; border-radius: 6px; background: var(--kit-secondary);
  animation: kit-shimmer 1.4s var(--kit-ease-in-out) infinite alternate; }
.kit-skeleton-bar--title { height: 14px; width: 38%; }
@keyframes kit-shimmer { from { opacity: 1; } to { opacity: 0.45; } }

/* The item list: rows split by hairlines, the title over a line of facts, the chip and the actions at the right; on
   narrow screens the actions drop under the words. Rows of the first draw rise in 30 ms apart (--kit-row). */
.kit-items { margin: 0; padding: 0; list-style: none; }
.kit-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 4px;
  border-bottom: 1px solid var(--kit-line); animation: kit-rise-in var(--kit-enter) var(--kit-ease-out) both;
  animation-delay: calc(var(--kit-row, 0) * var(--kit-stagger)); }
.kit-item:last-child { border-bottom: 0; }
.kit-item-words { flex: 1 1 260px; min-width: 0; }
.kit-item-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kit-item-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 0; color: var(--kit-quiet); font-size: 13px;
  line-height: 18px; overflow-wrap: anywhere; }
.kit-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; }
/* A row's body (ItemList `body`): sentences under the title and facts, at the words' width; such a row keeps its chip
   and actions at the top, beside the title. */
.kit-item-body { display: grid; gap: 6px; margin-top: 8px; overflow-wrap: anywhere; }
.kit-item-body > * { margin: 0; }
.kit-item:has(> .kit-item-words > .kit-item-body) { align-items: flex-start; }

/* Facts: a label in the quiet colour beside its value (in the text's own figures: a facts list is read, not lined up
   in columns); under 600 px each label sits over its value. */
.kit-facts { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.kit-fact-term { color: var(--kit-quiet); overflow-wrap: anywhere; }
.kit-fact-value { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .kit-facts { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .kit-fact-value { margin-bottom: 10px; }
}

/* A link out of the app: the text's own colour, underlined; the accent text colour on hover. An address that is not
   a safe web address is plain text (.kit-out-text). */
.kit-out-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  overflow-wrap: anywhere; transition: color var(--kit-enter) var(--kit-ease-out); }
@media (hover: hover) { .kit-out-link:hover { color: var(--kit-mark-text, var(--kit-accent-text)); } }
.kit-out-link:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; border-radius: 2px; }
.kit-out-text { overflow-wrap: anywhere; }

/* Tabs wider than their place (many tabs on a phone) scroll sideways in their own row; the page never widens. */
.kit-tabs-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
/* Tabs that are pages of their own (LinkTabs) are where a person goes next, so on a phone none is hidden: the strip
   wraps onto as many rows as it needs, every tab whole (screenshot audit, 14 Nov 2026: To do needed 707 px of 358). */
@media (max-width: 700px) {
  .kit-tabs-row { overflow-x: visible; }
  .kit-tabs-row > .kit-tabs--links { display: flex; flex-wrap: wrap; gap: 2px; height: auto; min-height: 40px; }
}

/* How pieces sit together: cards side by side while each keeps 440 px (their tops lined up, no stacking space between
   them), a row of buttons 8 px apart that wraps, and plain sentences as a bulleted list. */
.kit-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px;
  align-items: start; }
.kit-card-grid > .kit-card + .kit-card { margin-top: 0; }
.kit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.kit-points { display: grid; gap: 6px; margin: 12px 0 0; padding-inline-start: 20px; list-style: disc; }
.kit-points li { overflow-wrap: anywhere; }

/* A card spaces what it holds itself: 12 px between its pieces (notices, facts, forms, lists, buttons, lines of
   text), none above the first or below the last; two notices in a row keep their closer 8 px. Words and chips side by
   side on one line stay on it. */
.kit-card .kit-card-body > * { margin-block: 0; }
.kit-card .kit-card-body > * + * { margin-top: 12px; }
.kit-card .kit-card-body > .kit-notice + .kit-notice { margin-top: 8px; }

/* A page outside an app's frame: one column (480 px, or 1100 px wide) under a top row (the logo at the left, then
   the light/dark switch and one action). */
.kit-plain { box-sizing: border-box; max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; display: grid;
  align-content: start; gap: 16px; }
.kit-plain--wide { max-width: 1100px; }
.kit-plain-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.kit-plain-logo { margin-inline-end: auto; }

/* A quiet note line under a piece. */
.kit-note { margin: 12px 0 0; color: var(--kit-quiet); overflow-wrap: anywhere; }

/* Forms: fields one under the other, or side by side on a row that wraps (each field at least 260 px, the button
   at the foot of the row); the honeypot off the screen. */
.kit-form { display: grid; gap: 16px; min-width: 0; }
.kit-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; min-width: 0; }
.kit-form-row > .kit-field, .kit-form-row > .kit-field-frame, .kit-form-row > .kit-file { flex: 1 1 260px; min-width: 0; }
/* Fields side by side inside one form: as many across as fit at 220 px, the boxes lined up at the foot; one column on
   a phone. */
.kit-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end;
  min-width: 0; }
.kit-field-row > * { min-width: 0; }
.kit-honeypot { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Choosing a file: the browser's own box out of sight, the kit's button and the chosen file's name beside it. */
.kit-file { display: grid; gap: 6px; min-width: 0; }
.kit-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.kit-file-input { display: none; }
.kit-file-name { min-width: 0; color: var(--kit-quiet); overflow-wrap: anywhere; }

/* Dropping files (kit-files-web): a dashed box in the page's colours; the edge turns accent while files are held over
   it. Each file sent gets a line: its name, a progress bar, and its answer. */
.kit-drop { display: grid; gap: 8px; padding: 20px; border: 1.5px dashed var(--kit-line); border-radius: 12px;
  background: var(--kit-main); transition: border-color var(--kit-enter) var(--kit-ease-out); }
.kit-drop-over { border-color: var(--kit-mark, var(--kit-accent)); }
.kit-drop-title { margin: 0; font-weight: 600; }
.kit-drop-line { margin: 0; color: var(--kit-quiet); }
.kit-drop-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.kit-drop-list:empty { display: none; }
.kit-drop-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, auto); gap: 12px; align-items: center; }
.kit-drop-item .kit-meter { width: 96px; }
.kit-drop-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-drop-state { color: var(--kit-quiet); overflow-wrap: anywhere; }
@media (max-width: 600px) { .kit-drop-item { grid-template-columns: minmax(0, 1fr) 72px; }
  .kit-drop-item .kit-meter { width: 72px; } .kit-drop-state { grid-column: 1 / -1; } }

/* Records pages (kit-clients-web, kit-banking-web): a search with its filters on one row, tick boxes in a row. */
.kit-filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 16px; }
.kit-filter-row > * { flex: 1 1 200px; min-width: 0; }
.kit-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.kit-check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.kit-amount { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kit-quiet { color: var(--kit-quiet); }

/* Form pieces: the label above its control, a hint and an error under it; tick boxes in the text colour when chosen;
   the switch's track in the accent when on, its knob stretching 12% while pressed. */
.kit-field-frame { display: grid; gap: 6px; min-width: 0; }
.kit-field { display: grid; gap: 6px; min-width: 0; }
/* One label look for every field (the website's input label, as .kit-label in kit.css): 14 px, medium. A tick box's
   or a switch's words are its label too. */
.kit-field-label, .kit-check > span, .kit-switch-label { font-size: 14px; line-height: 20px; font-weight: 500;
  overflow-wrap: anywhere; }
.kit-field-hint { margin: 0; color: var(--kit-quiet); font-size: 13px; line-height: 18px; }
.kit-field-error { margin: 0; color: var(--kit-mark-text, var(--kit-accent-text)); font-size: 13px; line-height: 18px; font-weight: 600; }
.kit-select { cursor: pointer; }
.kit-textarea { height: auto; min-height: 88px; resize: vertical; }
.kit-check { display: flex; align-items: flex-start; gap: 10px; min-height: 24px; padding: 4px 0; cursor: pointer;
  overflow-wrap: anywhere; }
/* A tick is a choice, not an alert: in the text colour (the theme's mark when it has one), so a column of ticks does not
   spend the accent (screenshot audit, 14 Nov 2026: seven accent ticks on the monthly run). */
.kit-check-box { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--kit-mark, var(--kit-on-main)); cursor: pointer; }
.kit-check-box:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }
.kit-radios { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.kit-radios legend { padding: 0; margin-bottom: 6px; }
.kit-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0;
  background: transparent; color: var(--kit-on-main); font: inherit; text-align: start; cursor: pointer; }
.kit-switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--kit-on-main) 22%, transparent);
  transition: background-color var(--kit-enter) var(--kit-ease-in-out); }
.kit-switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--kit-main); box-shadow: 0 1px 2px color-mix(in srgb, var(--kit-on-main) 25%, transparent);
  transition: transform var(--kit-enter) var(--kit-ease-in-out), width var(--kit-press) var(--kit-ease-out); }
.kit-switch[aria-checked="true"] .kit-switch-track { background: var(--kit-mark, var(--kit-accent)); }
.kit-switch[aria-checked="true"] .kit-switch-knob { transform: translateX(16px); }
.kit-switch:active .kit-switch-knob { width: 20px; }
.kit-switch[aria-checked="true"]:active .kit-switch-knob { transform: translateX(14px); }
.kit-switch:focus-visible .kit-switch-track { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .kit-theme-thumb, .kit-theme button, .kit-app-menu, .kit-app-menu-item, .kit-app-menu-button, .kit-switch-track,
  .kit-switch-knob, .kit-out-link, .kit-drop { transition: none; }
  .kit-app-scrim-open, .kit-notice, .kit-skeleton-bar, .kit-item { animation: none; }
}

/* A product page (site.rs): the hero, its parts and the features. Words on the main colour, the features on the
   secondary colour, the accent only on the main action; each part rises in once. */
.kit-hero { display: grid; gap: 16px; justify-items: start; padding: 48px 0 32px; animation: kit-rise-in var(--kit-enter) var(--kit-ease-out); }
.kit-hero-label { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--kit-quiet); }
.kit-hero-title { margin: 0; max-width: 20ch; font-size: 44px; line-height: 50px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.kit-hero-lead { margin: 0; max-width: 60ch; font-size: 18px; line-height: 28px; color: var(--kit-quiet); }
.kit-hero-actions, .kit-section-body .kit-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.kit-section { display: grid; gap: 16px; padding: 40px 0; border-top: 1px solid var(--kit-line); min-width: 0;
  animation: kit-rise-in var(--kit-enter) var(--kit-ease-out) both; }
.kit-section-title { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.kit-section-body { display: grid; gap: 16px; min-width: 0; }
.kit-section-body > p { margin: 0; max-width: 70ch; font-size: 16px; line-height: 26px; }
.kit-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.kit-feature { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 14px; background: var(--kit-secondary);
  color: var(--kit-on-secondary); min-width: 0; }
.kit-feature-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; text-wrap: balance; }
.kit-feature-body > p { margin: 0; font-size: 14px; line-height: 22px; }
.kit-link-button { text-decoration: none; box-sizing: border-box; }
.kit-link-button:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }
@media (max-width: 600px) {
  .kit-hero { padding: 32px 0 24px; }
  .kit-hero-title { font-size: 32px; line-height: 38px; }
  .kit-hero-lead { font-size: 16px; line-height: 26px; }
  .kit-section { padding: 32px 0; }
  .kit-section-title { font-size: 24px; line-height: 30px; }
  .kit-link-button { white-space: normal; height: auto; min-height: 40px; text-align: center; }
}

/* A short product page (site.rs): the hero with its picture beside it, plain cards with "Learn more", links fetched
   ahead, the page clear of a phone's notch, and everything to touch at least 44 px. */
.kit-hero-words { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.kit-hero--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; justify-items: stretch; column-gap: 48px; }
.kit-hero--still { animation-name: none; }
.kit-hero-picture { min-width: 0; width: 100%; }
.kit-hero-title { view-transition-name: kit-page-title; }
.kit-link-card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit-link-card { display: grid; align-content: start; gap: 6px; padding: 20px; border-radius: 14px; background: var(--kit-secondary);
  color: var(--kit-on-secondary); min-width: 0; }
.kit-link-card-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; text-wrap: balance; }
.kit-link-card-line { margin: 0; font-size: 15px; line-height: 22px; }
.kit-prefetch-link { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; min-width: 44px;
  color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 8px; }
.kit-prefetch-link:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }
.kit-link-button { min-height: 44px; }
.kit-site .kit-plain { padding-top: max(24px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.kit-site .kit-footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.kit-site .kit-footer-links a:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }
.kit-site .kit-theme button { height: 44px; }
.kit-site .kit-player button { width: 44px; height: 44px; }
.kit-site h1 { text-wrap: balance; }
.kit-site-panel { display: grid; gap: 12px; min-width: 0; }
.kit-site-panel > p, .kit-site-panel li { margin: 0; font-size: 16px; line-height: 26px; }
.kit-site-panel .kit-points { margin: 0; display: grid; gap: 8px; }
@media (max-width: 760px) {
  .kit-hero--split { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .kit-link-card-row { grid-template-columns: minmax(0, 1fr); }
}

/* A mailing list's pieces (newsletter.rs): the email box and its one button side by side (stacked on a phone), both
   44 px to touch, then the one reply line, on the secondary colour; the pages an email links to; an issue's cards, on the
   secondary colour, with their sources. */
.kit-subscribe { display: grid; gap: 8px; max-width: 560px; padding: 16px; border-radius: 14px; background: var(--kit-secondary);
  color: var(--kit-on-secondary); }
.kit-subscribe-row { display: flex; align-items: flex-end; gap: 8px; }
.kit-subscribe-row .kit-field { flex: 1 1 auto; min-width: 0; }
.kit-subscribe .kit-input { height: 44px; }
.kit-subscribe-button { height: 44px; min-width: 44px; }
.kit-subscribe-reply { margin: 0; min-height: 20px; font-size: 14px; line-height: 20px; }
.kit-list-page { display: grid; gap: 12px; justify-items: start; }
.kit-list-page-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; text-wrap: balance; }
.kit-list-page-line { margin: 0; font-size: 16px; line-height: 26px; }
.kit-list-page-back { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; border-radius: 8px; }
.kit-list-page-back:focus-visible, .kit-issue-sources a:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }
.kit-issue { justify-items: stretch; }
.kit-issue-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.kit-issue .kit-card { background: var(--kit-secondary); color: var(--kit-on-secondary); border-color: transparent; }
.kit-issue-words { margin: 0 0 12px; }
.kit-issue-sources { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.kit-issue-sources a { display: inline-flex; align-items: center; min-height: 44px; }
.kit-newsletter-demo { display: grid; gap: 32px; }
@media (max-width: 480px) {
  .kit-subscribe-row { flex-direction: column; align-items: stretch; }
}
/* A screen the person's role does not open: greyed, not hidden (menu_locked). */
.kit-app-menu-locked { opacity: 0.55; cursor: not-allowed; }
.kit-app-menu-locked:active { transform: none; }
