/* EquiMarket public surface. Server-rendered pages only, so this file is the
   entire style budget beyond the family shell kit (tokens.css, header.css),
   which loads first. The names below are the ones this file has always used,
   now aliased to the kit's tokens so every surface reads the same palette and
   a dark theme (should EquiMarket ever wear one) flips them for free. */
:root {
  --bg: var(--eqd-ground, #F7F3EA);
  --surface: var(--eqd-surface, #FFFDF9);
  --surface-soft: var(--eqd-surface-soft, #fcfaf4);
  --ink: var(--eqd-ink, #16202A);
  --muted: var(--eqd-muted, #5C6672);
  --line: var(--eqd-line, #ded7c9);
  --hunter: var(--eqd-hunter, #1E4A38);
  --hunter-soft: var(--eqd-hunter-soft, rgba(30, 74, 56, 0.10));
  --leather: var(--eqd-saddle, #8B5E34);
  --brass: var(--eqd-brass-text, #8A6A30);
  --on-hunter: var(--eqd-on-hunter, #F7F3EA);
  --amber-bg: #FDF3E2;
  --amber-ink: #8A5A18;
  --danger: #9B2C2C;
  --faint: #8a8579;
}
/* The dark set. The kit flips its own tokens (ground, surface, ink, muted,
   line, hunter, brass) under the same attribute; these are the few colours
   this file owns outright. Tool mode only: shell.js sets the attribute for a
   signed-in visitor whose saved choice is dark, never for a signed-out one. */
:root[data-theme="dark"] {
  --amber-bg: rgba(214, 179, 106, 0.16);
  --amber-ink: #e6c98a;
  --danger: #f0a0a0;
  --faint: #8f9aa6;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--eqd-font-sans, Inter, system-ui, sans-serif);
  font-size: 16px; line-height: 1.55;
}
/* ★ EquiMarket is a RETAIL surface, not a reading one. 960px is right for
   prose, where line length is the constraint; on a browse-and-compare page the
   constraint is how many candidates fit and whether the filters are reachable
   without hunting. Capped rather than truly edge-to-edge so a 27in monitor does
   not stretch a row of cards into a horizon.

   ★ Pages that ARE reading surfaces opt back out with .wrap--read below: a
   listing's story and the sell walkthrough still want a short line. */
/* ★ FLUID by default (7 September 2026): the shell is full width and the
   content runs edge to edge inside the kit's 24px gutter, so a wide screen
   gets more cards per row rather than a wider margin. */
.wrap { width: 100%; margin: 0; padding: 24px var(--eqd-gutter, 24px) 60px; }
.wrap--read { max-width: var(--eqd-width-read, 1040px); margin: 0 auto; }
@media (max-width: 640px) { .wrap { padding: 20px var(--eqd-gutter-phone, 16px) 48px; } }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: 32px; line-height: 1.15; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
/* The page line on every browse page: the category's name and one sentence
   on one line. A 36px title over a two-line paragraph over a banner put the
   first listing at 404px on a desktop and 696px on a phone. */
.page-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px; }
.page-line h1 { font-size: 22px; margin: 0; }
.page-line p { margin: 0; color: var(--muted); font-size: 15px; }
.page-line p a { color: var(--hunter); font-weight: 600; }

.search { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
/* ★ ONE SIZE for the search form's own boxes and button, the same as the
   panel's .mf-control: 42px high (46px under a thumb, below). They were three
   different heights (45, 40 and 43px) because padding and a native select's
   own metrics decided each one. */
.search > input, .search > select {
  box-sizing: border-box; height: 42px; font: inherit; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); min-width: 0;
}
.search > input[type="search"] { flex: 2 1 220px; }
/* ★ DIRECT children only. The filter panel is inside this same <form>, and its
   fields sit in COLUMN flex containers where a flex-basis of 130px is read as a
   HEIGHT: every select in the panel came out 130px tall. */
.search > select, .search > input[type="number"], .search > input[type="text"] { flex: 1 1 130px; }
/* Breed picker (mirrors the app's SuggestInput). */
.search > .suggest { flex: 1 1 130px; position: relative; }
.search > .suggest input[type="text"] { width: 100%; box-sizing: border-box; flex: none; }
.suggest-menu { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(22,32,42,.12); max-height: 240px; overflow-y: auto; }
.suggest-opt { padding: 8px 12px; font-size: 14px; cursor: pointer; }
.suggest-opt:hover, .suggest-opt.active { background: var(--hunter-soft); color: var(--hunter); }
/* The make and model type-ahead (_facet_filters.html) draws buttons; they read
   as menu rows like the breed picker's, not as buttons. */
.suggest-item {
  display: block; width: 100%; padding: 8px 12px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
}
.suggest-item:hover, .suggest-item:focus-visible { background: var(--hunter-soft); color: var(--hunter); }
/* On a phone the row wraps to search / two half boxes / a lone 88px button
   stranded on the left. Full width reads as the end of the row instead. */
@media (max-width: 560px) { .search > button { flex: 1 1 100%; } }
/* ★ DIRECT CHILD ONLY. This was `.search button`, and the filter panel, the
   "Use my location" button, "Show all 32" and the type-ahead suggestions all
   sit inside this same <form>: every one of them was painted as the big green
   Search button (the heavier rule beat their own classes). The panel's own
   buttons have their own rules below (.btn-loc, .mf-apply, .checks-more). */
.search > button {
  box-sizing: border-box; height: 42px; font: inherit; font-weight: 700; padding: 0 20px;
  border: 0; border-radius: 8px;
  background: var(--hunter); color: #fff; cursor: pointer;
}
@media (max-width: 640px) { .search > input, .search > select, .search > button { height: 46px; } }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tile {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.tile .count { color: var(--brass); font-weight: 700; margin-left: 4px; }
.tile:hover { border-color: var(--hunter); }

/* 220px min: five across in the main column on a wide screen, two on a phone.
   auto-fill, so a short result set keeps card-sized cards instead of blowing
   two listings up to half the window each. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  box-shadow: 0 1px 3px rgba(22,32,42,.06);
}
.card img, .noimg { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--hunter-soft); }
.noimg.big { height: 320px; border-radius: 12px; }
.card-media { position: relative; }
/* The count pills on a card's picture (#653), one row at its bottom left. They
   sit on the picture, so they never reach the name or the price below it, and
   wrap rather than run off the edge of a narrow card. */
.media-tags {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none;
}
.media-tag {
  background: rgba(22,32,42,.78); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap;
  border-radius: 4px; padding: 3px 8px; line-height: 1;
}
.card .body { padding: 12px 14px 14px; }
.card h2 { font-family: "Playfair Display", Georgia, serif; font-size: 19px; margin: 0 0 2px; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.price { color: var(--hunter); font-weight: 700; font-size: 16px; }
.price.big { font-size: 22px; margin: 6px 0 2px; }
.lease-facts { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--hunter-soft); color: var(--hunter); border: 1px solid var(--hunter);
  border-radius: 4px; padding: 2px 7px;
}
.badge.pending { background: var(--amber-bg); color: var(--amber-ink); border-color: var(--amber-ink); }
.pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 26px 0 4px; font-size: 14px; }
.pager a { color: var(--hunter); font-weight: 700; text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 26px 0; }

.crumb { font-size: 13px; margin-bottom: 14px; }
.crumb a { color: var(--hunter); }
.notice {
  background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-ink);
  border-radius: 8px; padding: 8px 14px; font-size: 14px; margin-bottom: 14px;
}
.detail { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 780px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--hunter-soft); }
.hero-vid { width: 100%; max-height: 420px; border-radius: 12px; border: 1px solid var(--line); background: #000; display: block; }
.more-vid { width: 100%; max-height: 300px; border-radius: 10px; border: 1px solid var(--line); background: #000; display: block; margin-top: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs img { width: 100%; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Viewer-driven gallery: hero + thumbs are buttons that open the media viewer. */
.hero-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.thumb { position: relative; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.thumb img, .thumb video { width: 100%; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(22,32,42,.6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px; pointer-events: none; }
.play-badge.sm { width: 26px; height: 26px; font-size: 11px; padding-left: 2px; }

/* Full-screen media viewer */
.mv-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,16,22,.94);
  display: flex; align-items: center; justify-content: center; }
/* display:flex above would otherwise beat the browser's [hidden]{display:none},
   leaving the viewer open on page load — it must stay closed until a click. */
.mv-overlay[hidden] { display: none; }
.mv-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; color: #fff; }
.mv-count { font-size: 14px; color: rgba(255,255,255,.75); }
.mv-actions { display: flex; align-items: center; gap: 14px; }
.mv-report { color: rgba(255,255,255,.85); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.mv-report:hover { color: #fff; }
.mv-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.mv-stage { max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.mv-stage img, .mv-stage video { max-width: 92vw; max-height: 82vh; border-radius: 8px; background: #000; }
.mv-nav { background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 34px; line-height: 1;
  width: 52px; height: 72px; cursor: pointer; border-radius: 8px; position: absolute; top: 50%; transform: translateY(-50%); }
.mv-nav:hover { background: rgba(255,255,255,.22); }
.mv-prev { left: 12px; } .mv-next { right: 12px; }
@media (max-width: 640px) { .mv-nav { width: 40px; height: 60px; font-size: 26px; } }
.reg-name { font-size: 14px; color: var(--muted); font-style: italic; margin-top: -2px; }
.reg-name .eqd-rbadge { margin-right: 2px; font-style: normal; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; padding: 4px 12px; }
/* Lab results, set apart from what the seller says about the same hay. The
   distinction is the point: one half was measured and the other is a claim
   nobody checked, and the buyer who most needs to tell them apart is the one
   whose horse cannot have the sugar. */
.facts.tested { margin-top: 4px; }
.facts.tested .fact { background: var(--hunter-soft); border-color: transparent; }
.fact-head { font-weight: 700; color: var(--hunter); }
/* "See the lab report" (#378): a link that sits with the lab's numbers. */
.facts.tested .fact-link { color: var(--hunter); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* How a hay buyer gets the hay: the seller's delivery and stacking terms, in
   their own words (#375). Their line breaks are kept. */
.hay-terms { margin: 12px 0 4px; max-width: 62ch; }
.hay-terms-h { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.hay-terms-p { margin: 0 0 6px; font-size: 14px; white-space: pre-line; }
.hay-terms-k { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.disciplines { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.disc { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--hunter-soft); color: var(--hunter); border: 1px solid transparent; }
.disc.primary { background: var(--hunter); color: #fff; font-weight: 700; }

/* ---- Pedigree bracket (db/init/457) ----
   The bracket's markup and styles are the family kit's, shared with a horse's
   EquiSocial page (#370): packages/shell-kit/jinja/_pedigree.html and
   /shell-kit/pedigree.css (base.html). Only the section's place on this page
   is set here. */
.ped { margin: 14px 0 4px; }
.pitch { max-width: 62ch; white-space: pre-line; }
.ppe { font-size: 14px; }
.cta {
  display: inline-block; background: var(--hunter); color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 8px; padding: 11px 22px; margin-top: 10px;
}
.cta-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; max-width: 40ch; }
/* Who is selling. Sits directly above the Message button because that is the
   moment a buyer wants to know who they are about to write to, and because a
   consigned listing has to disclose the agency where it will actually be read. */
.seller-line { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
/* The seller has a page on the social surface: their name is the way there. */
.seller-line a.seller-page { color: var(--hunter); font-weight: 600; text-decoration: none; }
.seller-line a.seller-page:hover { text-decoration: underline; }
.report { margin-top: 14px; font-size: 12.5px; }
.report a { color: var(--muted); }

footer.site {
  margin-top: 44px; border-top: 1px solid var(--line); padding-top: 14px;
  display: grid; gap: 4px; font-size: 12.5px; color: var(--muted);
}
footer.site a { color: var(--muted); }

/* ---- marketplace home ---- */
/* The search row is the whole top of the page: a full-width box and one line
   under it. The 360px hero it replaces put the first listing a screen down. */
.home-search { display: flex; gap: 8px; margin: 0 0 18px; }
.home-search input { flex: 1; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); min-width: 0; }
.home-search button { font: inherit; font-weight: 700; padding: 11px 20px; border: 0; border-radius: 9px; background: var(--hunter); color: #fff; cursor: pointer; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-browse .toolbar .tb-sort span { color: var(--muted); }

/* ---- the category rail ----
   The list at the top of every browse rail, and the whole rail on the home.
   A column on a wide screen; on a phone one row of chips that scrolls
   sideways under the search box (see the two media blocks after .browse). */
/* The rail is a grid and the category list dissolves into it (display:
   contents), so the kinds list can be slotted under the current category with
   `order` while staying a sibling in the markup: on a phone the same two lists
   are two chip rows. */
.cat-rail { display: grid; gap: 2px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: contents; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 500;
}
.cat-list a:hover { background: var(--hunter-soft); color: var(--hunter); }
.cat-list a.cur { background: var(--hunter); color: #fff; font-weight: 700; }
.cat-list .n { font-size: 13px; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }
.cat-list a.cur .n { color: #fff; opacity: .85; }
.cat-list a.open { font-weight: 700; color: var(--hunter); }
.sub-list { list-style: none; margin: 2px 0 6px 12px; padding: 0 0 0 10px; border-left: 2px solid var(--hunter-soft); display: grid; gap: 1px; }
.sub-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 5px 10px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: 14px;
}
.sub-list a:hover { background: var(--hunter-soft); color: var(--hunter); }
.sub-list a.cur { background: var(--hunter-soft); color: var(--hunter); font-weight: 700; }
.sub-list .n { font-size: 12.5px; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }
/* An empty kind is still a kind: dimmed, never hidden. */
.sub-list a.zero { color: var(--faint); }
.sub-list a.zero .n { color: var(--faint); font-weight: 500; }
.sub-group { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px 10px; }
.cat-coming { margin: 12px 0 0; padding: 12px 12px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.cat-coming b { color: var(--ink); font-weight: 600; }

/* ===================== Sell / composer walkthrough ===================== */
.sell { max-width: 760px; margin: 0 auto; }
.sell-head h1 { margin: 0 0 6px; font-size: 30px; }
.sell-lead { color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.sell-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; text-align: center; }
.sell-note h2 { margin: 0 0 8px; }
.sell-note p { color: var(--muted); max-width: 52ch; margin: 0 auto 14px; }

/* general button (the header buttons are the kit's own, .eqd-btn) */
.btn { display: inline-block; font-size: 14.5px; font-weight: 700; border-radius: 9px; padding: 10px 18px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; background: var(--hunter); color: var(--on-hunter); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--hunter); filter: none; }
.btn.brass { color: #23180a; background: var(--brass); }
/* The sell-a-horse door: the walkthrough's frame, one panel of three. */
.sh .sell-head h1 { font-size: 30px; line-height: 1.15; }
.sh-panel h2 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.sh-panel p b { color: var(--ink); }
.sh-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 0 !important; }
.sh-warn { background: var(--amber-bg); border-color: transparent; }
.sh-warn h2 { color: var(--amber-ink); }
.sh-more { font-size: 13.5px; margin-top: 14px !important; }
.sh-more a { color: var(--hunter); font-weight: 600; }
.sh-own { text-align: center; font-size: 13px; color: var(--faint); margin: 16px 0 0; }
.btn:disabled { opacity: 0.55; cursor: default; filter: none; }

/* progress rail */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 90px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.steps li.here { color: var(--hunter); border-top-color: var(--hunter); }
.steps li.done { color: var(--ink); border-top-color: var(--brass); }

.step h2 { font-size: 21px; margin: 0 0 14px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.step-nav .btn:only-child { margin-left: auto; }

/* category cards */
.cat-cards { display: grid; gap: 12px; }
.cat-card { text-align: left; display: block; width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; cursor: pointer; font: inherit; color: var(--ink); }
.cat-card:hover { border-color: var(--hunter); box-shadow: 0 2px 10px rgba(30,74,56,0.08); }
.cat-card .cc-name { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 700; }
.cat-card .cc-blurb { display: block; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.cat-card .cc-go { display: inline-block; margin-top: 10px; color: var(--hunter); font-weight: 700; font-size: 14px; }
.cat-card.soon { opacity: 0.7; cursor: default; }
.cat-card.soon .cc-soon { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--brass); background: var(--amber-bg); padding: 3px 9px; border-radius: 999px; }

/* subcategory chips */
.subcat-group { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 8px; }
.subcat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.chip:hover, .chip.on { background: var(--hunter); color: #fff; border-color: var(--hunter); }

/* details form */
.sell-form { display: block; }
.sell-form .lbl { display: block; font-size: 13.5px; font-weight: 700; margin: 16px 0 6px; }
.sell-form input[type=text], .sell-form input[type=number], .sell-form input:not([type]),
.sell-form textarea, .sell-form select {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--surface); color: var(--ink); box-sizing: border-box; }
.sell-form textarea { resize: vertical; }
/* ★ One height for every single-line control. The rules above give inputs and
   selects the same padding, but a native select ignores line-height (Chrome)
   or padding (Safari), so the Condition and State selects measured 44px against
   46.8px text boxes beside them. A fixed height and a select drawn on the
   normal box model, with our own arrow, is the same cure as .mf-control in the
   search panel and the app's global select rule. 46px keeps a thumb-sized target. */
.sell-form input[type=text], .sell-form input[type=number], .sell-form input:not([type]),
.sell-form select {
  height: 46px; padding-top: 0; padding-bottom: 0; line-height: 1.25; }
.sell-form select {
  -webkit-appearance: none; appearance: none;
  padding-right: 34px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%235C6672' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.sell-form select:disabled { opacity: 1; color: var(--muted); cursor: not-allowed; }
/* The arrow is drawn, so it cannot read --muted; the dark theme's muted is written out. */
:root[data-theme="dark"] .sell-form select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23B5AD9D' d='M0 0h10L5 6z'/%3E%3C/svg%3E"); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Per-subcategory "guts" fields (seat size, tree, weight, ...) rendered by the
   composer. Two-up on desktop; the .sell-form input/select rules above style the
   controls, and .lbl carries its own top margin so no row-gap is needed. */
.guts-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.muted { color: var(--muted); font-weight: 400; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; margin: 14px 0 0; }
.price-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }
.price-block legend { padding: 0 6px; }
.radio, .check { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; margin-right: 18px; cursor: pointer; }
.dollar { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 8px; max-width: 220px; }
.dollar span { font-size: 18px; color: var(--muted); }
.check { margin-top: 6px; }

/* photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.photo-tile { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.uploading img { opacity: 0.5; }
.photo-tile.failed { border-color: var(--danger); }
.photo-spin { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--hunter); }
.photo-rm { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: none;
  background: rgba(22,32,42,0.72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.photo-add { position: relative; display: inline-block; }
.photo-add:has(input:focus-visible) { outline: 2px solid var(--hunter); outline-offset: 2px; }

/* review */
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.review-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.review h3 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; margin: 6px 0 2px; }
.review-price { color: var(--brass); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.review-pitch { color: var(--ink); white-space: pre-wrap; }
.review-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin-top: 14px; }
.review-facts dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.review-facts dd { margin: 0; }
.sell-done { text-align: center; padding: 30px 10px; }
.sell-done h2 { color: var(--hunter); }

@media (max-width: 560px) { .two-col, .guts-fields { grid-template-columns: 1fr; } }


/* ===================== My Listings hub ===================== */
.mine { max-width: 820px; margin: 0 auto; }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mine-head h1 { margin: 0; font-size: 28px; }
.mine-filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mine-filters .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ml-thumb { width: 72px; height: 72px; border-radius: 9px; overflow: hidden; background: var(--bg); }
.ml-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-thumb .noimg { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 6px, var(--surface) 6px, var(--surface) 12px); }
.ml-title { font-weight: 700; font-size: 16px; }
.ml-meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.ml-stats { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.ml-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px; background: var(--hunter-soft); color: var(--hunter); }
.ml-badge.expired, .ml-badge.closed { background: rgba(22,32,42,0.08); color: var(--muted); }
.ml-badge.pending { background: var(--amber-bg); color: var(--amber-ink); }
/* The in-page confirm (My Listings: Delete). One card over a scrim. */
.confirm { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(10,16,22,.55); }
.confirm[hidden] { display: none; }
.confirm-card { width: 100%; max-width: 420px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: 0 18px 40px rgba(16,35,61,.16); }
.confirm-card h2 { font-family: "Playfair Display", Georgia, serif; font-size: 20px; margin: 0 0 8px; }
.confirm-card p { margin: 0 0 16px; color: var(--muted); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.ml-badge.draft { background: rgba(138,106,48,0.12); color: var(--brass); }
.ml-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ml-act { font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.ml-act:hover { border-color: var(--hunter); color: var(--hunter); }
.ml-act.danger:hover { border-color: var(--danger); color: var(--danger); }
/* The one action on the row that is a destination rather than a setting: the
   way through to the results a saved search is promising. */
.ml-act.primary { background: var(--hunter); border-color: var(--hunter); color: var(--on-hunter); }
.ml-act.primary:hover { color: var(--on-hunter); filter: brightness(1.1); }
.ml-act:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 560px) {
  .ml-row { grid-template-columns: 56px 1fr; }
  .ml-thumb { width: 56px; height: 56px; }
  .ml-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

/* "Message the seller" is now a button (opens the modal), not a link */
button.cta { border: none; cursor: pointer; font: inherit; }

/* ===================== Message-the-seller modal ===================== */
.msg-overlay { position: fixed; inset: 0; background: rgba(22,32,42,0.55); display: flex;
  align-items: center; justify-content: center; padding: 20px; z-index: 60; }
.msg-overlay[hidden] { display: none; }
.msg-modal { background: var(--surface); border-radius: 14px; padding: 24px; max-width: 460px;
  width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.msg-modal h2 { margin: 0 0 8px; font-size: 20px; }
.msg-lead { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.msg-close { position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.msg-close:hover { color: var(--ink); }
.msg-auth { text-align: center; }
.msg-signin-note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.msg-modal textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink);
  box-sizing: border-box; resize: vertical; }
.msg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.msg-sent { color: var(--hunter); font-weight: 600; font-size: 15px; }

.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Share sits beside Save as a second quiet action — the loud one on this page
   is always Message the seller. */

/* Quiet icon actions beside the loud one. Message the seller keeps the words;
   Save and Share are recognisable shapes that do not eat the row. */
.icon-btn {
  /* 44px: this is read on a phone, and a thumb is not a mouse pointer. */
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line, #ded7c9); border-radius: 10px;
  background: var(--surface, #fffefa); color: var(--muted, #62605a);
  cursor: pointer; padding: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--hunter, #1e4a38); border-color: var(--hunter, #1e4a38); }
.icon-btn:focus-visible { outline: 2px solid var(--brass, #b78a43); outline-offset: 2px; }
/* Saved. Brass, and the glyph fills — colour alone is never the state, but it
   is what makes it readable at a glance. */
.icon-btn.is-on { color: var(--brass, #b78a43); border-color: var(--brass, #b78a43); background: var(--eqd-brass-soft, rgba(183, 138, 67, .10)); }
.icon-btn[disabled] { opacity: .5; cursor: default; }

/* The words the icons dropped, said briefly when something happens. */
.icon-flash { font-size: .82rem; color: var(--muted, #62605a); align-self: center; }
@media (max-width: 640px) {
  /* On a phone it would push the row over, so it drops beneath instead. */
  .icon-flash { flex: 1 0 100%; }
}

/* The conversation this visitor already has with the seller, answered without
   leaving the listing. Reads as a state they can reply to, not a button. */
.convo-box {
  margin-top: .7rem; padding: .75rem .85rem;
  border: 1px solid var(--line, #ded7c9); border-radius: 10px;
  background: var(--surface-soft, #fcfaf4);
}
/* An unread reply is the one thing on this page worth interrupting for. */
.convo-box.is-unread { border-color: rgba(183, 138, 67, .55); background: rgba(183, 138, 67, .10); }
.convo-lead { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink, #16202a); }
/* The seller's own words, kept visible above the box — a bare compose field
   would hide the very reply this block exists to surface. */
.convo-last { margin: .3rem 0 0; font-size: .88rem; line-height: 1.45; color: var(--muted, #62605a); }
.convo-box textarea {
  width: 100%; margin-top: .6rem; padding: .55rem .65rem; box-sizing: border-box;
  border: 1px solid var(--line, #ded7c9); border-radius: 8px; background: var(--surface, #fff);
  /* 16px: anything smaller and iOS zooms the page on focus. */
  font: inherit; font-size: 16px; line-height: 1.4; resize: vertical;
}
.convo-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .55rem; }
.convo-all { font-size: .82rem; color: var(--muted, #62605a); text-decoration: none; }
.convo-all:hover { color: var(--hunter, #1e4a38); }
.convo-done { margin: .55rem 0 0; font-size: .85rem; color: var(--hunter, #1e4a38); }

/* ===================== Saved page + alerts rows =====================
   .mine-card is the row shell the saved page and the alerts list both build.

   ★ It carried NO box of its own — two h3 colour rules and nothing else — so
   every row rendered as bare stacked text: title, grey line, buttons, straight
   into the next title with the same gap. Nothing said where one saved listing
   ended and the next began, and a page of them read as one block. The list this
   most resembles, My Listings, was already a proper row (.ml-row); this is the
   same anatomy, so the two read as the same product.

   Flex, not grid: the alerts card has ONE child and a fixed track would pin it
   to a 64px column. */
.mine-card { display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 0 0 10px; }
/* ★ basis 0, not auto. With auto the block's basis is the headline's natural
   width, so a long one is wider than the row and wraps BELOW the thumbnail,
   leaving the thumbnail alone on a line of its own. min-width:0 for the same
   family of reason: without it a long headline refuses to shrink at all. */
.mine-main { flex: 1 1 0; min-width: 0; }
.mine-card h2, .mine-card h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.mine-card h2 a, .mine-card h3 a { color: var(--ink); text-decoration: none; }
.mine-card h2 a:hover, .mine-card h3 a:hover { color: var(--hunter); text-decoration: underline; }
.mine-meta { color: var(--muted); font-size: 13.5px; margin: 3px 0 0; }
.mine-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* Closed, expired or muted. Dimmed rather than hidden: it is still something
   they chose to follow, and the badge says which. */
.mine-card.is-closed { background: var(--bg); }
.mine-card.is-closed .sv-thumb { opacity: 0.55; }
.mine-card.is-closed .mine-meta { opacity: 0.75; }
.mine-card.is-closed h2 a, .mine-card.is-closed h3 a { color: var(--muted); }

/* The photo is what makes a list of listings scannable — the same 1fr row with
   no image reads as prose. Square, cropped, and a woven placeholder when the
   listing has no media, so the left edge stays a straight line either way. */
.sv-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 9px;
  overflow: hidden; background: var(--bg); }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-thumb .noimg { width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 6px, var(--surface) 6px, var(--surface) 12px); }

/* A saved SEARCH has nothing to photograph, and it is not an object — it is a
   standing question. The slot keeps the left edge aligned with the listings
   below while looking deliberately unlike a photo. */
.sv-watch { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 9px; display: grid;
  place-items: center; background: var(--hunter-soft); color: var(--hunter);
  font-size: 22px; line-height: 1; }
.mine-card.is-closed .sv-watch { background: rgba(22,32,42,0.06); color: var(--muted); }

/* Price is the fact a buyer scans for, so it leaves the grey run-on line. */
.sv-price { color: var(--ink); font-weight: 700; }
.sv-dot { color: var(--muted); opacity: 0.5; margin: 0 7px; }

/* Match count, on the card that promises it. Reads as a state, not a sentence. */
.sv-count { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px;
  background: var(--hunter-soft); color: var(--hunter); }
.sv-count.none { background: rgba(22,32,42,0.07); color: var(--muted); }

/* Saved page section headings. */
.sv-h2 { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.sv-h2:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .mine-card { flex-wrap: wrap; }
  .mine-actions { flex-wrap: wrap; width: 100%; }
}

/* My requests (#557). The whole row opens the conversation with the seller;
   the title opens the listing. Where it stands reads as a state in sentence
   case, not shouted: these are whole phrases ("Quote ready, waiting for you"). */
.rq-row { cursor: pointer; }
.rq-state { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--hunter-soft); color: var(--hunter); }
.rq-state.is-ready { background: rgba(183, 138, 67, .16); color: var(--brass); }
.rq-state.is-over { background: rgba(22,32,42,0.07); color: var(--muted); }
.rq-facts { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin-top: 6px; }

/* On a hay listing, the request this buyer already has open there (#558).
   Drawn by the browser for a signed-in buyer only; the server sends it empty. */
.hay-asked { margin: 0 0 .7rem; padding: .65rem .85rem; border: 1px solid var(--line, #ded7c9);
  border-radius: 10px; background: var(--hunter-soft); font-size: .9rem; line-height: 1.45; text-align: left; }
.hay-asked.is-ready { border-color: rgba(183, 138, 67, .55); background: rgba(183, 138, 67, .10); }
.hay-asked[hidden] { display: none; }
.hay-asked p { margin: 0; color: var(--ink); font-weight: 600; }
.hay-asked .hay-asked__links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .35rem; font-weight: 400; }
.hay-asked a { color: var(--hunter); }
/* The same thing said once more inside Request quote, so a second request
   is a choice and not a slip. */
.req-already { margin: -6px 0 14px; padding: .5rem .7rem; border-radius: 8px; font-size: 13.5px;
  background: rgba(183, 138, 67, .10); color: var(--ink); }
.req-already[hidden] { display: none; }
/* Watching for something is the thing that brings a buyer back, so it leads
   the page and reads a shade warmer than the listings under it. */
.save-search { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  margin: 0 0 1rem; padding: .6rem .8rem; border: 1px solid rgba(183, 138, 67, .4);
  border-radius: 10px; background: rgba(183, 138, 67, .08); font-size: .92rem; }
/* ★ The control ships with the hidden attribute and its script reveals it only
   for a signed-in buyer whose search is narrowed. An author display:flex beats
   the browser's [hidden] rule, so the band was showing to everyone on every
   page, unfiltered landings and signed-out visitors included, with a button
   that did nothing for them. */
.save-search[hidden] { display: none; }

/* ── More filters ─────────────────────────────────────────────────────────
   The long tail of filters, folded away. The count chip is load-bearing: a
   filter still narrowing results with nothing on screen saying so is the whole
   risk of hiding them.

   ★ NOTHING BELOW IS PLACED BY HAND. The number of groups, and the number of
   controls inside each one, both change with the category: trailers has nine
   facets, tack has two, horses has a fixed set. So the layout is one auto-fit
   grid that reflows on its own. Adding a field to a category's spec must never
   mean editing this file. */
.more-filters { width: 100%; margin: 0; }

.more-filters > summary {
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
  min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--hunter);
  font-size: .95rem; font-weight: 600; list-style: none; user-select: none;
}
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::after { content: "\25BE"; margin-left: auto; font-size: .8em; opacity: .7; }
.more-filters[open] > summary::after { content: "\25B4"; }
.more-filters > summary:focus-visible { outline: 2px solid var(--hunter); outline-offset: 2px; }
/* Open, the summary reads as the panel's own header rather than a chip that
   happens to sit above a box. */
.more-filters[open] > summary {
  background: var(--hunter-soft);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}

.mf-count {
  min-width: 1.4em; padding: 1px .45em; border-radius: 999px;
  background: var(--hunter); color: #fff;
  font-size: .78rem; font-weight: 700; line-height: 1.5; text-align: center;
}

.mf-body {
  margin-top: -1px;                       /* share the summary's bottom edge */
  padding: 2px 14px 0;
  border: 1px solid var(--line); border-radius: 0 0 10px 10px;
  background: var(--surface);
}

/* A named set of related questions, so location, the horse itself and price
   stop being interleaved at random. */
.mf-group { padding: 14px 0; border-top: 1px solid var(--line); }
.mf-group:first-child { border-top: 0; }
.mf-group-t {
  margin: 0 0 10px; font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* 220px: one column on a phone, two from about 520px, three from about 750px.
   No media query decides it, so a category with two controls and one with
   eleven both come out right. */
.mf-grid {
  display: grid; gap: 14px;
  /* ★ auto-FILL, not auto-fit. auto-fit collapses the empty tracks, so a group
     holding one control stretched it across the whole panel while a group of
     three kept them tidy. Keeping the empty tracks means a cell is the same
     width wherever it is, and tack's two facets line up with trailers' nine. */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
}
/* The facets wrapper carries no meaning, so its children join the grid. */
.mf-grid .facets { display: contents; }

/* ★ Every control is a labelled cell of one shape. This one change is what
   fixes "nothing lines up", "the selects truncate mid-word", and a filled box
   that no longer says what it is: a placeholder vanishes the moment somebody
   types, so a returning buyer saw a box reading "Quarter Horse" with nothing
   anywhere saying that box was the breed. */
.mf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mf-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.mf-hint  { margin: 2px 0 0; font-size: .76rem; color: var(--muted); }
.mf-field--wide { grid-column: span 2; }
/* Below two columns, spanning 2 would force a phantom second column. */
@media (max-width: 560px) { .mf-field--wide { grid-column: auto; } }

.mf-pair { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mf-pair .mf-control { flex: 1 1 0; min-width: 0; }
.mf-dash { flex: 0 0 auto; font-size: .85rem; color: var(--muted); }

/* One control, one height, everywhere. */
.mf-control {
  box-sizing: border-box; width: 100%; min-width: 0; height: 42px;
  padding: 0 12px;
  /* 16px or iOS Safari zooms the whole page the moment a field is focused. */
  font: inherit; font-size: 16px; line-height: 1.2;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
}
/* Belt and braces: a panel control never grows, whatever a row rule says.
   ★ DIRECT CHILD ONLY. As a descendant selector this matched the two inputs
   inside .mf-pair as well, and being later in the file at equal specificity it
   beat `.mf-pair .mf-control { flex: 1 1 0 }` — so the "from" box took the whole
   cell and pushed "to" and the "to" box out past the panel edge. The controls
   that live inside .dist, .mf-pair and .suggest each have their own sizing. */
.mf-field > .mf-control { flex: 0 0 auto; }
.mf-control::placeholder { color: var(--muted); opacity: .7; }
.mf-control:focus-visible { outline: 2px solid var(--hunter); outline-offset: 1px; border-color: var(--hunter); }
/* A thumb is not a mouse pointer. */
@media (max-width: 640px) { .mf-control { height: 46px; } }

/* Native select metrics differ per platform, which is most of why nothing
   lined up. Drawing our own arrow makes the box match every input beside it.
   (The arrow colour is --muted written out; a data URI cannot read a custom
   property.) */
select.mf-control, .search > select {
  -webkit-appearance: none; appearance: none;
  padding-right: 34px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%235C6672' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
/* Spinners make a number box a different width from a text box beside it. */
input[type="number"].mf-control { -moz-appearance: textfield; }
input[type="number"].mf-control::-webkit-outer-spin-button,
input[type="number"].mf-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* The breed and make pickers keep their menu anchored to the field. */
.mf-field .suggest { position: relative; min-width: 0; }

/* ZIP and "use my location" are one question, so they are one cell. */
.dist { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.dist .mf-control { flex: 1 1 auto; }
.btn-loc {
  flex: 0 0 auto; height: 42px; padding: 0 12px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--hunter);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.btn-loc:hover { border-color: var(--hunter); background: var(--hunter-soft); }
.btn-loc:focus-visible { outline: 2px solid var(--hunter); outline-offset: 2px; }
@media (max-width: 640px) { .btn-loc { height: 46px; } }
@media (max-width: 400px) { .dist { flex-wrap: wrap; } .btn-loc { flex: 1 1 100%; } }

/* ★ On a phone the trailers panel is taller than the screen, so the way out
   follows you down it. Somebody who has just set nine filters should not have
   to scroll back up past all nine to find the button. */
.mf-foot {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  margin: 0 -14px; padding: 12px 14px;
  border-top: 1px solid var(--line); border-radius: 0 0 10px 10px;
  background: var(--surface);
}
.mf-apply {
  flex: 1 1 auto; height: 46px; border: 0; border-radius: 8px;
  background: var(--hunter); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
/* The same height as the boxes above it: 46px under a thumb, 42px otherwise. */
@media (min-width: 641px) { .mf-apply { height: 42px; } }
.mf-clear { flex: 0 0 auto; font-size: .9rem; color: var(--muted); }
.mf-clear:hover { color: var(--hunter); }
@media (min-width: 720px) {
  .mf-foot { position: static; justify-content: flex-end; }
  .mf-apply { flex: 0 0 auto; padding: 0 26px; }
}

/* ── Two-handle range ─────────────────────────────────────────────────────
   Two native inputs on one rail. Only the thumbs take pointer events, so both
   stay grabbable where they overlap. Width comes from the grid column, which
   is why two sliders are always the same size as each other rather than one
   being 200px and the next 480px. */
.rng { min-width: 0; --lo: 0%; --hi: 0%; }

.rng-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rng-read {
  font-size: .9rem; font-weight: 700; color: var(--hunter);
  font-variant-numeric: tabular-nums; text-align: right;
}
/* Nothing is being filtered on, so it should not read as a value. */
.rng-read[data-at-rest] { font-weight: 600; color: var(--muted); }

.rng-track { position: relative; height: 30px; }
.rng-track input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 30px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none;
}
/* ::after paints after element children, so without an explicit z-index the
   chosen span covers the thumbs. */
.rng-track::before, .rng-track::after {
  content: ""; position: absolute; top: 50%; margin-top: -3px;
  height: 6px; border-radius: 3px; pointer-events: none;
}
.rng-track::before { left: 0; right: 0; background: var(--line); z-index: 0; }
.rng-track::after  { left: var(--lo, 0%); right: calc(100% - var(--hi, 0%));
                     background: var(--hunter); z-index: 1; }
.rng-track input[data-rng-lo] { z-index: 2; }
.rng-track input[data-rng-hi] { z-index: 3; }

.rng-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--hunter);
  box-shadow: 0 1px 3px rgba(22, 32, 42, .28); cursor: grab;
}
.rng-track input[type="range"]::-moz-range-thumb {
  pointer-events: auto; box-sizing: border-box;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--hunter); cursor: grab;
}
/* Firefox paints its own rail and progress over ours unless told not to. */
.rng-track input[type="range"]::-moz-range-track { background: transparent; border: 0; height: 30px; }
.rng-track input[type="range"]::-moz-range-progress { background: transparent; }
.rng-track input[type="range"]:focus { outline: none; }
.rng-track input[type="range"]:focus-visible { outline: 2px solid var(--hunter); outline-offset: 2px; border-radius: 8px; }

/* The ends of the scale, always on screen. Without these the control is a bar
   with no numbers on it and nothing says height runs 8hh to 19hh. */
.rng-scale {
  display: flex; justify-content: space-between; margin-top: 1px;
  font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ── Distance and spelling notices ────────────────────────────────────── */
.nearby-line, .fuzzy-line { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.nearby-line a { color: var(--hunter); }
.fuzzy-line strong { color: var(--ink); }
.card-dist { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nearby-line .dim { opacity: .75; }


/* ── Browse: rail + results ───────────────────────────────────────────────
   The filters are a permanent column on a wide screen and fold back into the
   collapsible panel below 900px, which is the same markup either way: only the
   summary's visibility and the panel's chrome change. */
.browse { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.browse-main { min-width: 0; }

@media (min-width: 900px) {
  /* The rail IS the form. It sticks so a long results list can be scrolled
     without losing the controls that produced it. */
  .browse > .rail {
    position: sticky; top: 16px; display: block;
    max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
    /* A few pixels of room each side, taken back from the gap, so a focus ring
       on the first and last box is not cut off by the column's own edge. */
    padding: 0 4px; margin: 0 -4px;
    /* Belt and braces AFTER the cause (a row wider than the column) was fixed:
       nothing in the column should ever scroll it sideways. */
    overflow-x: hidden;
  }
  /* The category list sits at the top of the rail, above the search box. */
  .browse > .rail > .cat-rail { margin-bottom: 14px; }
  .browse > form.search > input,
  .browse > form.search > select { width: 100%; box-sizing: border-box; margin-bottom: 8px; flex: none; }
  .browse > form.search > button { width: 100%; margin-bottom: 4px; }
  /* Open, permanent, and no lid to click. */
  .browse .more-filters > summary { display: none; }
  .browse .mf-body {
    margin-top: 10px; padding: 0 0 0; border: 0; border-radius: 0; background: transparent;
  }
  .browse .mf-group { padding: 12px 0; }
  /* One control per row in a 300px rail: two would be 130px each. */
  .browse .mf-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .browse .mf-field--wide { grid-column: auto; }
  /* In a 300px rail the location button is wider than the field beside it, so
     the pair stacks rather than squeezing the box people type into. */
  .browse .dist { flex-wrap: wrap; }
  .browse .dist .mf-control, .browse .btn-loc { flex: 1 1 100%; }
  /* Show results is redundant beside a permanent Search button. */
  .browse .mf-foot { position: static; padding: 12px 0 0; margin: 0; border-radius: 0; }
  .browse .mf-apply { display: none; }
  .browse .save-search { margin-bottom: 14px; }
}
@media (max-width: 899px) {
  .browse { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* ★ One row of chips, scrolling sideways, UNDER the search box and above the
     folded filters. A column of nine categories on a phone is the 1,530px
     stack the home used to be; a lid over them hides the first choice a phone
     buyer makes. Inside the browse form the row takes the full width and is
     ordered after the search controls; on the home it is the rail itself. */
  .browse .cat-rail { flex: 1 1 100%; order: 5; min-width: 0; display: block; }
  .browse > form.search > .more-filters { order: 10; }
  /* Two rows of chips: the categories, then (inside a category) its kinds. */
  .cat-list, .sub-list {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--eqd-gutter-phone, 16px)); padding: 2px var(--eqd-gutter-phone, 16px);
    -webkit-overflow-scrolling: touch; border: 0;
  }
  .sub-list { margin-top: 6px; }
  .cat-list::-webkit-scrollbar, .sub-list::-webkit-scrollbar { display: none; }
  .cat-list li, .sub-list li { flex: 0 0 auto; }
  .cat-list a, .sub-list a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; gap: 5px; }
  .cat-list a.cur { border-color: var(--hunter); }
  .cat-list a.open { background: var(--hunter); color: #fff; border-color: var(--hunter); }
  .cat-list a.open .n { color: #fff; opacity: .85; }
  .sub-list a { font-size: 12.5px; padding: 6px 10px; }
  .sub-list a.cur { border-color: var(--hunter); }
  .sub-list a.zero { background: transparent; }
  .sub-group { display: none; }
  .cat-list .n, .sub-list .n { font-size: 12px; }
  /* Coming-soon does not ride the chip row: a chip that does nothing is a
     broken chip. The pitch page carries the vision. */
  .cat-coming { display: none; }
  .home-browse > .rail { margin-bottom: 0; }
}
/* ★ Two per row on a phone. One card per screenful turns browsing into
   scrolling, and comparing two horses means seeing two horses. The image
   shortens to keep the pair above the fold. */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card img, .card .noimg { height: 118px; }
  .card .body { padding: 9px 10px 11px; }
  .card h2 { font-size: 16px; }
  .card .meta { font-size: 12px; }
}

/* Count and sort, above the results. The count is the answer to "did my filter
   do anything", which the page never told anyone before. */
.toolbar {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 12px; flex-wrap: wrap; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.tb-count { font-size: .95rem; font-weight: 600; color: var(--ink); }
/* The add button, left of the count: where a seller starts from the page
   they are looking at. "List yours" used to hang off the end of the sentence. */
.tb-add { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px;
  border: 1px solid var(--hunter); border-radius: 8px; background: var(--hunter); color: #fff;
  font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tb-add:hover { filter: brightness(1.06); }
.tb-add-i { font-size: 18px; line-height: 1; font-weight: 600; }
@media (max-width: 640px) {
  .tb-add { padding: 0; width: 34px; justify-content: center; }
  .tb-add-t { display: none; }
}
.tb-sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-left: auto; }
/* Save-this-search sits in the toolbar beside the count, not in a band of its
   own above the rail. Same control, same script; only the chrome goes. */
.toolbar .save-search { margin: 0; padding: 0; border: 0; background: transparent; gap: .5rem; font-size: .88rem; color: var(--muted); }
.toolbar .save-search .btn { padding: 6px 12px; font-size: 13.5px; }
@media (max-width: 640px) { .toolbar .save-search #ss-lead { display: none; } }
.tb-sort select {
  font: inherit; font-size: 16px; height: 38px; padding: 0 30px 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%235C6672' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ── Listing detail, two columns ──────────────────────────────────────────
   Media leads, and the facts a buyer decides on stay beside it rather than
   below the fold. The prose keeps a readable measure via .pitch. */
@media (min-width: 1000px) {
  .detail { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
  .detail > .detail-aside { position: sticky; top: 16px; }
}

/* ── Tick-box facet list ──────────────────────────────────────────────────
   For a facet where several answers mean OR. Rows rather than a wrapped chip
   cloud: a name like "Working cow horse" reads badly broken across a chip, and
   a column of rows is scannable in a narrow rail. */
.checks { display: flex; flex-direction: column; gap: 1px; }
.checks-cat {
  margin: 8px 0 3px; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.checks-cat:first-child { margin-top: 0; }
.check {
  display: flex; align-items: center; gap: 8px;
  /* 34px, not 44: these are rows in a list where the whole row is the target,
     and 32 of them at 44px would be a thousand pixels of rail. */
  /* ★ No negative side margin. It was `margin: 0 -6px`, which made every row
     6px wider than the column, so the rail (overflow-y: auto) could be dragged
     sideways and every left edge in it came out shaved. The tick box now sits on
     the same left edge as the boxes and labels above it, and hover shows as
     colour, not as a band that needs room outside the column. */
  min-height: 34px; padding: 0; margin: 0;
  border-radius: 6px; cursor: pointer;
  font-size: .88rem; color: var(--ink); line-height: 1.25;
}
.check:hover { color: var(--hunter); }
.check input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--hunter); margin: 0; }
.check input:focus-visible { outline: 2px solid var(--hunter); outline-offset: 2px; }
.check:has(input:checked) { font-weight: 600; color: var(--hunter); }
/* Rows past the cap, hidden until asked for. A ticked row is never hidden. */
.check[hidden], .checks-cat[hidden] { display: none; }
.checks-more {
  align-self: flex-start; margin-top: 6px; padding: 4px 0;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 600;
  color: var(--hunter); text-decoration: underline;
}

/* ── Alerts ───────────────────────────────────────────────────────────── */
.al-card { display: block; text-decoration: none; color: inherit; }
a.al-card:hover { border-color: var(--hunter); }
.al-card h3 { margin: 0 0 2px; font-size: 1rem; }
.al-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 7px;
  border-radius: 50%; background: var(--hunter); vertical-align: middle;
}
.sv-note { margin: -4px 0 12px; font-size: .9rem; color: var(--muted); }
.sv-note a { color: var(--hunter); }

/* ── Search across everything ─────────────────────────────────────────────
   Grouped by category, because the categories are where the real filters
   live: a blended list of horses and saddles has no filter rail that could
   narrow it, so it would be a dead end the moment somebody wanted to refine. */
.sr-group { margin: 0 0 30px; }
.sr-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.sr-head h2 { margin: 0; font-size: 1.25rem; }
.sr-all { font-size: .9rem; font-weight: 600; color: var(--hunter); white-space: nowrap; }

/* ===================== /messages: the old address ===================== */
/* Messages live in the shell's drawer now (every product, the same panel).
   This page only exists so old links and bookmarks still land somewhere:
   it opens the drawer as it loads and offers the button in case it did not. */
.msgs-note { max-width: 560px; margin: 40px auto; text-align: center; }
.msgs-note h1 { font-size: 26px; }
.msgs-note p { color: var(--muted); margin: 0 0 16px; }

/* ===================== A listing or page that cannot be found (#242) ===================== */
.nf-note { max-width: 560px; margin: 40px auto; text-align: center; }
.nf-note h1 { font-size: 26px; }
.nf-note p { color: var(--muted); margin: 0 0 16px; }
.nf-note .nf-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ===================== My Listings: the horse handoff ===================== */
/* Horse listings are managed where they were created, in EquiDetails. One row
   says how many there are and takes the seller across. */
.mine-handoff { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--hunter-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0 6px; }
.mine-handoff .mh-text { font-weight: 600; }
.mine-handoff .mh-sub { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }


/* ---- Horse listing page, reworked (docs/marketplace-listing-page-rework.md).
   New classes only: the classified page keeps .detail/.detail-aside untouched. ---- */
.lp-head { display: grid; grid-template-columns: 1fr; grid-template-areas: "title" "buy" "pills"; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lp-title { grid-area: title; min-width: 0; }
.lp-buy { grid-area: buy; }
.lp-pills { grid-area: pills; }
.lp-title h1 { margin-bottom: 4px; }
.lp-title .sub { margin: 6px 0 0; }
.lp-buy .price.big { font-family: "Playfair Display", Georgia, serif; font-size: 30px; margin: 0; }
.lp-terms { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.lp-pills .facts { margin: 0 0 4px; }
.lp-pills .disciplines { margin: 6px 0 0; }
@media (min-width: 780px) {
  .lp-head { grid-template-columns: 1fr minmax(300px, auto); grid-template-areas: "title buy" "pills buy"; column-gap: 28px; align-items: start; }
  .lp-buy { text-align: right; }
  .lp-buy .cta-row { justify-content: flex-end; }
  .lp-buy .convo-box { text-align: left; }
}
.lp-look { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 20px; }
@media (min-width: 780px) { .lp-look { grid-template-columns: 7fr 5fr; align-items: start; } }
.lp-look .hero-img { max-height: 460px; }
.lp-thumbs { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 640px) { .lp-thumbs { grid-template-columns: repeat(4, 1fr); } }
.lp-about h2, .lp-sec h2 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.lp-about .pitch { margin: 0; }
.lp-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 14px 0 0; }
.lp-kv dt { color: var(--muted); }
.lp-kv dd { margin: 0; }
.lp-sec { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.lp-sec.ped { margin-top: 30px; }
.lp-sec .ped-head { align-items: center; margin-bottom: 12px; }
.lp-sec .ped-head h2 { margin: 0; }
.lp-tag-ver { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-hunter); background: var(--hunter); border-radius: 999px; padding: 3px 9px; }
.lp-record .badges { margin-top: 0; }
.lp-seller { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lp-seller .seller-line { margin: 0 0 4px; font-size: 15px; color: var(--ink); font-weight: 600; }
.lp-seller .cta-note { margin-top: 0; }
.lp-bar { display: none; }
@media (max-width: 779px) {
  .lp-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; align-items: center; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 35, 61, .08); }
  .lp-bar .price { flex: 1 1 auto; font-size: 20px; }
  .lp-bar .cta { flex: 0 0 auto; }
  .lp-bar[hidden] { display: none; }
  .wrap--read:has(.lp-bar) { padding-bottom: 96px; }
}

/* Request hay (hay listings only). The request is the loud button and
   Message the seller steps back to quiet, so a hay page still has one
   obvious thing to do. */
.cta--quiet { background: var(--surface); color: var(--hunter); border: 1px solid var(--hunter); }
.req-field { display: block; margin: 0 0 12px; }
.req-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.req-field input[type="text"] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); box-sizing: border-box; }
.req-field[hidden] { display: none; }
/* The family's segmented control (apps/equidetails_web ui/SegmentedControl):
   a soft rounded track, the chosen side lifted onto a white pill. Grows from
   content, so both labels keep the same padding. */
.req-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); }
.req-seg button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.req-seg button:hover { color: var(--ink); }
.req-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,35,61,0.12); }
.req-seg button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.req-row { display: flex; gap: 10px; }
.req-field--grow { flex: 1 1 auto; min-width: 0; }
.req-field--state { flex: 0 0 64px; }
.req-field--zip { flex: 0 0 110px; }
/* The family's date+time field, in the market's skin: one border, one ring,
   a seam between the halves inset top and bottom. */
.req-when { display: flex; align-items: stretch; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.req-when:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(183,138,67,0.2); }
.req-when__date { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: transparent; border: 0; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.req-when__date:focus-visible { outline: none; }
.req-when__label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-when__label.is-empty { color: var(--muted); font-weight: 400; }
.req-when__glyph { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); opacity: .6; }
.req-when__date:hover .req-when__glyph, .req-when__date:focus .req-when__glyph { opacity: 1; }
.req-when__rule { width: 1px; margin: 8px 0; background: var(--line); flex-shrink: 0; }
/* The time half: the app's TimePicker (#333), hour : minutes AM/PM, three bare
   selects, no caret. The colon is a flex box of its own so it sits centred on
   the numbers, not at the top of the stretched row. */
.req-when__time { display: flex; align-items: stretch; flex-shrink: 0; }
.req-when__part { -webkit-appearance: none; appearance: none; background: transparent; border: 0; font: inherit; font-size: 15px;
  color: var(--ink); padding: 10px 6px; font-variant-numeric: tabular-nums; cursor: pointer; }
.req-when__part--first { padding-left: 12px; }
.req-when__part--last { padding-right: 12px; }
.req-when__part:focus { outline: none; }
.req-when__part:disabled { color: var(--muted); cursor: not-allowed; }
.req-when__colon { display: flex; align-items: center; color: var(--muted); user-select: none; }
/* The calendar that pops over it is the kit's: /shell-kit/datepicker.css (packages/shell-kit). */
.req-hint { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.req-hint[hidden] { display: none; }
#req-address-wrap[hidden] { display: none; }
/* Address type-ahead on the hay request: the app's dropdown, in the market's skin. */
.req-typeahead { position: relative; }
.req-typeahead > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.req-typeahead input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); box-sizing: border-box; }
.req-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px 0;
  list-style: none; max-height: 240px; overflow: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; box-shadow: 0 8px 24px rgba(16,35,61,0.12); }
.req-suggest[hidden] { display: none; }
.req-suggest button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; padding: 8px 12px;
  background: none; border: 0; color: var(--ink); cursor: pointer; }
.req-suggest button:hover, .req-suggest button.is-active { background: rgba(30,74,56,0.08); }
.req-verify { font-size: 12px; margin: 4px 0 0; color: var(--muted); }
.req-verify--ok { color: var(--hunter); }
.req-verify--warn { color: #9a6b00; }
.req-verify[hidden] { display: none; }
