/* The calm redesign (Oct 16, 2026): Plant Finder (inventory/plants.js, plant-list.js, plant-size.js). Loaded after styles.css, so a rule here wins over the same rule there.
   Docs/Hub design standard.md has the rules (Motion; Calm and focus). Colours only from the tokens in styles.css. */

/* ---------- Moved from styles.css (Oct 21, 2026): only this area draws these, so they load with it (js/screen-css.js).
   Kept in their old order, ahead of this file's own rules, as before. ---------- */
/* ---------- Find a plant ---------- */
.p-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.p-row:last-child { border-bottom: 0; }
.p-facts { grid-column: 1 / -1; font-size: .875rem; color: var(--text-3); }
.p-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bgroup + .bgroup { border-top: 1px solid var(--border); }
.bg-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; background: none;
  color: var(--heading); font: 700 1rem/1.25 var(--rt-body); letter-spacing: 0; text-align: left; cursor: pointer; }
.bg-head:hover { background: var(--rt-hover); }
.bg-head:focus-visible { outline-offset: -3px; }
.bg-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bg-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.bg-head.yard::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--link); }
.bg-body { border-top: 1px solid var(--border); }
.p-sale { display: block; font-size: .875rem; color: var(--link); }
/* On a phone the bar wraps: the name box, then Filters and Sort side by side, or Sort on its own line when its longest
   choice would not fit beside Filters (Larger text). */
.pl-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pl-bar .field.search { flex: 1 1 100%; }
.pl-filters-btn { flex: none; min-height: 48px; padding: 0 18px; white-space: nowrap; }
.pl-sort { display: flex; flex: 1 0 auto; align-items: center; gap: 8px; max-width: 100%; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.pl-sort select { flex: 1 1 auto; text-overflow: ellipsis; }
.pl-sort-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-sort select { min-height: 48px; max-width: 100%; min-width: 0; padding: 0 40px 0 14px; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill);
  background-color: var(--field); color: var(--text); }
.pl-top { display: flex; flex-direction: column; gap: 8px; }
.pl-count { margin: 0; color: var(--text-2); }
.pl-count strong { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-chips { align-items: center; }
.pl-chip .ic { width: 16px; height: 16px; color: var(--text-3); }
.pl-rows { margin: 0; padding: 0; list-style: none; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.pl-row + .pl-row { border-top: 1px solid var(--border); }
.pl-head { display: none; }
.pl-main { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "plant price chev" "size size chev" "facts facts chev";
  gap: 2px 12px; align-items: start; width: 100%; padding: 12px 12px 12px 16px; border: 0; background: none; color: var(--text);
  font: 400 1rem/1.35 var(--rt-body); letter-spacing: 0; text-align: left; cursor: pointer; }
.pl-main:hover { background: var(--surface-2); }
.pl-main:focus-visible { outline-offset: -3px; }
.pl-plant { grid-area: plant; display: flex; flex-direction: column; min-width: 0; }
.pl-size { grid-area: size; min-width: 0; font-weight: 600; color: var(--heading); }
.pl-size.unknown { font-weight: 500; color: var(--text-2); }
.pl-orig { font-weight: 400; color: var(--text-3); overflow-wrap: anywhere; }
.pl-facts { grid-area: facts; min-width: 0; font-size: .875rem; color: var(--text-3); }
.pl-facts > span:empty { display: none; }
.pl-facts > span:not(:empty) ~ span:not(:empty)::before { content: " · "; }
.pl-price { grid-area: price; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-main[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pl-more-info { padding: 4px 16px 16px; }
.pl-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.pl-kv dt { font: 500 .875rem/1.4 var(--rt-body); letter-spacing: 0; color: var(--text-3); }
.pl-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pl-more { align-self: center; margin-top: 4px; }
.pl-left { font-weight: 500; }
/* The filters sheet: each group under a plain heading; Show N plants stays at the bottom of the sheet. */
.pl-sheet { display: flex; flex-direction: column; gap: 24px; }
.pl-fs { min-width: 0; margin: 0; padding: 0; border: 0; }
.pl-fs legend { margin-bottom: 8px; padding: 0; font: 700 1.0625rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--heading); }
.pl-fs .seg { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-box); }
.pl-fs .seg button { min-height: 48px; }
.pl-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pl-sheet-foot { position: sticky; bottom: -6px; padding: 12px 0 4px; background: var(--surface); }
.pl-sheet-foot .pair { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 720px) {
  .pl-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .pl-bar .field.search { flex: none; }
  .pl-sort { justify-self: end; }
  .pl-sort-w { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .pl-fs .seg { grid-auto-flow: column; grid-template-columns: none; border-radius: var(--r-pill); }
}
@media (min-width: 1100px) {
  .pl-head, .pl-main { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .6fr) minmax(0, .8fr) 20px;
      grid-template-areas: "plant size form sup qty date price chev"; gap: 0 12px; }
  .pl-head { display: grid; padding: 0 12px 6px 16px; font: 600 .8125rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--text-3); }
  .pl-head span:nth-child(7) { text-align: right; }
  .pl-main { align-items: baseline; padding-block: 12px; }
  .pl-facts { display: contents; font-size: .9375rem; color: var(--text-2); }
  .pl-facts > span:not(:empty) ~ span:not(:empty)::before { content: none; }
  .pl-facts > span:empty { display: block; }
  .pl-form { grid-area: form; }
  .pl-sup { grid-area: sup; }
  .pl-qty { grid-area: qty; }
  .pl-date { grid-area: date; }
  .pl-form, .pl-sup { min-width: 0; overflow-wrap: anywhere; }
  .pl-qty, .pl-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pl-w { display: none; }
}
/* Search · Browse everything: two pills at the left, the chosen one filled. */
[data-screen="plants"] .seg[data-way] { display: flex; width: auto; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
[data-screen="plants"] .seg[data-way] button { flex: none; min-height: 44px; padding: 0 14px; font: 700 .8125rem/1 var(--rt-body); color: var(--text-2); }
[data-screen="plants"] .seg[data-way] button .ic { display: none; }
[data-screen="plants"] .seg[data-way] button[aria-pressed="true"] { color: var(--on-pick); }
/* The search box: no border, on the card colour; the Search button beside it, the same height. */
[data-screen="plants"] .searchbar { gap: 8px; }
[data-screen="plants"] .search .ic { top: 15px; left: 14px; width: 18px; height: 18px; }
[data-screen="plants"] .field.search input[type="search"] { min-height: 48px; height: 48px; padding: 0 14px 0 40px !important; border: 0; border-radius: 12px; background: var(--surface);
  font: 400 1rem/1 var(--rt-body); }
/* A list that didn't update: one box with one dot; the lists' date in small words under it. */
.pl-fresh { display: flex; flex-direction: column; gap: 6px; }
.pl-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--rt-attn-bg); color: var(--text); font-size: .8125rem; line-height: 1.4; }
.pl-fresh .fresh { margin: 0; font-size: .75rem; }
/* The lists as chips in one scrolling row, no borders. */
[data-screen="plants"] .chips.scroll { gap: 6px; }
[data-screen="plants"] > .chips .chip { min-height: 44px; padding: 0 12px; border: 0; background: var(--surface); color: var(--text-2); font: 600 .8125rem/1 var(--rt-body); }
/* The answer: our yard at the left and the suppliers at the right on a computer; one column on a phone. */
.pl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 900px) {
  .pl-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.pl-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pl-h { margin: 0; font: 700 .9375rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--text); }
.pl-yard, .spec li.pl-yard { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px; background: var(--surface); }
.spec .pl-yard::before { display: none; }
.pl-tile.st-tile { width: 3.25rem; height: 3.25rem; }
.pl-tile .st-tile-n { font-size: 1.5rem; }
.pl-y-w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-yard .p-price, .p-row .p-price { flex: none; font: 800 1.25rem/1 var(--rt-cond); font-weight: 800; color: var(--text); }
.pl-sups .p-row { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text);
  text-align: left; font: inherit; cursor: pointer; }
.pl-sups .p-row:hover { background: var(--surface-2); }
.p-l1 { display: flex; align-items: baseline; gap: 8px; width: 100%; }
.p-l1 .p-name { flex: 1; min-width: 0; font: 700 .875rem/1.3 var(--rt-body); }
.p-size { font-weight: 500; color: var(--text-2); }
.p-was { flex: none; font-size: .75rem; color: var(--text-3); }
.p-row .p-price.on-sale { color: var(--link); }
.pl-sups .p-facts { font-size: .75rem; color: var(--text-3); }
.p-more { padding-top: 4px; border-top: 1px solid var(--border); font-size: .75rem; color: var(--text-2); }
.p-more[hidden] { display: none; }
.p-more .p-bot { font-style: italic; }
/* Browse everything: the bar's buttons as the design's fields; a card per row on a phone, the table on a computer. */
.pl-bar .field.search input[type="search"] { min-height: 48px; }
.pl-sort select { min-height: 48px; border: 0; border-radius: 12px; background-color: var(--surface-2); }
.bgroups { border: 0; border-radius: 12px; }
.bg-head { min-height: 52px; padding: 8px 12px; }
.bg-head .bg-name { font: 700 .875rem/1.3 var(--rt-body); }
.spec.bare li.pl-yard { background: var(--surface-2); }
@media (max-width: 899px) {
  .pl-rows { display: flex; flex-direction: column; gap: 8px; overflow: visible; border: 0; border-radius: 0; background: none; }
  .pl-row + .pl-row { border-top: 0; }
  .pl-row { border-radius: 12px; background: var(--surface); overflow: hidden; }
}
@media (min-width: 900px) {
  .pl-rows { border: 0; border-radius: 12px; }
}

/* ---------- Brandon's decisions (Oct 13, 2026): one-tap Fixed, then "Add what was done"; Find a plant as you type, Our yard ---------- */
/* No Search button: the box takes the row. */
[data-screen="plants"] .searchbar.pl-typed { grid-template-columns: minmax(0, 1fr); }
/* Our yard on: the yard alone, one column. */
.pl-cols.yard-only { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
/* ---------- end of the rules moved from styles.css ---------- */

/* The hero: the search box, big at the top (Brandon OK'd it, Oct 16, 2026). In Search it finds a plant; in Browse everything
   it narrows the list. */
.pl-hero { margin-top: 4px; }
.pl-hero .field.search { position: relative; }
[data-screen="plants"] .pl-hero .search .ic { top: 50%; left: 20px; width: 24px; height: 24px; transform: translateY(-50%); color: var(--text-2); }
[data-screen="plants"] .pl-hero .field.search input[type="search"] { min-height: 64px; height: 64px; padding: 0 18px 0 56px !important; border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: 500 1.25rem/1.2 var(--rt-body); }
[data-screen="plants"] .pl-hero .field.search input[type="search"]::placeholder { color: var(--text-3); font-weight: 400; }
[data-screen="plants"] .pl-hero .field.search input[type="search"]:focus { border-color: var(--ink-strong); }
body.big-text [data-screen="plants"] .pl-hero .field.search input[type="search"] { min-height: 72px; height: 72px; font-size: 1.3rem; }
@media (min-width: 900px) { .pl-hero { margin-top: 8px; } }

/* While the answer comes: soft shapes where it will be (no title lines: the screen has its own). */
.pl-wait .skel > .sk { display: none; }
.pl-wait .skel { gap: 0; }
/* The last answer stays a little paler while a new search runs. */
.pl-stale { opacity: .55; }

/* "Lists as of 9/23 · 3 lists" opens to each list's date; a list that didn't update shows above it, always. */
.pl-lists > .more-s { min-height: 44px; font-size: .875rem; color: var(--text-3); }
.pl-dates { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--text-2); }
.pl-dates li { display: flex; justify-content: space-between; gap: 16px; }
.pl-dt { color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }

/* Browse everything: the bar is only Filters and Sort now (the name box is the hero above). */
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
@media (min-width: 720px) { .pl-bar { display: flex; } }
.pl-sort { flex: 0 1 auto; }
@media (min-width: 720px) { .pl-hero { max-width: 760px; } }

/* ---------- Until the answer comes (Oct 21, 2026: no pop-in; inventory/plants.js searchShapes() and browseShapes()) ----------
   The answer's own shape in styles.css's grey bars, with the same gaps and heights as the real rows above, so it swaps in
   without anything moving. Search: In our yard (a count tile, a name, a price) and Suppliers (a name and price, a line of
   facts), side by side from 900 px. Browse everything: the lists' date line, the yard fold, Filters and Sort, the count,
   and the rows (a card each on a phone, one table on a computer). */
.pl-wait .skel.pl-sk { gap: 24px; padding-block: 0; }
.pl-sk-chips { display: flex; gap: 8px; overflow: hidden; padding: 2px 0 4px; }
.pl-sk .sk.pl-sk-chip { flex: none; height: 48px; }
.pl-sk .sk.pl-sk-chip.w1 { width: 3.4rem; } .pl-sk .sk.pl-sk-chip.w2 { width: 6rem; } .pl-sk .sk.pl-sk-chip.w3 { width: 6.75rem; }
.pl-sk .sk.pl-sk-h { width: 6.5rem; height: 1.2rem; }
.pl-sk-list { display: flex; flex-direction: column; gap: 8px; }
.pl-sk-yard { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--surface); }
.pl-sk .sk.pl-sk-tile { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 10px; }
.pl-sk-w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-sk .sk.pl-sk-l1 { height: .95rem; }
.pl-sk .sk.pl-sk-l2 { height: .75rem; }
.pl-sk .sk.pl-sk-price { flex: none; width: 3.25rem; height: 1.25rem; }
.pl-sk-sup { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.pl-sk-l { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-sk-l .sk.pl-sk-l1 { flex: 0 1 auto; }
.pl-wait .skel.pl-sk-browse { gap: 24px; }
.pl-sk-top { display: flex; align-items: center; min-height: 44px; }
.pl-sk .sk.pl-sk-fresh { width: 11rem; height: 1rem; }
.pl-sk-fold { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.pl-sk .sk.pl-sk-dot { flex: none; width: 10px; height: 10px; }
.pl-sk .sk.pl-sk-fold-w { width: 6.5rem; height: 1rem; }
.pl-sk-sec { display: flex; flex-direction: column; gap: 12px; }
.pl-sk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-sk .sk.pl-sk-filters { width: 7.5rem; height: 48px; }
.pl-sk .sk.pl-sk-sort { width: 9rem; height: 48px; border-radius: 12px; }
.pl-sk .sk.pl-sk-count { width: 6rem; height: 1.1rem; }
.pl-sk-rows { display: flex; flex-direction: column; gap: 8px; }
.pl-sk-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 40px 12px 16px; border-radius: 12px; background: var(--surface); }
.pl-sk .sk.pl-sk-size { height: .9rem; }
@media (min-width: 900px) {
  .pl-sk-rows { gap: 0; overflow: hidden; border-radius: 12px; background: var(--surface); }
  .pl-sk-row { border-radius: 0; background: none; }
  .pl-sk-row + .pl-sk-row { border-top: 1px solid var(--border); }
}
@media (min-width: 1100px) {
  .pl-sk-row { flex-direction: row; align-items: center; gap: 16px; padding-block: 15px; }
  .pl-sk-row > .pl-sk-l { flex: 2.2; }
  .pl-sk-row > .sk { flex: 1.5; width: auto; }
}

/* Show N more: the rows just added fade in (a short fade only; nothing above them moves). */
@keyframes pl-new { from { opacity: 0; } to { opacity: 1; } }
[data-screen="plants"] .pl-row.pl-new { animation: pl-new var(--motion-fast) var(--ease-out) both; }

/* ---------- the navy redesign, step 4: operations (Oct 23, 2026; docs/navy-redesign.md) ----------
   The design's Plant finder: prices in Inter 700, not the old big condensed number. */
.pl-yard .p-price, .p-row .p-price { font: 700 1.125rem/1 var(--rt-body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- the exact rebuild (Oct 23, 2026; the design's PlantFinderPage) ----------
   The search card, the results card, the plant rows and the pill switch are the design's own .ds-* classes (styles.css).
   Here only what the Hub adds: the rows as a list, the lists to look in, the details a row opens, and a few notes. */
.pl-list-rows { margin: 0; padding: 0; list-style: none; }
.pl-res { min-width: 0; }
.pl-res .pl-lists { max-width: 100%; margin-bottom: 10px; overflow-x: auto; }
.pl-res .pl-lists button { flex: none; white-space: nowrap; }
.ds-plant-row > div { min-width: 0; gap: 2px; }
.ds-plant-row .pl-nm { overflow-wrap: anywhere; }
.ds-plant-row .pl-pr { flex: none; font-variant-numeric: tabular-nums; }
.ds-plant-row .p-view { flex: none; }
.ds-plant-row .pl-d[hidden] { display: none; }
.ds-plant-row .pl-d .p-bot { font-style: italic; }
.pl-note { margin: 12px 0 0; font-size: .85rem; }
.pl-search .ic { width: 18px; height: 18px; }
.pl-search > .ic { width: 30px; height: 30px; }
.ds-plant-thumb .ic { width: 24px; height: 24px; }
/* Browse everything's yard fold draws the same rows on the fold's soft surface. */
.bg-body .pl-y { padding-inline: 12px; }
/* The first answer's shape (searchShapes()): the results card's heading and count, the pills, then rows as the real ones. */
.pl-sk-card { display: flex; flex-direction: column; gap: 14px; }
.pl-sk-head { display: flex; align-items: center; justify-content: space-between; }
.pl-sk-card .sk.pl-sk-h { height: 1.1rem; }
.sk.pl-sk-badge { width: 76px; height: 22px; border-radius: 999px; }
.pl-sk-card .pl-sk-list { display: flex; flex-direction: column; gap: 0; }
.pl-sk-card .pl-sk-yard, .pl-sk-card .pl-sk-sup { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0; border-top: 1px solid var(--ds-line); background: none; }
.sk.pl-sk-thumb { flex: none; width: 46px; height: 46px; border-radius: 13px; }
.pl-sk-card .pl-sk-w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sk.pl-sk-view { flex: none; width: 120px; height: 42px; border-radius: 999px; }
