/* MPB app kit, the default look: the sidebar workspace (kit 0.2).

   An app changes the look with KitConfig.ACCENT (one color, the shades
   are worked out from it) and KitConfig.THEME (any variable below). Both
   are served as /kit-static/theme.css, loaded after this file. Nothing
   below the :root block uses a color, a font or a radius that is not a
   variable. The font files are named in fonts.css, loaded before this file.

   Classes, all prefixed kit-:
     shells    kit-shell (with kit-shell-side, kit-shell-open,
               kit-shell-centered) kit-side kit-side-top kit-brand
               kit-brand-text kit-brand-org kit-brand-name kit-logo
               kit-monogram kit-nav kit-nav-group kit-nav-heading
               kit-nav-label kit-nav-count kit-account kit-account-text
               kit-account-name kit-account-role kit-account-link
               kit-work kit-header kit-heading kit-header-actions
               kit-menu-button kit-drawer-close kit-drawer-backdrop
               kit-main kit-center-panel kit-footer kit-footer-inner
               kit-footer-credit kit-skip
     page      kit-crumb (breadcrumb) kit-page-head kit-page-title
               kit-page-description kit-grid-side kit-side-first kit-stack
               kit-columns kit-narrow kit-back kit-page-icon kit-page-card
     panels    kit-panel kit-panel-head kit-panel-body kit-panel-foot
               kit-card (a padded panel) kit-who kit-who-name kit-who-sub
               kit-details (a <dl>) kit-action kit-file-list kit-file-meta
     numbers   kit-stats kit-stat kit-stat-link kit-stat-label
               kit-stat-value kit-stat-note kit-card-change (with
               kit-card-good kit-card-bad kit-card-neutral) kit-spark
     tabs      kit-tabs kit-tab-count
     tables    kit-table-wrap kit-table kit-table-sticky kit-sort kit-num kit-mono
               kit-figures kit-nowrap kit-row-selected kit-row-actions kit-cell-note
               kit-pairs kit-pair-key kit-col-min kit-person-cell
               kit-session-browser
     forms     kit-form kit-form-sections kit-form-section kit-form-grid
               kit-span-2..11 kit-form-rows kit-field kit-field-invalid kit-label
               kit-label-row kit-optional kit-help kit-input kit-select
               kit-file kit-check kit-check-input kit-check-label
               kit-choices kit-check-list kit-check-row kit-check-title
               kit-check-description kit-field-error kit-actions
               kit-toolbar kit-search kit-toolbar-meta kit-toolbar-export
               kit-inline-form
               kit-center-note kit-center-links kit-field-aside
               kit-field-link kit-rules kit-actions-stack kit-admin-form
               kit-address kit-address-list (address suggestions)
     buttons   kit-button, with kit-button-secondary kit-button-danger
               kit-button-link kit-button-small kit-button-block
               kit-button-off; kit-icon-button
     messages  kit-alert, with kit-alert-success -info -warning -error;
               kit-alert-text
     small     kit-badge (with -neutral -info -success -warning -danger)
               kit-avatar (with -large -small -accent) kit-icon kit-pagination
               kit-pagination-status kit-pages kit-page-gap kit-empty
               kit-empty-title kit-error kit-error-code
     text      kit-lead kit-muted kit-faint kit-link kit-count
               kit-visually-hidden kit-after-actions kit-after-section
     account   kit-steps kit-qr kit-qr-row kit-secret kit-codes (two-factor)
     theme     kit-theme-menu kit-theme-panel kit-theme-form kit-theme-heading
               kit-theme-modes kit-theme-mode kit-theme-swatches
               kit-theme-swatch kit-swatch-app (and kit-swatch-<preset>)
               kit-theme-any kit-theme-any-label kit-theme-input
     files     kit-attachment kit-attachment-name kit-attachment-size
     guide     kit-guide-section kit-guide-row kit-swatches kit-swatch
               kit-icon-grid (the /kit-demo page only)
*/

:root {
  color-scheme: light;
  --kit-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kit-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Text: ordinary, less important, least important (labels, hints). */
  --kit-text: #1a1f27;
  --kit-muted: #56606e;
  --kit-faint: #646e7b;

  /* Grounds: the page, a panel on it, a quiet fill (table heads, panel
     feet), the row under the pointer. */
  --kit-bg: #f3f5f8;
  --kit-panel: #ffffff;
  --kit-surface: #fafbfc;
  --kit-hover: #f7f8fb;

  /* Lines: around panels, around controls, between rows. The edge of a
     field is what shows that it is one, so it is 3 to 1 against a panel
     (WCAG 1.4.11); the other lines only divide and stay quiet. */
  --kit-border: #e1e5ea;
  --kit-border-strong: #cbd1d9;
  --kit-border-soft: #edf0f3;
  --kit-border-input: #8792a0;

  /* The one accent. KitConfig.ACCENT writes all six per mode (light, and
     the two dark blocks below) from one color, and a person's own pick
     does the same. The values here are the default accent's, equal to what
     theme.shades works out for it; a test holds them equal. */
  --kit-app-color: #4b4acf;
  /* The theme menu's preset swatches (theme.PRESETS): each the color
     itself, the same in both modes, like --kit-app-color. */
  --kit-swatch-orange: #c8400f;
  --kit-swatch-indigo: #4b4acf;
  --kit-swatch-teal: #0f7a6c;
  --kit-swatch-blue: #1f5fa8;
  --kit-swatch-plum: #7a3f98;
  --kit-accent: #4b4acf;
  --kit-accent-hover: #4040b2;
  --kit-accent-soft: #efeffb;
  --kit-accent-line: #c5c5f0;
  --kit-accent-ink: #4b4acf;
  --kit-accent-text: #ffffff;
  --kit-focus: var(--kit-accent);

  /* The sidebar and the strip above the page. */
  --kit-side-bg: #fcfcfd;
  --kit-side-text: #333b47;
  --kit-side-hover: #f0f2f5;
  --kit-side-width: 236px;
  --kit-header-bg: #ffffff;
  --kit-header-text: var(--kit-text);
  --kit-header-border: var(--kit-border);

  --kit-avatar-bg: #e9ecf1;
  --kit-avatar-text: #3d4654;

  /* States: the text color, its line and its ground. */
  --kit-success: #0b6b43;
  --kit-success-line: #b9e0cb;
  --kit-success-bg: #f4fbf7;
  --kit-info: #1b4f9c;
  --kit-info-line: #c2d6f3;
  --kit-info-bg: #f4f8fe;
  --kit-warning: #8a4b08;
  --kit-warning-line: #efd7a3;
  --kit-warning-bg: #fef9ec;
  --kit-danger: #ad241c;
  --kit-danger-line: #f3c4bf;
  --kit-danger-bg: #fef6f5;
  --kit-danger-hover: #8c1d17;
  --kit-danger-text: #ffffff;

  /* A table row: the space above and below a cell's content, at its
     sides, and the least height of a row. A row with a badge, a small
     button or a small avatar is as high as a row of text. */
  --kit-cell-pad-y: 7px;
  --kit-cell-pad-x: 12px;
  --kit-row-height: 35px;

  --kit-radius: 5px;
  --kit-radius-panel: 6px;
  --kit-shadow: 0 1px 2px rgba(26, 31, 39, 0.04);
  --kit-shadow-raised: 0 1px 1px rgba(26, 31, 39, 0.04);
  --kit-shadow-drawer: 8px 0 24px rgba(26, 31, 39, 0.12);
  --kit-shadow-menu: 0 8px 24px rgba(26, 31, 39, 0.16);
  --kit-overlay: rgba(26, 31, 39, 0.32);
  --kit-width: 90rem;
  --kit-form-width: 34rem;
}

/* Dark mode. The values are melt's dark tokens where melt has one (the
   grounds, text, muted, the status tints), worked out for the rest. The
   block is written twice: when the device is dark and the person has not
   picked light, and when the person has picked dark. Both are for the
   screen only: paper always gets the light values above, so a page printed
   in dark mode is dark text on white. Images and the logo are left as they
   are. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --kit-text: #e7eaef;
    --kit-muted: #a3acb9;
    --kit-faint: #8d97a5;
    --kit-bg: #12151a;
    --kit-panel: #1a1e25;
    --kit-surface: #1f242c;
    --kit-hover: #232832;
    --kit-success-bg: #153326;
    --kit-warning-bg: #3a2c10;
    --kit-info-bg: #162b44;
    --kit-danger-bg: #3d1a1c;
    --kit-border: #2c323c;
    --kit-border-strong: #3a4250;
    --kit-border-soft: #242a33;
    --kit-border-input: #8a94a2;
    --kit-focus: var(--kit-accent-ink);
    --kit-accent: #4b4acf;
    --kit-accent-hover: #4040b2;
    --kit-accent-soft: #222540;
    --kit-accent-line: #303272;
    --kit-accent-ink: #9392e2;
    --kit-accent-text: #ffffff;
    --kit-side-bg: #161a20;
    --kit-side-text: #c9d0da;
    --kit-side-hover: #232832;
    --kit-header-bg: #1a1e25;
    --kit-avatar-bg: #2c323c;
    --kit-avatar-text: #c9d0da;
    --kit-success: #6fd3a3;
    --kit-success-line: #25553f;
    --kit-info: #8fbdf0;
    --kit-info-line: #2a4a72;
    --kit-warning: #f0c36a;
    --kit-warning-line: #5c4718;
    --kit-danger: #f2a7a7;
    --kit-danger-line: #6b2f32;
    --kit-danger-hover: #f8c0c0;
    --kit-danger-text: #12151a;
    --kit-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --kit-shadow-raised: 0 1px 1px rgba(0, 0, 0, 0.3);
    --kit-shadow-drawer: 8px 0 24px rgba(0, 0, 0, 0.5);
    --kit-shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.5);
    --kit-overlay: rgba(0, 0, 0, 0.6);
  }
}

@media screen {
  :root[data-theme=dark] {
    color-scheme: dark;
    --kit-text: #e7eaef;
    --kit-muted: #a3acb9;
    --kit-faint: #8d97a5;
    --kit-bg: #12151a;
    --kit-panel: #1a1e25;
    --kit-surface: #1f242c;
    --kit-hover: #232832;
    --kit-success-bg: #153326;
    --kit-warning-bg: #3a2c10;
    --kit-info-bg: #162b44;
    --kit-danger-bg: #3d1a1c;
    --kit-border: #2c323c;
    --kit-border-strong: #3a4250;
    --kit-border-soft: #242a33;
    --kit-border-input: #8a94a2;
    --kit-focus: var(--kit-accent-ink);
    --kit-accent: #4b4acf;
    --kit-accent-hover: #4040b2;
    --kit-accent-soft: #222540;
    --kit-accent-line: #303272;
    --kit-accent-ink: #9392e2;
    --kit-accent-text: #ffffff;
    --kit-side-bg: #161a20;
    --kit-side-text: #c9d0da;
    --kit-side-hover: #232832;
    --kit-header-bg: #1a1e25;
    --kit-avatar-bg: #2c323c;
    --kit-avatar-text: #c9d0da;
    --kit-success: #6fd3a3;
    --kit-success-line: #25553f;
    --kit-info: #8fbdf0;
    --kit-info-line: #2a4a72;
    --kit-warning: #f0c36a;
    --kit-warning-line: #5c4718;
    --kit-danger: #f2a7a7;
    --kit-danger-line: #6b2f32;
    --kit-danger-hover: #f8c0c0;
    --kit-danger-text: #12151a;
    --kit-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --kit-shadow-raised: 0 1px 1px rgba(0, 0, 0, 0.3);
    --kit-shadow-drawer: 8px 0 24px rgba(0, 0, 0, 0.5);
    --kit-shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.5);
    --kit-overlay: rgba(0, 0, 0, 0.6);
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--kit-bg);
  color: var(--kit-text);
  font-family: var(--kit-font);
  font-size: 0.8125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

h2,
h3 {
  font-size: 0.8125rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 10px;
}

dd {
  margin: 0;
}

a {
  color: var(--kit-accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--kit-accent-line);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

code,
.kit-mono {
  font-family: var(--kit-font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--kit-focus);
  outline-offset: 2px;
}

/* The line a <details> opens with is something one clicks. */
summary {
  cursor: pointer;
  border-radius: var(--kit-radius);
}

[hidden] {
  display: none !important;
}

/* An icon from the `icon` macro. Its size (16 px unless the macro is given
   another) and its 1.5 px stroke are attributes of the <svg>: nothing here
   may set them, or `icon(name, 20)` would stay 16 px. */
.kit-icon {
  flex: none;
  display: block;
}

.kit-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kit-skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--kit-radius);
  background: var(--kit-accent);
  color: var(--kit-accent-text);
  text-decoration: none;
}

.kit-skip:focus {
  top: 8px;
}

/* The shells. kit-shell-side: a person is signed in, sidebar and page.
   kit-shell-open: nobody is signed in, a strip and the page.
   kit-shell-centered: one panel in the middle (sign-in and its kin). */

.kit-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kit-shell-side {
  display: grid;
  grid-template-columns: var(--kit-side-width) minmax(0, 1fr);
}

.kit-work {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 100vh;
}

/* The sidebar */

.kit-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--kit-side-bg);
  color: var(--kit-side-text);
  border-right: 1px solid var(--kit-border);
  overflow-y: auto;
}

.kit-side-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 57px;
  padding: 0 14px;
  border-bottom: 1px solid var(--kit-border);
}

.kit-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--kit-text);
  text-decoration: none;
  border-radius: var(--kit-radius);
}

.kit-logo,
.kit-monogram {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 6px;
}

.kit-logo {
  object-fit: contain;
}

.kit-monogram {
  display: grid;
  place-items: center;
  background: var(--kit-accent);
  color: var(--kit-accent-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.kit-brand-text {
  display: block;
  min-width: 0;
}

.kit-brand-org,
.kit-brand-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The first line is the strong one: the client's name when there is one,
   the app's title otherwise. */
.kit-brand-text > :first-child {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--kit-text);
}

.kit-brand-text > :nth-child(2) {
  font-size: 0.71875rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--kit-muted);
}

.kit-nav {
  flex: 1 1 auto;
  padding: 12px 8px;
}

.kit-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-nav-group + .kit-nav-group {
  margin-top: 8px;
}

.kit-nav-heading {
  margin: 0;
  padding: 10px 8px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kit-faint);
}

.kit-nav-group:first-child .kit-nav-heading {
  padding-top: 2px;
}

.kit-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 8px;
  margin-bottom: 1px;
  border-radius: var(--kit-radius);
  color: var(--kit-side-text);
  font-weight: 500;
  text-decoration: none;
}

.kit-nav a .kit-icon {
  color: var(--kit-faint);
}

.kit-nav a:hover {
  background: var(--kit-side-hover);
}

.kit-nav a[aria-current] {
  background: var(--kit-accent-soft);
  color: var(--kit-accent-ink);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--kit-accent);
}

.kit-nav a[aria-current] .kit-icon {
  color: var(--kit-accent);
}

.kit-nav-label {
  flex: 1 1 auto;
  min-width: 0;
}

.kit-nav-count {
  margin-left: auto;
  font-size: 0.71875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--kit-muted);
}

/* Who is signed in, at the foot of the sidebar (or the Sign in button, at
   the right of the strip, when nobody is). */

.kit-account {
  display: flex;
  align-items: center;
  gap: 9px;
}

.kit-side > .kit-account {
  flex: none;
  padding: 11px 12px;
  border-top: 1px solid var(--kit-border);
}

.kit-account-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.kit-account-name,
.kit-account-role {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-account-name {
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--kit-text);
}

.kit-account-role {
  font-size: 0.71875rem;
  color: var(--kit-muted);
}

.kit-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--kit-avatar-bg);
  color: var(--kit-avatar-text);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.kit-avatar-large {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

/* In a table row, beside a name. */
.kit-avatar-small {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 0.59375rem;
}

.kit-avatar-accent {
  background: var(--kit-accent-soft);
  color: var(--kit-accent-ink);
}

.kit-icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--kit-radius);
  background: transparent;
  color: var(--kit-muted);
  cursor: pointer;
  text-decoration: none;
}

.kit-icon-button:hover,
.kit-icon-button[aria-current] {
  background: var(--kit-side-hover);
  color: var(--kit-text);
}

/* The theme menu (kit/_theme_menu.html): a <details> in the account
   area whose panel opens above it, across the account area. Light, dark
   or system, then the accent colors. A swatch's color is a class, so the
   page needs no inline style; "App color" is the app's accent as theme.css
   writes it (--kit-app-color). */
.kit-side > .kit-account {
  position: relative;
}

/* The summary is an icon button (display: inline-grid), which a browser
   draws with no marker. Safari still draws its own one. */
.kit-theme-menu > summary::-webkit-details-marker {
  display: none;
}

.kit-theme-menu[open] > summary {
  background: var(--kit-side-hover);
  color: var(--kit-text);
}

.kit-theme-panel {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 4px);
  left: 8px;
  right: 8px;
  padding: 12px;
  background: var(--kit-panel);
  color: var(--kit-text);
  border: 1px solid var(--kit-border-strong);
  border-radius: var(--kit-radius-panel);
  box-shadow: var(--kit-shadow-menu);
}

.kit-theme-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.kit-theme-heading {
  margin: 0;
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--kit-muted);
}

.kit-theme-form .kit-theme-heading + .kit-theme-swatches,
.kit-theme-form .kit-theme-heading + .kit-theme-modes {
  margin-top: -2px;
}

.kit-theme-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: stretch;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--kit-border-input);
  border-radius: var(--kit-radius);
  margin-bottom: 4px;
}

.kit-theme-mode {
  padding: 4px 6px;
  border: 0;
  border-radius: calc(var(--kit-radius) - 2px);
  background: transparent;
  color: var(--kit-text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.kit-theme-mode:hover {
  background: var(--kit-hover);
}

.kit-theme-mode[aria-pressed="true"] {
  background: var(--kit-accent);
  color: var(--kit-accent-text);
}

.kit-theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kit-theme-swatch {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--kit-border-input);
  border-radius: 50%;
  cursor: pointer;
}

/* The one that is picked: a ring in the text color around a gap. */
.kit-theme-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--kit-panel), 0 0 0 4px var(--kit-text);
}

.kit-swatch-app {
  background: var(--kit-app-color);
}

.kit-swatch-orange {
  background: var(--kit-swatch-orange);
}

.kit-swatch-indigo {
  background: var(--kit-swatch-indigo);
}

.kit-swatch-teal {
  background: var(--kit-swatch-teal);
}

.kit-swatch-blue {
  background: var(--kit-swatch-blue);
}

.kit-swatch-plum {
  background: var(--kit-swatch-plum);
}

.kit-theme-any {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--kit-border);
}

.kit-theme-any-label {
  flex: 1 0 100%;
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--kit-muted);
}

.kit-theme-input {
  width: 40px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--kit-border-input);
  border-radius: var(--kit-radius);
  background: var(--kit-panel);
  cursor: pointer;
}

/* The strip above the page: breadcrumb or title, and the page's main action. */

.kit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  min-height: 57px;
  padding: 8px 24px;
  background: var(--kit-header-bg);
  color: var(--kit-header-text);
  border-bottom: 1px solid var(--kit-header-border);
}

.kit-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.kit-heading h1,
.kit-crumb h1 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--kit-header-text);
}

.kit-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-crumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--kit-muted);
}

.kit-crumb a {
  color: var(--kit-muted);
  font-weight: 400;
  text-decoration: none;
}

.kit-crumb a:hover {
  color: var(--kit-text);
  text-decoration: underline;
}

.kit-crumb .kit-icon {
  width: 12px;
  height: 12px;
  color: var(--kit-faint);
}

.kit-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.kit-menu-button,
.kit-drawer-close,
.kit-drawer-backdrop {
  display: none;
}

.kit-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--kit-width);
  padding: 20px 24px 28px;
}

.kit-main:focus {
  outline: none;
}

.kit-main > :last-child {
  margin-bottom: 0;
}

.kit-footer {
  flex: none;
  border-top: 1px solid var(--kit-border);
  color: var(--kit-faint);
  font-size: 0.75rem;
}

.kit-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 24px;
}

.kit-footer p {
  margin: 0;
}

.kit-footer-credit {
  margin-left: auto;
}

.kit-footer a {
  color: inherit;
  font-weight: 400;
  text-decoration-color: var(--kit-border-strong);
}

/* Nobody signed in: the strip carries the brand, the title is in the page. */

.kit-shell-open .kit-header .kit-brand,
.kit-shell-centered .kit-header .kit-brand {
  flex: 0 1 auto;
}

.kit-shell-open .kit-header .kit-account {
  margin-left: auto;
}

.kit-shell-open .kit-work {
  align-items: center;
}

.kit-shell-open .kit-header,
.kit-shell-open .kit-footer {
  width: 100%;
}

.kit-shell-open .kit-main {
  max-width: 72rem;
}

.kit-shell-open .kit-main > .kit-page-head .kit-heading h1 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

/* One panel in the middle. */

.kit-shell-centered .kit-work {
  align-items: center;
}

.kit-shell-centered .kit-header {
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 72px 24px 24px;
  background: transparent;
  border: 0;
}

.kit-shell-centered .kit-logo,
.kit-shell-centered .kit-monogram {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.125rem;
}

.kit-shell-centered .kit-brand-text > :first-child {
  font-size: 0.9375rem;
}

.kit-shell-centered .kit-brand-text > :nth-child(2) {
  font-size: 0.78125rem;
}

.kit-shell-centered .kit-main {
  flex: 1 0 auto;
  max-width: 448px;
  padding: 0 24px 56px;
}

.kit-center-panel {
  padding: 32px;
  background: var(--kit-panel);
  border: 1px solid var(--kit-border);
  border-radius: 10px;
  box-shadow: var(--kit-shadow);
  font-size: 0.84375rem;
}

.kit-center-panel > :last-child,
.kit-center-panel .kit-card > :last-child {
  margin-bottom: 0;
}

.kit-center-panel h1 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.kit-center-panel h1 + p {
  margin-bottom: 24px;
  color: var(--kit-muted);
}

.kit-center-panel .kit-form {
  max-width: none;
}

/* A gap under the form only when something follows it. */
.kit-center-panel .kit-form:not(:last-child) {
  margin-bottom: 16px;
}

.kit-center-panel .kit-input {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.875rem;
}

.kit-center-panel .kit-button {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.875rem;
}

.kit-center-panel .kit-form .kit-actions > .kit-button[type="submit"]:first-child {
  flex: 1 1 100%;
}

/* In the one panel in the middle the buttons are under each other, each
   as wide as the panel. */
.kit-center-panel .kit-actions-stack {
  flex-direction: column;
  align-items: stretch;
  margin-top: 20px;
}

.kit-center-panel .kit-form > .kit-actions-stack {
  margin-top: 4px;
}

/* A last line under a rule: "No account yet? Ask for an invite." */
.kit-center-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--kit-border);
  color: var(--kit-muted);
  font-size: 0.78125rem;
}

/* A row of links under the form: "Forgot your password?" at the left, a
   second link at the right. One link alone stays at the left. */
.kit-center-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.78125rem;
}

.kit-center-links > * {
  margin: 0;
}

/* Pages written for kit 0.1 wrap their panel themselves: no second frame. */
.kit-center-panel .kit-narrow,
.kit-center-panel .kit-card {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.kit-shell-centered .kit-footer {
  width: 100%;
}

/* Page parts */

.kit-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.kit-page-head h1,
.kit-page-head h2,
.kit-page-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kit-page-description {
  margin: 2px 0 0;
  color: var(--kit-muted);
  max-width: 72ch;
}

.kit-lead {
  color: var(--kit-muted);
  font-size: 0.84375rem;
  max-width: 72ch;
  margin-bottom: 16px;
}

.kit-muted {
  color: var(--kit-muted);
}

.kit-faint {
  color: var(--kit-faint);
}

.kit-link {
  text-decoration: none;
}

.kit-link:hover {
  text-decoration: underline;
}

.kit-count {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.kit-back {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.kit-nowrap {
  white-space: nowrap;
}

/* Figures of one width, so that dates and amounts line up in a column. */
.kit-figures {
  font-variant-numeric: tabular-nums;
}

.kit-after-actions {
  margin-top: 6px;
}

.kit-after-section {
  margin-top: 16px;
}

.kit-main > h1,
.kit-main > h2 {
  margin: 20px 0 10px;
}

.kit-main > h1:first-child,
.kit-main > h2:first-child {
  margin-top: 0;
}

.kit-narrow {
  max-width: 28rem;
  margin: 0 auto;
}

.kit-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.kit-grid-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.kit-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

/* Panels */

.kit-panel,
.kit-card {
  background: var(--kit-panel);
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-panel);
  box-shadow: var(--kit-shadow);
}

.kit-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.kit-card {
  padding: 14px;
  margin-bottom: 16px;
}

.kit-stack > .kit-panel,
.kit-stack > .kit-card,
.kit-grid-side > .kit-panel,
.kit-columns > .kit-panel,
.kit-columns > .kit-card {
  margin-bottom: 0;
}

.kit-card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kit-card > :last-child,
.kit-panel-body > :last-child {
  margin-bottom: 0;
}

.kit-panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  min-height: 41px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--kit-border);
}

.kit-panel-head h2,
.kit-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kit-panel-head .kit-help,
.kit-panel-head .kit-actions {
  margin: 0 0 0 auto;
}

.kit-panel-head:last-child {
  border-bottom: 0;
}

/* A heading that an entry of "What you can do" points at stays clear of
   the strip above the page. */
.kit-panel-head > :target {
  scroll-margin-top: 72px;
}

.kit-panel-body {
  padding: 14px;
}

.kit-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--kit-border);
  background: var(--kit-surface);
  color: var(--kit-muted);
  font-size: 0.75rem;
}

.kit-panel-foot .kit-help {
  flex: 1 1 12rem;
  margin: 0;
}

.kit-panel-foot .kit-pagination {
  flex: 1 1 auto;
  margin: 0;
}

/* The head of a detail card: avatar, name, a line under it. */
.kit-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.kit-who-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.kit-who-sub {
  display: block;
  color: var(--kit-muted);
  overflow-wrap: anywhere;
}

/* Name and value pairs. */
.kit-details {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 9px 12px;
  margin: 0 0 16px;
}

.kit-panel > .kit-details {
  margin: 0;
  padding: 14px;
}

.kit-who + .kit-details {
  border-top: 1px solid var(--kit-border);
}

.kit-details dt {
  color: var(--kit-muted);
}

.kit-details dd {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* One thing a person may do, with what it does under the button. */
.kit-action {
  padding: 12px 14px;
  border-top: 1px solid var(--kit-border-soft);
}

.kit-action:first-child,
.kit-panel-head + .kit-action {
  border-top: 0;
}

.kit-action .kit-inline-form {
  display: flex;
}

.kit-action .kit-button {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.kit-action .kit-help {
  margin: 0;
}

/* A line of a side panel that says something and does nothing: an icon
   and a few words in bold, the sentence under it. */
.kit-action > .kit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.kit-file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-file-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-top: 1px solid var(--kit-border-soft);
}

.kit-file-list li:first-child {
  border-top: 0;
}

.kit-file-list .kit-icon {
  width: 14px;
  height: 14px;
  color: var(--kit-faint);
}

.kit-file-meta {
  margin-left: auto;
  color: var(--kit-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Numbers at the top of a page */

.kit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.kit-stat {
  padding: 12px 14px;
  background: var(--kit-panel);
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-panel);
  box-shadow: var(--kit-shadow);
}

.kit-stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--kit-muted);
}

.kit-stat-value {
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.kit-stat-note {
  display: block;
  font-size: 0.71875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--kit-muted);
}

/* A tile that is one link (`stat(..., href=...)`): the label is the link
   and its hit area is the whole tile. The ring goes around the tile where
   the browser can say "a tile with the focus inside". */
.kit-stat-link {
  position: relative;
}

.kit-stat-link:hover {
  border-color: var(--kit-border-strong);
}

.kit-stat-link .kit-stat-label a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.kit-stat-link .kit-stat-label a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--kit-radius-panel);
}

@supports selector(:has(a)) {
  .kit-stat-link:has(a:focus-visible) {
    outline: 2px solid var(--kit-focus);
    outline-offset: 2px;
  }

  .kit-stat-link .kit-stat-label a:focus-visible {
    outline-color: transparent;
  }
}

/* Dashboard cards (`kit/_card_macros.html`): how a figure compares with
   the time before, and a small chart. Good and bad are a color, an arrow
   and words, never the color alone. */
.kit-card-change {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.kit-card-good {
  color: var(--kit-success);
}

.kit-card-bad {
  color: var(--kit-danger);
}

.kit-spark {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 32px;
  margin-top: 8px;
  color: var(--kit-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tabs: links, the server says which one is current. */

.kit-tabs {
  position: relative;
  border-bottom: 1px solid var(--kit-border);
  overflow-x: auto;
}

.kit-tabs ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 14px;
  list-style: none;
}

.kit-tabs a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  border-bottom: 2px solid transparent;
  color: var(--kit-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.kit-tabs a:hover {
  color: var(--kit-text);
}

.kit-tabs a:focus-visible {
  outline-offset: -2px;
}

.kit-tabs a[aria-current] {
  color: var(--kit-text);
  font-weight: 600;
  border-bottom-color: var(--kit-accent);
}

.kit-tab-count {
  padding: 0 6px;
  border-radius: 9px;
  background: var(--kit-bg);
  color: var(--kit-muted);
  font-size: 0.71875rem;
  font-weight: 500;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.kit-tabs a[aria-current] .kit-tab-count {
  background: var(--kit-accent-soft);
  color: var(--kit-accent-ink);
}

/* Forms */

.kit-form {
  max-width: var(--kit-form-width);
}

.kit-field {
  margin-bottom: 16px;
}

.kit-label,
.kit-label-row {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78125rem;
  font-weight: 600;
}

legend.kit-label {
  padding: 0;
}

/* A label with a link or a word at its right: "Forgot your password?". */
.kit-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.kit-label-row .kit-label {
  margin: 0;
}

.kit-label-row a {
  font-weight: 500;
  text-decoration: none;
}

.kit-optional {
  color: var(--kit-faint);
  font-weight: 400;
}

/* A field with a link at the right of its label ("Forgot your password?").
   The link comes after the control in the page, so that Tab goes from one
   field straight to the next; the grid puts it back beside the label. */
.kit-field-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: baseline;
}

.kit-field-aside > * {
  grid-column: 1 / -1;
}

.kit-field-aside > .kit-label {
  grid-column: 1;
  grid-row: 1;
}

.kit-field-aside > .kit-field-link {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 5px;
  font-size: 0.78125rem;
  font-weight: 500;
  text-decoration: none;
}

.kit-field-aside > .kit-field-link:hover {
  text-decoration: underline;
}

.kit-help {
  margin: 0 0 6px;
  color: var(--kit-muted);
  font-size: 0.75rem;
}

.kit-input {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--kit-border-input);
  border-radius: var(--kit-radius);
  background: var(--kit-panel);
  color: var(--kit-text);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.kit-input::placeholder {
  color: var(--kit-faint);
  opacity: 1;
}

textarea.kit-input {
  min-height: 64px;
  resize: vertical;
}

.kit-input:focus,
.kit-input:focus-visible {
  border-color: var(--kit-accent);
  box-shadow: 0 0 0 3px var(--kit-accent-line);
  outline: 2px solid transparent;
  outline-offset: 0;
}

.kit-input[aria-invalid="true"],
.kit-field-invalid .kit-input {
  border-color: var(--kit-danger);
  box-shadow: 0 0 0 3px var(--kit-danger-line);
}

/* An address field and the suggestions under it (address.js). */
.kit-address {
  position: relative;
}

.kit-address-list {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  left: 0;
  margin: 4px 0 0;
  padding: 4px 0;
  border: 1px solid var(--kit-border-strong);
  border-radius: var(--kit-radius);
  background: var(--kit-panel);
  box-shadow: var(--kit-shadow);
  list-style: none;
  font-size: 0.8125rem;
}

.kit-address-list li {
  padding: 6px 9px;
  cursor: pointer;
}

.kit-address-list li[aria-selected="true"],
.kit-address-list li:hover {
  background: var(--kit-accent-soft);
  color: var(--kit-accent-ink);
}

.kit-input:disabled,
.kit-input[readonly] {
  background: var(--kit-surface);
  color: var(--kit-muted);
}

.kit-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--kit-faint) 50%),
    linear-gradient(135deg, var(--kit-faint) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 10px) 50%;
  background-size:
    4px 4px,
    4px 4px;
  background-repeat: no-repeat;
}

.kit-file {
  padding: 3px;
  min-height: 32px;
}

.kit-file::file-selector-button {
  margin-right: 10px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--kit-border-strong);
  border-radius: 4px;
  background: var(--kit-panel);
  color: var(--kit-text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.kit-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 24px;
  padding: 2px 0;
}

.kit-check-input,
.kit-check input[type="checkbox"],
.kit-check input[type="radio"] {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--kit-accent);
}

.kit-check-label {
  font-weight: 400;
}

.kit-choices,
.kit-check-list {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Checkboxes with a sentence each: the roles of a person. */
.kit-check-row {
  display: grid;
  grid-template-columns: 14px minmax(72px, 110px) minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  padding: 9px 14px;
  border-top: 1px solid var(--kit-border-soft);
}

.kit-check-row:first-of-type {
  border-top: 0;
}

.kit-check-row .kit-check-input {
  margin: 0;
}

.kit-check-title {
  font-weight: 500;
}

.kit-check-description {
  color: var(--kit-muted);
}

.kit-field-error {
  margin: 5px 0 0;
  color: var(--kit-danger);
  font-size: 0.75rem;
  font-weight: 500;
}

/* What a new password must be, under the two fields. */
.kit-rules {
  margin: 0 0 16px;
  padding-left: 16px;
  color: var(--kit-muted);
  font-size: 0.75rem;
}

.kit-rules li + li {
  margin-top: 2px;
}

.kit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kit-form > .kit-actions {
  margin-top: 4px;
}

.kit-inline-form {
  display: inline-flex;
  margin: 0;
}

/* A form in rows inside a panel: the label and its help at the left, the
   control at the right. Put kit-form-rows on the form (or a div in it). */
.kit-form-rows {
  max-width: none;
}

.kit-form-rows .kit-field {
  display: grid;
  grid-template-columns: 200px minmax(0, 440px);
  column-gap: 24px;
  /* The label, then the rest of the control's height, then what is left of
     a long help text: an error sits right under the control, beside it. */
  grid-template-rows: auto auto 1fr;
  align-items: start;
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--kit-border-soft);
}

.kit-form-rows .kit-field:first-of-type {
  border-top: 0;
}

.kit-form-rows .kit-field > .kit-label {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 0.8125rem;
}

.kit-form-rows .kit-field > .kit-help {
  grid-column: 1;
  grid-row: 2 / span 2;
  margin: 2px 0 0;
}

.kit-form-rows .kit-field > .kit-input,
.kit-form-rows .kit-field > .kit-check,
.kit-form-rows .kit-field > .kit-choices {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.kit-form-rows .kit-field > .kit-field-error {
  grid-column: 2;
  grid-row: 3;
}

.kit-form-rows > .kit-alert {
  margin: 14px 14px 0;
}

.kit-form-rows > .kit-alert + .kit-field {
  border-top: 0;
}

/* A form in sections inside a panel: each group's name and help at the
   left, its fields at the right on a grid of 12, a field as wide as what
   goes in it (kit-span-2 to kit-span-11; without one, the whole line).
   Put kit-form-sections on the form; `form_section` writes a section. */
.kit-form-sections {
  max-width: none;
}

.kit-form-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 600px);
  gap: 12px 32px;
  align-items: start;
  padding: 22px 14px;
  border-top: 1px solid var(--kit-border-soft);
}

.kit-form-section:first-of-type {
  border-top: 0;
}

.kit-form-section-title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.kit-form-section-head > .kit-help {
  margin: 0;
}

.kit-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.kit-form-grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.kit-form-grid > .kit-field {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Help goes under the box here, so the boxes of one line stay level. */
.kit-form-grid > .kit-field > .kit-help {
  order: 1;
  margin: 5px 0 0;
}

.kit-form-grid > .kit-field > .kit-field-error {
  order: 2;
}

.kit-form-grid > .kit-span-2 {
  grid-column: span 2;
}

.kit-form-grid > .kit-span-3 {
  grid-column: span 3;
}

.kit-form-grid > .kit-span-4 {
  grid-column: span 4;
}

.kit-form-grid > .kit-span-5 {
  grid-column: span 5;
}

.kit-form-grid > .kit-span-6 {
  grid-column: span 6;
}

.kit-form-grid > .kit-span-7 {
  grid-column: span 7;
}

.kit-form-grid > .kit-span-8 {
  grid-column: span 8;
}

.kit-form-grid > .kit-span-9 {
  grid-column: span 9;
}

.kit-form-grid > .kit-span-10 {
  grid-column: span 10;
}

.kit-form-grid > .kit-span-11 {
  grid-column: span 11;
}

.kit-form-sections > .kit-alert {
  margin: 14px 14px 0;
}

/* A form of whole panels (the invite page) at a width a form reads
   well at. */
.kit-admin-form {
  max-width: 42rem;
}

/* A group of choices in a row: its name and its help at the left like any
   other label, the choices at the right. The name is a <legend>, which a
   browser lays out by itself unless it floats. */
.kit-form-rows .kit-field > .kit-choices {
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  display: flow-root;
}

.kit-form-rows .kit-choices > legend,
.kit-form-rows .kit-choices > .kit-help {
  float: left;
  clear: left;
  width: 200px;
  margin: 0;
  padding: 0;
}

.kit-form-rows .kit-choices > legend {
  font-size: 0.8125rem;
}

.kit-form-rows .kit-choices > .kit-help {
  margin-top: 2px;
}

.kit-form-rows .kit-choices > .kit-check {
  max-width: 440px;
  margin-left: 224px;
}

/* The first choice starts on the line of the name. */
.kit-form-rows .kit-choices > .kit-check:first-of-type {
  padding-top: 0;
}

.kit-form-rows .kit-choices > .kit-check:last-of-type {
  padding-bottom: 0;
}

/* Search and filters above a list. */
.kit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.kit-panel > .kit-toolbar {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--kit-border);
}

.kit-toolbar .kit-input {
  width: auto;
  min-width: 140px;
  flex: 0 1 auto;
}

.kit-toolbar input[type="search"].kit-input,
.kit-toolbar .kit-search {
  flex: 0 1 280px;
}

.kit-search {
  position: relative;
  display: block;
  min-width: 0;
}

.kit-search .kit-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  color: var(--kit-faint);
  pointer-events: none;
}

.kit-toolbar .kit-search .kit-input,
.kit-search .kit-input {
  width: 100%;
  padding-left: 30px;
}

.kit-toolbar-meta {
  margin-left: auto;
  color: var(--kit-muted);
  font-size: 0.75rem;
}

/* "Export CSV" of a list: at the right, after the count when there is one. */
.kit-toolbar-export {
  margin-left: auto;
}

.kit-toolbar-meta + .kit-toolbar-export {
  margin-left: 0;
}

/* Buttons */

.kit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--kit-accent);
  border-radius: var(--kit-radius);
  background: var(--kit-accent);
  color: var(--kit-accent-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.kit-button .kit-icon {
  width: 14px;
  height: 14px;
}

.kit-button:hover {
  background: var(--kit-accent-hover);
  border-color: var(--kit-accent-hover);
}

.kit-button-secondary {
  background: var(--kit-panel);
  border-color: var(--kit-border-strong);
  color: var(--kit-text);
  box-shadow: var(--kit-shadow-raised);
}

.kit-button-secondary:hover {
  background: var(--kit-hover);
  border-color: var(--kit-border-strong);
}

.kit-button-danger {
  background: var(--kit-panel);
  border-color: var(--kit-danger-line);
  color: var(--kit-danger);
}

.kit-button-danger:hover {
  background: var(--kit-danger-bg);
  border-color: var(--kit-danger);
}

.kit-button-danger:focus-visible {
  outline-color: var(--kit-danger);
}

.kit-button-link {
  background: transparent;
  border-color: transparent;
  color: var(--kit-accent-ink);
  box-shadow: none;
}

.kit-button-link:hover {
  background: var(--kit-accent-soft);
  border-color: transparent;
}

.kit-button-small {
  min-height: 24px;
  padding: 1px 8px;
  font-size: 0.75rem;
}

.kit-button-block {
  width: 100%;
  justify-content: flex-start;
}

.kit-button-off,
.kit-button-off:hover,
.kit-button:disabled {
  background: var(--kit-surface);
  border-color: var(--kit-border);
  color: var(--kit-faint);
  box-shadow: none;
  cursor: default;
}

/* Messages */

.kit-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid var(--kit-info-line);
  border-radius: var(--kit-radius);
  background: var(--kit-info-bg);
}

.kit-alert > .kit-icon {
  margin-top: 2px;
  color: var(--kit-info);
}

.kit-alert p {
  margin: 0;
}

.kit-alert-text {
  flex: 1 1 auto;
  min-width: 0;
}

.kit-alert strong {
  font-weight: 600;
}

.kit-alert-info {
  border-color: var(--kit-info-line);
  background: var(--kit-info-bg);
}

.kit-alert-success {
  border-color: var(--kit-success-line);
  background: var(--kit-success-bg);
}

.kit-alert-success > .kit-icon {
  color: var(--kit-success);
}

.kit-alert-warning {
  border-color: var(--kit-warning-line);
  background: var(--kit-warning-bg);
}

.kit-alert-warning > .kit-icon {
  color: var(--kit-warning);
}

.kit-alert-error {
  border-color: var(--kit-danger-line);
  background: var(--kit-danger-bg);
}

.kit-alert-error > .kit-icon {
  color: var(--kit-danger);
}

.kit-main > .kit-alert + :not(.kit-alert) {
  margin-top: 16px;
}

/* Between panels the gap of the stack is the space. */
.kit-stack > .kit-alert {
  margin-bottom: 0;
}

/* Tables */

.kit-table-wrap {
  /* Positioned, so that a hidden label inside (kit-visually-hidden) is
     cut off with the rest and does not widen the page. */
  position: relative;
  overflow-x: auto;
  margin-bottom: 16px;
  background: var(--kit-panel);
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-panel);
  box-shadow: var(--kit-shadow);
}

.kit-panel > .kit-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.kit-table {
  width: 100%;
  border-collapse: collapse;
}

.kit-table th,
.kit-table td {
  text-align: left;
  font-weight: inherit;
}

.kit-table thead th {
  padding: 8px var(--kit-cell-pad-x);
  border-bottom: 1px solid var(--kit-border);
  background: var(--kit-surface);
  color: var(--kit-faint);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kit-table tbody td,
.kit-table tbody th {
  height: var(--kit-row-height);
  padding: var(--kit-cell-pad-y) var(--kit-cell-pad-x);
  border-bottom: 1px solid var(--kit-border-soft);
  vertical-align: middle;
}

.kit-table tbody tr:last-child td,
.kit-table tbody tr:last-child th {
  border-bottom: 0;
}

.kit-table tbody tr:hover td,
.kit-table tbody tr:hover th {
  background: var(--kit-hover);
}

.kit-table tbody tr.kit-row-selected td,
.kit-table tbody tr.kit-row-selected th {
  background: var(--kit-accent-soft);
}

.kit-table th:first-child,
.kit-table td:first-child {
  padding-left: 14px;
}

.kit-table th:last-child,
.kit-table td:last-child {
  padding-right: 14px;
}

.kit-table a {
  text-decoration: none;
}

.kit-table a:hover {
  text-decoration: underline;
}

/* A column head that sorts (a link). The arrow says which way the list is
   sorted by it now; `aria-sort` on the <th> says the same in words. */
.kit-table thead th a.kit-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.kit-table thead th a.kit-sort:hover,
.kit-table thead th[aria-sort] a.kit-sort {
  color: var(--kit-text);
  text-decoration: none;
}

.kit-table thead th[aria-sort="ascending"] a.kit-sort::after {
  content: "\2191";
}

.kit-table thead th[aria-sort="descending"] a.kit-sort::after {
  content: "\2193";
}

.kit-table .kit-num,
.kit-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The head stays while the rows scroll, inside a box of limited height. */
.kit-table-sticky {
  max-height: 70vh;
  overflow-y: auto;
}

.kit-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.kit-table .kit-row-actions,
.kit-row-actions {
  text-align: right;
  white-space: nowrap;
}

/* A small button is higher than a line of text: less space around it, so
   the row stays as high as the others. */
.kit-table tbody .kit-row-actions {
  padding-top: calc(var(--kit-cell-pad-y) - 2px);
  padding-bottom: calc(var(--kit-cell-pad-y) - 2px);
}

/* A column that keeps a readable width when the table scrolls sideways
   on a phone: the title of a row. */
.kit-col-min {
  min-width: 13rem;
}

/* A person in a table cell: `avatar(name, "small")` and the name, on one
   line. */
.kit-person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.kit-person-cell a {
  font-weight: 500;
}

/* A browser in a table cell: the device icon, the words, a badge. */
.kit-session-browser {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.kit-session-browser .kit-icon {
  color: var(--kit-faint);
}

.kit-cell-note {
  color: var(--kit-muted);
  font-size: 0.75rem;
}

.kit-pairs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
}

.kit-pair-key {
  color: var(--kit-muted);
}

/* Small parts */

.kit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--kit-border);
  border-radius: 4px;
  background: var(--kit-bg);
  color: var(--kit-text);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

/* A state has a dot in its color. */
.kit-badge-neutral::before,
.kit-badge-info::before,
.kit-badge-success::before,
.kit-badge-warning::before,
.kit-badge-danger::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.kit-badge-neutral {
  background: var(--kit-panel);
  color: var(--kit-muted);
}

.kit-badge-info {
  background: var(--kit-info-bg);
  border-color: var(--kit-info-line);
  color: var(--kit-info);
}

.kit-badge-success {
  background: var(--kit-success-bg);
  border-color: var(--kit-success-line);
  color: var(--kit-success);
}

.kit-badge-warning {
  background: var(--kit-warning-bg);
  border-color: var(--kit-warning-line);
  color: var(--kit-warning);
}

.kit-badge-danger {
  background: var(--kit-danger-bg);
  border-color: var(--kit-danger-line);
  color: var(--kit-danger);
}

.kit-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 12px 0 16px;
  color: var(--kit-muted);
  font-size: 0.75rem;
}

.kit-pages {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.kit-pages a,
.kit-pages span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--kit-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.kit-pages a:hover {
  background: var(--kit-side-hover);
}

.kit-pages a[aria-current] {
  background: var(--kit-panel);
  border-color: var(--kit-border-strong);
}

.kit-pages span,
.kit-pages .kit-page-gap {
  color: var(--kit-faint);
}

.kit-pagination-status {
  font-variant-numeric: tabular-nums;
}

.kit-pages .kit-icon {
  width: 14px;
  height: 14px;
}

.kit-empty {
  margin: 0 0 16px;
  padding: 28px 16px;
  border: 1px dashed var(--kit-border-strong);
  border-radius: var(--kit-radius-panel);
  color: var(--kit-muted);
  text-align: center;
}

.kit-panel > .kit-empty {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.kit-empty > .kit-icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  color: var(--kit-faint);
}

.kit-empty-title {
  margin: 0 0 2px;
  color: var(--kit-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.kit-empty p {
  margin: 0 auto;
  max-width: 48ch;
}

.kit-empty .kit-actions {
  justify-content: center;
  margin-top: 12px;
}

.kit-error {
  max-width: 34rem;
}

.kit-error h1 {
  margin-bottom: 6px;
}

.kit-error-code {
  margin: 0 0 4px;
  color: var(--kit-faint);
  font-family: var(--kit-font-mono);
  font-size: 0.75rem;
}

/* The icon at the top of a page that says one thing: an error, a link
   that ran out, "check your mail". */
.kit-page-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border: 1px solid var(--kit-border);
  border-radius: 8px;
  background: var(--kit-surface);
  color: var(--kit-muted);
}

.kit-page-icon-success {
  border-color: var(--kit-success-line);
  background: var(--kit-success-bg);
  color: var(--kit-success);
}

.kit-page-icon-warning {
  border-color: var(--kit-warning-line);
  background: var(--kit-warning-bg);
  color: var(--kit-warning);
}

/* The same pages for a signed-in person: one panel at the left of the
   page, under the strip. */
.kit-page-card,
.kit-shell-side .kit-error {
  max-width: 32rem;
  padding: 24px;
}

.kit-shell-side .kit-error {
  background: var(--kit-panel);
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-panel);
  box-shadow: var(--kit-shadow);
}

.kit-page-card > :last-child,
.kit-error > :last-child {
  margin-bottom: 0;
}

.kit-page-card .kit-actions,
.kit-error .kit-actions {
  margin-top: 20px;
}

.kit-error .kit-lead {
  margin-bottom: 10px;
}

/* In a table the name and the size stay on one line. */
.kit-table .kit-attachment {
  white-space: nowrap;
}

.kit-attachment-size {
  color: var(--kit-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* Two-factor */

.kit-steps {
  padding-left: 1.25rem;
  max-width: 40rem;
}

.kit-steps > li {
  margin-bottom: 16px;
}

.kit-qr {
  display: block;
  margin: 8px 0;
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-panel);
  background: var(--kit-panel);
}

.kit-secret {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius);
  background: var(--kit-surface);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.kit-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 8px;
  max-width: 34rem;
  margin: 0 0 16px;
  padding: 14px;
  list-style: none;
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-panel);
  background: var(--kit-panel);
}

.kit-codes code {
  font-size: 0.8125rem;
}

/* The set-up page: the QR code in its tile, the steps and the key beside
   it. Under each other when there is no room for both. */
.kit-qr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}

.kit-qr-row > :last-child {
  flex: 1 1 16rem;
  min-width: 0;
}

.kit-qr-row > :last-child > :last-child {
  margin-bottom: 0;
}

.kit-qr-row .kit-qr {
  flex: none;
  margin: 0;
  padding: 8px;
}

.kit-qr-row .kit-steps {
  margin: 0 0 16px;
}

.kit-panel .kit-steps > li {
  margin-bottom: 6px;
}

.kit-panel .kit-steps > li:last-child {
  margin-bottom: 0;
}

/* The recovery codes inside a panel: two columns, one on a phone. */
.kit-panel .kit-codes {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 10px 24px;
  max-width: 32rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* The style guide (/kit-demo) */

.kit-guide-section {
  margin: 28px 0 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kit-faint);
}

.kit-guide-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.kit-swatches,
.kit-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-swatch,
.kit-icon-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--kit-muted);
}

.kit-icon-grid .kit-icon {
  color: var(--kit-text);
}

/* Two sizes of the icon and its name on one line. */
.kit-icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.kit-swatch::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--kit-border);
  border-radius: 4px;
  background: var(--kit-panel);
}

.kit-swatch-accent::before {
  background: var(--kit-accent);
}

.kit-swatch-accent-hover::before {
  background: var(--kit-accent-hover);
}

.kit-swatch-accent-ink::before {
  background: var(--kit-accent-ink);
}

.kit-swatch-accent-line::before {
  background: var(--kit-accent-line);
}

.kit-swatch-accent-soft::before {
  background: var(--kit-accent-soft);
}

.kit-swatch-bg::before {
  background: var(--kit-bg);
}

.kit-swatch-text::before {
  background: var(--kit-text);
}

.kit-swatch-muted::before {
  background: var(--kit-muted);
}

.kit-swatch-faint::before {
  background: var(--kit-faint);
}

/* On paper: the page itself. No sidebar, no menu, nothing to click, no
   box that scrolls, and white under the text. (The end of this file hides
   the sidebar and the page's main action; this is the rest.) */

@media print {
  body,
  .kit-shell,
  .kit-work,
  .kit-header {
    background: var(--kit-panel);
  }

  .kit-drawer-backdrop,
  .kit-drawer-close,
  .kit-shell-open .kit-header .kit-account,
  .kit-toolbar,
  .kit-pages,
  .kit-form .kit-actions,
  .kit-panel-foot .kit-button,
  .kit-action .kit-button,
  .kit-inline-form {
    display: none !important;
  }

  /* The cell stays, so that the lines between rows run to the edge. */
  .kit-row-actions > * {
    visibility: hidden !important;
  }

  .kit-main {
    max-width: none;
    padding: 12px 0 0;
  }

  .kit-header {
    position: static;
    padding-left: 0;
    padding-right: 0;
  }

  .kit-footer-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .kit-table-wrap,
  .kit-table-sticky,
  .kit-tabs {
    max-height: none;
    overflow: visible;
  }

  .kit-table-sticky thead th {
    position: static;
  }

  .kit-panel,
  .kit-card,
  .kit-stat,
  .kit-center-panel {
    box-shadow: none;
  }

  .kit-stat,
  .kit-card,
  .kit-alert,
  .kit-table tr {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  .kit-panel-head {
    break-after: avoid;
  }
}

/* Narrow screens. Under 860 px the sidebar is a drawer: the Menu link in
   the strip points at it (#kit-menu), and the thing an address points at
   can be styled (:target), so the drawer shows. No script: it is a link,
   the drawer closes with another link (#kit-top), and following either
   moves the keyboard's place in the page with it. A closed drawer is
   hidden from the keyboard and from a screen reader (visibility). */

@media (max-width: 860px) {
  /* A form in sections: the name above its fields, short fields in pairs. */
  .kit-form-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .kit-form-grid > [class*="kit-span-"] {
    grid-column: 1 / -1;
  }

  .kit-form-grid > .kit-span-2,
  .kit-form-grid > .kit-span-3,
  .kit-form-grid > .kit-span-4 {
    grid-column: span 6;
  }

  .kit-shell-side {
    display: flex;
  }

  .kit-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(288px, 86vw);
    height: auto;
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow:
      0 0 0 1px var(--kit-border),
      var(--kit-shadow-drawer);
    transition:
      transform 0.18s ease,
      visibility 0s linear 0.18s;
  }

  .kit-side:target {
    transform: none;
    visibility: visible;
    transition: transform 0.18s ease;
  }

  .kit-side:target ~ .kit-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--kit-overlay);
  }

  /* It fills the window: a ring outside it would not be seen. */
  .kit-drawer-backdrop:focus-visible {
    outline-offset: -4px;
  }

  .kit-menu-button,
  .kit-drawer-close {
    display: inline-grid;
    width: 36px;
    height: 36px;
  }

  .kit-menu-button {
    margin-left: -8px;
    color: var(--kit-text);
  }

  .kit-nav a {
    min-height: 40px;
  }

  .kit-side .kit-icon-button {
    width: 36px;
    height: 36px;
  }

  .kit-header {
    padding: 8px 16px;
  }

  .kit-main {
    padding: 16px 16px 24px;
  }

  .kit-footer-inner {
    padding: 10px 16px;
  }

  .kit-grid-side {
    grid-template-columns: minmax(0, 1fr);
  }

  /* What is on now comes before the forms when there is one column. */
  .kit-grid-side > .kit-side-first {
    order: -1;
  }

  /* The foot of a panel: the sentence above, the buttons in one row
     under it. */
  .kit-panel-foot {
    justify-content: flex-end;
  }

  .kit-panel-foot .kit-help {
    flex: 1 1 100%;
  }

  /* The sentence of a panel's head goes under its title, at the left. */
  .kit-panel-head .kit-help {
    flex: 1 1 100%;
    margin-left: 0;
  }

  /* Rows a finger can hit. */
  .kit-table tbody td,
  .kit-table tbody th {
    --kit-cell-pad-y: 10px;
  }

  .kit-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kit-form-rows .kit-field {
    display: block;
  }

  .kit-form-rows .kit-field > .kit-help {
    margin: 2px 0 6px;
  }

  .kit-form-rows .kit-field > .kit-label {
    margin-bottom: 4px;
  }

  .kit-form-rows .kit-choices > legend,
  .kit-form-rows .kit-choices > .kit-help {
    float: none;
    width: auto;
  }

  .kit-form-rows .kit-choices > legend {
    margin-bottom: 4px;
  }

  .kit-form-rows .kit-choices > .kit-help {
    margin: 2px 0 6px;
  }

  .kit-form-rows .kit-choices > .kit-check {
    max-width: none;
    margin-left: 0;
  }

  .kit-check-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .kit-check-description {
    grid-column: 2;
  }

  /* A control with text under 16 px makes a phone zoom in on it. */
  .kit-input,
  .kit-center-panel .kit-input {
    min-height: 40px;
    font-size: 1rem;
  }

  .kit-button,
  .kit-center-panel .kit-button {
    min-height: 40px;
  }

  .kit-button-small {
    min-height: 32px;
  }

  .kit-toolbar .kit-input,
  .kit-toolbar .kit-search,
  .kit-toolbar input[type="search"].kit-input {
    flex: 1 1 100%;
  }

  .kit-shell-centered .kit-header {
    padding-top: 40px;
  }

  .kit-shell-centered .kit-main {
    padding: 0 16px 40px;
  }

  .kit-center-panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .kit-side,
  .kit-menu-button,
  .kit-skip,
  .kit-header-actions {
    display: none !important;
  }

  .kit-shell-side {
    display: block;
  }
}
