/* The kit's screen pieces. Every colour comes from the app's theme: --kit-main (60% of a page), --kit-secondary
   (30%), --kit-accent (10%), and the text colour on each (--kit-on-*); shades are mixed from those only.
   The accent fills action buttons. Whatever else stands out reads a role of its own with the accent's as its fallback,
   for a theme whose accent is for actions only (Vavus AI): --kit-focus (focus rings), --kit-mark and --kit-on-mark
   (chosen and counted things), --kit-mark-text (marked words), --kit-logo-v, and --kit-raised (cards, else main).
   Sizes, corners and type follow the Vavus AI website's pieces (vavusaccount components/ui, --radius 0.75rem).
   Motion (operator 9 Nov 2026): one set of timings and curves below; entrances ease out, on-screen moves ease in and
   out, exits are 20% shorter, nothing bounces, pop-ups grow from 0.95 out of their trigger and go back to it. */
:root { --kit-enter: 200ms; --kit-exit: 160ms; --kit-press: 100ms; --kit-stagger: 30ms; --kit-spin: 1s;
  --kit-ease-out: cubic-bezier(0.22, 1, 0.36, 1); --kit-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --kit-ease-exit: cubic-bezier(0.55, 0, 1, 0.45);
  /* Fonts (brand standard, 9 Nov 2026): fonts.css serves them from the app itself. */
  --kit-font: 'Schibsted Grotesk', 'Inter', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans KR', system-ui, sans-serif;
  --kit-mono: 'JetBrains Mono', 'Inter', ui-monospace, monospace; }
@keyframes kit-pop-in { from { opacity: 0; transform: scale(0.95); } }
@keyframes kit-pop-out { to { opacity: 0; transform: scale(0.95); } }
@keyframes kit-fade-in { from { opacity: 0; } }
@keyframes kit-fade-out { to { opacity: 0; } }
@keyframes kit-rise-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes kit-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kit-mark, var(--kit-accent)) 45%, transparent); }
  to { box-shadow: 0 0 0 10px color-mix(in srgb, var(--kit-mark, var(--kit-accent)) 0%, transparent); } }
.kit-page { margin: 0; min-height: 100vh; background: var(--kit-main); color: var(--kit-on-main);
  font-family: var(--kit-font); font-size: 14px; line-height: 20px; }
.kit-mono { font-family: var(--kit-mono); }
.kit-frame-header { display: flex; align-items: center; gap: 12px; padding: 16px 24px;
  background: var(--kit-secondary); color: var(--kit-on-secondary); }
.kit-frame-title { font-size: 18px; line-height: 28px; font-weight: 600; margin: 0; }
.kit-frame-body { max-width: 1024px; margin: 0 auto; padding: 24px; box-sizing: border-box; }
@media (min-width: 1024px) { .kit-frame-body { padding: 32px; } }
.kit-panel { background: var(--kit-secondary); color: var(--kit-on-secondary); border-radius: 12px; padding: 24px; }

.kit-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
  padding: 8px 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 14px;
  line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: transform var(--kit-press) var(--kit-ease-out), filter var(--kit-enter) var(--kit-ease-out); }
.kit-button--accent { background: var(--kit-accent); color: var(--kit-on-accent); }
.kit-button--secondary { background: var(--kit-secondary); color: var(--kit-on-secondary); border-color: var(--kit-edge, transparent); }
.kit-button--plain { background: transparent; color: var(--kit-on-main);
  border-color: color-mix(in srgb, var(--kit-on-main) 20%, transparent); }
.kit-button--ghost { background: transparent; color: var(--kit-on-main); }
.kit-button--wide { width: 100%; }
/* Round: a sign or an icon only, 32 px, its name on hover (ButtonKind::Round). */
.kit-button--round { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: transparent;
  color: var(--kit-on-main); border-color: var(--kit-line); font-size: 16px; line-height: 1; }
.kit-button--round[aria-pressed="true"] { background: var(--kit-mark, var(--kit-secondary)); color: var(--kit-on-mark, var(--kit-on-secondary)); }
.kit-button--round svg { width: 16px; height: 16px; flex: none; }
.kit-button[aria-busy="true"] { cursor: progress; }
@media (hover: hover) { .kit-button:hover { filter: brightness(0.95); } }
.kit-button:active { transform: scale(0.97); }
.kit-button:disabled { opacity: 0.5; pointer-events: none; }
.kit-button:focus-visible, .kit-input:focus-visible, .kit-tab:focus-visible, .kit-icon-button:focus-visible {
  outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }

.kit-field { display: grid; gap: 6px; }
.kit-label { font-size: 14px; line-height: 20px; font-weight: 500; }
.kit-input { display: flex; box-sizing: border-box; width: 100%; height: 44px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--kit-on-main) 25%, transparent); background: var(--kit-main);
  color: var(--kit-on-main); font: inherit; font-size: 16px; line-height: 24px; }
/* Text in a box stays 16 px at every width (no 14 px from 768 px): Safari on an iPhone or iPad zooms the page into a
   box with smaller text. */
.kit-input::placeholder { color: color-mix(in srgb, var(--kit-on-main) 55%, transparent); }
.kit-input:disabled { opacity: 0.5; cursor: not-allowed; }
.kit-input-wrap { position: relative; }
.kit-input-wrap .kit-input { padding-inline-end: 44px; }
.kit-icon-button { position: absolute; inset-inline-end: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--kit-on-main); cursor: pointer; font: inherit; }
/* Two icons in one place: the new one comes in as the old one leaves, crossfading with scale and blur. */
.kit-swap { display: grid; place-items: center; }
.kit-swap > svg { grid-area: 1 / 1; width: 16px; height: 16px;
  transition: opacity var(--kit-enter) var(--kit-ease-out), transform var(--kit-enter) var(--kit-ease-out),
    filter var(--kit-enter) var(--kit-ease-out); }
.kit-swap > svg[data-off] { opacity: 0; transform: scale(0.6); filter: blur(4px); }
.kit-field-error { color: var(--kit-mark-text, var(--kit-accent)); font-size: 14px; line-height: 20px; margin: 0; }

.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kit-list-item { padding: 12px 16px; border-radius: 10px; animation: kit-rise-in var(--kit-enter) var(--kit-ease-out) both;
  animation-delay: calc(var(--kit-row, 0) * var(--kit-stagger)); }
@media (hover: hover) { .kit-list-item:hover { background: color-mix(in srgb, var(--kit-secondary) 60%, var(--kit-main)); } }
.kit-list-empty { padding: 12px 16px; opacity: 0.7; }

.kit-backdrop { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--kit-on-main) 60%, transparent);
  animation: kit-fade-in var(--kit-enter) var(--kit-ease-out); }
.kit-backdrop.kit-leaving { animation: kit-fade-out var(--kit-exit) var(--kit-ease-exit) forwards; }
.kit-dialog { position: fixed; inset: 0; margin: auto; z-index: 50; box-sizing: border-box; height: fit-content;
  display: grid; gap: 16px; width: 100%; max-width: 512px; padding: 24px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--kit-on-main) 15%, transparent); background: var(--kit-main); color: var(--kit-on-main);
  transform-origin: var(--kit-origin, 50% 0); animation: kit-pop-in var(--kit-enter) var(--kit-ease-out); }
/* A dialog never taller than the screen (16 px clear above and below): the title stays, the words scroll inside. */
.kit-dialog { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); grid-template-rows: auto minmax(0, 1fr); }
.kit-dialog-body { display: grid; gap: 16px; align-content: start; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 3px; margin: -3px; }
.kit-dialog.kit-leaving { animation: kit-pop-out var(--kit-exit) var(--kit-ease-exit) forwards; }
.kit-dialog-title { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; }
.kit-dialog-close { position: absolute; inset-inline-end: 16px; top: 16px; }
/* A dialog that is leaving takes no clicks: a press during its exit never lands on it or on the dimmed page. */
.kit-backdrop.kit-leaving, .kit-dialog.kit-leaving { pointer-events: none; }
/* A confirmation: the title, what will happen, then Cancel and the action at the end of the row; on a narrow screen the
   action above Cancel, each the full width (Cancel stays first for the keyboard). */
.kit-confirm { max-width: 440px; grid-template-rows: auto minmax(0, 1fr) auto; }
.kit-confirm-about { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.kit-confirm-about > :is(p, ol, ul) { margin: 0; }
.kit-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 480px) {
  .kit-confirm-actions { flex-direction: column-reverse; }
  .kit-confirm-actions > .kit-button { width: 100%; }
}

.kit-tabs { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 4px; box-sizing: border-box;
  border-radius: 10px; background: var(--kit-secondary); color: var(--kit-on-secondary); }
/* One marker for the open tab, moved (not redrawn) from tab to tab: a mask over a full-width strip. */
.kit-tab-marker { position: absolute; inset: 4px; border-radius: 8px; background: var(--kit-mark, var(--kit-main)); pointer-events: none;
  clip-path: var(--kit-mask, inset(0 100% 0 0 round 8px)); transition: clip-path var(--kit-enter) var(--kit-ease-in-out); }
.kit-tab { position: relative; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit;
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.kit-tab[aria-selected="true"] { color: var(--kit-on-mark, var(--kit-on-main)); }
.kit-tab-panel { margin-top: 8px; }
/* Tabs that are pages of their own (LinkTabs): above the page, the open tab in the main colour on the strip's
   secondary; a tab's count quiet, or in the accent when it is work waiting on a person. */
.kit-tabs-row { margin: 0 0 16px; }
.kit-tabs--links .kit-tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; box-sizing: border-box;
  text-decoration: none; transition: background-color var(--kit-enter) var(--kit-ease-out), color var(--kit-enter) var(--kit-ease-out); }
@media (hover: hover) { .kit-tabs--links .kit-tab:hover { background: color-mix(in srgb, var(--kit-main) 45%, transparent); } }
.kit-tabs--links .kit-tab[aria-selected="true"] { background: var(--kit-raised, var(--kit-main)); color: var(--kit-on-main); }
.kit-tabs--links .kit-tab:active { transform: scale(0.97); }
.kit-tab-count { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, currentColor 12%, transparent); }
.kit-tab-count--loud { background: var(--kit-mark, var(--kit-accent)); color: var(--kit-on-mark, var(--kit-on-accent)); }
@media (prefers-reduced-motion: reduce) { .kit-tabs--links .kit-tab { transition: none; } }

.kit-table-wrap { position: relative; width: 100%; overflow: auto; }
.kit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kit-table tr { border-bottom: 1px solid color-mix(in srgb, var(--kit-on-main) 15%, transparent); }
.kit-table th { height: 48px; padding: 0 16px; text-align: start; vertical-align: middle; font-weight: 500; }
.kit-table td { padding: 16px; vertical-align: middle; }

.kit-toast { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 60; max-width: 420px; padding: 12px 16px; border-radius: 12px;
  border-inline-start: 4px solid var(--kit-mark, var(--kit-accent)); background: var(--kit-secondary); color: var(--kit-on-secondary);
  animation: kit-rise-in var(--kit-enter) var(--kit-ease-out), kit-pulse calc(var(--kit-enter) * 3) var(--kit-ease-out) var(--kit-enter); }
.kit-toast.kit-leaving { animation: kit-fade-out var(--kit-exit) var(--kit-ease-exit) forwards; }
.kit-toast-title { margin: 0; font-weight: 600; }
.kit-toast-text { margin: 4px 0 0; }
.kit-link { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
/* Words for screen readers only (a label whose control explains itself, a heading the layout already shows). */
.kit-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  [class*="kit-"], [class*="kit-"] > svg { animation-duration: 1ms !important; animation-delay: 0ms !important;
    transition-duration: 1ms !important; }
}

/* The logo (brand standard): VAVUS, the V in the accent; the product name centred under it in small capitals. */
.kit-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1;
  font-family: var(--kit-font); color: var(--kit-on-main); --kit-logo-size: 30px; }
.kit-logo-word { font-size: var(--kit-logo-size); font-weight: 800; letter-spacing: 0.01em; }
.kit-logo-v { color: var(--kit-logo-v, var(--kit-accent)); }
.kit-logo-product { font-size: calc(var(--kit-logo-size) * 0.357); font-weight: 600; letter-spacing: 0.16em;
  margin-right: -0.16em; text-transform: uppercase; }

/* The player over a scene: pause or play, and replay from the start. */
.kit-player { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; display: flex; gap: 2px; padding: 3px;
  border-radius: 9999px; background: color-mix(in srgb, var(--kit-secondary) 80%, transparent); backdrop-filter: blur(6px); }
.kit-player button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent;
  color: var(--kit-on-secondary); display: grid; place-items: center; cursor: pointer;
  transition: transform var(--kit-press) var(--kit-ease-out); }
@media (hover: hover) { .kit-player button:hover { background: color-mix(in srgb, var(--kit-on-secondary) 12%, transparent); } }
.kit-player button:active { transform: scale(0.92); }
.kit-player button:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 1px; }
.kit-player svg { width: 14px; height: 14px; }

/* The site footer: links, the language picker, the copyright line with © and ® in the accent. */
.kit-footer { border-top: 1px solid var(--kit-line); padding: 14px 16px 22px; text-align: center; font-size: 12.5px;
  line-height: 1.6; color: var(--kit-quiet); }
.kit-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.kit-footer-links a { color: inherit; text-decoration: none; }
@media (hover: hover) { .kit-footer-links a:hover { text-decoration: underline; } }
.kit-footer-row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: center; margin-top: 10px; }
.kit-footer-mark { color: var(--kit-mark-text, var(--kit-accent-text)); }
/* The ® sits on the line at the text's own size, like the © before it (operator 2026-11-14). */
.kit-footer-reg { margin-left: 1px; }
/* The language picker in the footer draws itself (no native select drawing): a fixed 24 px box, the word on a 24 px
   line, a small arrow from two CSS gradients (no image, so no CSP change). The native drawing placed the word by font
   metrics that differ between Chromes and cut "English" off (scrollHeight 30 in a 21 px box; operator 2026-11-14). */
.kit-footer .kit-language { -webkit-appearance: none; appearance: none; display: inline-block; box-sizing: border-box;
  width: auto; height: 24px; min-height: 0; padding: 0 18px 0 4px; border: 0; border-radius: 6px; line-height: 24px;
  font-size: inherit; color: inherit; cursor: pointer; background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 5px) 55%; background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat; }

/* Concierge's small pieces (10 Nov 2026). The "⋯" menu on a row: links, then one removing action set apart; it grows
   out of its button. A thin meter: the line colour for the track, the text colour for the fill, the accent when low.
   The time-zone picker's search results: a short scrolling list of choices. */
.kit-options { position: relative; display: inline-block; }
.kit-options-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--kit-quiet);
  font: inherit; font-size: 18px; line-height: 1; }
.kit-options-button[aria-expanded="true"] { background: var(--kit-secondary); color: var(--kit-on-secondary); }
@media (hover: hover) { .kit-options-button:hover { background: var(--kit-secondary); color: var(--kit-on-secondary); } }
.kit-options-button:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 2px; }
.kit-options-pop { min-width: 200px; display: grid; gap: 4px; padding: 6px; border-radius: 12px;
  border: 1px solid var(--kit-line); background: var(--kit-main); color: var(--kit-on-main); }
.kit-options-links { display: grid; }
.kit-options-item { display: block; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.kit-options-item:focus-visible { background: var(--kit-secondary); color: var(--kit-on-secondary); outline: none; }
@media (hover: hover) { .kit-options-item:hover { background: var(--kit-secondary); color: var(--kit-on-secondary); outline: none; } }
.kit-options-danger { border-top: 1px solid var(--kit-line); padding-top: 4px; }
.kit-meter { display: inline-block; width: 64px; height: 4px; border-radius: 2px; background: var(--kit-line); vertical-align: middle;
  overflow: hidden; }
.kit-meter-fill { display: block; height: 100%; background: var(--kit-on-main); }
.kit-meter-low { background: var(--kit-mark, var(--kit-accent)); }
/* The "i" beside a title or label, and its words: the text colour as the tip's ground, the page colour as its words. */
.kit-info { position: relative; display: inline-flex; margin-inline-start: 6px; vertical-align: middle; }
.kit-info-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--kit-quiet); color: var(--kit-quiet); font-size: 11px; font-style: italic; font-weight: 600; line-height: 1;
  cursor: help; }
.kit-info:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 2px; border-radius: 50%; }

/* A list beside what it opens (conversation.rs): side by side when wide, one at a time at 860 px and under. */
.kit-split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.kit-split-back { display: none; }
@media (max-width: 860px) {
  .kit-split { grid-template-columns: minmax(0, 1fr); }
  .kit-split--open .kit-split-list, .kit-split:not(.kit-split--open) .kit-split-detail { display: none; }
  .kit-split-back { display: block; margin-bottom: 8px; }
}
/* Rows to open, under headings; the open one on the secondary colour. */
.kit-pick { display: grid; gap: 2px; }
.kit-pick-group + .kit-pick-group { margin-top: 8px; }
.kit-pick-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--kit-quiet); }
.kit-pick-row { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  color: inherit; font: inherit; text-align: start; cursor: pointer;
  transition: background var(--kit-enter) var(--kit-ease-out), transform var(--kit-press) var(--kit-ease-out); }
@media (hover: hover) { .kit-pick-row:hover { background: color-mix(in srgb, var(--kit-secondary) 60%, var(--kit-main)); } }
.kit-pick-row:active { transform: scale(0.97); }
.kit-pick-row[aria-current="true"] { background: var(--kit-mark, var(--kit-secondary)); color: var(--kit-on-mark, var(--kit-on-secondary)); }
.kit-pick-row:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 2px; }
.kit-pick-top, .kit-pick-meta { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.kit-pick-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-pick-badges { display: inline-flex; gap: 4px; flex-shrink: 0; }
.kit-pick-line { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-pick-meta { font-size: 12px; color: var(--kit-quiet); }
/* The chosen row in a theme's mark: its facts in the text on the mark, its badges ringed so they stay apart from it. */
.kit-pick-row[aria-current="true"] .kit-pick-meta { color: var(--kit-on-mark, var(--kit-quiet)); }
.kit-pick-row[aria-current="true"] .kit-badge { box-shadow: inset 0 0 0 1px var(--kit-on-mark, transparent); }
/* One line of a conversation: the customer at the start on the main colour, the business at the end. */
.kit-chat { max-width: 85%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--kit-line); }
.kit-chat + .kit-chat { margin-top: 8px; }
.kit-chat--customer { margin-inline-end: auto; background: var(--kit-main); color: var(--kit-on-main); }
.kit-chat--agent, .kit-chat--staff { margin-inline-start: auto; background: var(--kit-secondary); color: var(--kit-on-secondary); }
.kit-chat--staff { border-color: var(--kit-on-secondary); }
.kit-chat-meta { display: flex; gap: 12px; justify-content: space-between; font-size: 12px; color: var(--kit-quiet); }
.kit-chat-text { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* A part of a card that folds away (fold.rs). */
.kit-fold { border-top: 1px solid var(--kit-line); }
.kit-fold:first-child { border-top: 0; }
.kit-fold-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 600; }
.kit-fold-row::-webkit-details-marker { display: none; }
.kit-fold-row:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 2px; border-radius: 6px; }
.kit-fold-title { flex: 0 1 auto; }
.kit-fold-note { font-weight: 400; font-size: 14px; color: var(--kit-quiet); }
.kit-fold-chevron { margin-inline-start: auto; width: 8px; height: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--kit-enter) var(--kit-ease-out); }
/* Only this fold's own arrow: a closed fold inside an open one keeps its closed arrow. */
.kit-fold[open] > .kit-fold-row > .kit-fold-chevron { transform: rotate(225deg); }
.kit-fold-body { padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .kit-pick-row, .kit-fold-chevron { transition: none; } }

/* A week of opening hours (week_hours.rs). */
.kit-hours { display: grid; gap: 8px; }
.kit-hours-row { display: grid; grid-template-columns: 110px auto 1fr; gap: 8px 12px; align-items: start; }
.kit-hours-day { padding-top: 8px; font-weight: 500; }
.kit-hours-row > .kit-check { padding-top: 8px; }
.kit-hours-spans { display: grid; gap: 6px; }
.kit-hours-span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kit-hours-time { width: auto; min-width: 120px; }
@media (max-width: 560px) { .kit-hours-row { grid-template-columns: 1fr auto; } .kit-hours-spans { grid-column: 1 / -1; } }
/* A calendar (calendar_view.rs): the month, and the day / week time grid. */
.kit-cal-month { border: 1px solid var(--kit-line); border-radius: 12px; overflow: hidden; }
.kit-cal-month-head, .kit-cal-month-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kit-cal-month-head span { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--kit-quiet); }
.kit-cal-cell { min-height: 96px; padding: 4px; border-top: 1px solid var(--kit-line); border-inline-start: 1px solid var(--kit-line);
  display: grid; align-content: start; gap: 2px; min-width: 0; }
.kit-cal-cell:nth-child(7n + 1) { border-inline-start: 0; }
.kit-cal-cell--dim { color: var(--kit-quiet); }
.kit-cal-day, .kit-cal-more { justify-self: start; border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px;
  padding: 2px 6px; border-radius: 6px; cursor: pointer; }
@media (hover: hover) { .kit-cal-day:hover, .kit-cal-more:hover { background: var(--kit-secondary); } }
.kit-cal-chip { display: block; width: 100%; padding: 2px 6px; border: 1px solid var(--kit-line); border-radius: 6px; font: inherit;
  font-size: 12px; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
  background: var(--kit-secondary); color: var(--kit-on-secondary); }
.kit-cal-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--kit-line); border-radius: 12px; }
.kit-cal-grid { display: grid; position: relative; height: 1440px; min-width: 100%; }
.kit-cal-gutter, .kit-cal-col { position: relative; }
.kit-cal-col { border-inline-start: 1px solid var(--kit-line); }
.kit-cal-hour { position: absolute; inset-inline-end: 6px; transform: translateY(-50%); font-size: 11px; color: var(--kit-quiet); }
.kit-cal-hour:first-child { transform: none; }
.kit-cal-line { position: absolute; inset-inline: 0; border-top: 1px solid var(--kit-line); }
.kit-cal-pick { position: absolute; inset-inline: 0; border: 0; background: transparent; cursor: pointer; }
@media (hover: hover) { .kit-cal-pick:hover { background: color-mix(in srgb, var(--kit-secondary) 50%, transparent); } }
.kit-cal-pick:focus-visible, .kit-cal-block:focus-visible, .kit-cal-chip:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 1px; }
.kit-cal-block { position: absolute; z-index: 1; display: grid; align-content: start; overflow: hidden; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--kit-line); background: var(--kit-secondary); color: var(--kit-on-secondary); font: inherit; font-size: 12px;
  text-align: start; cursor: pointer; }
.kit-cal-block-time { font-weight: 600; }
.kit-cal-block-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-cal-chip--faded, .kit-cal-block--faded { opacity: 0.5; text-decoration: line-through; }
.kit-cal-chip--held, .kit-cal-block--held { border-color: var(--kit-mark, var(--kit-accent)); border-width: 2px; }
.kit-cal-chip--note, .kit-cal-block--note { border-style: dashed; background: var(--kit-main); color: var(--kit-quiet); cursor: default; }
/* A table whose cells hold controls (view_table.rs): the current row on the secondary colour. */
.kit-table tr[aria-current="true"] td { background: var(--kit-mark, var(--kit-secondary)); color: var(--kit-on-mark, var(--kit-on-secondary)); }
.kit-table td .kit-actions { margin: 0; }
/* Numbers on a report (stats.rs). */
.kit-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 12px 0; }
.kit-stat { display: grid; align-content: start; gap: 4px; padding: 14px 16px; border: 1px solid var(--kit-line); border-radius: 12px;
  background: var(--kit-main); color: var(--kit-on-main); text-decoration: none; }
@media (hover: hover) { .kit-stat--link:hover { background: color-mix(in srgb, var(--kit-secondary) 60%, var(--kit-main)); } }
.kit-stat-label { font-size: 13px; color: var(--kit-quiet); }
.kit-stat-value { font-size: 26px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kit-stat-value--loud { color: var(--kit-mark-text, var(--kit-accent-text)); }
.kit-stat-sub { font-size: 13px; color: var(--kit-quiet); }
.kit-stat-value--words { font-size: 20px; line-height: 1.25; }
/* Even rows (StatTiles columns): the counts come from the page as --kit-stats-cols / --kit-stats-cols-md. */
.kit-stats--even { grid-template-columns: repeat(var(--kit-stats-cols, 4), minmax(0, 1fr)); }
@media (max-width: 1100px) { .kit-stats--even { grid-template-columns: repeat(var(--kit-stats-cols-md, 3), minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kit-stats--even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kit-stats--even > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kit-stat-value--words { font-size: 17px; }
}
/* A card's quiet line beside its title (Card note); the card styles themselves are in app.css. */
.kit-card-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--kit-quiet); }
.kit-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; }
.kit-bar { flex: 1 1 0; border-radius: 4px 4px 0 0; background: var(--kit-on-main); min-height: 2px; }
.kit-bar--empty { background: var(--kit-line); }
.kit-bars-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--kit-quiet); }
/* On-or-off choices as chips (chips.rs). */
.kit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-chip { padding: 4px 12px; border: 1px solid var(--kit-line); border-radius: 999px; background: var(--kit-main); color: var(--kit-on-main);
  font: inherit; font-size: 14px; cursor: pointer; transition: transform var(--kit-press) var(--kit-ease-out); }
.kit-chip:active { transform: scale(0.97); }
.kit-chip[aria-pressed="true"] { background: var(--kit-mark, var(--kit-secondary)); color: var(--kit-on-mark, var(--kit-on-secondary));
  border-color: var(--kit-mark, var(--kit-on-secondary)); }
.kit-chip:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 2px; }
/* What a process does, drawn left to right (flow.rs). */
.kit-flow-scroll { overflow: auto; border: 1px solid var(--kit-line); border-radius: 12px; background: var(--kit-main); }
.kit-flow-node { outline: none; }
.kit-flow-ring { opacity: 0; transition: opacity var(--kit-enter) var(--kit-ease-out); }
.kit-flow-node:focus-visible .kit-flow-ring { opacity: 1; }
.kit-flow-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--kit-quiet); }
.kit-flow-swatch { display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border-radius: 3px; vertical-align: -1px; }
.kit-flow-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 8px; }
/* A place to drop files (drop_zone.rs). */
.kit-dropzone { display: grid; place-items: center; min-height: 120px; padding: 24px; border: 2px dashed var(--kit-line); border-radius: 14px;
  background: var(--kit-main); color: var(--kit-on-main); text-align: center; cursor: pointer;
  transition: border-color var(--kit-enter) var(--kit-ease-out), background var(--kit-enter) var(--kit-ease-out); }
.kit-dropzone--over { border-color: var(--kit-on-main); background: var(--kit-secondary); }
@media (hover: hover) { .kit-dropzone:hover { border-color: var(--kit-on-main); background: var(--kit-secondary); } }
.kit-dropzone--busy { cursor: progress; opacity: 0.8; }
.kit-dropzone:focus-visible { outline: 2px solid var(--kit-on-main); outline-offset: 2px; }
/* AppFrame bar_end_in_menu: the bar's end at the top of the phone menu sheet, its items one under another. */
.kit-app-menu-end { display: grid; gap: 8px; padding: 0 12px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--kit-line); }
.kit-app-menu-end > * { min-width: 0; }
/* WelcomeSlides: photo slides filling the window. The photos are pictures; over them a dark wash and light words in
   both themes (the darker and the lighter of the theme's page and text colours), so the photos keep their light and
   the words read; Get started is the main action, in the accent. Cross-fades on the kit's own timing. */
.kit-welcome { --kit-welcome-dark: var(--kit-on-main); --kit-welcome-light: var(--kit-main);
  position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--kit-welcome-light);
  background: var(--kit-welcome-dark); font-family: var(--kit-font); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .kit-welcome { --kit-welcome-dark: var(--kit-main); --kit-welcome-light: var(--kit-on-main); }
}
:root[data-theme=dark] .kit-welcome { --kit-welcome-dark: var(--kit-main); --kit-welcome-light: var(--kit-on-main); }
.kit-welcome-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  transition: opacity var(--kit-exit) var(--kit-ease-in-out); }
.kit-welcome-photo-on { opacity: 1; transition: opacity var(--kit-enter) var(--kit-ease-in-out); }
.kit-welcome-wash { position: absolute; inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--kit-welcome-dark) 40%, transparent),
    color-mix(in srgb, var(--kit-welcome-dark) 45%, transparent) 50%, color-mix(in srgb, var(--kit-welcome-dark) 82%, transparent)); }
.kit-welcome-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 56px 24px 0; text-align: center; }
.kit-welcome-logo, .kit-welcome-logo .kit-logo { color: var(--kit-welcome-light); }
.kit-welcome-title { margin: 32px 0 0; font-size: 60px; line-height: 1; font-weight: 700; text-wrap: balance; }
.kit-welcome-line { margin: 12px 0 0; font-size: 15px; opacity: 0.85; }
.kit-welcome-tagline { margin: 40px 0 0; font-size: 40px; line-height: 1.05; font-weight: 700; text-wrap: balance; }
.kit-welcome-dots { display: flex; gap: 8px; margin-top: 32px; }
.kit-welcome-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--kit-welcome-light) 45%, transparent); transition: width var(--kit-press) var(--kit-ease-out); }
.kit-welcome-dot-on { width: 22px; background: var(--kit-welcome-light); }
.kit-welcome-start { margin-top: 40px; height: 56px; padding: 0 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--kit-accent); color: var(--kit-on-accent); font: inherit; font-size: 18px; font-weight: 600;
  transition: transform var(--kit-press) var(--kit-ease-out); }
.kit-welcome-start:active { transform: scale(0.97); }
.kit-welcome-sign-in { margin-top: 16px; min-height: 48px; padding: 0 16px; border: 0; background: transparent;
  color: color-mix(in srgb, var(--kit-welcome-light) 80%, transparent); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
@media (hover: hover) { .kit-welcome-sign-in:hover { color: var(--kit-welcome-light); } }
.kit-welcome-sign-in-action { font-weight: 600; color: var(--kit-welcome-light); }
.kit-welcome-dot:focus-visible, .kit-welcome-start:focus-visible, .kit-welcome-sign-in:focus-visible {
  outline: 2px solid var(--kit-welcome-light); outline-offset: 3px; }
@media (max-width: 600px) {
  .kit-welcome-title { font-size: 40px; }
  .kit-welcome-tagline { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .kit-welcome-photo, .kit-welcome-photo-on { transition: none; } }

/* Boxes that give a page part its room (boxes.rs): sizes and layout only, in the theme's own colours. */
.kit-scroll-box { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.kit-stage-box { position: relative; isolation: isolate; min-height: 640px; overflow: hidden; }
.kit-fill-box { height: 70vh; min-height: 240px; }

/* Money pages, round 2 (13 Nov 2026). A toast with an action (Undo) beside its words. */
.kit-toast--action { display: flex; align-items: center; gap: 16px; }
.kit-toast-words { min-width: 0; }
.kit-toast-action { flex: none; height: 32px; padding: 4px 14px; color: var(--kit-on-secondary);
  border-color: color-mix(in srgb, var(--kit-on-secondary) 30%, transparent); }
/* The kit's SearchBox draws its own clear cross: the browser's own one (blue in Chrome) is hidden. */
.kit-input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
/* A dialog's words: the body's gap spaces them, so their own margins go. */
.kit-dialog-body > :is(p, ol, ul) { margin: 0; }
.kit-dialog-body > :is(ol, ul) { padding-inline-start: 22px; }
/* Money tables (kit-table--money): rows about 36 px high. In a kit-table-wrap--money box the headings stay in view
   while the rows scroll inside it; on a phone the box grows with its rows and the page scrolls. */
.kit-table--money th { height: 36px; padding: 0 12px; }
.kit-table--money td { padding: 8px 12px; }
.kit-table-wrap--money { max-height: max(360px, calc(100vh - 220px)); max-height: max(360px, calc(100dvh - 220px)); }
.kit-table-wrap--money > .kit-table > thead th { position: sticky; top: 0; z-index: 2; background: var(--kit-raised, var(--kit-main));
  box-shadow: inset 0 -1px 0 var(--kit-line); }
@media (max-width: 700px) { .kit-table-wrap--money { max-height: none; } }
/* Words that stay on one line (dates); parts shown only on wide screens, or only on phones. */
.kit-nowrap { white-space: nowrap; }
@media (max-width: 700px) { .kit-wide-only { display: none; } }
@media (min-width: 701px) { .kit-narrow-only, .kit-cell-sub.kit-narrow-only { display: none; } }
/* A drop-down box centres its own words: the box's top and bottom padding cut them off at the 44 px height. */
select.kit-input { padding-top: 0; padding-bottom: 0; }
/* A money column's heading sits over its figures, on the right. */
.kit-table th.kit-amount { text-align: end; }
/* A filter row whose few choices keep their own width instead of stretching across the page. */
.kit-filter-row.kit-filter-row--fit > * { flex: 0 1 240px; }
/* A second, quieter line under a table cell's words (the why under what is needed). */
.kit-cell-sub { display: block; margin-top: 2px; color: var(--kit-quiet); font-size: 13px; line-height: 18px; }

/* ---- The "i" a person presses (info_button.rs, operator 13 Nov 2026). Start of the block. ----
   A quiet circled "i" in the quiet text colour, a 28 px press area around its 16 px drawing; its words on the raised
   ground with a hairline, growing from the "i" (--kit-origin) and going back into it. */
.kit-about { display: inline-flex; vertical-align: middle; margin-inline-start: 2px; font-size: 0; line-height: 0; }
.kit-about-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  margin: -6px -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--kit-quiet);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color var(--kit-enter) var(--kit-ease-out), transform var(--kit-press) var(--kit-ease-out); }
.kit-about-button svg { width: 16px; height: 16px; }
.kit-about-button[aria-expanded="true"] { color: var(--kit-on-main); }
@media (hover: hover) { .kit-about-button:hover { color: var(--kit-on-main); } }
.kit-about-button:active { transform: scale(0.97); }
.kit-about-button:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-on-main)); outline-offset: -2px; }
.kit-about-pop { width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--kit-line);
  background: var(--kit-raised, var(--kit-main)); color: var(--kit-on-main);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--kit-on-main) 14%, transparent);
  font-family: var(--kit-font); font-size: 13px; font-weight: 400; font-style: normal; line-height: 1.45;
  letter-spacing: normal; text-align: start; text-transform: none; white-space: normal; overflow-wrap: break-word;
  transform-origin: var(--kit-origin, 50% 0); }
.kit-about-pop { animation: kit-pop-in var(--kit-enter) var(--kit-ease-out); }
.kit-about-pop.kit-leaving { pointer-events: none; animation: kit-pop-out var(--kit-exit) var(--kit-ease-exit) forwards; }
/* ---- End of the "i" block. ---- */

/* ---- Boxes that scroll sideways show it (screenshot audit, 14 Nov 2026). Start of the block. ----
   A table wider than a phone, or a strip of tabs, scrolls inside its own box; the side where more is hidden fades out,
   so the cut reads as "more this way", and the fade goes once that end is reached. The fade follows the box's own
   scroll position (a scroll-linked animation); a browser without them shows the box as before. A mask, not a
   colour: it works on any theme and any ground. */
@property --kit-fade-start { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --kit-fade-end { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes kit-scroll-fade {
  0% { --kit-fade-start: 0px; --kit-fade-end: 40px; }
  4% { --kit-fade-start: 40px; }
  96% { --kit-fade-end: 40px; }
  100% { --kit-fade-start: 40px; --kit-fade-end: 0px; } }
@supports (animation-timeline: scroll()) {
  .kit-table-wrap, .kit-tabs-scroll {
    /* A mask uses only how solid each point is, never its colour: black here means "fully shown". */
    -webkit-mask-image: linear-gradient(to right, transparent, black var(--kit-fade-start), black calc(100% - var(--kit-fade-end)), transparent);
    mask-image: linear-gradient(to right, transparent, black var(--kit-fade-start), black calc(100% - var(--kit-fade-end)), transparent);
    animation: kit-scroll-fade linear both; animation-timeline: scroll(self inline); }
}
/* A phone: tables are tighter (8 px a side, 13 px type), so a name and its amount fit side by side more often. */
@media (max-width: 700px) {
  .kit-table, .kit-table--money { font-size: 13px; line-height: 18px; }
  .kit-table th, .kit-table--money th { height: 40px; padding: 0 8px; }
  .kit-table td, .kit-table--money td { padding: 10px 8px; }
  .kit-table th:first-child, .kit-table td:first-child { padding-inline-start: 0; }
  .kit-table th:last-child, .kit-table td:last-child { padding-inline-end: 0; }
}
/* A picker and its button on one line inside a table cell (Bank rules' "Send"): side by side, the picker taking the
   room, wrapping under each other when the cell is narrow; never one over the other. */
.kit-inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.kit-inline-row > .kit-field { flex: 1 1 180px; min-width: 0; }
.kit-inline-row > .kit-button { flex: none; }
/* Buttons and chips side by side where no row spaces them (a table cell, a sentence, a list line) stay 8 px apart. */
:is(td, p, li, dd) > :is(.kit-button, .kit-badge, .kit-link) + .kit-button,
:is(td, p, li, dd) > .kit-badge + .kit-badge { margin-inline-start: 8px; }
/* Links that sit side by side as separate choices (downloads): a row that wraps, each link clear of the next. */
.kit-link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
/* ---- End of the sideways-scroll block. ---- */

/* ---- Buttons and fields (Astryx round 1, steps 3 and 4, 2026-11-14). ---- */
/* A busy button keeps the keyboard's focus (aria-disabled, never the browser's disabled): dimmed, a press not taken.
   A disabled button kept in the Tab order to explain itself looks the same. */
.kit-button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.kit-button[aria-disabled="true"][aria-busy="true"] { cursor: progress; }
@media (hover: hover) { .kit-button[aria-disabled="true"]:hover { filter: none; } }
.kit-button[aria-disabled="true"]:active { transform: none; }
/* The error's place under a box is on the page from the start (screen readers then hear the error) but takes no room
   until there is one. */
.kit-field-error:empty { position: absolute; }
.kit-inline-row > .kit-field-frame { flex: 1 1 180px; min-width: 0; }

/* ---- Toast (Astryx round 1, step 6, 2026-11-14). ---- */
/* Its words, then its action (Undo) when it has one, then a close button; a leaving toast takes no clicks. */
.kit-toast { display: flex; align-items: flex-start; gap: 12px; }
.kit-toast-words { flex: 1 1 auto; }
.kit-toast.kit-toast--action { align-items: center; }
.kit-toast.kit-leaving { pointer-events: none; }
.kit-toast-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -10px -6px 0;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.kit-toast-close svg { width: 16px; height: 16px; }
@media (hover: hover) { .kit-toast-close:hover { background: color-mix(in srgb, var(--kit-on-secondary) 10%, transparent); } }
.kit-toast-close:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }

/* ---- Touch (Astryx round 1, step 9, 2026-11-14). ---- */
/* On a touch screen the small icon buttons (the password eye, the toast's X, the "i" and the pressed "i") take a 44 px
   touch through an invisible layer around them; they look the same. */
@media (any-pointer: coarse) {
  .kit-toast-close, .kit-about-button { position: relative; }
  .kit-icon-button::before, .kit-toast-close::before, .kit-about-button::before, .kit-info::before { content: "";
    position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}

/* ---- The layer every pop-up opens on (layer.rs, popover.rs, tooltip.rs; Astryx round 2, step 12). Start of the block.
   A pop-up is fixed over the page (in the browser's top layer when it has one: no box around it clips it), placed
   beside its trigger by the layer, kept 8 px inside the screen, scrolling inside when taller than the screen. It grows
   from its trigger (--kit-origin) and goes back into it; while it leaves it takes no clicks. The browser's own
   drawing of a top-layer box (its border, padding, colours, centring) is put back to nothing: each pop-up's own class
   draws it in the theme's colours (the base rule weighs nothing, so each pop-up's class wins). A tooltip is the text colour as ground with the page colour as words. */
:where(.kit-pop) { position: fixed; inset: auto; left: 0; top: 0; z-index: 60; margin: 0; padding: 0; border: 0;
  box-sizing: border-box; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto;
  background: transparent; color: inherit; transform-origin: var(--kit-origin, 50% 0);
  animation: kit-pop-in var(--kit-enter) var(--kit-ease-out); }
.kit-pop.kit-leaving { pointer-events: none; animation: kit-pop-out var(--kit-exit) var(--kit-ease-exit) forwards; }
.kit-pop:focus { outline: none; }
.kit-popover { display: inline-flex; }
.kit-tip-at { display: contents; }
.kit-tip { width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 6px 9px; border-radius: 8px;
  background: var(--kit-on-main); color: var(--kit-main); font-family: var(--kit-font); font-size: 12.5px; font-weight: 400;
  font-style: normal; line-height: 1.45; letter-spacing: normal; text-align: start; text-transform: none;
  white-space: normal; overflow-wrap: break-word; animation: kit-fade-in var(--kit-enter) var(--kit-ease-out); }
.kit-tip.kit-leaving { animation: kit-fade-out var(--kit-exit) var(--kit-ease-exit) forwards; }
@media (prefers-reduced-motion: reduce) { .kit-pop, .kit-pop.kit-leaving { animation: none; } }
/* ---- End of the layer block. ---- */

/* ---- The one combobox (combobox.rs; Astryx round 2, step 13). Start of the block. ----
   A box with its list of choices under it on the page's one layer: the choices grouped under quiet headings, the
   marked one (keyboard) and the one under the pointer on the secondary colour. */
.kit-combo { position: relative; display: block; min-width: 0; }
.kit-combo .kit-input { width: 100%; box-sizing: border-box; }
.kit-combo-list { min-width: 200px; max-height: min(60vh, 360px); padding: 6px; border: 1px solid var(--kit-line);
  border-radius: 12px; background: var(--kit-main); color: var(--kit-on-main); }
.kit-combo-group + .kit-combo-group { margin-top: 6px; border-top: 1px solid var(--kit-line); padding-top: 6px; }
.kit-combo-head { margin: 2px 8px 4px; font-size: 11px; font-weight: 600; color: var(--kit-quiet); }
.kit-combo-option { display: grid; gap: 1px; min-height: 40px; align-content: center; padding: 4px 8px; border-radius: 8px;
  color: inherit; text-decoration: none; cursor: pointer; }
.kit-combo-option[aria-selected="true"] { background: var(--kit-secondary); color: var(--kit-on-secondary); }
@media (hover: hover) { .kit-combo-option:hover { background: var(--kit-secondary); color: var(--kit-on-secondary); } }
.kit-combo-label { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-combo-line { font-size: 12px; color: var(--kit-quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-combo-option[aria-selected="true"] .kit-combo-line { color: inherit; }
@media (hover: hover) { .kit-combo-option:hover .kit-combo-line { color: inherit; } }
.kit-combo-none { margin: 8px; font-size: 13px; color: var(--kit-quiet); }
/* ---- End of the combobox block. ---- */

/* ---- The Copy button (copy.rs; Astryx round 2, step 15). Start of the block. ----
   Quiet words at the end of what it copies, the accent's text colour, the secondary colour under the pointer. */
.kit-code-frame { display: grid; gap: 4px; min-width: 0; }
.kit-copy { justify-self: end; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--kit-accent-text, var(--kit-on-main)); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .kit-copy:hover { background: var(--kit-secondary); color: var(--kit-on-secondary); } }
.kit-copy:focus-visible { outline: 2px solid var(--kit-focus, var(--kit-on-main)); outline-offset: 2px; }
.kit-copy:active { transform: scale(0.97); }
/* ---- End of the Copy block. ---- */
