/* The theme kit: the structure every theme shares — cards, the hero, record pages,
   forms, filters, tables, empty states, toasts — drawn entirely from design tokens.
   A theme's app.css sets the tokens (below, with their defaults) and adds its own
   character on top; it rarely needs to restyle these rules. Linked after the
   framework's style.css and before app.css. */
:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body);
  --head-weight: 700;
  --head-tracking: -.015em;
  --body-size: 16px;
  --wrap: 1920px; /* pages use the window's width; long text keeps --measure */
  --measure: 46rem;
  --gap: 1.5rem;
  --radius: 12px;
  --radius-lg: 18px;
  --btn-radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 2px 8px rgba(20, 20, 30, .05);
  --shadow-lg: 0 12px 40px rgba(20, 20, 30, .14);
  --header-bg: var(--surface);
  --header-ink: var(--ink);
  --footer-bg: transparent;
  --footer-ink: var(--muted);
  --hero-bg: var(--accent-soft);
  --hero-ink: var(--ink);
  --hero-image: none;
  --hero-overlay: none; /* with a --hero-image: a gradient that keeps the text readable */
  --media-ratio: 4 / 3;
  --tile-ratio: 1 / 1;
  --card-bg: var(--surface);
  --card-border: 1px solid var(--line);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ok: #157f3b; --ok-soft: #e3f4e8;
  --info: #1d5fd1; --info-soft: #e4edfc;
  --warn: #a35a00; --warn-soft: #fdf1dc;
  --danger: #c0262d; --danger-soft: #fce6e6;
  --control-h: 2.5rem;
  --control-bg: var(--surface);
  --hover: color-mix(in srgb, var(--ink) 5%, transparent);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---- type and frame ---- */
body { font-family: var(--font-body); font-size: var(--body-size); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); }
h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 0; }
.wrap { max-width: var(--wrap); padding-inline: clamp(16px, 4vw, 32px); }
main { padding-block: clamp(1.25rem, 3vw, 2.5rem) 4rem; }
.view { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
img { max-width: 100%; }

/* ---- the header's phone menu (kit.js adds .kit-js to <html>; without it the nav
   simply wraps) ---- */
.kit-nav-toggle { display: none; }
@media (max-width: 760px) {
  .kit-js .kit-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: var(--btn-radius); background: transparent; color: inherit; cursor: pointer; }
  .kit-nav-toggle span, .kit-nav-toggle span::before, .kit-nav-toggle span::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform .2s var(--ease); }
  .kit-nav-toggle span::before, .kit-nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .kit-nav-toggle span::before { top: -6px; } .kit-nav-toggle span::after { top: 6px; }
  .nav-open .kit-nav-toggle span { background: transparent; }
  .nav-open .kit-nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .kit-nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .kit-js .kit-collapse { display: none; width: 100%; }
  .kit-js .nav-open .kit-collapse { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; padding-block: .5rem 1rem; }
  .kit-js .nav-open .kit-collapse a { padding: .6rem .25rem; }
}
.scrolled .kit-shadow-on-scroll, .kit-shadow-on-scroll.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }

/* ---- buttons ---- */
.btn { border-radius: var(--btn-radius); padding: .6rem 1.1rem; transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn.small { padding: .35rem .8rem; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ""; width: .9em; height: .9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kit-spin .7s linear infinite; }
@keyframes kit-spin { to { transform: rotate(360deg); } }
.more { font-weight: 600; white-space: nowrap; }
.head-actions { display: flex; gap: 1rem; align-items: center; }

/* ---- the hero and other text views (style: hero | band | note | center | split) ---- */
.view.text.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hero-bg); color: var(--hero-ink);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4.5rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.view.text.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-size: cover; background-position: center; }
.view.text.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.view.text.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); max-width: 16ch; margin-bottom: .8rem; color: inherit; }
.view.text.hero .lede { color: inherit; opacity: .9; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 40rem; }
.view.text.hero ul { padding-left: 1.2rem; max-width: 40rem; }
.view.text.hero .actions { margin-top: 1.6rem; gap: .75rem; }
.view.text.hero .btn { padding: .8rem 1.4rem; font-size: 1.02rem; }
.view.text.band { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.view.text.band .muted, .view.text.band h2 { color: inherit; }
.view.text.band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.view.text.note { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.2rem; }
.view.text.center { text-align: center; } .view.text.center .actions { justify-content: center; } .view.text.center p { margin-inline: auto; }
.view.text.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.view.text.split > h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); }
@media (max-width: 760px) { .view.text.split { grid-template-columns: 1fr; gap: .5rem; } }
.view.text > p.muted, .lede, .fields .prose dd, .view .intro { max-width: var(--measure); }

/* ---- list heads, toolbars and filters ---- */
.card-head { align-items: flex-end; margin-bottom: 1rem; }
.card-head h2 { margin-bottom: .15rem; }
.card-head .muted { margin: 0; }
.toolbar { gap: .6rem; }
.toolbar input[type=search] { max-width: 22rem; border-radius: 999px; padding-inline: 2.2rem 1rem; }
.seg { border-radius: 999px; background: var(--surface); }
.seg a { padding: .4rem .9rem; font-size: .9rem; }
.seg a:hover { text-decoration: none; color: var(--ink); }
.facets { background: transparent; border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; }
.facets > h2 { font-size: .78rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; font-weight: 600; }
.facet-group { margin-top: 0; gap: .35rem; }
.facet { background: var(--surface); border-color: var(--line); padding: .3rem .8rem; transition: border-color .15s, background .15s; }
.facet.off { display: none; }
.filters .chip { background: var(--accent); color: var(--accent-ink); }

/* ---- cards (list style: cards | tiles | feature | rows) ---- */
.kit-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.kit-card { position: relative; display: flex; flex-direction: column; background: var(--card-bg); border: var(--card-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.kit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kit-media { aspect-ratio: var(--media-ratio); overflow: hidden; background: var(--accent-soft); }
.kit-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kit-card:hover .kit-media img { transform: scale(1.04); }
.kit-body { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; padding: 1rem 1.15rem 1.2rem; flex: 1; align-content: flex-start; }
.kit-title { order: 1; flex: 0 0 100%; font-size: 1.12rem; }
.kit-title a { color: var(--ink); }
.kit-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kit-card a:not(.kit-title a) { position: relative; z-index: 2; }
.kit-title a:hover { text-decoration: none; }
.kit-card .tag { order: 2; }
.kit-text { order: 3; flex: 0 0 100%; margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kit-meta { order: 4; font-size: .88rem; color: var(--muted); }
.kit-meta { margin-right: .5rem; }
.kit-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.kit-meta.num .kit-value { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
/* tiles: image-first, no labels; the first number (a price) stands out */
.kit-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: calc(var(--gap) * .8); }
.kit-tiles .kit-card { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.kit-tiles .kit-card:hover { transform: none; box-shadow: none; }
.kit-tiles .kit-media { aspect-ratio: var(--tile-ratio); border-radius: var(--radius); }
.kit-tiles .kit-body { padding: .75rem .1rem 0; gap: .25rem .5rem; }
.kit-tiles .kit-title { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.kit-tiles .kit-label { display: none; }
.kit-tiles .kit-meta.num { flex: 0 0 100%; order: 2; font-size: 1rem; }
/* feature: the first card large */
.kit-feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kit-feature .kit-card:first-child { grid-column: span 2; grid-row: span 2; }
.kit-feature .kit-card:first-child .kit-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
.kit-feature .kit-card:first-child .kit-media { aspect-ratio: auto; flex: 1; min-height: 16rem; }
.kit-feature .kit-card:first-child .kit-text { -webkit-line-clamp: 4; font-size: 1rem; }
@media (max-width: 1000px) { .kit-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kit-feature { grid-template-columns: 1fr; } .kit-feature .kit-card:first-child { grid-column: auto; grid-row: auto; } }
/* rows: one per line, the image at the side */
.kit-rows { grid-template-columns: 1fr; gap: 1rem; }
.kit-rows .kit-card { flex-direction: row; }
.kit-rows .kit-media { flex: 0 0 clamp(7rem, 28%, 15rem); aspect-ratio: 4 / 3; }
.kit-rows .kit-body { padding: 1rem 1.25rem; }
@media (max-width: 560px) { .kit-rows .kit-card { flex-direction: column; } .kit-rows .kit-media { flex-basis: auto; } }
/* a card list without pictures reads as a tidy grid of notes */
.kit-cards:not(.kit-tiles) .kit-card:not(.has-media) { border-top: 3px solid var(--accent); }

/* ---- tables ---- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
th { background: color-mix(in srgb, var(--surface) 92%, var(--ink)); padding: .7rem .9rem; }
td { padding: .75rem .9rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
td img.kit-thumb { width: 3rem; height: 3rem; object-fit: cover; border-radius: 8px; display: block; }

/* ---- tags ---- */
.tag { background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: .75rem; padding: .15rem .6rem; letter-spacing: .01em; }

/* ---- a record's page ---- */
.view.detail .page-head { margin-bottom: 1.5rem; }
.view.detail .page-head h1 { margin: 0; }
.kit-record { display: block; }
.has-media .kit-record { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 860px) { .has-media .kit-record { grid-template-columns: 1fr; } }
.kit-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--accent-soft); box-shadow: var(--shadow); }
.kit-figure img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.fields { border-radius: var(--radius); gap: 1.1rem 1.5rem; padding: 1.4rem 1.5rem; }
.has-media .fields { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.fields dt { font-size: .72rem; letter-spacing: .08em; }
.fields dd { font-size: 1.02rem; }
.fields .prose { grid-column: 1 / -1; padding-top: .9rem; border-top: 1px solid var(--line); }
.fields .prose dt { display: none; }
.fields .prose dd { font-size: 1.05rem; line-height: 1.75; max-width: 42rem; }

/* (the server marks a refused field .has-error with p.err; rules.js, as it is filled
   in, marks it .invalid with span.error — both look the same) */
/* ---- forms: every input the framework draws (text, email, password, number, date,
   datetime-local, select, radio, checkbox, textarea, search, file), fieldsets, help,
   errors, required marks, disabled and read-only. A form's style picks its layout:
     (none)    fields flow in columns, fieldsets one after another
     settings  each fieldset a card, its legend at the left (a settings page)
     cols      two columns of fields; stacked: one column, full width
     switches  checkboxes drawn as on/off switches  ---- */
.form-view { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); max-width: 64rem; }
.form-view > h2 { margin-bottom: .2rem; }
.form-view > .muted { margin-top: 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem 1.25rem; min-width: 0; }
.form legend { font-family: var(--font-head); font-size: 1rem; font-weight: 650; margin-bottom: .75rem; padding: 0; }
label { font-size: .86rem; font-weight: 600; }
.req { color: var(--danger); }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); border: 1px solid var(--line); border-radius: calc(var(--btn-radius) - 2px); padding: .55rem .75rem; min-height: var(--control-h); background: var(--control-bg); transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { min-height: 7rem; line-height: 1.5; resize: vertical; }
input:hover:not(:disabled):not(:focus), select:hover:not(:disabled):not(:focus), textarea:hover:not(:disabled):not(:focus) { border-color: color-mix(in srgb, var(--line) 55%, var(--ink)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:disabled, select:disabled, textarea:disabled { background: var(--hover); color: var(--muted); cursor: not-allowed; }
input[readonly] { background: var(--hover); }
input[type=number], .num input { font-variant-numeric: tabular-nums; }
input[type=date], input[type=datetime-local], input[type=time] { font-variant-numeric: tabular-nums; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
input[type=search] { padding-left: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.4 10.4 14 14'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: .75rem 50%; background-size: .95rem; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: .9rem; }
input[type=file] { padding: .4rem; }
input[type=file]::file-selector-button { font: inherit; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: calc(var(--btn-radius) - 3px); padding: .3rem .8rem; margin-right: .75rem; cursor: pointer; }
/* checkboxes and radios, drawn by the theme */
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; width: 1.1rem; height: 1.1rem; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; border: 1.5px solid color-mix(in srgb, var(--line) 40%, var(--ink)); background: var(--control-bg); border-radius: 4px; display: inline-grid; place-content: center; cursor: pointer; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]::before { content: ""; width: .62rem; height: .62rem; transform: scale(0); transition: transform .12s var(--ease); background: var(--accent-ink); clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 85% 8%, 38% 68%); }
input[type=radio]::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; transform: scale(0); transition: transform .12s var(--ease); background: var(--accent-ink); }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::before, input[type=radio]:checked::before { transform: scale(1); }
.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; font-size: .93rem; padding-top: 1.75rem; cursor: pointer; }
.radios { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding-block: .45rem; }
.radios .check { padding-top: 0; }
/* radios as a segmented choice (form style "segmented", or any .radios.seg-radios) */
.form-view.segmented .radios, .seg-radios { display: inline-flex; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; background: var(--control-bg); }
.form-view.segmented .radios .check, .seg-radios .check { padding: .5rem .9rem; border-right: 1px solid var(--line); font-size: .9rem; }
.form-view.segmented .radios .check:last-child, .seg-radios .check:last-child { border-right: 0; }
.form-view.segmented .radios input, .seg-radios input { position: absolute; opacity: 0; pointer-events: none; }
.form-view.segmented .radios .check:has(input:checked), .seg-radios .check:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
/* switches (form style "switches", or .kit-switch on a label.check) */
.form-view.switches input[type=checkbox], .kit-switch input[type=checkbox] { width: 2.3rem; height: 1.3rem; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--line) 70%, var(--ink)); place-content: center start; padding: 0 .15rem; transition: background .15s; }
.form-view.switches input[type=checkbox]::before, .kit-switch input[type=checkbox]::before { width: 1rem; height: 1rem; border-radius: 50%; clip-path: none; background: #fff; transform: none; transition: transform .15s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.form-view.switches input[type=checkbox]:checked, .kit-switch input[type=checkbox]:checked { background: var(--accent); }
.form-view.switches input[type=checkbox]:checked::before, .kit-switch input[type=checkbox]:checked::before { transform: translateX(1rem); }
.field { gap: .35rem; min-width: 0; }
.help { font-size: .82rem; color: var(--muted); margin: 0; }
.err, .field .error { font-size: .82rem; color: var(--danger); font-weight: 600; margin: 0; display: flex; gap: .35rem; align-items: center; }
.err::before, .field .error::before { content: "!"; display: inline-grid; place-content: center; width: 1rem; height: 1rem; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; flex: 0 0 auto; }
.field.invalid input, .field.invalid select, .field.invalid textarea,
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: color-mix(in srgb, var(--danger-soft) 45%, var(--control-bg)); }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.has-error label, .field.invalid > label { color: var(--danger); }
.field.invalid .help { display: none; }
.form .actions { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card.narrow { border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.2rem); box-shadow: var(--shadow-lg); }
.alert { border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); padding: .7rem .9rem; font-weight: 500; }
.notice { border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); padding: .7rem .9rem; }
.form-view.cols .form fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-view.stacked .form fieldset { grid-template-columns: 1fr; max-width: 36rem; }
.form-view.settings { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: none; }
.form-view.settings .form fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); box-shadow: var(--shadow); }
.form-view.settings .form legend { float: left; grid-column: 1 / -1; width: 100%; margin: 0; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.form-view.settings .form .actions { border-top: 0; padding-top: 0; justify-content: flex-end; }
@media (max-width: 720px) { .form-view.cols .form fieldset, .form-view.settings .form fieldset { grid-template-columns: 1fr; } }

/* ---- list styles: dense, striped, sidebar, accordion; the pager ---- */
thead th { position: sticky; top: 0; z-index: 1; }
.kit-js tbody tr[data-kit-href] { cursor: pointer; }
.view.list.dense th { padding: .45rem .7rem; font-size: .72rem; }
.view.list.dense td { padding: .4rem .7rem; font-size: .88rem; }
.view.list.striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 96%, var(--ink)); }
.kit-side-list { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.kit-side-filters { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.kit-side-filters .facets { display: block; margin: 0; border: 0; padding: 0; background: none; }
.kit-side-filters .facets + .facets { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.kit-side-filters .facets > h2 { margin-bottom: .5rem; }
.kit-side-filters .facet-group { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; margin: 0; }
.kit-side-filters details.facet-group > summary { padding: .35rem 0; font-size: .88rem; }
.kit-side-filters .facet { border: 0; border-radius: 6px; padding: .3rem .5rem; justify-content: space-between; background: none; }
.kit-side-filters a.facet:hover { background: var(--hover); }
.kit-side-filters .facet.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.kit-side-filters .facet.on .count { color: var(--accent); }
.kit-side-filters .facet-name { min-width: 0; font-size: .8rem; padding: .3rem 0 .1rem; }
@media (max-width: 860px) { .kit-side-list { grid-template-columns: 1fr; } .kit-side-filters { position: static; } }
.kit-list-acc .kit-acc-title { font-weight: 600; }
.kit-acc-tags { margin-left: auto; display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.kit-acc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem 1.25rem; margin: 0 0 .9rem; }
.kit-acc-fields dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kit-acc-fields dd { margin: .1rem 0 0; font-size: .93rem; }
.kit-acc-fields .wide { grid-column: 1 / -1; }
.kit-acc-fields dd.prose { white-space: pre-wrap; max-width: var(--measure); }

/* ---- empty states, pager ---- */
.empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1rem; }
.empty p { margin: 0; }
.empty-mark { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent-soft); position: relative; }
.empty-mark::after { content: ""; position: absolute; inset: 30%; border: 2px solid var(--accent); border-radius: 4px; opacity: .7; }
.kit-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.kit-pager-total { font-size: .88rem; }
.kit-pager-pages { display: inline-flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.kit-page-nums { display: inline-flex; gap: .3rem; }
.kit-page { display: inline-grid; place-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 550; font-variant-numeric: tabular-nums; }
a.kit-page:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.kit-page[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kit-page[aria-disabled] { opacity: .45; }
.kit-page.gap { border: 0; background: none; min-width: 1rem; padding: 0; color: var(--muted); }

/* ---- admin sections ---- */
.admin-nav { padding-top: 1rem; }

/* ---- the support window picks up the theme ---- */
.dd-support-panel, .dd-support-bubble { border-radius: var(--radius); }

/* ---- toasts, the picture viewer, motion (kit.js) ---- */
.kit-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; z-index: 40; background: var(--ink); color: var(--bg); padding: .7rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .95rem; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.kit-toast.show { opacity: 1; transform: translate(-50%, 0); }
.kit-viewer { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.kit-viewer::backdrop { background: rgba(0, 0, 0, .82); }
.kit-viewer img { display: block; max-width: 94vw; max-height: 94vh; border-radius: 8px; cursor: zoom-out; }
.kit-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.kit-reveal.is-in { opacity: 1; transform: none; }
.kit-flash { animation: kit-flash 1.2s var(--ease); }
@keyframes kit-flash { from { box-shadow: 0 0 0 4px var(--accent-soft); } to { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .kit-reveal { opacity: 1; transform: none; }
}

/* ---- the footer ---- */
.kit-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 2rem; }
.kit-footer a { color: inherit; opacity: .85; }
.kit-footer a:hover { opacity: 1; }

@media (max-width: 720px) {
  .view.text.hero { border-radius: var(--radius); }
  .card-head { align-items: flex-start; }
  .form-view { padding: 1.1rem; }
}

/* ==== the component kit: markup a layout or a page's own template uses (the notes list
   each with its markup). Classes only — the page's policy refuses inline styles. ==== */

/* ---- buttons: .btn | .btn.ghost | .btn.secondary | .btn.danger | .btn.small | .btn.large
   | .btn.icon; a row of them joined: .kit-btn-group ---- */
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--ink)); }
.btn.large { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn.icon { padding: 0; width: var(--control-h); height: var(--control-h); justify-content: center; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; pointer-events: none; }
.kit-btn-group { display: inline-flex; }
.kit-btn-group > .btn { border-radius: 0; margin-left: -1px; }
.kit-btn-group > .btn:first-child { border-radius: var(--btn-radius) 0 0 var(--btn-radius); margin-left: 0; }
.kit-btn-group > .btn:last-child { border-radius: 0 var(--btn-radius) var(--btn-radius) 0; }
.kit-btn-group > .btn:hover { transform: none; position: relative; }

/* ---- the page's head: breadcrumbs, title, its actions ---- */
.kit-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .5rem; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.kit-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.kit-crumbs a { color: var(--muted); }
.kit-crumbs a:hover { color: var(--ink); }
.kit-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.kit-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.kit-pagehead h1 { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.kit-pagehead p { margin: .25rem 0 0; color: var(--muted); }
.kit-pagehead .actions { gap: .5rem; }

/* ---- tabs: links between pages (nav.kit-tabs > a, the current one aria-current), or
   panels on one page ([data-kit-tabs]: a .kit-tabs of buttons with aria-controls, then
   the .kit-panel sections — without scripts every panel shows) ---- */
.kit-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.kit-tabs > a, .kit-tabs > button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .65rem .9rem; font: inherit; font-size: .92rem; font-weight: 550; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; }
.kit-tabs > a:hover, .kit-tabs > button:hover { color: var(--ink); text-decoration: none; }
.kit-tabs > [aria-current], .kit-tabs > [aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.kit-tabs .count { font-size: .72rem; background: var(--hover); border-radius: 999px; padding: .05rem .45rem; }
.kit-tabs.pills { border: 0; gap: .35rem; }
.kit-tabs.pills > a, .kit-tabs.pills > button { border: 0; border-radius: 999px; padding: .4rem .9rem; margin: 0; }
.kit-tabs.pills > [aria-current], .kit-tabs.pills > [aria-selected=true] { background: var(--accent); color: var(--accent-ink); }
.kit-js [data-kit-tabs] > .kit-panel[hidden] { display: none; }

/* ---- dropdown menus: details.kit-menu > summary + .kit-menu-list (links, buttons,
   hr, a .kit-menu-label); .end opens to the left. Work without scripts; kit.js closes
   them on a click outside or Escape. ---- */
.kit-menu { position: relative; display: inline-block; }
.kit-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.kit-menu > summary::-webkit-details-marker { display: none; }
.kit-menu > summary.caret::after, .kit-menu > summary:not(.btn):not(.plain)::after { content: ""; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.kit-menu-list { position: absolute; z-index: 30; top: calc(100% + .35rem); left: 0; min-width: 13rem; padding: .35rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.kit-menu.end .kit-menu-list { left: auto; right: 0; }
.kit-menu-list a, .kit-menu-list button { display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; border-radius: calc(var(--radius) - 4px); color: var(--ink); font: inherit; font-size: .9rem; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.kit-menu-list a:hover, .kit-menu-list button:hover { background: var(--hover); text-decoration: none; }
.kit-menu-list .danger { color: var(--danger); }
.kit-menu-list hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.kit-menu-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: .4rem .65rem .2rem; }
.kit-menu-list kbd { margin-left: auto; }

/* ---- accordions: details.kit-acc > summary + .kit-acc-body; a .kit-accordion holds
   several (kit.js: [data-kit-expand] opens or closes them all) ---- */
.kit-accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.kit-acc { border-bottom: 1px solid var(--line); }
.kit-acc:last-child { border-bottom: 0; }
.kit-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; font-weight: 600; }
.kit-acc > summary::-webkit-details-marker { display: none; }
.kit-acc > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s var(--ease); flex: 0 0 auto; }
.kit-acc[open] > summary::before { transform: rotate(45deg); }
.kit-acc > summary:hover { background: var(--hover); }
.kit-acc > summary .tag, .kit-acc > summary .kit-aside { margin-left: auto; }
.kit-acc-body { padding: 0 1rem 1rem 2.2rem; color: var(--ink); }
.kit-acc-body > :first-child { margin-top: 0; }

/* ---- alerts and callouts: .kit-alert.info | .ok | .warn | .danger, a <strong> title ---- */
.kit-alert { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem; font-size: .93rem; background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--ink); }
.kit-alert::before { content: "i"; flex: 0 0 auto; width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid; place-content: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--info); margin-top: .1rem; }
.kit-alert strong { display: block; }
.kit-alert p { margin: .1rem 0 0; }
.kit-alert.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); } .kit-alert.ok::before { content: "✓"; background: var(--ok); }
.kit-alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .kit-alert.warn::before { content: "!"; background: var(--warn); }
.kit-alert.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); } .kit-alert.danger::before { content: "×"; background: var(--danger); }
.kit-alert .actions { margin-left: auto; }

/* ---- status tags: an enum's value is its class (tag-<value>); these values get a
   colour in every theme ---- */
.tag-active, .tag-done, .tag-paid, .tag-ready, .tag-ok, .tag-healthy, .tag-live, .tag-published, .tag-shipped, .tag-delivered, .tag-approved, .tag-complete, .tag-completed, .tag-true { background: var(--ok-soft); color: var(--ok); }
.tag-pending, .tag-waiting, .tag-waiting_parts, .tag-draft, .tag-paused, .tag-queued, .tag-review, .tag-in_review, .tag-degraded, .tag-checkout, .tag-quoted, .tag-normal, .tag-medium { background: var(--warn-soft); color: var(--warn); }
.tag-error, .tag-failed, .tag-urgent, .tag-high, .tag-critical, .tag-down, .tag-cancelled, .tag-canceled, .tag-overdue, .tag-blocked, .tag-refunded, .tag-rejected { background: var(--danger-soft); color: var(--danger); }
.tag-new, .tag-open, .tag-in_progress, .tag-running, .tag-info, .tag-scheduled, .tag-placed, .tag-low { background: var(--info-soft); color: var(--info); }
.tag-archived, .tag-closed, .tag-inactive, .tag-false, .tag-off, .tag-disabled, .tag-none { background: var(--hover); color: var(--muted); }
.tag.dot::before, .kit-dot::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: 1px; }

/* ---- small pieces: avatars, keys, code, meters, steps, tooltips, dividers ---- */
.kit-avatar { display: inline-grid; place-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; flex: 0 0 auto; text-transform: uppercase; }
.kit-avatars { display: inline-flex; } .kit-avatars .kit-avatar { border: 2px solid var(--surface); margin-left: -.5rem; } .kit-avatars .kit-avatar:first-child { margin-left: 0; }
kbd { font-family: var(--mono); font-size: .75rem; padding: .05rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--muted); }
code, .kit-mono { font-family: var(--mono); font-size: .85em; }
code { background: var(--hover); padding: .1rem .35rem; border-radius: 4px; }
.kit-copy { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .82rem; background: var(--hover); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .25rem .2rem .55rem; }
.kit-copy button { font: inherit; font-family: var(--font-body); font-size: .75rem; font-weight: 600; border: 0; border-radius: 4px; background: var(--surface); color: var(--ink); padding: .15rem .45rem; cursor: pointer; }
progress, meter { appearance: none; -webkit-appearance: none; width: 100%; height: .5rem; border: 0; border-radius: 999px; background: var(--hover); overflow: hidden; vertical-align: middle; }
progress::-webkit-progress-bar { background: var(--hover); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
meter::-webkit-meter-bar { background: var(--hover); border: 0; border-radius: 999px; height: .5rem; }
meter::-webkit-meter-optimum-value { background: var(--ok); border-radius: 999px; }
meter::-webkit-meter-suboptimum-value { background: var(--warn); border-radius: 999px; }
meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 999px; }
.kit-steps { display: flex; gap: .5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; counter-reset: step; flex-wrap: wrap; }
.kit-steps li { counter-increment: step; display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); font-weight: 550; }
.kit-steps li::before { content: counter(step); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-content: center; border: 1.5px solid var(--line); font-size: .78rem; font-weight: 700; background: var(--surface); }
.kit-steps li + li { padding-left: .5rem; } .kit-steps li + li::after { order: -1; content: ""; width: 2rem; height: 1.5px; background: var(--line); margin-right: .5rem; }
.kit-steps .done { color: var(--ink); } .kit-steps .done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kit-steps [aria-current] { color: var(--ink); } .kit-steps [aria-current]::before { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].tip-on::after { content: attr(data-tip); position: absolute; z-index: 40; bottom: calc(100% + .45rem); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 500; padding: .3rem .55rem; border-radius: 5px; pointer-events: none; box-shadow: var(--shadow); }
.kit-divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.kit-aside { color: var(--muted); font-size: .85rem; font-weight: 400; }

/* ---- panes and stats: a page's own template lays views side by side ----
   .kit-panes (two columns; .three, .wide-left, .wide-right), .kit-pane (a card around a
   view or content, .kit-pane-head for its title row); .kit-stats: a row of numbers
   (.kit-stat > .kit-stat-label, .kit-stat-value, .kit-stat-delta.up|.down) */
.kit-panes { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-bottom: var(--gap); }
.kit-panes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-panes.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kit-panes.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.kit-panes > * { min-width: 0; }
.kit-panes .view { margin-bottom: 0; }
@media (max-width: 1000px) { .kit-panes, .kit-panes.three, .kit-panes.wide-left, .kit-panes.wide-right { grid-template-columns: 1fr; } }
.kit-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem; min-width: 0; }
.kit-pane > .view { margin: 0; }
.kit-pane .table-wrap { border: 0; box-shadow: none; border-radius: 0; margin: 0 -1.15rem -1rem; }
.kit-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .75rem; }
.kit-pane-head h2 { font-size: 1rem; margin: 0; font-family: var(--font-body); letter-spacing: 0; }
.kit-stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); margin: 0 0 var(--gap); padding: 0; list-style: none; }
.kit-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kit-stat-label { font-size: .8rem; color: var(--muted); font-weight: 550; }
.kit-stat-value { font-size: 1.65rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; }
.kit-stat-delta { font-size: .8rem; font-weight: 600; color: var(--muted); }
.kit-stat-delta.up { color: var(--ok); } .kit-stat-delta.down { color: var(--danger); }
.kit-stat-delta.up::before { content: "▲ "; font-size: .65rem; } .kit-stat-delta.down::before { content: "▼ "; font-size: .65rem; }
.kit-stat progress, .kit-stat meter { margin-top: .4rem; }

/* ---- modal dialogs: dialog.kit-modal (a .kit-modal-head, content, .actions);
   a button [data-kit-open="<dialog id>"] opens it, [data-kit-close] closes it ---- */
.kit-modal { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; width: min(34rem, 92vw); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.kit-modal::backdrop { background: rgba(10, 12, 18, .45); }
.kit-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.kit-modal-head h2 { margin: 0; font-size: 1.05rem; }
.kit-modal > :not(.kit-modal-head):not(.actions) { padding-inline: 1.25rem; }
.kit-modal > .actions { justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: var(--bg); }
.kit-x { appearance: none; background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .4rem; border-radius: 6px; }
.kit-x:hover { background: var(--hover); color: var(--ink); }
/* an avatar from a whole name (<span class="kit-avatar name">{{.P.Name}}</span>): only
   its first letter shows */
.kit-avatar.name { display: inline-block; overflow: hidden; white-space: nowrap; color: transparent; line-height: 2rem; padding-left: .66rem; text-align: left; }
.kit-avatar.name::first-letter { color: var(--accent); }
.kit-avatar.small { width: 1.5rem; height: 1.5rem; line-height: 1.5rem; padding-left: .48rem; font-size: .7rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* a count beside a label (.kit-count), a list with accent dots (.kit-dots) */
.kit-count { display: inline-grid; place-content: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; }
.kit-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.kit-dots li { position: relative; padding-left: 1.2rem; font-size: .9rem; }
.kit-dots li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.kit-dots a { text-decoration: underline; }
/* the signed-in person's menu (details.kit-menu.account-menu: an avatar, the name) */
.account-menu > summary { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .6rem .2rem .2rem; border-radius: 999px; font-weight: 550; font-size: .92rem; }
.account-menu > summary:hover { background: var(--hover); }
.account-menu .who { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-menu .kit-menu-list a, .kit-menu .kit-menu-list button { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 450; }
.kit-menu .kit-menu-list .danger { color: var(--danger); }
