/* Talira's components. Each section is one component; docs/DESIGN_SYSTEM.md says when to use it, and /design shows
   every one in both themes. Components take their colours and sizes from tokens.css only. */

/* The hidden attribute always hides, whatever a class's display says: `.chip { display: inline-flex }` beat it, and
   every listing page showed its hidden "Your listing" chip to everyone (21 Nov 2026). */
[hidden] { display: none !important; }

/* === State classes: is-* === */
/* is-ok, is-bad, is-warn, is-pending: a state a script sets on an element; each component styles its own. */

/* === Text styles: visually-hidden === */
/* Hidden from sight, read by screen readers. (The lede, quiet text and tabular figures are at the end of style.css,
   so they win over the page sections' own colours and sizes, as they always have.) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Button: button button-* === */
/* Button: <a> or <button> with class="button" and one variant. One primary or hero button per view. 36px tall, a
   hairline edge on the card colour; the main ones are graphite (near-white in dark mode). */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  font: 500 var(--control)/1 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--edge);
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.button:hover { color: var(--ink); border-color: var(--ink-3); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--button); color: var(--on-button); border-color: var(--button); }
.button-primary:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--on-button); }
/* Hero: the page's main action (Connect your AI), larger. */
.button-hero { height: 44px; padding: 0 18px; font-size: var(--text-md); border-radius: 8px; background: var(--button); color: var(--on-button); border-color: var(--button); }
.button-hero:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--on-button); }
/* Secondary hero: the page's other main action (Submit your product), the same size on the card colour. */
.button-hero.button-secondary { background: var(--card); color: var(--ink); border-color: var(--edge); }
.button-hero.button-secondary:hover { background: var(--card); border-color: var(--ink-3); color: var(--ink); }
.button-hero.button-small { height: 36px; padding: 0 14px; font-size: var(--control); border-radius: var(--radius-sm); }
/* Quiet: a secondary action beside content (Copy). */
.button-quiet { height: 28px; padding: 0 10px; font-size: var(--text-xs); color: var(--ink-2); background: transparent; border-color: var(--rule); }
.button-quiet:hover { color: var(--ink); background: transparent; border-color: var(--ink-3); }
.button-small { height: 30px; padding: 0 10px; font-size: var(--text-xs); }
/* Bad: an action that deletes something for good (Delete on an outcome report), in --bad text. */
.button-bad { color: var(--bad); }
.button-bad:hover { color: var(--bad); border-color: var(--bad); }
.button .kbd { color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); background: transparent; opacity: 0.8; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button:disabled:hover { background: var(--card); border-color: var(--edge); }
.button-primary:disabled:hover { background: var(--button); border-color: var(--button); }
/* Link button: a button that reads as a link, for a small action in a line of links (Delete on a comment). */
.button-link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.button-link:hover { color: var(--ink); text-decoration: underline; }
.button-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }


/* === Icon button: icon-button theme-* === */
/* Icon button: a square button holding an icon, its words for screen readers (the footer's theme switch). */
.icon-button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-button:hover { background: var(--raised); color: var(--ink); }
.icon-button[hidden] { display: none; }
.icon-button svg { width: 16px; height: 16px; }
/* The theme switch shows the moon in light mode (switch to dark) and the sun in dark mode. */
.theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .theme-moon { display: none; }
}

/* === Menu: menu menu-* === */
/* Menu: a dropdown of radios (one choice) or checkboxes (any number), the same button either way. The button is a
   36px control with a small chevron; the list floats on the soft shadow. The inputs are drawn as Survey's ticks: a
   rounded square for a checkbox, a circle for a radio, filled with the accent when chosen. */
.menu { position: relative; }
.menu[hidden] { display: none; }
.menu-button {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px;
  font: 500 var(--control)/1 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--edge);
  border-radius: var(--radius-sm); cursor: pointer; user-select: none; white-space: nowrap;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.menu-button::-webkit-details-marker { display: none; }
/* A long summary (several options ticked) ends in an ellipsis instead of widening the page. */
.menu-button { max-width: 100%; }
.menu-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-button::after {
  content: ""; flex: none; width: 5px; height: 5px; margin: 0 2px 0 2px; border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease);
}
.menu[open] .menu-button::after { transform: translateY(1px) rotate(-135deg); }
.menu-button:hover, .menu[open] > .menu-button { border-color: var(--ink-3); }
.menu-list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; min-width: max(100%, 220px); max-height: min(420px, 70vh);
  overflow-y: auto; display: grid; gap: 1px; padding: 4px; background: var(--card); border: 0;
  border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.menu-option {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: var(--control);
  color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.menu-option:hover { background: var(--raised); color: var(--ink); }
/* On a phone the open list stays inside the window, its options wrapping. */
@media (max-width: 560px) {
  .menu-list { max-width: calc(100vw - 32px); }
  .menu-option { white-space: normal; }
}
.menu-option input, .filter-option input {
  flex: none; appearance: none; -webkit-appearance: none; display: grid; place-items: center; margin: 0; width: 14px; height: 14px;
  border: 1px solid var(--edge); border-radius: 4px; background: var(--card); cursor: pointer;
}
.menu-option input[type="radio"], .filter-option input[type="radio"] { border-radius: 999px; }
.menu-option input:checked, .filter-option input:checked { background: var(--accent); border-color: var(--accent); }
.menu-option input[type="checkbox"]:checked::after, .filter-option input[type="checkbox"]:checked::after {
  content: ""; width: 6px; height: 3px; border: solid var(--card); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px);
}
.menu-option input[type="radio"]:checked::after, .filter-option input[type="radio"]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--card); }
.menu-option input:focus-visible, .filter-option input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.menu-option:has(input:checked) { color: var(--ink); }

/* === Filter panel: filter-group filter-group-note filter-option filter-option-* filter-panel filter-panel-* filter-pill filter-pills filter-pills-clear filter-sheet filter-sheet-* filter-tools === */
/* Filter panel: the Filters button (a control like the Menu's, with a sliders icon and the number on in an accent
   badge) opens a sheet below it, as wide as the list, with every filter's options in sections laid out in columns (each option with how many listings it leaves, those
   that would leave none left out); its
   head and foot stay put while the options scroll. On a phone the sheet is in the page's flow at full width, one
   section under another, with the foot stuck to the bottom of the window. The options are the Menu's ticks with a
   count at the right. The pills after the button are the filters that are on, each a link that removes it. */
.filter-tools { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.filter-panel-button {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  font: 500 var(--control)/1 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--edge);
  border-radius: var(--radius-sm); cursor: pointer; user-select: none; white-space: nowrap;
  transition: border-color var(--dur) var(--ease);
}
.filter-panel-button::-webkit-details-marker { display: none; }
.filter-panel-button svg { flex: none; width: 16px; height: 16px; color: var(--ink-2); }
.filter-panel-button:hover, .filter-panel[open] > .filter-panel-button { border-color: var(--ink-3); }
.filter-panel-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.filter-panel-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent); font-size: var(--text-xs); font-variant-numeric: tabular-nums;
}
.filter-sheet {
  position: absolute; top: 44px; left: 0; right: 0; z-index: 20; display: flex; flex-direction: column;
  max-height: min(640px, 75vh); background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.filter-sheet-head { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--rule); }
.filter-sheet-head h2 { margin: 0; font-size: var(--text-lg); letter-spacing: -0.02em; }
.filter-sheet-on { font-size: var(--text-xs); color: var(--accent); font-weight: 500; }
.filter-sheet-body { overflow-y: auto; padding: 16px 20px 0; columns: 4 190px; column-gap: 28px; }
.filter-group { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; break-inside: avoid; }
.filter-group legend { padding: 0; margin: 0 0 6px; font: 500 var(--text-xs)/1.4 var(--sans); color: var(--ink-3); }
.filter-option {
  display: flex; align-items: center; gap: 8px; margin: 0 -6px; padding: 5px 6px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); line-height: 1.35; color: var(--ink-2); cursor: pointer; transition: background-color var(--dur) var(--ease);
}
.filter-option:hover { background: var(--raised); color: var(--ink); }
.filter-option:has(input:checked) { color: var(--ink); }
.filter-option-label { flex: 1; min-width: 0; }
.filter-option-count { flex: none; font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-group-note { display: inline-block; margin-top: 6px; font-size: var(--text-xs); font-weight: 500; }
.filter-sheet-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--rule);
  background: var(--card); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.filter-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 500; color: var(--ink); text-decoration: none; background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.filter-pill svg { width: 12px; height: 12px; color: var(--accent); }
.filter-pill:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.filter-pills-clear { padding: 0 4px; font-size: var(--text-xs); font-weight: 500; }
@media (max-width: 640px) {
  .filter-panel[open] { flex: 1 0 100%; }
  .filter-sheet { position: static; max-height: none; margin-top: 8px; }
  .filter-sheet-body { overflow: visible; columns: 1; padding: 12px 16px 0; }
  .filter-sheet-head { padding: 14px 16px 10px; }
  .filter-sheet-foot { position: sticky; bottom: 0; padding: 12px 16px; box-shadow: 0 -1px 0 var(--rule); border-top: 0; }
  .filter-sheet-foot .button { flex: 1; justify-content: center; }
  /* The support chat's button would sit on Show results. */
  body:has(.filter-panel[open]) .support-chat { display: none; }
}

/* === Select: reply-control reply-control-label select select-* === */
/* Select: one value from a list, in a form, in place of the browser's <select> (banned: its chevron hugs the edge).
   Built on the Menu: the button shows the chosen option with the Menu's padded chevron, as wide and tall as a field's
   input; the options are radios in a list whose circles are hidden, the chosen one ticked on the accent wash.
   talira.js (data-select) adds the keyboard. */
.select { display: block; }
.select-button { width: 100%; box-sizing: border-box; justify-content: space-between; height: 40px; padding: 0 12px 0 12px; font-weight: 400; font-size: var(--text-md); }
/* The chosen option's words over every option's, hidden (select-sizer): the button is as wide as the longest option,
   so the list below isn't cut off and a column of selects (a settings grid's auto column) lines up. Where a select
   is narrower than that (a phone, a fixed-width cell), the words end in an ellipsis. */
.select-value { display: grid; flex: 0 1 auto; min-width: 0; }
.select-value > * { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-sizer { visibility: hidden; }
.select-button::after { margin: 0 2px 0 8px; }
.select[open] .select-button, .select-button:focus-visible { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
.select[data-invalid] .select-button { border-color: var(--bad); }
/* At least as wide as the button, and wider when an option needs it (on a phone the Menu's rule keeps it in the
   window and its options wrap): pinning both edges to the button cut long options off. */
.select-list { min-width: 100%; }
.select-option { position: relative; padding-right: 32px; }
.select-option input { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.select-option:has(input:checked) { background: var(--accent-wash); color: var(--ink); font-weight: 500; }
.select-option:has(input:checked)::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 4px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
}
.select-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
/* In a row's cell, a review queue's actions and a reply form's controls, the select is as small as their inputs. */
.rows-row .select-button, .form-source .select-button { height: 36px; font-size: var(--control); }
.review-actions .select { flex: 1 1 12rem; width: 16rem; max-width: 16rem; min-width: 0; }
.review-actions .select-button, .reply-controls .select-button { height: 36px; font-size: var(--control); }
.reply-control { display: grid; gap: 4px; min-width: 12rem; }
.reply-control-label { font-size: var(--text-sm); font-weight: 500; }

/* === Search form: search search-icon search-row search-box search-controls === */
/* Search form: a command bar. The box (search-field) is a card on the soft shadow, with the magnifier and the search
   box in its first row and the category, language and filter menus and Find tools in a footer under a hairline. The
   focus ring is the whole bar's. */
.search { position: relative; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: box-shadow var(--dur) var(--ease); }
.search:focus-within { box-shadow: var(--shadow), var(--focus-ring); }
.search-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; }
.search-icon { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--ink-3); }
.search-row .combobox { flex: 1; min-width: 0; }

/* Search box: a textarea that grows (talira.js), borderless inside the bar. */
.search-box {
  display: block; width: 100%; resize: none; overflow-y: hidden; font: var(--text-lg)/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; padding: 0; outline: none;
}
.search-box:focus, .search-box:focus-visible { outline: none; }
/* The example is longer than most searches: cut off rather than wrapped, so the box stays one line tall. */
.search-box::placeholder { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px 12px 16px; border-top: 1px solid var(--rule); }
.search-controls .menu-button { height: 30px; padding: 0 8px 0 10px; font-size: var(--text-xs); color: var(--ink-2); background: var(--raised); border-color: var(--rule); }
.search-controls .menu-button:hover, .search-controls .menu[open] > .menu-button { color: var(--ink); border-color: var(--edge); }
.search-controls .button { margin-left: auto; }
@media (max-width: 640px) {
  .search-row { padding: 14px 16px 10px; }
  .search-box { font-size: var(--text-md); }
  .search-controls .menu { flex: 1 1 auto; }
  .search-controls .menu-button { width: 100%; justify-content: space-between; }
  .search-controls .button { margin-left: 0; width: 100%; }
}

/* === Combobox: combobox combobox-alias combobox-group combobox-group-label combobox-list combobox-name combobox-option combobox-type === */
/* Combobox: names that match the search box's text, in a list under it (the WAI-ARIA combobox pattern, talira.js).
   It floats on the soft shadow, like an open menu. */
.combobox { position: relative; }
.combobox-list {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 20; max-height: min(420px, 60vh); overflow-y: auto;
  display: grid; gap: 1px; padding: 4px; background: var(--card); border: 0; border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.search-row .combobox-list { left: -38px; right: -8px; }
.combobox-list[hidden] { display: none; }
.combobox-group { display: grid; gap: 1px; }
.combobox-group + .combobox-group { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 6px; }
.combobox-group-label { padding: 4px 8px; font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); }
.combobox-option {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: var(--control);
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.combobox-option:hover { color: var(--ink); background: var(--raised); }
.combobox-option[aria-selected="true"] { background: var(--accent-wash); }
.combobox-name { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combobox-alias { margin-left: 8px; font-weight: 400; color: var(--ink-3); }
.combobox-type { flex: none; font-size: var(--text-xs); color: var(--ink-3); }

/* === Go to: go-* === */
/* Go to: a link straight to the listing a search names exactly, pinned above the results. */
.go-to { margin: 24px 0 0; }
.go-to a {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 14px 6px 6px; font-size: var(--control);
  color: var(--ink); background: var(--card); border-radius: var(--radius-md); box-shadow: var(--ring); text-decoration: none;
  transition: box-shadow var(--dur) var(--ease);
}
.go-to a:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--ink-3); }
.go-to a > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-to-detail { color: var(--ink-3); }

/* === Chip: bad chip ok warn === */
/* Chip: a short fact about a listing (licence, open source, free), a pill on a hairline. ok and warn colour the ones
   that matter. */
.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin: 0 4px 4px 0; font: 400 var(--text-xs)/1 var(--sans);
  border-radius: 999px; background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2);
  vertical-align: middle; white-space: nowrap;
}
.chip.ok { background: var(--ok-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.chip.warn { background: var(--warn-wash); box-shadow: none; color: var(--warn); }
.chip.bad { background: var(--bad-wash); box-shadow: none; color: var(--bad); }
/* A neutral chip has no fill, so on a button (where it can straddle the edge) it takes the button's own. */
.button > .chip:not(.ok, .warn, .bad) { background: var(--card); }
/* A chip that's a link (a listing's "Your listing") is wholly one, so it's drawn as a chip, darkening on hover. */
a.chip { text-decoration: none; transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }

/* === Logo: logo logo-* === */
/* Logo: a listing's logo in a fixed square, scaled to fit and never stretched, with no border. What's behind it comes
   from the image (images::Backdrop): an opaque logo fills its square as it is (logo-opaque); a mark on a transparent
   background gets white behind it (logo-on-white, and any image not measured yet), or ink when the mark is white
   (logo-on-dark), the same in both themes, or the theme's when the SVG changes its own colours in dark mode
   (logo-on-theme), with just enough padding that the mark doesn't touch the edge. A listing without one shows its
   initial on a raised tile with a hairline. */
.logo {
  flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px;
  padding: 2px; object-fit: contain; background: var(--logo-tile); border-radius: 8px;
  vertical-align: middle; overflow: hidden;
}
.logo-lg { width: 64px; height: 64px; padding: 5px; border-radius: var(--radius-lg); }
.logo-on-dark { background: var(--logo-tile-dark); }
/* An SVG that changes its colours in dark mode (logo-on-theme) draws the mode's colours: color-scheme says which, for
   browsers that take it from the page rather than the system. */
.logo-on-theme { background: var(--logo-tile-theme); color-scheme: var(--logo-scheme); }
.logo.logo-opaque { padding: 0; background: none; }
.logo-monogram { font: 600 14px/1 var(--sans); color: var(--ink-2); background: var(--raised); border: 0; box-shadow: inset 0 0 0 1px var(--edge); user-select: none; }
.logo-lg.logo-monogram { font-size: 26px; }

/* === Meter: bar meter meter-* === */
/* Meter: a 0-1 score (fit, trust): the label, the figure at the right in tabular digits, and a thin bar under them
   in the accent. */
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 8px; font-size: var(--text-xs); color: var(--ink-3); }
.meter-label::first-letter { text-transform: uppercase; }
.meter-value { font: 500 var(--text-sm)/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.meter .bar { grid-column: 1 / -1; }
.bar { height: 4px; background: var(--bar); border-radius: 999px; overflow: hidden; }
/* Every meter's bar is Talira's green, the accent (4.3:1 on its track in light mode, 7.9:1 in dark). */
/* The template sets each bar's length as --fill (style="--fill: 82%"). */
.bar span { display: block; width: var(--fill, 0); height: 100%; background: var(--accent); border-radius: inherit; }

/* === Card: card === */
/* Card: a box of related facts beside the main content, on a hairline ring. */
.card { background: var(--card); border: 0; box-shadow: var(--ring); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.card h3 { font-weight: 600; font-size: var(--text-sm); letter-spacing: 0; margin: 0 0 14px; }
.card .meter { margin-bottom: 10px; }

/* === Code block: code code-* === */
/* Code block: a titled snippet with a Copy button, on the page's colour inside a hairline. */
.code { background: var(--paper); border: 0; box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--radius-md); overflow: hidden; margin: 12px 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--rule); font-size: var(--text-xs); color: var(--ink-3); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 12.5px/1.6 var(--mono); color: var(--ink); }

/* A code block whose lines wrap instead of scrolling: one-line snippets people copy (the listing badge). */
.code-wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }

/* === Pagination: pagination pagination-* === */
/* Pagination: previous and next, the page numbers with gaps, and which items this page shows, below a long list. */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px;
  padding-top: 20px; border-top: 1px solid var(--rule);
}
.pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pagination-links a, .pagination-step, .pagination-gap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
  font: 500 var(--control)/1 var(--sans); font-variant-numeric: tabular-nums; border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pagination-links a { color: var(--ink); text-decoration: none; }
.pagination-links a:hover { background: var(--raised); border-color: var(--rule); }
.pagination-links a[aria-current="page"] { background: var(--card); border-color: var(--edge); color: var(--ink); }
.pagination-step[aria-disabled] { color: var(--ink-3); }
.pagination-gap { min-width: 0; padding: 0 4px; color: var(--ink-3); }
.pagination-count { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.pagination .pagination-links a:focus-visible { border-radius: var(--radius-sm); }

/* === Post list: post-* === */
/* Post list: blog posts or changelog entries, newest first: the date, then chips, the title and a summary. */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--rule); }
.post-date { font-size: var(--text-sm); color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.post-chips { margin: 0 0 4px; }
.post-item h2 { font-weight: 600; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 6px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { color: var(--accent); }
.post-summary { margin: 0; color: var(--ink-2); max-width: 65ch; }
.post-empty { margin: 0; padding: 22px 0; border-top: 1px solid var(--rule); color: var(--ink-3); }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; gap: 4px; } }

/* === Launch list: launch-day launch-meta === */
/* Launch list: launches grouped by day, each day's heading above its listings' cards. */
.launch-day { margin: 0 0 12px; }
.launch-day > h2 { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin: 32px 0 0; padding: 0 0 10px; }
.launch-day .browse-list .hit { grid-template-columns: 1fr; }
.launch-meta { margin: 6px 0 0; font-size: var(--text-sm); color: var(--ink-2); }
.launch-meta time { font-variant-numeric: tabular-nums; }

/* === Article body: article-body footnote-definition === */
/* Article body: a blog post's or changelog entry's Markdown, with its images, code, quotes, tables and footnotes. */
.article-body { font-size: var(--text-lg); line-height: 1.65; max-width: 68ch; }
.article-body p, .article-body ul, .article-body ol, .article-body pre, .article-body blockquote, .article-body table { margin: 0 0 18px; }
.article-body h2 { font-weight: 600; font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.025em; margin: 40px 0 12px; }
.article-body h3 { font-weight: 600; font-size: var(--text-lg); line-height: 1.3; margin: 28px 0 8px; }
.article-body li { margin-bottom: 6px; }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--ring); }
.article-body code { font-family: var(--mono); font-size: 0.86em; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 4px; padding: 0.08em 0.3em; overflow-wrap: anywhere; }
.article-body pre { background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--radius-md); padding: 14px 16px; overflow-x: auto; font: 12.5px/1.6 var(--mono); }
.article-body pre code { background: none; box-shadow: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.article-body blockquote { padding-left: 16px; border-left: 2px solid var(--edge); color: var(--ink-2); margin-left: 0; margin-right: 0; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); }
.article-body th, .article-body td { border-bottom: 1px solid var(--rule); padding: 8px 16px 8px 0; text-align: left; vertical-align: top; }
.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.article-body sup { line-height: 0; }
.article-body .footnote-definition { display: flex; gap: 8px; font-size: var(--text-sm); color: var(--ink-2); margin-top: 8px; }
.article-body .footnote-definition p { margin: 0; }
/* A Markdown link's title, shown the moment the pointer is on the link or it has keyboard focus (markdown.rs). */
a[data-tip] { position: relative; }
a[data-tip]:is(:hover, :focus-visible)::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: min(280px, 80vw); padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--button); color: var(--on-button); font: 400 var(--text-xs)/1.35 var(--sans); font-style: normal; letter-spacing: 0;
  text-align: left; white-space: normal; pointer-events: none; z-index: 20;
}

/* === Contents: contents contents-title === */
/* Contents: a long page's sections as a numbered list of links at its top (the legal pages). */
.contents { max-width: 68ch; margin: 0 0 32px; padding: 16px 20px; background: var(--card); box-shadow: var(--ring); border-radius: var(--radius-md); font-size: var(--text-sm); }
.contents-title { margin: 0 0 8px; font-weight: 500; color: var(--ink); }
.contents ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.contents li { padding: 2px 0; break-inside: avoid; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.contents a { color: var(--ink-2); text-decoration: none; }
.contents a:hover { color: var(--ink); }

/* === Spotlight search: kbd spotlight === */
/* Spotlight search: the search form in a dialog near the top of the page, opened from the header (talira.js). */
.spotlight {
  width: min(760px, calc(100vw - 32px)); max-width: none; margin: 12vh auto auto; padding: 0; overflow: visible;
  color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-lg);
}
.spotlight::backdrop { background: color-mix(in srgb, var(--paper) 55%, rgb(0 0 0 / 0.35)); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.spotlight .search { margin: 0; }
.kbd {
  display: inline-block; min-width: 20px; padding: 0 5px; font: 400 11px/18px var(--sans); text-align: center;
  color: var(--ink-3); background: var(--card); border: 1px solid var(--edge); border-radius: 4px;
}
@media (max-width: 640px) { .kbd { display: none; } }

/* === Docs layout: docs docs-* === */
/* Docs layout: the sidebar of every docs page, the page, and its outline. On a phone the sidebar follows the page,
   with a link to it at the top, and the outline is left out (the headings are the page). */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; padding-top: 40px; }
.docs-nav, .docs-outline { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 108px); overflow-y: auto; font-size: var(--text-sm); }
.docs-nav ul, .docs-outline ul { list-style: none; margin: 0; padding: 0; }
/* The outline may grow into the page's right margin, up to the window's edge, so long entries (the API's paths) stay
   on one line; one that still doesn't fit ends in an ellipsis, with its text in the link's title. */
.docs-outline { width: max-content; min-width: 100%; max-width: max(100%, calc((100vw - 1160px) / 2 + 196px)); }
.docs-outline a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-group + .docs-group { margin-top: 20px; }
.docs-group-title { margin: 0 0 6px; padding: 0 10px; font-weight: 500; color: var(--ink); }
.docs-nav a, .docs-outline a { display: block; padding: 5px 10px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.docs-outline a { padding: 3px 0 3px 12px; border-radius: 0; border-left: 1px solid var(--rule); }
.docs-nav a:hover { color: var(--ink); background: var(--raised); }
.docs-outline a:hover { color: var(--ink); border-left-color: var(--ink-3); }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; background: var(--card); box-shadow: var(--ring); }
.docs-nav .docs-group-title a { padding: 0; border: 0; color: var(--ink); font-weight: 500; background: none; box-shadow: none; }
.docs-nav .docs-group-title a:hover { color: var(--accent); }
.docs-nav .docs-group-title a[aria-current="page"] { color: var(--accent); }
.docs-main { min-width: 0; }
.docs-main h1 { font-weight: 600; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.045em; margin: 0 0 14px; }
.docs-main .lede { margin-bottom: 28px; }
.docs-jump { display: none; margin: 0 0 16px; font-size: var(--text-sm); }
@media (max-width: 1000px) {
  .docs { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
  .docs-outline { display: none; }
}
@media (max-width: 760px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 16px; }
  .docs-main { grid-row: 1; }
  .docs-nav { position: static; max-height: none; overflow: visible; padding-top: 24px; border-top: 1px solid var(--rule); }
  .docs-jump { display: block; }
}

/* === Beta banner: beta-* === */
/* Beta banner: a notice above every page's header while Talira is in beta (src/beta.rs). In the page's flow, so it
   never covers anything; its Hide button appears once talira.js runs, and beta-banner.js hides a dismissed one before
   the page is drawn. */
.beta-banner { color: var(--ink-2); background: var(--card); border-bottom: 1px solid var(--rule); font-size: var(--text-sm); }
.beta-banner-inner { display: flex; align-items: center; gap: 16px; max-width: 1160px; margin: 0 auto; padding: 6px 24px; }
.beta-banner p { flex: 1; margin: 0; line-height: 1.45; }
.beta-banner a { font-weight: 500; }
.beta-banner .button { flex: none; }
.beta-banner-short { display: none; }
@media (max-width: 560px) {
  .beta-banner-full { display: none; }
  .beta-banner-short { display: block; }
  .beta-banner-inner { gap: 12px; padding: 6px 16px; }
}
.beta-banner .button[hidden] { display: none; }
html[data-beta-dismissed] body > .beta-banner { display: none; }

/* === Form field: field field-check field-error field-hint field-input field-invalid field-label field-optional field-tag field-trap === */
/* Form field: a label, an optional hint, the input on --card, and the server's error under it in --bad. */
.field { display: grid; gap: 6px; margin: 0 0 22px; }
.field-label { font-weight: 500; font-size: var(--text-sm); color: var(--ink); }
.field-tag { float: right; margin: 0; font-weight: 400; }
.field-optional { font-weight: 400; font-size: var(--text-xs); color: var(--ink-3); margin-left: 4px; }
.field-hint { margin: 0; font-size: var(--text-sm); color: var(--ink-2); max-width: 60ch; }
.field-input {
  display: block; width: 100%; box-sizing: border-box; font: var(--text-md)/1.45 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-sm); padding: 8px 12px; min-height: 40px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field-input:hover { border-color: var(--ink-3); }
.field-input::placeholder { color: var(--ink-3); }
.field-input:focus, .field-input:focus-visible { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
textarea.field-input { resize: vertical; min-height: 96px; }
.field-invalid .field-input { border-color: var(--bad); }
.field-error { margin: 0; font-size: var(--text-sm); font-weight: 500; color: var(--bad); }
/* A trap for form-filling bots: off screen, out of the tab order and hidden from screen readers. People never see it. */
.field-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* A checkbox among the fields (send it anyway): the box beside its words. */
.field-check { display: flex; align-items: flex-start; gap: 10px; margin: -8px 0 22px; font-size: var(--text-md); color: var(--ink); cursor: pointer; }
.field-check input, .choice input, .filter-bar-check input, .picker-item input { accent-color: var(--accent); }
.field-check input { flex: none; margin: 3px 0 0; width: 16px; height: 16px; }

/* === Inline form: inline-form === */
/* Inline form: one field and its button on one line (a username, an API token's name, the claim page's email). The
   field's parts become the grid's first column, so the button sits beside the input, exactly as tall as it with
   their bottoms aligned, whether or not a hint is above it or an error under it. On a phone, where there's no room
   beside the input, the button goes under the field. */
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0 0 20px; }
.inline-form .field { display: contents; }
.inline-form .field > * { grid-column: 1; }
/* height: auto, or .button's 36px wins over the stretch and the button stands 4px short of the 40px input. */
.inline-form > .button { grid-column: 2; grid-row: 2; align-self: stretch; height: auto; }
.inline-form:has(.field-hint) > .button { grid-row: 3; }
/* A compact field's label is visually hidden (out of the grid's flow), so the input is the first row. */
.inline-form:has(.field-compact) > .button { grid-row: 1; }
@media (max-width: 480px) {
  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .inline-form > .button, .inline-form:has(.field-hint) > .button, .inline-form:has(.field-compact) > .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; height: 36px; }
}

/* === Choice: choice choice-* choices === */
/* Choice: one of a few options that each need a sentence (a board's Public or Private), as cards in a fieldset, each
   its radio, its name and what it means. The chosen one is on the accent wash. A card stretched to a taller
   neighbour's height keeps its hint under its name. */
.choices { display: grid; gap: 8px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.choices > legend { padding: 0; margin: 0 0 8px; }
.choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 2px 12px;
  padding: 12px 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.choice input { grid-row: 1 / span 2; width: 16px; height: 16px; margin: 3px 0 0; }
.choice-name { font-weight: 500; color: var(--ink); }
.choice-hint { font-size: var(--text-sm); color: var(--ink-2); }
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }

/* === Notice: notice notice-* === */
/* Notice: a message about a whole form or page. ok (it worked), warn (look at this), bad (refused). */
.notice { border-radius: var(--radius-md); padding: 12px 16px; margin: 0 0 24px; border: 1px solid transparent; font-size: var(--text-md); }
.notice p { margin: 0; }
.notice-ok { background: var(--ok-wash); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice-warn { background: var(--warn-wash); color: var(--warn); }
.notice-bad { background: var(--bad-wash); color: var(--bad); }
.notice a { color: inherit; font-weight: 500; }
.notice p + p { margin-top: 10px; }

/* === Status banner: status-* === */
/* Status banner: a listing that's abandoned (warn) or archived or shut down (gone), at the top of its page. */
.status-banner { border-radius: var(--radius-md); padding: 12px 16px; margin: 16px 0 0; border-left: 3px solid; }
.status-banner p { margin: 0; }
.status-banner p + p { margin-top: 6px; }
.status-banner-head { font-weight: 600; }
.status-banner-links { font-size: var(--text-sm); }
.status-banner a { color: inherit; font-weight: 500; overflow-wrap: anywhere; }
.status-banner-warn { background: var(--warn-wash); color: var(--warn); border-color: var(--warn); }
.status-banner-gone { background: var(--bad-wash); color: var(--bad); border-color: var(--bad); }

/* === Long list: list-more more-list === */
/* Long list: a listing's features after the tenth, in a <details> that opens in place (no script). */
.more-list { margin: -4px 0 16px; }
.more-list > summary {
  width: fit-content; cursor: pointer; font: 500 var(--text-sm)/1.4 var(--sans); color: var(--link); padding: 2px 0;
  text-decoration: underline 1px; text-underline-offset: 3px;
}
.more-list > summary:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.more-list[open] > summary { margin-bottom: 8px; }
/* "View all 59 problems": a link after a list that a page shows only the start of, to the page with all of it, drawn
   like the long list's summary. */
.list-more { margin: -4px 0 16px; font: 500 var(--text-sm)/1.4 var(--sans); }

/* === Decision: decision decision-* === */
/* Decision: one entry of the open dev log: date, outcome and the tool chosen, the problem, each search with the
   listings it returned in rank order, why, and later follow-ups; or the entry in brief, as /dev-log lists it. */
.decision-summary { margin: 0 0 8px; font-weight: 500; }
.decision { padding: 28px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.decision-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--text-sm); color: var(--ink-3); }
.decision-meta .chip { margin: 0; }
.decision-chose { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.decision h2 { font-weight: 600; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 6px; }
.decision h2 a { color: var(--ink); text-decoration: none; }
.decision h2 a:hover { color: var(--accent); }
.decision-problem { margin: 0 0 16px; color: var(--ink-2); max-width: 65ch; }
.decision-miss { margin: 0 0 12px; max-width: 65ch; }
.decision-evidence { margin: 0 0 12px; padding-left: 1.2em; }
.decision-evidence li { margin: 0 0 4px; }
.decision-search { background: var(--card); box-shadow: var(--ring); border-radius: var(--radius-md); padding: 14px 16px; margin: 0 0 12px; }
.decision-query { margin: 0 0 10px; overflow-wrap: anywhere; }
.decision-results { margin: 0; padding-left: 1.6em; font-variant-numeric: tabular-nums; }
.decision-results li::marker { color: var(--ink-3); }
.decision-results li { margin: 0 0 6px; padding-left: 4px; }
.decision-results li > .logo { width: 24px; height: 24px; margin-right: 8px; }
.decision-results li > .grade-mark { margin-right: 8px; }
.decision-now { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-2); }
.decision-now p { margin: 0 0 8px; }
.decision-now p:last-child { margin-bottom: 0; }
.decision-now .decision-results li > .logo { width: 20px; height: 20px; }
.decision-page { border-top: 0; padding-top: 0; }
.decision-page h1 { margin: 0 0 6px; }
.decision-results li:last-child { margin-bottom: 0; }
.decision-why { margin-top: 16px; }
.decision-why > :last-child { margin-bottom: 0; }
.decision-later { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.decision-later time { color: var(--ink-3); }
/* In brief, as /dev-log lists it: the summary, the listings returned in small type, and a link to the whole entry. */
.decision-brief { padding: 22px 0; }
.decision-brief h2 { margin-bottom: 4px; }
.decision-brief-summary { margin: 0 0 8px; color: var(--ink-2); max-width: 65ch; }
.decision-listings { margin: 0 0 6px; font-size: var(--text-sm); color: var(--ink-3); max-width: 80ch; overflow-wrap: anywhere; }
.decision-brief-more { margin: 0; font-size: var(--text-sm); font-weight: 500; }

/* === Guide problem: guide-problem guide-problem-* === */
/* Guide problem: one problem in a guide, as a card in the article: the problem as a heading linking its own anchor,
   the live results best first (logo, name, chips, one-line description, warnings), our pick and why, or the line for a
   problem nothing fits yet, then when the results were updated and the link to run the same search. */
.guide-problem { background: var(--card); box-shadow: var(--ring); border-radius: var(--radius-md); padding: 16px 18px; margin: 20px 0; scroll-margin-top: 16px; }
.guide-problem h3 { margin: 0 0 12px; font-weight: 600; font-size: var(--text-lg); line-height: 1.35; letter-spacing: -0.015em; }
.guide-problem h3 a { color: var(--ink); text-decoration: none; }
.guide-problem h3 a:hover { color: var(--accent); }
.guide-problem-results { list-style: none; margin: 0; padding: 0; }
.guide-problem-result { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule); }
.guide-problem-result:first-child { border-top: 0; padding-top: 0; }
.guide-problem-name { margin: 0 0 2px; font-weight: 500; overflow-wrap: anywhere; }
.guide-problem-name .chip { margin-bottom: 0; }
.guide-problem-tagline { margin: 0; color: var(--ink-2); font-size: var(--text-sm); max-width: 70ch; }
.guide-problem-pick { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.guide-problem-pick .chip { margin-bottom: 0; }
.guide-problem-empty { margin: 0; color: var(--ink-2); max-width: 70ch; }
.guide-problem-meta { margin: 12px 0 0; font-size: var(--text-sm); color: var(--ink-3); }

/* === Citation: cite === */
/* Citation: a fact's source as a small footnote number after it, linking the page (title: the page and check date). */
.cite { font-size: 0.72em; line-height: 0; margin-left: 2px; font-variant-numeric: tabular-nums; }
.cite a { padding: 0 1px; }

/* === Tabs: tab tabs === */
/* Tabs: an area's sections on an underlined tab bar (the account settings), each tab a link to its own page. The
   page shown is ink on an accent underline. Lines are inset shadows, so a tab's underline covers the bar's hairline
   inside a box that scrolls. On a phone the bar runs to the screen's edges and scrolls sideways inside itself, never
   the page; talira.js scrolls the current tab into view. */
.tabs {
  position: relative; display: flex; gap: 24px; margin: 0 0 28px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--rule);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 0 12px; font-weight: 500; font-size: var(--control); line-height: 1.2; color: var(--ink-2);
  text-decoration: none; white-space: nowrap; transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tab:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--edge); }
.tab[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
/* Inside the box that scrolls, a ring outside the tab would be cut off. */
.tab:focus-visible { outline-offset: -2px; }
@media (max-width: 560px) {
  .tabs { gap: 20px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* === Public page link: public-link public-link-* === */
/* Public page link: a link from an owner page to a public page on the site (talira.ai), which opens in a new tab. A
   link in text (the base layer's look), with the external-link icon after its words to say it leaves for the public
   page in a new tab; the underline stops at the words. */
.public-link { overflow-wrap: anywhere; }
.public-link-icon { display: inline-block; width: 0.85em; height: 0.85em; margin-left: 0.3em; vertical-align: -0.05em; }

/* === Page header: crumb page-* === */
/* Page header (m::page_header, m::settings_header): the top of every app page that isn't a workspace's or a person's.
   The same space above it on every page, more when it starts with its back link, which sits clear of the header bar.
   A site page with a breadcrumb trail above its h1 (a category's, a blog post's) uses .crumb, drawn the same way. */
.page-header { margin: 48px 0 20px; }
.page-header:has(> .page-header-back) { margin-top: 32px; }
.page-header-back, .crumb { margin: 0 0 16px; font-size: var(--text-sm); color: var(--ink-3); }
.crumb { margin-bottom: 12px; }
.page-header-back a, .crumb a { color: inherit; text-decoration: none; }
.page-header-back a:hover, .crumb a:hover { color: var(--ink); }
.page-header .page-header-title { margin: 0; overflow-wrap: anywhere; }
.page-header-title:has(> .logo) { display: flex; align-items: center; gap: 12px; }
.page-header > .lede { margin-top: 20px; }
.page-header > .tabs { margin-top: 20px; }
.page-header > .notice { margin: 16px 0 0; }

/* === Workspace header: listings-org org-verify workspace workspace-* === */
/* Workspace header: the top of a listing's or an organization's own pages, above their tabs. The logo, then the name
   with its chip, a line under it and its public page's address with a Copy link button. */
/* A workspace uses the page's whole width (main, 1160px), so its header, tab bar and the Edit tab's side nav and form
   have room; text and short content under the tab bar keep the 720px reading width. */
.prose.workspace { max-width: none; }
.workspace > :not(.workspace-header):not(.edit-layout):not(.table-wrap) { max-width: 720px; }
.workspace-back { margin: 32px 0 16px; font-size: var(--text-sm); color: var(--ink-3); }
.workspace-back a { color: inherit; text-decoration: none; }
.workspace-back a:hover { color: var(--ink); }
.workspace-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 20px; margin: 0 0 24px; }
.workspace-head .logo-lg { width: 56px; height: 56px; }
.workspace-title { min-width: 0; }
.workspace-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.prose .workspace-name h1, .workspace-name h1 { margin: 0; min-width: 0; font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.workspace-line { margin: 6px 0 0; color: var(--ink-2); }
.workspace-public { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; min-width: 0; }
.workspace-public-label { color: var(--ink-2); }
.workspace-public .public-link { min-width: 0; }
.workspace-head .logo-lg.logo-monogram { font-size: 22px; }
.workspace-links { display: flex; flex-wrap: wrap; gap: 8px; }
/* Without a logo (a list), the name and line take the logo's column too. */
.workspace-head-text { grid-template-columns: minmax(0, 1fr) auto; }
/* A row in a workspace's list: the item's logo beside its name and line. */
.workspace-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-row > span { min-width: 0; overflow-wrap: anywhere; }
.workspace-row-sub { display: block; margin-top: 2px; color: var(--ink-3); font-size: var(--text-sm); }
/* An organization's home: whether it's verified, with Verify with GitHub and the other ways (org_settings.html). */
.org-verify { background: var(--raised); border-color: var(--rule); }
.org-verify form { margin: 12px 0 8px; }
/* An organization's heading on All your listings, with its Public page link in the text's size. */
.listings-org .public-link { margin-left: 8px; font-size: var(--text-sm); font-weight: 400; }
@media (max-width: 560px) {
  .workspace-head { gap: 12px 14px; }
  .workspace-head .logo-lg { width: 44px; height: 44px; padding: 3px; }
  .workspace-head-text { grid-template-columns: minmax(0, 1fr); }
  .workspace-links { grid-column: 1 / -1; }
}

/* === Account menu: account-menu account-menu-button account-menu-list account-menu-rule nav-sign-in === */
/* Account menu: the header's signed-in avatar (the username only in its accessible name), the signed-in navigation: Your listings and Organizations, then
   Credits, Account settings and Admin (staff only), then Sign out (a form), the groups split by a rule. */
.account-menu { position: relative; }
.account-menu-button {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; font: 500 var(--text-sm)/1.2 var(--sans);
  color: var(--ink); cursor: pointer; user-select: none; white-space: nowrap;
}
.account-menu-button::-webkit-details-marker { display: none; }
.account-menu-button::after {
  content: ""; flex: none; width: 5px; height: 5px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg);
}
.account-menu[open] .account-menu-button::after { transform: translateY(2px) rotate(-135deg); }
.account-menu-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; min-width: 200px; display: grid; gap: 1px; padding: 4px;
  background: var(--card); border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.account-menu-list form { margin: 0; }
/* The site's pages don't know who's looking (crate::hosts): "Sign in" holds the account menu's place until
   static/talira.js asks the app, about as wide as the menu's avatar and chevron, and stays hidden meanwhile for someone who was
   signed in last time, so it doesn't flash before their menu. */
.top nav .nav-sign-in[data-account-slot] { display: inline-block; min-width: 8ch; text-align: center; }
.top nav .nav-sign-in.is-pending { visibility: hidden; }
.account-menu-rule { margin: 4px 6px; border: 0; border-top: 1px solid var(--rule); }
.account-menu-list a, .account-menu-list button {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; font: 400 var(--control)/1.2 var(--sans); color: var(--ink); text-align: left; text-decoration: none;
  cursor: pointer;
}
.account-menu-list a:hover, .account-menu-list button:hover { background: var(--raised); }
/* On a phone, rows a thumb can hit (44px), in a wider list that still hangs from the header's right edge. */
@media (max-width: 560px) {
  .account-menu-list { min-width: 220px; }
  .account-menu-list a, .account-menu-list button { padding: 13px 12px; }
}

/* === Products menu: products-* === */
/* Products menu: the header's Products, opening each product's name and line, linking its page, then All products.
   The account menu's pattern: a <details> whose list floats on the quiet shadow. */
.products-menu { position: relative; }
.products-menu-button {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; font: var(--text-sm)/1.2 var(--sans); color: var(--ink-2);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.products-menu-button:hover, .products-menu[open] .products-menu-button { color: var(--ink); }
.products-menu-button::-webkit-details-marker { display: none; }
.products-menu-button::after {
  content: ""; flex: none; width: 5px; height: 5px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg);
}
.products-menu[open] .products-menu-button::after { transform: translateY(2px) rotate(-135deg); }
.products-menu-list {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: min(340px, calc(100vw - 32px)); display: grid;
  gap: 1px; padding: 4px; background: var(--card); border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.products-menu-list a {
  display: grid; gap: 2px; margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink);
  font: 500 var(--control)/1.2 var(--sans); text-decoration: none;
}
.products-menu-list a:hover { color: var(--ink); background: var(--raised); }
.products-menu-name { font-weight: 500; }
.products-menu-line { font: 400 var(--text-sm)/1.35 var(--sans); color: var(--ink-2); white-space: normal; }
.products-menu-more { display: grid; gap: 2px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--rule); }
/* The header links that move into the menu on phones (style.css shows them there). */
.products-menu-list a:is(.products-menu-catalog, .products-menu-docs, .products-menu-stack, .products-menu-lists, .products-menu-friends) { display: none; }

/* === Example: example example-* === */
/* Example: a screen drawn with the site's own components on a product page (a result, a dashboard, a board), in a
   frame that floats on the quiet shadow, with a caption saying what it is. Made-up figures say so in the caption. */
.example { margin: 0; min-width: 0; }
.example-frame {
  min-width: 0; padding: 20px; background: var(--paper); border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.example-frame > :last-child { margin-bottom: 0; }
.example figcaption { margin-top: 14px; font-size: var(--text-sm); color: var(--ink-3); }
.example-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 16px; }
.example-head strong { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; }
.example-head .chip { margin: 0; }
.example-query { margin: 0 0 14px; font-size: var(--text-lg); overflow-wrap: anywhere; }
.example .hit { border-top: 0; border-bottom: 0; padding: 0; }
.example .stats { margin-bottom: 20px; }
.example .data-table { background: var(--card); }
/* On its card background the table is a box, so its first column is inset like the others are spaced */
.example .data-table th:first-child, .example .data-table td:first-child { padding-left: 14px; }
@media (max-width: 560px) { .example-frame { padding: 14px; } }

/* === Sign-in methods: last-used provider-icon sign-in-* === */
/* Sign-in methods: a full-width button per OAuth provider, "Last used" on the one this browser used last. */
.sign-in-methods { display: grid; gap: 10px; margin: 0 0 24px; max-width: 420px; }
.sign-in-methods form { margin: 0; }
.sign-in-method { width: 100%; }
.provider-icon { width: 18px; height: 18px; flex: none; }
/* "Last used": a tag straddling the button's top-right corner, so the button's icon and words stay centred. */
.button:has(> .last-used) { position: relative; }
.button > .chip.last-used { position: absolute; top: 0; right: 12px; transform: translateY(-50%); margin: 0; }

/* === Report a problem: report report-* === */
/* Report a problem: a quiet toggle under a search result or at the foot of a listing's page that opens a small form.
   Smaller than the page's own forms, so it never competes with the content it's about. */
.report { margin: 8px 0 0; font-size: var(--text-sm); }
.report > summary {
  width: fit-content; cursor: pointer; list-style: none; color: var(--ink-3); font: 400 var(--text-xs)/1.4 var(--sans);
  padding: 2px 0;
}
.report > summary::-webkit-details-marker { display: none; }
.report > summary:hover, .report[open] > summary { color: var(--ink); }
.report-form {
  margin: 8px 0 0; padding: 14px 16px; max-width: 560px; border: 0; box-shadow: var(--ring); border-radius: var(--radius-md);
  background: var(--card);
}
.report-form .field { margin: 0 0 12px; gap: 4px; }
.report-form .field-label { font-size: var(--text-sm); }
.report-form textarea.field-input { min-height: 56px; font-size: var(--text-sm); }
.report-form .menu { margin: 0 0 12px; }
.report-form .field-check { margin: 0 0 12px; font-size: var(--text-sm); }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.report-note { color: var(--ink-3); font-size: var(--text-xs); }
.report-status { margin: 8px 0 0; font-size: var(--text-sm); }
.report-status:empty { display: none; }
.report-status.is-ok { color: var(--ok); }
.report-status.is-bad { color: var(--bad); }

/* === Grade mark: dev-log-grades fits grade-* related wrong === */
/* Grade mark: a judged result on the open dev log. Fits (tick), related but not an answer (wave), shouldn't have been
   shown (cross), each a shape as well as a colour; the label and reason are a Tip's bubble (.tip-text). */
.grade-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; }
.grade-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.grade-mark.fits { background: var(--ok-wash); color: var(--ok); }
.grade-mark.related { background: var(--warn-wash); color: var(--warn); }
.grade-mark.wrong { background: var(--bad-wash); color: var(--bad); }
.grade-mark[tabindex] { cursor: help; }
.grade-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grade-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--ink-2); }
.grade-legend li { display: inline-flex; align-items: center; gap: 8px; }
.dev-log-grades { max-width: 65ch; margin: 0 0 8px; }
.dev-log-grades p { color: var(--ink-2); }

/* === Tip: tip tip-* === */
/* Tip: a short explanation in a dark bubble above its anchor (.tip): the Tip button's "?" circle, or another
   component's mark (Grade mark). It shows on hover where the pointer can hover, on keyboard focus, and while a tap or
   click keeps it open (talira.js sets is-open; Escape sets is-closed until the pointer or focus leaves). Hidden, the
   text stays in the page for screen readers. talira.js moves an open bubble sideways (--tip-shift) to keep it on the
   screen. */
.tip { position: relative; }
.tip-button {
  display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 18px; height: 18px;
  padding: 0; border: 1px solid var(--edge); border-radius: 50%; background: var(--card); color: var(--ink-3);
  font: 600 11px/1 var(--sans); letter-spacing: 0; vertical-align: middle; cursor: help;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tip-button:hover, .tip-button.is-open { color: var(--ink); border-color: var(--ink-3); }
.tip-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tip-text {
  position: absolute; left: -4px; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(320px, calc(100vw - 48px));
  padding: 6px 10px; border-radius: var(--radius-sm); background: var(--button); color: var(--on-button); box-shadow: var(--shadow);
  font: 400 var(--text-xs)/1.4 var(--sans); letter-spacing: 0; text-align: left; white-space: normal; pointer-events: none;
  transform: translateX(var(--tip-shift, 0px));
}
.tip:not(:hover):not(:focus-visible):not(.is-open) .tip-text, .tip.is-closed .tip-text {
  width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; box-shadow: none;
}
/* A touch screen keeps :hover after a tap, so there only a tap (is-open) or focus from a keyboard opens it. */
@media (hover: none) {
  .tip:not(:focus-visible):not(.is-open) .tip-text { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; box-shadow: none; }
}

/* === Standard list: standard-* === */
/* Standard list: each standard, what it is for, who maintains it and how many listings support it (/standards). */
.standard-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; }
.standard-item h2 { margin: 0 0 4px; font-size: var(--text-xl); letter-spacing: -0.025em; }
.standard-item p { margin: 0 0 4px; }
.standard-item .small { margin-top: 4px; }


/* === Stats: stat stat-* stats === */
/* Stats: a few counts in a grid of tiles, each linking the page it's about (the admin home page). */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 32px; }
.stat {
  display: block; height: 100%; box-sizing: border-box; padding: 16px 18px; border: 0; box-shadow: var(--ring);
  border-radius: var(--radius-md); background: var(--card); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur) var(--ease);
}
.stat:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.stat-value { display: block; font: 600 var(--text-2xl)/1.1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 4px; color: var(--ink-2); font-size: var(--text-sm); }

/* === Filter bar: filter-bar filter-bar-* === */
/* Filter bar: a GET form of small fields in one wrapping row above a list, with its Filter button at the end. */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; margin: 0 0 20px; }
.filter-bar .field { flex: 1 1 150px; min-width: 0; margin: 0; gap: 4px; }
.filter-bar .field-label { font-size: var(--text-sm); }
.filter-bar .field-input { min-height: 36px; padding: 6px 10px; font-size: var(--control); }
.filter-bar .menu { align-self: flex-end; }
.filter-bar-check { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: var(--control); cursor: pointer; }
.filter-bar-check input { width: 16px; height: 16px; margin: 0; }
.filter-bar-actions { display: flex; gap: 8px; align-items: center; }
/* As tall as the small inputs beside it (DESIGN_SYSTEM.md, "Inline form"). */
.filter-bar-actions .button { min-height: 36px; }

/* === Data table: data-* table-wrap === */
/* Data table: rows of records (searches, accounts) in small type. It scrolls sideways inside its .table-wrap, never
   the page, and long words wrap. A .num cell lines its digits up on the right; .data-sub is a quieter second line. */
.data-table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.table-wrap > .data-table { min-width: 760px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--rule); padding: 10px 14px 10px 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.data-table thead th { font-weight: 500; font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; overflow-wrap: normal; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .data-sub { display: block; margin-top: 2px; color: var(--ink-3); font-size: var(--text-xs); }
.data-table ol, .data-table ul { margin: 0; padding-left: 18px; }
.data-table .chip { margin: 0; }
.data-table time { white-space: nowrap; }
.table-wrap { position: relative; overflow-x: auto; }
/* .data-table-dense: a long queue to scan (the listing queue), one row per record in caption-sized type with tight
   padding. A .data-more is a <details> in a cell: its summary is a quiet link-coloured line (a cut note, "Edit"), and
   its content opens below it, at least 18rem wide, so its facts and forms don't squeeze into a narrow column. */
/* .data-table-narrow: a few short columns (a name, numbers, a share) that fit a phone, so no minimum width; a Meter's
   figure in it stays on one line. */
.table-wrap > .data-table-narrow { min-width: 0; }
.data-table-narrow .meter-value { white-space: nowrap; }
.data-table-dense { font-size: var(--text-xs); line-height: 1.35; }
.data-table-dense th, .data-table-dense td { padding: 5px 10px 5px 0; }
.data-table-dense .data-sub { margin-top: 1px; }
.data-table .data-more > summary { cursor: pointer; color: var(--link); list-style: none; }
.data-table .data-more > summary::-webkit-details-marker { display: none; }
.data-table .data-more > summary:hover { text-decoration: underline; }
.data-table .data-more[open] { min-width: 18rem; }
/* A row's actions in a .data-actions cell: its summary ("Edit") stays on one line in the narrow last column. */
.data-table .data-actions > .data-more > summary { white-space: nowrap; }
.data-table .data-more[open] > summary { margin-bottom: 6px; }
.data-table .data-more > p { margin: 0 0 6px; }
.data-table .data-more .facts { font-size: var(--text-xs); margin-bottom: 8px; }

/* === Fact list: facts === */
/* Fact list: labels and values in two columns, one column on a phone (a search's details, a queue entry's fields). */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0 0 16px; font-size: var(--text-sm); }
/* dl.facts outranks .prose dt and dd, so the list looks the same inside a page's prose (a settings page). */
dl.facts > dt { font: inherit; color: var(--ink-3); margin: 0; }
dl.facts > dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.facts > dd { margin-bottom: 8px; }
}

/* === Reorder list: reorder-* === */
/* Reorder list: things in an order their owner sets (a list's listings), one row each. The thing is a Workspace row
   (logo, name, one line), its actions one group of icon buttons at the right (Move up, Move down, Remove: one form,
   m::reorder_actions), and what's changed about it (a note) an Inline form under the name. A button that can't act is
   disabled, never left out, so every row's buttons line up. On a phone the form takes the row's whole width. */
.reorder-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--rule); }
.reorder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.reorder-row .workspace-row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reorder-row > .inline-form { grid-column: 1 / -1; margin: 0 0 0 44px; }
.reorder-actions { display: flex; gap: 2px; margin: 0; padding: 2px; border: 1px solid var(--edge); border-radius: var(--radius-sm); background: var(--card); }
.reorder-actions .icon-button:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; background: transparent; }
@media (max-width: 560px) {
  .reorder-row > .inline-form { margin-left: 0; }
}

/* === Review item: edit-changes edit-field edit-side review-actions review-head review-item review-list === */
/* Review item: one entry of a review queue (a problem report, a submission): its title and status, a fact list, and
   a row of small forms, one per action, each posting the session's CSRF token. */
.review-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.review-item { border: 0; box-shadow: var(--ring); border-radius: var(--radius-md); padding: 16px 20px; background: var(--card); min-width: 0; }
.review-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 10px; }
.review-item .review-head h2 { margin: 0; font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.review-head .chip { margin: 0; }
/* Every button and field in the actions is one height, so a row lines up whatever it holds. */
.review-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.review-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; min-width: 0; max-width: 100%; }
.review-actions .button { height: 36px; padding: 0 14px; font-size: var(--control); }
.review-actions .field-input {
  flex: 1 1 12rem; width: 16rem; max-width: 16rem; min-width: 0; height: 36px; min-height: 0; padding: 0 10px; font-size: var(--control);
}
.review-actions + .reply-form { margin-top: 20px; }
/* An edit's changes (_claims.html edit_body): each field, then what it was and what it becomes, stacked so long text
   wraps instead of widening the page. */
.edit-changes { list-style: none; margin: 0 0 16px; padding: 0; }
.edit-changes > li { border-top: 1px solid var(--rule); padding: 12px 0; }
.edit-changes > li:last-child { border-bottom: 1px solid var(--rule); }
.edit-field { margin: 0 0 6px; font-weight: 500; }
.edit-side { margin: 8px 0 4px; font-size: var(--text-xs); color: var(--ink-3); }
.edit-changes pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18em; overflow-y: auto; font-size: var(--text-sm); }
.edit-changes .muted { margin: 0; font-size: var(--text-sm); }

/* === Conversation: from-* reply-controls reply-form review-body === */
/* A conversation in a review queue (a support ticket, a chat): each message is a review item, the team's on the
   accent wash and the team's private notes on the warn wash, with its text as written (review-body), then a reply
   form whose controls sit in a row. */
.review-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-body + .facts { margin-top: 12px; }
.review-item.from-team { background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.review-item.from-note { background: var(--warn-wash); box-shadow: none; }
.reply-form { display: grid; gap: 12px; max-width: 48rem; }
.reply-form textarea { min-height: 8rem; resize: vertical; }
.reply-form .field { margin: 0; }
.reply-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.reply-controls label { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 500; }
.reply-controls .field-input { min-height: 36px; padding: 6px 10px; font-size: var(--control); }
.review-item .reply-controls .button { height: 36px; padding: 0 16px; font-size: var(--control); }

/* === Feature request: feature-* listing-board === */
/* Feature request: a request on a board, its votes and vote button beside it. The visitor's own request waiting for
   review sits on the warn wash. On a phone the votes go above the text in a row. */
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.feature-item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px 20px 16px 16px; min-width: 0;
  background: var(--card); border: 0; box-shadow: var(--ring); border-radius: var(--radius-md);
}
.feature-votes { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.feature-votes form { margin: 6px 0 0; }
.feature-count { font: 600 var(--text-xl)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.feature-count-label { font-size: var(--text-xs); color: var(--ink-3); }
.feature-vote { margin-top: 6px; min-width: 72px; }
.feature-vote[aria-pressed="true"] { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.feature-body { min-width: 0; }
.feature-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.feature-head .chip { margin: 0; }
.feature-title { margin: 0; font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.feature-title a { color: var(--ink); text-decoration: none; }
.feature-title a:hover { color: var(--accent); }
.feature-description { margin: 0; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.feature-note { margin: 10px 0 0; font-size: var(--text-sm); color: var(--ink-3); overflow-wrap: anywhere; }
.feature-reply { margin: 12px 0 0; padding: 10px 12px; background: var(--accent-wash); border-radius: var(--radius-md); }
.feature-reply p { margin: 0; }
.feature-reply-from { font-size: var(--text-xs); font-weight: 500; color: var(--ink-2); }
.feature-reply-body { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .feature-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .feature-votes { flex-direction: row; align-items: baseline; gap: 6px; }
  .feature-votes form, .feature-vote { margin: 0 0 0 auto; }
  .feature-votes > a.feature-vote { margin-left: auto; }
}
/* The feature board's search: one input and its button, on one line down to phone width. */
.feature-search { display: flex; gap: 8px; margin: 0 0 16px; max-width: 560px; }
.feature-search .field-input { flex: 1 1 auto; min-width: 0; }
/* The button is as tall as the input beside it. */
.feature-search .button { height: auto; }
.feature-whys { margin: 0 0 12px; padding-left: 20px; overflow-wrap: anywhere; }
/* A claimed listing's board on its page: its requests, then its roadmap under an h3. */
.listing-board h3 { margin: 24px 0 10px; font-size: var(--text-lg); }
.listing-board .feature-title { font-size: var(--text-md); }


/* === Roadmap: roadmap roadmap-columns roadmap-column === */
/* Roadmap: ideas, planned, in progress and recently shipped requests in four columns. The columns follow the room the
   roadmap has (a container query, since it sits in a page, a listing's section or an example frame): two by two when
   it's narrower than 880px, one under another below 480px. */
.roadmap { container-type: inline-size; margin: 0 0 24px; }
.roadmap-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.roadmap-column { min-width: 0; padding: 16px 20px; background: var(--card); box-shadow: var(--ring); border-radius: var(--radius-md); }
.roadmap-column h2, .roadmap-column h4 { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; }
.roadmap-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.roadmap-column li { overflow-wrap: anywhere; }
.roadmap-column p { margin: 0; }
@container (max-width: 880px) { .roadmap-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 480px) { .roadmap-columns { grid-template-columns: minmax(0, 1fr); } }

/* === Side nav: side-* === */
/* Side nav: the sections of a long form, each its own page (a listing's Edit tab). A column beside the section on wide
   screens, sticky while the section scrolls; the current section is ink on the accent wash, and a section with saved
   changes not sent yet has a warn dot (and words for screen readers). Below 860px it's a row of the same links that
   scrolls sideways inside itself, never the page; talira.js scrolls the current one into view. */
.side-nav { position: sticky; top: 84px; align-self: start; min-width: 0; }
.side-nav ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: var(--control); font-weight: 500; line-height: 1.25; color: var(--ink-2); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.side-nav a:hover { color: var(--ink); background: var(--raised); }
.side-nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: var(--ring); }
.side-nav li:last-child { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.side-nav-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
@media (max-width: 860px) {
  .side-nav { position: static; margin: 0 -16px 20px; }
  .side-nav ol {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 10px; scroll-padding-inline: 16px;
    box-shadow: inset 0 -1px 0 var(--rule);
  }
  .side-nav ol::-webkit-scrollbar { display: none; }
  .side-nav li:last-child { margin: 0; padding: 0; border: 0; }
  .side-nav a { white-space: nowrap; border: 1px solid var(--rule); background: var(--card); padding: 7px 12px; }
  .side-nav a[aria-current="page"] { box-shadow: none; border-color: var(--ink); }
  .side-nav a:focus-visible { outline-offset: -2px; }
}

/* === Long form controls: choices-* combobox-empty combobox-hint edit-actions edit-intro edit-layout edit-main edit-send edit-title field-compact field-grow form-* picker picker-* review-actions-stacked rows rows-* suggest-panel suggestion suggestion-approve suggestions toggle toggle-source === */
/* A listing's Edit tab: the side nav and the section, which takes the rest of the workspace's width. */
.edit-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.edit-main { min-width: 0; }
.settings .edit-title { margin: 0 0 6px; font-size: var(--text-xl); letter-spacing: -0.025em; }
.edit-intro { margin: 0 0 24px; max-width: 64ch; }
.edit-actions {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin: 8px 0 24px; padding: 14px 0; background: var(--paper); border-top: 1px solid var(--rule);
}
.edit-actions .muted { flex: 1 1 16rem; font-size: var(--text-sm); }
.edit-send { margin: 24px 0 12px; }
@media (max-width: 860px) { .edit-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Form group: a fieldset of related controls in a long form (a plan, an edition), its legend the thing's name. A group
   inside one is split off by a rule; one that adds something new (Add a plan) is a disclosure, closed until asked. */
.form-group { min-width: 0; margin: 0 0 24px; padding: 16px 20px 4px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); }
.form-group > legend { padding: 0 6px; margin-left: -6px; font-weight: 600; font-size: var(--text-md); color: var(--ink); }
.form-group-inner { padding: 14px 0 0; margin: 0 0 18px; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
.form-group-inner > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: var(--text-md); }
.form-group-inner > legend + * { clear: left; }
details.form-group-add { padding: 0; background: none; border-style: dashed; }
details.form-group-add > summary { padding: 12px 16px; font-weight: 500; cursor: pointer; color: var(--ink); }
details.form-group-add[open] { padding: 0 20px 4px; background: var(--card); border-style: solid; }
details.form-group-add[open] > summary { margin: 0 -20px 12px; border-bottom: 1px solid var(--rule); }
.form-group .field-input, .form-group .choice { background: var(--raised); }
.form-note { margin: 0 0 20px; font-size: var(--text-sm); color: var(--ink-2); max-width: 64ch; }
/* The page that states a fact, under its control: indented on a rule, so it reads as that fact's. */
.form-source { margin: -10px 0 22px; padding-left: 14px; border-left: 1px solid var(--edge); }
.form-source .field { margin: 0; }
.form-source .field-label { font-size: var(--text-sm); }
.form-source .field-input { min-height: 36px; padding: 6px 10px; font-size: var(--control); }
.toggle { margin: 0 0 12px; }
.toggle .choice { padding: 10px 14px; }
.toggle-source { margin-top: 8px; }
.toggle-source .form-source { margin: 0; }
/* Choices as a grid of checkboxes (platforms) or, segmented, a row of radios (Yes, No, Not stated). */
.form-choices .choices-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.choices-segmented .choices-list { display: flex; flex-wrap: wrap; gap: 6px; }
.choices-segmented .choice { grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-sm); }
.choices-segmented .choice input { grid-row: auto; margin: 0; }
.choices-segmented .choice-name { font-weight: 500; font-size: var(--control); }
.form-choices > .form-source { margin: 4px 0 0; }

/* Picker: a list of values chosen from a vocabulary (categories, alternatives) or typed freely (tags). Each chosen value
   is a chip whose checkbox, unticked, removes it; the box under the chips adds more. Without JavaScript the box takes
   names separated by commas. talira.js hides the checkboxes behind a remove button, adds Move earlier buttons to an
   ordered picker (the first category is the main job), and offers matches from the vocabulary as a combobox. */
.picker-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.picker-items:empty { display: none; }
.picker-item { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius-sm); }
.picker-item label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px; font-size: var(--control); font-weight: 500; color: var(--ink); cursor: pointer; }
.picker-item label span { min-width: 0; overflow-wrap: anywhere; }
.picker-item input { flex: none; width: 16px; height: 16px; margin: 0; }
.picker-item:has(input:not(:checked)) { background: var(--card); border-color: var(--rule); }
.picker-item:has(input:not(:checked)) label span { color: var(--ink-3); text-decoration: line-through; }
.picker-item:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.picker[data-ordered] .picker-item:first-child::before { content: "Main"; margin-left: 8px; font-size: var(--text-xs); font-weight: 500; color: var(--accent); }
.picker-js .picker-item input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.picker-js .picker-item label { padding-right: 2px; cursor: default; }
.picker-js .picker-how { display: none; }
.picker-tool {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; margin: 0 2px 0 0;
  font: 600 16px/1 var(--sans); color: var(--ink-2); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.picker-tool:hover { color: var(--ink); background: var(--card); }
.picker-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.picker-box .combobox-list { top: calc(100% + 6px); }
.combobox-hint { flex: none; font-size: var(--text-xs); color: var(--ink-3); }
.combobox-empty { padding: 6px 10px; font-size: var(--text-sm); color: var(--ink-3); }

/* Row list: repeatable rows (problems, a plan's prices), each one line of cells. A row left empty is dropped when the
   form is saved. Without JavaScript one empty row waits at the end and saving gives another; talira.js adds Add and
   Remove buttons. In a grid row the columns are set by --rows-cols; below 640px each row stacks its cells, labelled. */
.rows { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.rows > legend { padding: 0; margin: 0 0 6px; }
.rows > .field-hint { margin-bottom: 10px; }
.rows-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; min-width: 0; }
.rows-grid .rows-row, .rows-head { grid-template-columns: var(--rows-cols, minmax(0, 1fr)) auto; }
.rows-row .field { margin: 0; gap: 4px; }
.rows-row .field-input { min-height: 36px; padding: 6px 10px; font-size: var(--control); }
.rows-row .field-hint { font-size: var(--text-xs); }
/* A growing text box (InputKind::Growing): one line tall until what's typed wraps, then as tall as its text, never
   scrolling. field-sizing does it where the browser has it; talira.js (data-grow) sizes it elsewhere. */
textarea.field-input.field-grow { min-height: 0; resize: none; overflow: hidden; field-sizing: content; }
.rows-head { display: grid; gap: 8px; margin: 0 0 4px; font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); }
.rows-head::after { content: ""; width: 36px; }
/* As tall as the row's inputs, so it lines up beside them. */
.rows-remove { align-self: center; height: 36px; }
.rows-add { margin-top: 10px; }
.rows-js .rows-js-hint { display: none; }
.rows-js-hint { margin-top: 8px; }
@media (max-width: 640px) {
  .rows-grid .rows-row { grid-template-columns: minmax(0, 1fr); padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius-md); }
  .rows-head { display: none; }
  .rows-grid .field-compact .field-label.visually-hidden { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: var(--text-sm); }
  .rows-grid .rows-remove { justify-self: start; }
}

/* Suggest panel: under a section whose lists come from the catalog, the way to ask Talira's staff for an option it
   doesn't have yet. A disclosure on a dashed edge, closed until asked or until a suggestion was refused. */
.suggest-panel { margin: 0 0 24px; border: 1px dashed var(--edge); border-radius: var(--radius-md); }
.suggest-panel > summary { padding: 12px 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
.suggest-panel[open] { border-style: solid; border-color: var(--rule); background: var(--card); }
.suggest-panel[open] > summary { border-bottom: 1px solid var(--rule); }
.suggest-panel > :not(summary) { margin-inline: 16px; }
.suggest-panel > .field-hint { margin-top: 12px; margin-bottom: 16px; }
.suggest-panel form { margin-bottom: 16px; }
.suggest-panel h3 { margin: 20px 16px 8px; font-size: var(--text-md); }
.suggestions { list-style: none; margin: 0 0 16px; padding: 0; }
.suggestion { padding: 10px 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.suggestion p { margin: 0 0 4px; }
.suggestion p:last-child { margin: 0; }
.suggestion .chip { margin: 0 4px 0 0; }
/* Staff deciding a suggestion: its fields stacked above the buttons. */
.review-actions-stacked { display: grid; gap: 14px; justify-items: start; }
.review-actions .suggestion-approve { display: grid; gap: 10px; align-items: start; justify-items: start; }
.review-actions .suggestion-approve .field { margin: 0; }

/* === Country map: country-* shade-* === */
/* Country map: a world map of counts by country, then its list (the vendor console's searches by country). Land is
   --bar with --card borders; a country with a count is one of five steps from --bar to --accent, so more is darker in
   light mode and brighter in dark. The list is what screen readers read; each country's count is also its tooltip.
   Hosted agents' rows ("Through Claude") read like a country's, with a grey bar, since they're no place on the map. */
.country-map { margin: 0 0 32px; }
.country-map-svg { display: block; width: 100%; height: auto; margin: 0 0 16px; }
.country-map-svg path { fill: var(--bar); stroke: var(--card); stroke-width: 0.5; stroke-linejoin: round; }
.country-map-svg path.shade-1 { fill: color-mix(in srgb, var(--accent) 25%, var(--bar)); }
.country-map-svg path.shade-2 { fill: color-mix(in srgb, var(--accent) 45%, var(--bar)); }
.country-map-svg path.shade-3 { fill: color-mix(in srgb, var(--accent) 65%, var(--bar)); }
.country-map-svg path.shade-4 { fill: color-mix(in srgb, var(--accent) 82%, var(--bar)); }
.country-map-svg path.shade-5 { fill: var(--accent); }
.country-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--text-sm); }
.country-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.country-list .country-name { overflow-wrap: anywhere; }
.country-list .country-count { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.country-list .bar { grid-column: 1 / -1; height: 6px; }
.country-list .country-share { display: inline-block; min-width: 4ch; margin-left: 8px; color: var(--ink-3); }
.country-list .country-other .country-name, .country-list .country-unknown .country-name { color: var(--ink-2); }
.country-list .country-other .bar span, .country-list .country-unknown .bar span { background: var(--ink-3); }
.country-list .country-hosted .bar span { background: var(--ink-2); }
@media (min-width: 760px) {
  .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* === Avatar: account-menu-avatar avatar avatar-* === */
/* Avatar: a person's photo in a circle, always the square copy Talira stores (/avatars/<sha>.png, 192px,
   src/people/avatars.rs), never an image from another site. A photo's transparent parts show the surface under it.
   Without a photo, the name's initial on the accent wash, the same colour for everyone. sm (24px) in lists and the
   account menu, md (40px) beside a comment, lg (96px) on a person's page and the Profile tab. */
.avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; overflow: hidden;
  background: var(--card); border: 1px solid var(--rule);
}
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-initial { background: var(--accent-wash); border-color: transparent; color: var(--accent); font: 600 11px/1 var(--sans); }
.avatar-md.avatar-initial { font-size: 17px; }
.avatar-lg.avatar-initial { font-size: 38px; }
.avatar:not(.avatar-initial) { background: transparent; }
.account-menu-avatar { display: inline-flex; flex: none; }

/* === Photo editor: photo-* === */
/* Photo editor (the Profile tab, talira.js): your avatar with a camera badge opens the photo menu: Upload a photo,
   Import from each signed-in account with a photo, Use my Gravatar, and Remove photo last, after a rule, in --bad.
   The photo's status sits beside it. */
.photo-editor { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; }
.photo-menu { position: relative; flex: none; }
.photo-change { list-style: none; position: relative; display: block; border-radius: 50%; cursor: pointer; }
.photo-change::-webkit-details-marker { display: none; }
.photo-change:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-change-avatar { display: block; }
.photo-change-badge {
  position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; box-sizing: border-box; color: var(--ink); background: var(--card); border: 0; box-shadow: var(--shadow);
  border-radius: 50%;
}
.photo-change-badge svg { width: 18px; height: 18px; }
.photo-change:hover .photo-change-badge { background: var(--raised); }
.photo-menu-list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 220px; display: grid; gap: 2px; padding: 6px;
  background: var(--card); border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.photo-menu-list form { margin: 0; }
.photo-menu-item {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; font: 500 var(--control)/1.2 var(--sans); color: var(--ink); text-align: left; cursor: pointer;
}
.photo-menu-item:hover { background: var(--raised); }
.photo-menu-danger { color: var(--bad); }
.photo-menu-danger:hover { background: var(--bad-wash); }
.photo-menu-rule { margin: 4px 6px; border: 0; border-top: 1px solid var(--rule); }
.photo-status { min-width: 0; }
.photo-status p { margin: 0; }
.photo-status-title { font-weight: 500; }
.photo-status .field-error { margin-top: 6px; }
@media (max-width: 560px) { .photo-menu-item { padding: 13px 12px; } }

/* Photo crop: the dialog where you drag and zoom a chosen photo under a round window, the square outside it dimmed. */
.photo-crop {
  width: min(400px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; padding: 24px; color: var(--ink);
  background: var(--card); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.photo-crop::backdrop { background: color-mix(in srgb, var(--paper) 55%, rgb(0 0 0 / 0.35)); }
.photo-crop h2 { margin: 0 0 16px; font-size: var(--text-lg); }
.photo-crop .notice { margin-bottom: 16px; }
.photo-crop-window {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; touch-action: none; cursor: grab;
  background: var(--card); border-radius: var(--radius-md);
}
.photo-crop-window:active { cursor: grabbing; }
.photo-crop-window:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-crop-window img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; user-select: none; pointer-events: none; }
.photo-crop-window::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 999px color-mix(in srgb, var(--ink) 45%, transparent); outline: 2px solid var(--paper);
}
.photo-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 500; color: var(--ink-2); }
.photo-crop-zoom input { flex: 1; accent-color: var(--accent); }
.photo-crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* === Toast: design-toast toast toast-* === */
/* Toast: a short notice at the bottom of the screen that a change made in place worked (--ok) or didn't (--bad),
   gone after a few seconds (talira.js). */
.toast-stack {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%); pointer-events: none;
}
.toast {
  padding: 12px 16px; border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow);
  background: var(--card); color: var(--ink); pointer-events: auto;
}
.toast p { margin: 0; }
.toast-ok { background: var(--ok-wash); color: var(--ok); }
.toast-warn { background: var(--warn-wash); color: var(--warn); }
.toast-bad { background: var(--bad-wash); color: var(--bad); }
.design-toast { max-width: 420px; margin: 0 0 8px; }

/* === Maker list: chip-maker maker maker-* === */
/* Maker list: the people who make a product, each an avatar and a name linking to their profile, with a Maker chip
   (verified by the listing's claim) or "Submitted by" (who sent its launch, before then). Compact: one wrapping line,
   on a listing's page and in a launch list. */
.maker-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.maker-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.maker-list .chip { margin: 0; }
.maker { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.maker:hover .maker-name { text-decoration: underline; }
.maker-name { min-width: 0; overflow-wrap: anywhere; }
.maker-list-compact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: var(--text-sm); }
.chip.chip-maker { background: var(--ok-wash); box-shadow: none; color: var(--ok); font-weight: 500; }

/* === Profile header: profile-bio profile-header profile-header-text profile-launches profile-links === */
/* Profile header: the top of a maker's page, the large avatar beside the name, handle, bio and links. The avatar is
   centred on the name and handle (the grid's first two rows, the name at the foot of its row and the handle at the
   top of its own, so they stay together), and the bio and links run on below them in the text's column, however
   long the bio. The header takes the page heading's top margin: `.prose h1`'s 48px went on the name alone and left
   the avatar above it. Stacked on a phone. */
.profile-header { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; margin: 48px 0 28px; }
.profile-header > .avatar { grid-row: 1 / span 2; }
.profile-header-text { display: contents; }
.profile-header-text > * { grid-column: 2; }
.profile-header .profile-header-text h1 { align-self: end; margin: 0 0 4px; overflow-wrap: anywhere; }
.profile-header .profile-header-text .muted { align-self: start; margin: 0; }
.profile-header .profile-header-text > :nth-child(n + 3) { margin: 10px 0 0; }
.profile-bio { margin: 0 0 10px; max-width: 60ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--text-sm); }
.profile-links a { overflow-wrap: anywhere; }
.profile-launches { padding-left: 20px; }
.profile-launches li { margin: 0 0 6px; }
@media (max-width: 560px) {
  .profile-header { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .profile-header > .avatar { grid-row: auto; margin: 0 0 12px; }
  .profile-header-text > * { grid-column: 1; }
}

/* === Settings: row-said === */
/* What a row's form did, said in place (talira.js data-in-place): a role="status" line that's empty until then. */
.row-said { margin: 6px 0 0; font-size: var(--text-xs); color: var(--ok); }
.row-said:empty { margin: 0; }
.row-said.is-bad { color: var(--bad); }
/* The Profile tab: the links' fields and the sections' visibilities grouped (templates/profile_settings.html). */
.profile-links-fields { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.profile-links-fields > legend { padding: 0; margin: 0 0 8px; font-weight: 500; color: var(--ink); }
.profile-links-fields .field { margin-bottom: 10px; }
.settings-sections { display: grid; gap: 4px 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0 0 22px; }
.settings-sections .field-hint { margin: 0; }
@media (max-width: 560px) { .settings-sections { grid-template-columns: minmax(0, 1fr); } }
.friends-list { list-style: none; margin: 0 0 24px; padding: 0; }
.friends-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.friends-list form { display: inline-flex; gap: 6px; margin: 0; }

/* === Stack list: listing-stacks stack-* === */
/* Stack list: a person's or an organization's tools in groups (templates/_stack.html), each a logo, the name linking
   its listing (or its homepage for a tool Talira doesn't list), dates and a note. On the owner's Stack tab each also
   shows who sees it and links its own page. */
.stack-group { margin: 20px 0 8px; font-size: var(--text-md); }
.stack-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.stack-entry { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.stack-entry-main { flex: 1; min-width: 0; }
.stack-entry-main p { margin: 0; overflow-wrap: anywhere; }
.stack-entry-name .chip { margin: 0 0 0 6px; }
.stack-entry > .button { flex: none; }
.stack-lists { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.stack-list-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.stack-list-row .field { flex: 1 1 220px; margin: 0; }
.stack-list-row .field-check { margin: 0 0 10px; }
.listing-stacks { margin: 0 0 32px; }
.listing-stacks p { overflow-wrap: anywhere; }
.stack-entry-name .stack-entry-url { font-size: var(--text-sm); }
.stack-entry-main .stack-entry-note { margin-top: 2px; }
.stack-entry-links { font-size: var(--text-sm); }
.stack-entry-report { margin: 4px 0 0; font-size: var(--text-sm); }
.stack-entry-report > summary { width: fit-content; cursor: pointer; color: var(--link); }
.stack-entry-report > summary .chip { margin-left: 6px; }
.stack-entry-report[open] > summary { margin-bottom: 4px; }
.stack-entry-report p + p { margin-top: 4px; }

/* === Launch page: launch-edit launch-excerpt launch-makers launch-message user-text === */
/* Launch page: a listing's launch, its makers, their message and the comments (templates/launch.html). The message
   is people's Markdown (user-text): no headings or images, links marked ugc. */
.launch-makers, .launch-message { margin: 0 0 32px; }
.launch-edit { margin: 12px 0 0; }
.launch-edit > summary { list-style: none; display: inline-flex; }
.launch-edit > summary::-webkit-details-marker { display: none; }
.launch-edit[open] > summary { margin-bottom: 12px; }
.launch-excerpt { margin: 6px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.user-text { overflow-wrap: anywhere; }
.user-text > :first-child { margin-top: 0; }
.user-text > :last-child { margin-bottom: 0; }
.user-text pre { overflow-x: auto; }

/* === Listing page === */
/* On a listing's page: its makers and the link to its launch page, under the name. */
.tool-makers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0 12px; }
.tool-makers .maker-list { margin: 0; }
.tool-launch-link { font-size: var(--text-sm); font-weight: 500; }

/* === Comment thread: comment comment-* === */
/* Comment thread: comments on a launch, oldest first, each with its replies one level in. A comment's head is its
   author's avatar, name, Maker chip and time; its actions (Reply, Edit, Delete, Report) are small disclosures that
   open their form in place. */
.comment-thread, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment-thread > .comment { padding: 16px 0; border-top: 1px solid var(--rule); }
.comment-replies { margin: 12px 0 0 20px; padding-left: 16px; border-left: 1px solid var(--rule); }
.comment-replies > .comment { padding: 10px 0 0; }
.comment { min-width: 0; scroll-margin-top: 16px; }
.comment:target > .comment-body { background: var(--accent-wash); border-radius: var(--radius-md); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; }
.comment-head .chip { margin: 0; }
.comment-author { font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.comment-author:hover { text-decoration: underline; }
.comment-time { font-size: var(--text-sm); text-decoration: none; }
.comment-time:hover { text-decoration: underline; }
.comment-body { margin: 0 0 0 48px; padding: 2px 0; overflow-wrap: anywhere; }
.comment-body > :first-child { margin-top: 0; }
.comment-body > :last-child { margin-bottom: 0; }
.comment-hidden { margin: 0 0 8px 48px; padding: 8px 12px; font-size: var(--text-sm); }
.comment-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; margin: 6px 0 0 48px; font-size: var(--text-sm); }
.comment-action { margin: 0; }
.comment-action > summary { cursor: pointer; color: var(--ink-2); font-weight: 500; list-style: none; }
.comment-action > summary::-webkit-details-marker { display: none; }
.comment-action > summary:hover { color: var(--ink); text-decoration: underline; }
.comment-action[open] { flex-basis: 100%; }
.comment-action[open] > summary { margin-bottom: 8px; color: var(--ink); }
.comment-form { margin: 0; }
.comment-form .field { margin-bottom: 10px; }
.comment-new { margin: 24px 0 0; }
.comment-new .muted.small { margin-top: 8px; }
@media (max-width: 560px) {
  .comment-body, .comment-actions, .comment-hidden { margin-left: 0; }
  .comment-replies { margin-left: 8px; padding-left: 12px; }
}

/* === Person page: person-* === */
/* A person's page (templates/person.html): follow and friend buttons, contributions, outcome reports. */
.person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -12px 0 24px; }
.person-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.person-contributions { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.person-reports { list-style: none; margin: 0 0 24px; padding: 0; }
.person-report { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--rule); }
.person-report p { margin: 0 0 4px; }
.person-report-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.person-report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.person-report-actions form { margin: 0; }

/* === Verdict: rule-* verdict verdict-* === */
/* Verdict: the answer to a page's yes-or-no question in large type, the numbers behind it, a short explanation and a
   link, on a hairline card. Yes has the ok wash; Not yet and no answer yet stay on the card colour. */
.verdict { background: var(--card); box-shadow: var(--ring); border-radius: var(--radius-md); padding: var(--space-5); margin: 0 0 var(--space-5); max-width: 70ch; }
.verdict p { margin: 0 0 var(--space-2); }
.verdict p:last-child { margin-bottom: 0; }
.verdict-answer { font: 600 var(--text-2xl)/1.1 var(--sans); letter-spacing: -0.035em; }
.verdict-yes { background: var(--ok-wash); }
.verdict-yes .verdict-answer { color: var(--ok); }
.verdict-line { font-size: var(--text-lg); color: var(--ink); font-variant-numeric: tabular-nums; }
.verdict-why { color: var(--ink-2); }

/* The rule behind a Verdict: its ways to an answer side by side (one column on a phone), each condition with the
   Grade mark's tick or cross and the number it reads, right-aligned in tabular figures. */
.rule-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); margin: 0 0 var(--space-5); }
.rule-way { background: var(--card); box-shadow: var(--ring); border-radius: var(--radius-md); padding: var(--space-4); }
.rule-way h3 { font-size: var(--text-md); margin: 0 0 var(--space-3); }
.rule-checks { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.rule-checks li { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--rule); }
.rule-checks li:first-child { border-top: 0; padding-top: 0; }
.rule-checks .grade-mark { margin-top: 1px; }
.rule-text { flex: 1; min-width: 0; }
.rule-observed { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

/* === Interval chart: chart-* interval-chart === */
/* Interval chart: values over time as dots with their 95% intervals, against a zero line (inline SVG, drawn by the
   server). The dots are the accent; the grid and labels are hairline and caption colours. */
.interval-chart { margin: 0 0 var(--space-4); }
.interval-chart svg { display: block; width: 100%; height: auto; max-width: 720px; }
.interval-chart figcaption { color: var(--ink-3); font-size: var(--text-xs); margin-top: var(--space-1); }
.chart-grid { stroke: var(--rule); stroke-width: 1; }
.chart-zero { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 3; }
.chart-axis, .chart-note { fill: var(--ink-3); font: 400 12px var(--sans); font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--ink-2); font: 500 12px var(--sans); }
.chart-interval { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.chart-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }

/* === Setup: search-setups setup setup-* setups setups-goal === */
/* Setup (_components.html setup): a combination of listings on a card, its roles as a fact list. */
.setups { margin: 12px 0 8px; }
.setup .setup-name { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 0 0 12px; }
.setup .setup-roles { margin-bottom: 12px; }
.setup .setup-optional { color: var(--ink-3); font-size: var(--text-xs); white-space: nowrap; }
.setup p { font-size: var(--text-sm); margin: 0 0 8px; }
.setup .setup-gives-up > span { color: var(--ink-3); }
.setup .setup-source, .setup .setup-checked, .setup .setup-unknown { color: var(--ink-3); }
.setup .setup-counted { color: var(--ink); font-variant-numeric: tabular-nums; }
.setup-evidence { margin: 4px 0 0; padding-left: 18px; font-size: var(--text-sm); color: var(--ink-2); }
.setup-evidence li { margin-bottom: 6px; }
.setup-evidence q { color: var(--ink); }
.search-setups { margin: 8px 0 24px; }
.search-setups > h2 { font-size: var(--text-lg); letter-spacing: -0.015em; margin: 0 0 12px; }
.search-setups > h2:last-child { margin: 28px 0 0; }
.setups-goal { font-size: var(--text-sm); font-weight: 600; color: var(--ink-3); margin: 0 0 10px; }
.example-frame .setup + .setup { margin-top: 12px; }

/* === Save controls: save-* star-count === */
/* Save controls (m::save_controls, src/lists): a listing's star, with its public count, and Add to list, under its card
   and on its page. Small bordered controls, quieter than the page's buttons. A starred listing's star is filled in the
   accent. Add to list opens a small menu of the account's lists (talira.js), a checkbox each, and New list. */
.save-controls { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.save-controls > a {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--edge);
  border-radius: var(--radius-sm); background: var(--card); color: var(--ink-2); font: 500 var(--text-xs)/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.save-controls > a:hover { color: var(--ink); border-color: var(--ink-3); }
.save-icon { width: 15px; height: 15px; flex: none; }
.save-star[aria-pressed="true"] { color: var(--accent); }
.save-star[aria-pressed="true"] .save-icon path { fill: currentColor; }
.save-star.is-pending { opacity: 0.6; }
.star-count { padding-left: 6px; border-left: 1px solid var(--rule); color: var(--ink); font-variant-numeric: tabular-nums; }
.star-count:empty { display: none; }
.save-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(280px, calc(100vw - 32px)); padding: 8px;
  background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.save-menu[hidden] { display: none; }
.save-menu-title { margin: 2px 6px 6px; color: var(--ink-3); font: 500 var(--text-xs)/1.4 var(--sans); }
.save-menu-lists { max-height: 240px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.save-menu-lists label {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: var(--radius-sm); font-size: var(--text-sm);
  cursor: pointer;
}
.save-menu-lists label:hover { background: var(--paper); }
.save-menu-lists input { accent-color: var(--accent); }
.save-menu-new { display: flex; gap: 6px; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid var(--rule); }
.save-menu-new .field-input { flex: 1; min-width: 0; min-height: 0; height: 30px; padding: 4px 10px; font-size: var(--text-sm); }
.save-menu-new > .button { height: auto; align-self: stretch; }
.save-menu-status { margin: 6px 6px 0; font-size: var(--text-xs); color: var(--ink-3); }
.save-menu-status:empty { display: none; }
.save-menu-status.is-bad { color: var(--bad); }
.save-menu-more { display: block; margin: 6px 6px 2px; font-size: var(--text-xs); }
