/* The members' area: Home, Community, Listings, Directory and their pages (redesign of 2026-11-10). Loaded last, after
   every other stylesheet, on every signed-in page and on the community, listings and directory pages for visitors too
   (includes/header.php). It makes these pages read as part of the website itself: the website's navbar form (the bar is
   in css/dashboard.css), then a short forest hero band with the faint cross pattern (the same green in every section, by the
   owner's choice of 2026-11-10), then cream pages of white cards with a column of notes beside them. Signed in, the pages
   use the window's width (up to 1680px) with one shared edge for the bar, the band and the page. Moving between sections
   keeps the bar still while the band's words change in place and the tab's underline slides across (view transitions). */

:root {
  --pw-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pw-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --pw-container: 1280px;       /* the website's width, for visitors under the website's menu */
  --pw-wide: 1680px;            /* signed in: the window's width, up to this */
  --pw-gutter: 24px;            /* the website's gutter; wider for members on wide screens, below */
  --pw-side-w: clamp(300px, 23vw, 380px);
  --pw-card-shadow: 0 1px 2px rgba(48,43,36,0.06), 0 6px 22px rgba(48,43,36,0.07);
  --pw-card-shadow-up: 0 2px 4px rgba(48,43,36,0.06), 0 16px 36px rgba(48,43,36,0.13);
  --pw-card-radius: 20px;
  --pw-glass: rgba(255,255,255,0.09);
  --pw-glass-line: rgba(255,255,255,0.18);
  --pw-on-dark: rgba(255,255,255,0.84);
  --pw-pattern: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.035"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/svg%3E');
}

html.app-shell { --pw-gutter: clamp(16px, 2.6vw, 40px); }
@media (max-width: 768px) { :root, html.app-shell { --pw-gutter: 16px; } }

/* ---- Type for signed-in members (owner's request of 2026-11-19) ----
   The website is Times New Roman in English (style.css, html[lang="en"]). Signed in, posts, names, buttons, menus and forms
   read in Noto Sans instead: plainer on small phone screens, and the same family as the Indian-script fonts the site uses
   for Hindi, Punjabi and Gujarati, so a page reads alike in every language. Headings keep the serif (--font-serif), so the
   members' area still looks like the website. Only in English and only under the members' bar (html.app-shell): a
   language switch changes html[lang], and the regional fonts take over as before. Noto Sans is already in $FONTS_URL; until
   it arrives the system's own sans-serif shows, which looks much the same. */
html.app-shell[lang="en"] {
  --font-sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---- The browser's own surfaces, in the site's colours ---- */
html.app-shell ::selection, .pw-hero ::selection, .cx ::selection { background: rgba(200,161,107,0.42); color: var(--gray-900); }
html.app-shell { accent-color: var(--secondary); caret-color: var(--secondary); scrollbar-color: var(--sandal) var(--cream); }
html.app-shell body { background: var(--cream); }
.dash-panel, .dash-side { scrollbar-color: var(--sandal-light) transparent; scrollbar-width: thin; }

/* One shared edge: visitors get the website's 1280px, members the window's width up to 1680px, for the bar, band and page */
.pw-hero > .container, .cx > .container, .dash-page > .container, .acct-page > .container { max-width: var(--pw-container); }
html.app-shell .topbar > .container, html.app-shell .dash-bar > .container, html.app-shell .pw-hero > .container, html.app-shell .cx > .container, html.app-shell .dash-page > .container,
html.app-shell .acct-page > .container,
html.app-shell .dash-drawer-host { max-width: var(--pw-wide); padding-inline: var(--pw-gutter); }

/* ---- The hero band: short, forest, and laid out on one grid ----
   Row one: the title and its line on the left, the one action on the right, centred on each other. Row two: the search,
   the full width. Row three: the choices, one row that scrolls sideways when it runs out of room. Every row shares the
   same left and right edges. */
.pw-hero {
  background: linear-gradient(155deg, #0A2A0A 0%, #1B5E20 55%, #0D3B13 100%);
  color: var(--white);
  overflow: hidden;
  padding: 22px 0 20px;
  position: relative;
}
/* The website's cross pattern, and a little morning light from the top right */
.pw-hero::before { background: var(--pw-pattern); content: ''; inset: 0; pointer-events: none; position: absolute; }
.pw-hero::after {
  background: radial-gradient(ellipse 50% 120% at 96% -20%, rgba(240,204,102,0.14), transparent 60%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.pw-hero-inner { container-type: inline-size; display: grid; gap: 14px; position: relative; z-index: 1; }
.pw-back {
  align-items: center;
  border-radius: var(--radius-full);
  color: var(--pw-on-dark);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  justify-self: start;
  margin: -6px 0 -8px -10px;
  min-height: 40px;
  padding: 0 10px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.pw-back:hover { background: var(--pw-glass); color: var(--white); }
.pw-back span { transition: transform 0.25s var(--pw-ease); }
.pw-back:hover span { transform: translateX(-3px); }
.pw-hero-top { align-items: center; display: flex; gap: 12px 28px; justify-content: space-between; }
.pw-hero-text { flex: 1 1 auto; min-width: 0; }
.pw-hero-title {
  color: var(--white);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pw-hero-sub { color: var(--pw-on-dark); font-size: 1rem; line-height: 1.55; margin-top: 4px; max-width: 90ch; }
.pw-hero-action { flex: none; }
.pw-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pw-hero-stats span {
  background: var(--pw-glass);
  border: 1px solid var(--pw-glass-line);
  border-radius: var(--radius-full);
  color: var(--pw-on-dark);
  font-size: 0.84rem;
  line-height: 1.4;
  padding: 4px 12px;
}
.pw-hero-stats strong { color: var(--gold-light); }

/* A question's or a listing's facts under its title */
.pw-hero .cm-chips { margin-top: 10px; }
.pw-hero .cm-chip { background: var(--pw-glass); border-color: var(--pw-glass-line); color: var(--white); }
.pw-hero a.cm-chip:hover { background: rgba(255,255,255,0.18); }
.pw-hero .cm-chip-quiet { color: var(--pw-on-dark); }
.pw-hero .lx-item-price { color: var(--pw-on-dark); font-size: 1rem; margin-top: 8px; }
.pw-hero .lx-item-price strong { color: var(--gold-light); font-size: 1.45rem; }
.pw-hero .lx-item-price.is-ask { color: var(--pw-on-dark); }
.pw-hero .pw-hero-place { color: var(--pw-on-dark); font-size: 0.98rem; margin-top: 2px; }

/* The search row, white on the band, the band's full width */
.pw-search { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 260px) auto; }
.pw-search.lx-search { grid-template-columns: minmax(0, 1fr) minmax(0, 250px) minmax(0, 250px) auto; }
.pw-search-box { min-width: 0; position: relative; }
.pw-search-box .cx-ico { color: var(--gray-500); height: 20px; left: 18px; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); width: 20px; }
.pw-search .pv-input {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  color: var(--gray-900);
  height: 48px;
  min-height: 48px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pw-search-box .pv-input { padding-left: 50px; }
.pw-search .pv-input:focus { border-color: var(--gold-light); box-shadow: 0 0 0 4px rgba(240,204,102,0.28), 0 4px 14px rgba(0,0,0,0.14); outline: none; }
.pw-search .pv-input::placeholder { color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-select { padding-right: 36px; width: 100%; }
.pw-search-go {
  background: var(--sandal);
  border: 0;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  color: var(--gray-900);
  font-weight: 700;
  gap: 8px;
  min-height: 48px;
  min-width: 120px;
  padding: 0 24px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.pw-search-go:hover { background: var(--sandal-light); transform: translateY(-1px); }
.pw-search-go:active { transform: scale(0.97); }
.pw-search-go .cx-ico { display: none; height: 20px; width: 20px; }
@container (max-width: 760px) {
  .pw-search, .pw-search.lx-search { grid-template-columns: minmax(0, 1fr) auto; }
  .pw-search-box { grid-column: 1 / -1; }
  .pw-search.lx-search #mkSpecies { grid-column: 1 / -1; }
}
@container (max-width: 480px) {
  .pw-search-go { min-width: 0; padding: 0; width: 48px; }
  .pw-search-go .cx-ico { display: block; }
  .pw-search-go-text { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
}

/* The section's choices: one row of the website's glass chips, scrolling sideways when it runs out of room, with a fade at
   the edge that shows there is more */
.pw-hero .cx-topic-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 calc(var(--pw-gutter, 24px) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pw-gutter, 24px), #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--pw-gutter, 24px), #000 calc(100% - 40px), transparent);
  overflow-x: auto;
  padding: 2px var(--pw-gutter, 24px) 4px;
  scrollbar-width: none;
}
.pw-hero .cx-topic-row::-webkit-scrollbar { display: none; }
.pw-hero .cx-topic-chip {
  background: var(--pw-glass);
  border: 1px solid var(--pw-glass-line);
  box-shadow: none;
  color: var(--white);
  flex: none;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 40px;
  padding: 6px 14px;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.pw-hero .cx-topic-chip:hover { background: rgba(255,255,255,0.17); }
.pw-hero .cx-topic-chip:active { transform: scale(0.96); }
.pw-hero .cx-topic-chip.is-active { background: var(--white); border-color: var(--white); color: var(--secondary-dark); }
.pw-hero .cx-topic-chip:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ---- Home: four plain doors, one aligned row ---- */
.pw-door-list { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.pw-door-list > li { display: flex; min-width: 0; }
.pw-door {
  align-items: center;
  background: var(--pw-glass);
  border: 1px solid var(--pw-glass-line);
  border-radius: 16px;
  color: var(--white);
  display: flex;
  gap: 12px;
  min-height: 100%;
  padding: 12px 14px;
  transition: background-color 0.25s var(--pw-ease), transform 0.35s var(--pw-ease), box-shadow 0.35s var(--pw-ease);
  width: 100%;
}
.pw-door:hover { background: rgba(255,255,255,0.16); box-shadow: 0 12px 26px rgba(0,0,0,0.22); transform: translateY(-3px); }
.pw-door:active { transform: translateY(-1px) scale(0.99); }
.pw-door:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.pw-door-ico {
  align-items: center;
  background: rgba(255,255,255,0.13);
  border-radius: 12px;
  display: inline-flex;
  flex: none;
  font-size: 1.3rem;
  height: 44px;
  justify-content: center;
  transition: transform 0.45s var(--pw-ease);
  width: 44px;
}
.pw-door:hover .pw-door-ico { transform: scale(1.08) rotate(-6deg); }
.pw-door-text { flex: 1; min-width: 0; }
.pw-door-text strong { color: var(--white); display: block; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.pw-door-text small { color: rgba(255,255,255,0.76); display: block; font-size: 0.86rem; line-height: 1.4; margin-top: 2px; }
.pw-door-go { color: var(--gold-light); flex: none; font-size: 1.1rem; transition: transform 0.35s var(--pw-ease); }
.pw-door:hover .pw-door-go { transform: translateX(4px); }

/* ---- The page under the band: content beside a column of notes ---- */
.cx, .dash-page { padding: 24px 0 72px; }
.cx-layout, .dash-layout {
  align-items: start;
  display: grid;
  gap: clamp(22px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr) var(--pw-side-w);
}
.dash-layout.is-one { grid-template-columns: minmax(0, 1fr); margin-inline: auto; max-width: 880px; }
.cx-main, .dash-main { justify-self: stretch; max-width: none; }
.cx-side, .dash-right { align-content: start; display: grid; gap: 16px; position: static; }

/* Cards: white on cream, resting on a soft shadow (the website's card), lifting only when the whole card is a link */
.cx-card, .dash-card {
  background: var(--white);
  border: 0;
  border-radius: var(--pw-card-radius);
  box-shadow: var(--pw-card-shadow);
}
.cx-q, .lx-card, .dx-card { transition: box-shadow 0.3s var(--pw-ease), transform 0.3s var(--pw-ease); }
.cx-q:hover, .lx-card:hover, .dx-card:hover { box-shadow: var(--pw-card-shadow-up); transform: translateY(-3px); }
.cx-rules { background: var(--sandal-cream); box-shadow: inset 0 0 0 1px var(--sandal-light); }

/* Section headings in the website's serif, with its forest-to-sandal rule */
.cx-section-title, .dash-feed-title {
  color: var(--gray-900);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: none;
}
.cx-results-head .cx-section-title::after, .dash-feed-title::after {
  background: linear-gradient(90deg, var(--secondary), var(--sandal));
  border-radius: 2px;
  content: '';
  display: block;
  height: 3px;
  margin-top: 8px;
  width: 48px;
}
.cx-results-head { align-items: flex-end; margin-bottom: 14px; }
.dash-feed-title { margin: 28px 0 14px; }
.cx-side-title, .dash-side-title { font-family: var(--font-serif); font-size: 1.12rem; }

/* Latest and Unanswered: two tabs in a cream pill; the current one sits up on white */
.cx-results-head .cx-tabs {
  background: var(--gray-100);
  border: 0;
  border-radius: var(--radius-full);
  gap: 2px;
  margin: 0;
  overflow-x: auto;
  padding: 4px;
}
.cx-results-head .cx-tab {
  border: 0;
  border-radius: var(--radius-full);
  color: var(--gray-700);
  min-height: 44px;
  padding: 4px 18px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.cx-results-head .cx-tab:hover { color: var(--secondary); }
.cx-results-head .cx-tab[aria-current="page"] { background: var(--white); box-shadow: 0 2px 8px rgba(48,43,36,0.12); color: var(--secondary-dark); }
.cx-filters { margin: -2px 0 16px; }

/* The note that posts are members' own views */
.cx-main > .cm-note { margin: 18px 0 0; }

.dx-nowrap { white-space: nowrap; }
.lx-item-heading { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---- Home ---- */
.dash-composer { border-radius: var(--pw-card-radius); }
.dash-compose[open] .dash-compose-form { animation: pw-rise 0.32s var(--pw-ease) both; }
.dash-feed { gap: 18px; }

/* ---- Menus open from where they hang ---- */
.dash-drop[open] > .dash-panel { animation: pw-drop 0.2s var(--pw-ease) backwards; transform-origin: top right; z-index: 950; }      /* above the phone's tab bar */
.dash-panel { border: 0; border-radius: 18px; box-shadow: 0 2px 6px rgba(48,43,36,0.08), 0 24px 48px rgba(48,43,36,0.18); }
html.js .dash-side.is-drawer { transition: transform 0.38s var(--pw-ease), visibility 0.38s; }
html.js .dash-scrim:not([hidden]) { animation: pw-fade 0.3s var(--pw-ease) both; }
.pv-banner { animation: pw-drop 0.35s var(--pw-ease) both; transform-origin: top center; }

/* ---- Motion ----
   Arrival: on a fresh visit the band's title is revealed like ink settling on a page, and what follows rises in, briefly.
   Moving between members' pages: the bar stays, the band morphs in place (its colour and height change), the tab's
   underline slides to the new tab, and the page rises in behind. Every element is visible by default: these only run
   while the page arrives, and a page whose script fails still shows everything. */
@keyframes pw-ink { from { clip-path: inset(0 0 100% 0); opacity: 0.2; transform: translateY(14px); } to { clip-path: inset(0 0 -10% 0); opacity: 1; transform: none; } }
@keyframes pw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pw-drop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-fade-out { to { opacity: 0; } }
@keyframes pw-pop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }

.pw-hero-title { animation: pw-ink 0.75s var(--pw-ease) both; }
.pw-hero-sub, .pw-hero-stats, .pw-hero-action, .pw-hero .cm-chips, .pw-hero .lx-item-price, .pw-hero-place { animation: pw-rise 0.6s var(--pw-ease) 0.12s both; }
.pw-search { animation: pw-rise 0.6s var(--pw-ease) 0.2s both; }
.pw-hero .cx-topic-row { animation: pw-rise 0.6s var(--pw-ease) 0.26s both; }
.pw-door-list > li { animation: pw-rise 0.6s var(--pw-ease) backwards; }
.pw-door-list > li:nth-child(1) { animation-delay: 0.16s; }
.pw-door-list > li:nth-child(2) { animation-delay: 0.22s; }
.pw-door-list > li:nth-child(3) { animation-delay: 0.28s; }
.pw-door-list > li:nth-child(4) { animation-delay: 0.34s; }
/* Lists arrive as lists: the first few rise one after another, the rest at once */
/* `backwards`, not `both`: a finished animation that kept its last frame would leave each card on its own layer, and an
   open menu inside one (Share, ⋯) would slip under the next card or the side column */
.cx-list > li, .lx-grid > li, .dx-grid > li, .dash-feed > li, .cx-side > *, .dash-right > * { animation: pw-rise 0.55s var(--pw-ease) 0.3s backwards; }
.cx-list > li:nth-child(1), .lx-grid > li:nth-child(1), .dx-grid > li:nth-child(1), .dash-feed > li:nth-child(1), .cx-side > :nth-child(1), .dash-right > :nth-child(1) { animation-delay: 0.1s; }
.cx-list > li:nth-child(2), .lx-grid > li:nth-child(2), .dx-grid > li:nth-child(2), .dash-feed > li:nth-child(2), .cx-side > :nth-child(2), .dash-right > :nth-child(2) { animation-delay: 0.15s; }
.cx-list > li:nth-child(3), .lx-grid > li:nth-child(3), .dx-grid > li:nth-child(3), .dash-feed > li:nth-child(3), .cx-side > :nth-child(3), .dash-right > :nth-child(3) { animation-delay: 0.2s; }
.cx-list > li:nth-child(4), .lx-grid > li:nth-child(4), .dx-grid > li:nth-child(4), .dash-feed > li:nth-child(4) { animation-delay: 0.25s; }
/* Arriving by a view transition, the page already moves as one, so these stay still */
html.pw-vt .pw-hero *, html.pw-vt .cx-list > li, html.pw-vt .lx-grid > li, html.pw-vt .dx-grid > li, html.pw-vt .dash-feed > li, html.pw-vt .cx-side > *, html.pw-vt .dash-right > * { animation: none; }

/* Feedback */
.dash-like.is-popping .dash-svg { animation: pw-pop 0.42s var(--pw-ease); }
.pv-btn:active { transform: scale(0.97); }
.cx-pill:active > span { transform: scale(0.97); }

/* Between members' pages */
@view-transition { navigation: auto; }
.dash-bar { view-transition-name: pw-bar; }
html.app-shell .topbar { view-transition-name: pw-topbar; }      /* the navy top bar stays still too between members' pages */
.pw-hero { view-transition-name: pw-hero; }
.dash-tab-line { view-transition-name: pw-tab-line; }
.cx-results-head .cx-tab[aria-current="page"] { view-transition-name: pw-seg; }
::view-transition-group(pw-hero) { animation-duration: 0.5s; animation-timing-function: var(--pw-ease); overflow: hidden; }
::view-transition-old(pw-hero) { animation: pw-fade-out 0.3s var(--pw-ease-in) both; }
::view-transition-new(pw-hero) { animation: pw-fade 0.5s var(--pw-ease) both; }
::view-transition-group(pw-tab-line), ::view-transition-group(pw-seg) { animation-duration: 0.45s; animation-timing-function: var(--pw-ease); }
::view-transition-old(root) { animation: pw-fade-out 0.16s var(--pw-ease-in) both; }
::view-transition-new(root) { animation: pw-rise 0.42s var(--pw-ease) 0.06s both; }

/* ---- The chat button (bubble of 2026-11-10, redesigned as a labelled pill on 2026-11-11) ----
   At the bottom right of every members' page but the inbox: a forest pill like the website's other forest actions, with
   the conversation icon in a lighter disc, the word "Chats" and a saffron count of unread messages and requests (saffron:
   something waits for you). It rises in once, lifts on hover, and when something new comes in (js/live.js adds .is-pop)
   it swells once while the three dots hop. While the panel of latest conversations is open the icon turns into a cross. */
.pw-chat { bottom: calc(var(--dash-bottom, 0px) + 22px); position: fixed; right: 22px; z-index: 840; }      /* under open menus (850), over the page */
.pw-chat-fab {
  align-items: center;
  animation: pw-fab-in 0.55s var(--pw-ease) 0.4s both;
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 45%, var(--secondary-dark) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 28px -6px rgba(13,59,19,0.45), 0 3px 8px rgba(13,59,19,0.18), inset 0 1px 0 rgba(255,255,255,0.16);
  color: var(--white);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
  height: 54px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 20px 0 11px;
  position: relative;
  transition: transform 0.28s var(--pw-ease), box-shadow 0.28s var(--pw-ease), background-color 0.2s;
  white-space: nowrap;
}
.pw-chat-fab:hover { box-shadow: 0 18px 34px -8px rgba(13,59,19,0.5), 0 4px 10px rgba(13,59,19,0.2), inset 0 1px 0 rgba(255,255,255,0.18); transform: translateY(-2px); }
.pw-chat-fab:active { transform: translateY(0) scale(0.97); }
.pw-chat-fab:focus-visible { border-radius: var(--radius-full); outline: 3px solid var(--gold-light); outline-offset: 3px; }   /* keeps the pill (style.css squares focused links) */
.pw-chat.is-open .pw-chat-fab { background: var(--secondary-dark); box-shadow: 0 6px 16px -6px rgba(13,59,19,0.5), inset 0 2px 6px rgba(0,0,0,0.25); transform: none; }
.pw-chat-ico {
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  display: grid;
  flex: none;
  height: 34px;
  place-items: center;
  width: 34px;
}
.pw-chat-ico svg { grid-area: 1 / 1; height: 21px; transition: opacity 0.22s var(--pw-ease), transform 0.3s var(--pw-ease); width: 21px; }
.pw-chat-x { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.pw-chat.is-open .pw-chat-talk { opacity: 0; transform: rotate(45deg) scale(0.5); }
.pw-chat.is-open .pw-chat-x { opacity: 1; transform: none; }
.pw-chat-dot { transform-box: fill-box; transform-origin: center; }
.pw-chat-label { display: inline-block; max-width: 9em; overflow: hidden; padding-bottom: 1px; transition: max-width 0.32s var(--pw-ease), opacity 0.2s var(--pw-ease); }
/* Phones: while the page scrolls down the pill shrinks to its icon, so it covers less of what is being read, and grows
   back when the reader scrolls up (js/live.js sets .is-compact). The count then sits on the icon's corner. */
.pw-chat.is-compact:not(.is-open) .pw-chat-fab { gap: 0; padding: 0 9px; }
.pw-chat.is-compact:not(.is-open) .pw-chat-label { max-width: 0; opacity: 0; }
.pw-chat.is-compact:not(.is-open) .pw-chat-badge { border: 2px solid var(--white); height: 22px; margin: 0; min-width: 22px; padding: 0 5px; position: absolute; right: -4px; top: -4px; }
.pw-chat-badge {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(80,35,0,0.35);
  color: var(--white);
  display: inline-flex;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-left: -2px;
  margin-right: -8px;
  min-width: 24px;
  padding: 0 7px;
}
.pw-chat-badge[hidden] { display: none; }
.pw-chat-fab.is-pop { animation: pw-swell 0.6s var(--pw-ease); }
.pw-chat-fab.is-pop .pw-chat-dot { animation: pw-dot 0.7s var(--pw-ease) both; }
.pw-chat-fab.is-pop .pw-chat-dot:nth-of-type(2) { animation-delay: 0.08s; }
.pw-chat-fab.is-pop .pw-chat-dot:nth-of-type(3) { animation-delay: 0.16s; }
.pw-chat-badge.is-pop, .dash-badge.is-pop { animation: pw-pop 0.45s var(--pw-ease); }
@keyframes pw-fab-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pw-swell { 0%, 100% { transform: none; } 35% { transform: scale(1.06); } 65% { transform: scale(0.98); } }
@keyframes pw-dot { 0%, 100% { transform: none; } 40% { transform: translateY(-2.5px); } }

.pw-chat-panel {
  animation: pw-panel-in 0.34s var(--pw-ease) both;
  background: var(--white);
  border-radius: 22px;
  bottom: 68px;
  box-shadow: 0 26px 64px rgba(48,43,36,0.28), 0 4px 12px rgba(48,43,36,0.1);
  display: flex;
  flex-direction: column;
  max-height: min(560px, calc(100vh - var(--dash-top, 72px) - var(--dash-bottom, 0px) - 130px));
  overflow: hidden;
  position: absolute;
  right: 0;
  transform-origin: bottom right;
  width: min(380px, calc(100vw - 32px));
}
.pw-chat-panel[hidden] { display: none; }
.pw-chat-panel.is-closing { animation: pw-panel-out 0.17s var(--pw-ease-in) both; }
@keyframes pw-panel-in { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes pw-panel-out { to { opacity: 0; transform: translateY(8px) scale(0.95); } }
.pw-chat-head {
  align-items: center;
  background: var(--pw-pattern), linear-gradient(155deg, #0A2A0A 0%, #1B5E20 60%, #0D3B13 100%);
  color: var(--white);
  display: flex;
  flex: none;
  gap: 4px;
  padding: 12px 8px 12px 18px;
}
.pw-chat-title { color: var(--white); flex: 1; font-size: 1.22rem; font-weight: 800; line-height: 1.2; }
.pw-chat-all { align-items: center; border-radius: var(--radius-full); color: var(--gold-light); display: inline-flex; font-size: 0.92rem; font-weight: 700; gap: 6px; min-height: 40px; padding: 0 10px; }
.pw-chat-all:hover { background: var(--pw-glass); }
.pw-chat-close { align-items: center; border-radius: 50%; color: var(--white); display: inline-flex; flex: none; height: 40px; justify-content: center; width: 40px; }
.pw-chat-close:hover { background: var(--pw-glass); }
.pw-chat-close .dash-svg { height: 20px; width: 20px; }
.pw-chat-list { flex: 1; list-style: none; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.pw-chat-row.is-entering { animation: pw-rise 0.42s var(--pw-ease) backwards; }
.pw-chat-link { align-items: center; border-radius: 14px; color: var(--gray-800); display: flex; gap: 12px; min-height: 64px; padding: 9px 10px; transition: background-color var(--transition-fast); }
.pw-chat-link:hover { background: var(--cream); }
.pw-chat-row.is-unread .pw-chat-link { background: rgba(27,94,32,0.06); }
.pw-chat-link .cm-avatar { --cm-avatar: 46px; flex: none; }
.pw-chat-text { flex: 1; min-width: 0; }
.pw-chat-top { align-items: center; display: flex; gap: 4px; min-width: 0; }
.pw-chat-name { color: var(--gray-900); font-size: 0.98rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-chat-top .cx-tick { margin-left: 2px; }
.pw-chat-when { color: var(--gray-500); flex: none; font-size: 0.78rem; margin-left: auto; padding-left: 8px; }
.pw-chat-sub { color: var(--gray-600); display: block; font-size: 0.9rem; line-height: 1.4; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-chat-row.is-unread .pw-chat-sub { color: var(--gray-900); font-weight: 600; }
.pw-chat-ended { background: var(--gray-100); border-radius: var(--radius-full); font-size: 0.74rem; margin-left: 6px; padding: 1px 8px; }
.pw-chat-unread { align-items: center; background: var(--secondary); border-radius: var(--radius-full); color: var(--white); display: inline-flex; flex: none; font-size: 0.76rem; font-weight: 800; height: 22px; justify-content: center; min-width: 22px; padding: 0 6px; }
.pw-chat-empty { color: var(--gray-600); font-size: 0.95rem; line-height: 1.5; padding: 28px 22px; text-align: center; }
.pw-chat-loading { display: flex; gap: 6px; justify-content: center; padding: 30px 0; }
.pw-chat-loading[hidden] { display: none; }
.pw-chat-loading span { animation: pw-dot 0.9s ease-in-out infinite; background: var(--sandal); border-radius: 50%; height: 8px; width: 8px; }
.pw-chat-loading span:nth-child(2) { animation-delay: 0.12s; }
.pw-chat-loading span:nth-child(3) { animation-delay: 0.24s; }
/* New messages in an open conversation arrive gently */
.ib-bubble-row.is-live { animation: pw-rise 0.38s var(--pw-ease) backwards; }

/* ---- The chat box (owner's request of 2026-11-13, like Facebook's) ----
   A conversation from the panel, in the panel's place: the same card and forest header, the inbox's bubbles, and a
   message box at the foot. css/inbox.css isn't loaded outside the inbox, so the bubbles are restated here. */
.pw-dock {
  animation: pw-panel-in 0.3s var(--pw-ease) both;
  background: var(--white);
  border-radius: 22px;
  bottom: 68px;
  box-shadow: 0 26px 64px rgba(48,43,36,0.28), 0 4px 12px rgba(48,43,36,0.1);
  display: flex;
  flex-direction: column;
  height: min(520px, calc(100vh - var(--dash-top, 72px) - var(--dash-bottom, 0px) - 130px));
  overflow: hidden;
  position: absolute;
  right: 0;
  transform-origin: bottom right;
  width: min(370px, calc(100vw - 32px));
}
.pw-dock[hidden] { display: none; }
.pw-dock-head {
  align-items: center;
  background: var(--pw-pattern), linear-gradient(155deg, #0A2A0A 0%, #1B5E20 60%, #0D3B13 100%);
  color: var(--white);
  display: flex;
  flex: none;
  gap: 2px;
  padding: 8px 6px 8px 8px;
}
.pw-dock-who { align-items: center; border-radius: 14px; color: var(--white); display: flex; flex: 1; gap: 10px; min-width: 0; padding: 5px 8px; }
.pw-dock-who:hover { background: var(--pw-glass); }
.pw-dock-who:focus-visible, .pw-dock-tool:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.pw-dock-who .cm-avatar { --cm-avatar: 38px; flex: none; }
.pw-dock-name { align-items: center; display: flex; font-size: 1.02rem; font-weight: 800; gap: 4px; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-dock-tool { align-items: center; border-radius: 50%; color: var(--white); display: inline-flex; flex: none; height: 40px; justify-content: center; width: 40px; }
.pw-dock-tool:hover { background: var(--pw-glass); }
.pw-dock-tool .dash-svg { height: 20px; width: 20px; }
.pw-dock-body { background: #FBF8F3; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 10px; }
.pw-dock-body:focus { outline: none; }
.pw-dock .ib-bubbles { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pw-dock .ib-bubble-row { display: flex; min-width: 0; }
.pw-dock .ib-bubble-row.is-mine { justify-content: flex-end; }
.pw-dock .ib-bubble { border-radius: 16px; max-width: 82%; min-width: 0; padding: 7px 12px 5px; }
.pw-dock .is-theirs .ib-bubble { background: var(--white); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(48,43,36,0.08); color: var(--gray-900); }
.pw-dock .is-mine .ib-bubble { background: var(--secondary); border-bottom-right-radius: 5px; color: var(--white); }
.pw-dock .ib-bubble-body { font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.pw-dock .ib-bubble-date { color: var(--gray-600); font-size: 0.7rem; line-height: 1.3; margin-top: 2px; text-align: right; }
.pw-dock .is-mine .ib-bubble-date { color: rgba(255,255,255,0.85); }
.pw-dock-note { background: #FDECEA; color: #8B1A1A; flex: none; font-size: 0.88rem; line-height: 1.45; margin: 0; padding: 10px 14px; }
.pw-dock-note.is-ended { background: var(--gray-100); color: var(--gray-700); text-align: center; }
.pw-dock-note[hidden] { display: none; }
.pw-dock-form { align-items: flex-end; background: var(--white); border-top: 1px solid var(--gray-100); display: flex; flex: none; gap: 8px; margin: 0; padding: 10px 10px 12px 12px; }
.pw-dock-form[hidden] { display: none; }
.pw-dock-input { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 20px; color: var(--gray-900); flex: 1; font: inherit; font-size: 0.95rem; line-height: 1.4; max-height: 120px; min-height: 42px; min-width: 0; padding: 10px 14px; resize: none; }
.pw-dock-input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(27,94,32,0.12); outline: none; }
.pw-dock-send { align-items: center; background: var(--secondary); border-radius: 50%; color: var(--white); display: inline-flex; flex: none; height: 42px; justify-content: center; width: 42px; }
.pw-dock-send:hover { background: var(--secondary-dark); }
.pw-dock-send:disabled { opacity: 0.6; }
.pw-dock-send:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.pw-dock-send .dash-svg { height: 19px; width: 19px; }

/* ---- "Ask a question" as a pop-up (owner's request of 2026-11-10) ----
   A white card over the dimmed page: a forest header with the cross pattern, the posting rules on sandal cream, then the
   form, its buttons staying in reach at the bottom. It rises in, gives a short shake when something needs fixing, and on
   phones it is a sheet from the bottom of the screen. */
html:has(.pw-dialog[open]) { overflow: hidden; }
.pw-dialog {
  background: transparent;
  border: 0;
  color: var(--gray-800);
  margin: auto;                     /* the site's reset zeroes every margin, and a dialog centres by margin */
  max-height: calc(100dvh - 32px);
  max-width: none;
  overflow: visible;
  padding: 0;
  width: min(720px, calc(100vw - 24px));
}
.pw-dialog::backdrop { backdrop-filter: blur(3px); background: rgba(10,26,12,0.55); }
.pw-dialog[open] { animation: pw-dlg-in 0.36s var(--pw-ease) both; }
.pw-dialog[open]::backdrop { animation: pw-fade 0.3s var(--pw-ease) both; }
.pw-dialog.is-closing { animation: pw-dlg-out 0.18s var(--pw-ease-in) both; }
.pw-dialog.is-closing::backdrop { animation: pw-fade-out 0.18s var(--pw-ease-in) both; }
@keyframes pw-dlg-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pw-dlg-out { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes pw-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.pw-dialog-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 6px 18px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.pw-dialog-head {
  align-items: center;
  background: var(--pw-pattern), linear-gradient(155deg, #0A2A0A 0%, #1B5E20 60%, #0D3B13 100%);
  color: var(--white);
  display: flex;
  flex: none;
  gap: 14px;
  padding: 18px 14px 18px 22px;
}
.pw-dialog-ico { align-items: center; background: rgba(255,255,255,0.13); border-radius: 14px; display: flex; flex: none; font-size: 1.4rem; height: 48px; justify-content: center; width: 48px; }
.pw-dialog-heads { flex: 1; min-width: 0; }
.pw-dialog-title { color: var(--white); font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.pw-dialog-sub { color: var(--pw-on-dark); font-size: 0.95rem; line-height: 1.5; margin-top: 2px; }
.pw-dialog-close { align-items: center; align-self: flex-start; border-radius: 50%; color: var(--white); display: inline-flex; flex: none; height: 44px; justify-content: center; transition: background-color var(--transition-fast); width: 44px; }
.pw-dialog-close:hover { background: var(--pw-glass); }
.pw-dialog-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.pw-dialog-close .dash-svg { height: 22px; width: 22px; }
.pw-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 0; }
.pw-dialog-body > .pv-btn { margin: 4px 0 22px; }
.pw-dialog-rules { background: var(--sandal-cream); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--sandal-light); display: grid; gap: 6px; list-style: none; margin-bottom: 16px; padding: 12px 16px; }
.pw-dialog-rules li { color: var(--gray-800); font-size: 0.9rem; line-height: 1.5; padding-left: 16px; position: relative; }
.pw-dialog-rules li::before { background: var(--sandal-dark); border-radius: 50%; content: ''; height: 6px; left: 0; position: absolute; top: 0.6em; width: 6px; }
.pw-dialog [data-pw-ask-errors] { margin-bottom: 14px; }
.pw-dialog [data-pw-ask-errors].is-shake { animation: pw-shake 0.42s var(--pw-ease); }
.pw-dialog .cx-field { margin-bottom: 14px; }
.pw-dialog-actions {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 14px -22px 0;
  padding: 14px 22px 18px;
  position: sticky;
}
@media (max-width: 640px) {
  .pw-dialog { margin: auto 0 0; max-height: 92dvh; width: 100vw; }
  .pw-dialog-card { border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .pw-dialog[open] { animation-name: pw-sheet-in; }
  .pw-dialog.is-closing { animation-name: pw-sheet-out; }
  .pw-dialog-head { padding: 14px 10px 14px 16px; }
  .pw-dialog-ico { height: 40px; width: 40px; }
  .pw-dialog-title { font-size: 1.2rem; }
  .pw-dialog-body { padding: 14px 16px 0; }
  .pw-dialog-actions { margin: 12px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .pw-dialog-actions .pv-btn { flex: 1; }
}
@keyframes pw-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pw-sheet-out { to { transform: translateY(100%); } }

/* ---- Wider and narrower ---- */
@media (max-width: 1100px) {
  .pw-door-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .cx-layout, .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .cx-main, .cx-side, .dash-main, .dash-right { justify-self: center; max-width: 760px; width: 100%; }
}
@media (max-width: 760px) {
  .pw-chat { bottom: calc(var(--dash-bottom, 0px) + 14px); right: 14px; }
  .pw-chat-fab { font-size: 1rem; gap: 8px; height: 50px; padding: 0 17px 0 9px; }
  .pw-chat-ico { height: 32px; width: 32px; }
  .pw-chat-panel { bottom: calc(var(--dash-bottom, 0px) + 74px); left: 8px; position: fixed; right: 8px; width: auto; }
  .pw-dock { bottom: calc(var(--dash-bottom, 0px) + 74px); height: min(72vh, calc(100vh - var(--dash-bottom, 0px) - 110px)); left: 8px; position: fixed; right: 8px; width: auto; }
  .pw-hero { padding: 18px 0 16px; }
  .pw-hero-inner { gap: 12px; }
  .pw-hero-top { align-items: stretch; flex-direction: column; }
  .pw-hero-sub { font-size: 0.95rem; }
  .pw-hero-action { width: 100%; }
  .pw-door-list { gap: 8px; }
  .pw-door { padding: 10px 12px; }
  .pw-door-ico { font-size: 1.15rem; height: 40px; width: 40px; }
  .pw-door-text small { font-size: 0.82rem; }
  .pw-door-go { display: none; }
  .cx-results-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .cx-results-head .cx-tabs { align-self: flex-start; max-width: 100%; }
}
/* Small phones: the doors as a 2 by 2 grid of icon and title, so the band stays short */
@media (max-width: 520px) {
  .pw-door-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-door { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px; }
  .pw-door-text small { display: none; }
  .pw-door-text strong { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-hero *, .pw-door-list > li, .cx-list > li, .lx-grid > li, .dx-grid > li, .dash-feed > li, .cx-side > *, .dash-right > *, .pv-banner,
  .dash-drop[open] > .dash-panel, .dash-compose[open] .dash-compose-form, .dash-like.is-popping .dash-svg { animation: none !important; }
  .pw-chat-fab, .pw-chat-fab.is-pop, .pw-chat-fab.is-pop .pw-chat-dot, .pw-chat-badge.is-pop, .dash-badge.is-pop, .pw-chat-panel, .pw-chat-panel.is-closing, .pw-dock, .pw-chat-row.is-entering, .ib-bubble-row.is-live, .pw-chat-loading span { animation: none !important; }
  .pw-dialog[open], .pw-dialog[open]::backdrop, .pw-dialog.is-closing, .pw-dialog.is-closing::backdrop, .pw-dialog [data-pw-ask-errors].is-shake { animation: none !important; }
  .pw-door, .pw-door-ico, .pw-door-go, .cx-q, .lx-card, .dx-card, .pw-back span { transition: none; }
  .pw-door:hover, .cx-q:hover, .lx-card:hover, .dx-card:hover { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.12s !important; animation-delay: 0s !important; }
  ::view-transition-new(root) { animation-name: pw-fade !important; }
}

/* ---- My account (redesign of 2026-11-10) ----
   The hero band with the page's sections as chips, then a card of who you are beside the settings, in the order people use
   them. Cards take the members' area look (20px corners, the soft shadow, no border). The delete section folds away. */
.acct-page { padding: 24px 0 64px; }
.acct-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: var(--pw-side-w) minmax(0, 1fr); }
.acct-side { align-content: start; display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1024px) and (min-height: 760px) {
  .acct-side { position: sticky; top: calc(var(--dash-bar-h, 72px) + 18px); }
}
.acct-main { align-content: start; display: grid; gap: 18px; min-width: 0; }
.acct-main .portal-page-banners:not(:has(*)) { display: none; }     /* no notices: no empty row above the first card */
.acct-main .portal-banner { margin-bottom: 0; }
.acct-page .portal-card {
  border: 0;
  border-radius: var(--pw-card-radius);
  box-shadow: var(--pw-card-shadow);
  padding: 24px 26px;
  scroll-margin-top: calc(var(--dash-bar-h, 72px) + 16px);
}
.acct-page .portal-card h2 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 800; }
.acct-page .portal-sub { margin-bottom: 14px; }

/* Who you are */
.acct-id { padding: 22px; }
.acct-id-top { align-items: center; display: flex; gap: 14px; min-width: 0; }
.acct-id .cm-avatar.acct-avatar { --cm-avatar: 64px; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--sandal-light); flex: none; font-size: 1.6rem; }
.acct-id-names { min-width: 0; }
.acct-id-name { color: var(--gray-900); font-family: var(--font-serif); font-size: 1.25rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.acct-id-user { color: var(--gray-600); font-size: 0.95rem; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.acct-id-tags { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.acct-tag { background: rgba(27,94,32,0.08); border-radius: var(--radius-full); color: var(--secondary-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1.4; padding: 5px 12px; text-transform: uppercase; }
.acct-facts { border-top: 1px solid var(--gray-100); display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; }
.acct-facts > div { min-width: 0; }
.acct-facts dt { color: var(--gray-600); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase; }
.acct-facts dd { color: var(--gray-900); font-size: 0.98rem; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.acct-facts small { display: block; font-size: 0.84rem; font-weight: 700; }
.acct-facts small.is-ok { color: var(--secondary); }
.acct-facts small.is-no { color: var(--primary-dark); }
.acct-note { color: var(--gray-600); font-size: 0.86rem; line-height: 1.5; margin-top: 10px; }
.acct-link { background: var(--cream); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--gray-100); margin-top: 16px; padding: 10px 14px; }
.acct-link-label { color: var(--gray-600); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase; }
.acct-page .portal-card a.acct-link-url { color: var(--secondary); font-size: 0.97rem; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.acct-page .portal-card a.acct-link-url:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-id-actions { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.acct-id-actions .portal-btn { justify-content: center; min-width: 0; padding-left: 10px; padding-right: 10px; text-align: center; width: 100%; }
.acct-signout { border-top: 1px solid var(--gray-100); margin-top: 16px; padding-top: 8px; }
.acct-signout-btn { align-items: center; border-radius: var(--radius-full); color: var(--gray-700); display: inline-flex; font-weight: 700; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; transition: background-color var(--transition-fast), color var(--transition-fast); }
.acct-signout-btn:hover { background: rgba(139,26,26,0.06); color: #8B1A1A; }
.acct-signout-btn .dash-svg { height: 18px; width: 18px; }
.acct-side #inbox { padding: 18px 22px; }
.acct-side #inbox h2 { font-size: 1.12rem; }
.acct-side #inbox .portal-sub { margin-bottom: 12px; }

/* The forms */
.acct-row .acct-row-gap { display: block; }
.acct-subsection { border-top: 1px dashed var(--gray-200); margin-top: 4px; padding-top: 16px; }
.acct-form-foot { margin-top: 4px; }
.acct-pair { align-items: start; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* An organisation's documents for the verified badge (owner's request of 2026-11-14): a cream panel like the farm address's,
   each saved document a white row (a forest file tile, its type in bold, the file name and date, and a Remove tick that
   greys the row and strikes it through until the form is saved), then rows of type and file for new ones, white inside. */
.acct-docs { background: var(--cream); border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gray-200); margin: 0 0 18px; min-width: 0; padding: 14px 16px 12px; }
.acct-docs-legend { align-items: center; color: var(--secondary-dark); display: inline-flex; float: left; font-size: 0.78rem; font-weight: 800; gap: 6px; letter-spacing: 0.06em; margin-bottom: 10px; padding: 0; text-transform: uppercase; width: 100%; }
.acct-docs-legend + * { clear: left; }
.acct-docs-legend-ico { align-items: center; display: inline-flex; }
.acct-docs-legend-ico .dash-svg { height: 15px; width: 15px; }
.acct-docs .portal-input { background: var(--white); }
.acct-doc-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.acct-doc {
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--gray-100), 0 1px 2px rgba(42,30,18,0.05);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px 10px 10px 12px;
  transition: background-color var(--transition-fast);
}
.acct-doc-ico { align-items: center; background: rgba(27,94,32,0.08); border-radius: 10px; color: var(--secondary); display: inline-flex; flex: none; height: 40px; justify-content: center; width: 40px; }
.acct-doc-ico .dash-svg { height: 20px; width: 20px; }
.acct-doc-text { display: grid; gap: 2px; min-width: 0; transition: opacity var(--transition-fast); }
.acct-doc-type { color: var(--gray-900); font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.acct-doc-meta { color: var(--gray-600); display: flex; flex-wrap: wrap; font-size: 0.85rem; gap: 0 12px; line-height: 1.45; min-width: 0; }
.acct-doc-name { min-width: 0; overflow-wrap: anywhere; }
.acct-doc-date { white-space: nowrap; }
.acct-doc-remove {
  align-items: center;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--gray-200);
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.acct-doc-remove input { accent-color: var(--red-sandal); flex: none; height: 18px; margin: 0; width: 18px; }
.acct-doc-remove:hover { background: var(--portal-danger-bg); color: var(--red-sandal); }
.acct-doc:has(.acct-doc-remove input:checked) { background: #FDF3F1; }
.acct-doc:has(.acct-doc-remove input:checked) .acct-doc-text { opacity: 0.6; text-decoration: line-through; }
.acct-doc:has(.acct-doc-remove input:checked) .acct-doc-remove { background: var(--portal-danger-bg); box-shadow: inset 0 0 0 1px var(--portal-danger-line); color: var(--red-sandal); }
.acct-docs .acct-doc-note { margin: 8px 0 14px; }
.acct-doc-rows { display: grid; }
.acct-doc-row { align-items: end; display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 44px; }
.acct-doc-row:has(> .acct-doc-row-x[hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.acct-doc-row .portal-field { margin-bottom: 12px; }
.acct-doc-row-x { align-items: center; border-radius: 50%; color: var(--gray-600); display: inline-flex; height: 44px; justify-content: center; margin-bottom: 14px; width: 44px; }
.acct-doc-row-x:hover { background: var(--portal-danger-bg); color: var(--red-sandal); }
.acct-doc-row-x .dash-svg { height: 18px; width: 18px; }
.acct-doc-row-x[hidden], .acct-doc-add[hidden], .acct-doc-check[hidden] { display: none; }
.acct-doc-add { gap: 6px; margin: 0 0 4px; }
.acct-docs .acct-doc-limits { margin: 6px 0 0; }
.acct-doc-check { margin: 12px 0 0; }
@media (min-width: 641px) {     /* side by side, the labels above the first row say it for every row (screen readers still hear each) */
  .acct-doc-row + .acct-doc-row .portal-label { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: 0; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
}
@media (max-width: 640px) {
  .acct-docs { padding: 12px 12px 10px; }
  .acct-doc { grid-template-columns: auto minmax(0, 1fr); }
  .acct-doc-remove { grid-column: 2; justify-self: start; }
  .acct-doc-row, .acct-doc-row:has(> .acct-doc-row-x[hidden]) { grid-template-columns: minmax(0, 1fr) 44px; }
  .acct-doc-row > .portal-field:first-child { grid-column: 1 / -1; }
  .acct-doc-row:has(> .acct-doc-row-x[hidden]) > .portal-field:nth-child(2) { grid-column: 1 / -1; }
  .acct-doc-row + .acct-doc-row { border-top: 1px dashed var(--gray-200); padding-top: 12px; }
  .acct-docs .portal-btn.acct-doc-add { width: 100%; }
}

/* The badge for a verified organisation's own website: the badge on a cream stage beside its code in a read-only box, with a
   Copy button that only shows with JavaScript. Side by side while both fit, the stage first; otherwise stacked. */
.acct-embed-body { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.acct-embed-preview { flex: 1 1 270px; max-width: 100%; min-width: 0; }
.acct-embed-code { flex: 999 1 320px; min-width: 0; }
.acct-embed-label { color: var(--secondary-dark); display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.4; margin-bottom: 8px; text-transform: uppercase; }
.acct-embed-stage { align-items: center; background: var(--cream); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gray-200); display: flex; justify-content: center; min-height: 112px; padding: 22px 14px; }
.acct-embed-stage img { display: block; height: auto; max-width: 100%; }
.acct-page textarea.acct-embed-text { color: var(--gray-900); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 0.84rem; line-height: 1.55; min-height: 0; overflow-wrap: anywhere; word-break: break-all; }
.acct-embed-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.acct-embed-actions .portal-btn[hidden] { display: none; }
.acct-embed-status { color: var(--gray-700); font-size: 0.9rem; font-weight: 600; line-height: 1.45; margin: 0; min-width: 0; }
.acct-embed-status.is-ok { color: var(--secondary); }
.acct-embed-note { border-top: 1px dashed var(--gray-200); margin-top: 18px; padding-top: 14px; }
@media (max-width: 640px) {      /* narrow lines: room for the whole code without scrolling the box */
  .acct-page textarea.acct-embed-text { min-height: 10.5rem; }
}

/* Delete account: a card with the button, the form in a pop-up (a red header over the dimmed page; a sheet on phones) */
.acct-danger-row { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.acct-danger-text { flex: 1 1 320px; min-width: 0; }
.acct-page .acct-danger h2 { color: #8B1A1A; font-size: 1.2rem; }
.acct-danger-text .portal-sub { margin: 4px 0 0; max-width: 64ch; }
.acct-danger-open { flex: none; }
html:has(.acct-del.is-modal[open]) { overflow: hidden; }
.acct-del {
  background: transparent;
  border: 0;
  color: var(--gray-800);
  max-height: calc(100dvh - 32px);
  max-width: none;
  overflow: visible;
  padding: 0;
  width: min(520px, calc(100vw - 24px));
}
.acct-del.is-modal { margin: auto; }
.acct-del::backdrop { backdrop-filter: blur(3px); background: rgba(26,8,8,0.55); }
.acct-del.is-modal[open] { animation: pw-dlg-in 0.32s var(--pw-ease) both; }
.acct-del.is-modal[open]::backdrop { animation: pw-fade 0.28s var(--pw-ease) both; }
.acct-del.is-closing { animation: pw-dlg-out 0.17s var(--pw-ease-in) both; }
.acct-del.is-closing::backdrop { animation: pw-fade-out 0.17s var(--pw-ease-in) both; }
.acct-del-card { background: var(--white); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 6px 18px rgba(0,0,0,0.12); display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; }
.acct-del-head { align-items: center; background: linear-gradient(155deg, #3E0B0B 0%, #8B1A1A 62%, #5A1111 100%); color: var(--white); display: flex; flex: none; gap: 14px; padding: 16px 12px 16px 20px; }
.acct-del-ico { align-items: center; background: rgba(255,255,255,0.14); border-radius: 14px; display: flex; flex: none; font-size: 1.35rem; height: 46px; justify-content: center; width: 46px; }
.acct-del-title { color: var(--white); flex: 1; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin: 0; min-width: 0; }
.acct-del-close { align-items: center; border-radius: 50%; color: var(--white); display: inline-flex; flex: none; height: 44px; justify-content: center; transition: background-color var(--transition-fast); width: 44px; }
.acct-page .portal-card .acct-del-close { color: var(--white); text-decoration: none; }
.acct-del-close:hover { background: rgba(255,255,255,0.14); }
.acct-del-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.acct-del-close .dash-svg { height: 22px; width: 22px; }
.acct-del-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 20px; }
.acct-del-warn { background: rgba(139,26,26,0.06); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(139,26,26,0.18); color: var(--gray-900); font-size: 0.97rem; line-height: 1.55; margin-bottom: 16px; padding: 12px 14px; }
.acct-del .portal-danger-form { max-width: none; }
.acct-del-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.acct-page .portal-card .acct-del-actions a.portal-btn { text-decoration: none; }
/* Without JavaScript (opened with ?delete=1) the same form shows inside the card */
.acct-del[open]:not(.is-modal) { display: block; margin: 18px 0 0; position: static; width: 100%; }
.acct-del[open]:not(.is-modal) .acct-del-card { box-shadow: inset 0 0 0 1px rgba(139,26,26,0.25); max-height: none; }
@media (max-width: 640px) {
  .acct-del.is-modal { margin: auto 0 0; max-height: 92dvh; width: 100vw; }
  .acct-del.is-modal .acct-del-card { border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .acct-del.is-modal[open] { animation-name: pw-sheet-in; }
  .acct-del.is-closing { animation-name: pw-sheet-out; }
  .acct-del-body { padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .acct-del-actions .portal-btn { flex: 1; }
  .acct-danger-open { width: 100%; }
}

@media (max-width: 1023px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); }
  .acct-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
}
@media (max-width: 760px) {
  .acct-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .acct-row .acct-row-gap { display: none; }
  .acct-page { padding-top: 16px; }
  .acct-page .portal-card { padding: 20px 16px; }
  .acct-id { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .acct-signout-btn, .acct-del-close { transition: none; } .acct-del[open], .acct-del[open]::backdrop, .acct-del.is-closing { animation: none !important; } }

/* ---- Search in the bar (owner's request of 2026-11-10, dash_find_widget(), js/find.js) ----
   The icon opens a rounded search box over the bar, anchored at the icon and growing leftwards, with the results in a white
   panel under it. On phones both span the bar's width. Without JavaScript the icon is a link to /search. */
.dash-find { display: inline-flex; position: relative; }
.dash-find.is-open .dash-tool-search { visibility: hidden; }      /* the box sits where the icon was */
.dash-find-box {
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--secondary);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(16, 32, 20, 0.16);
  display: flex;
  gap: 8px;
  height: 48px;
  padding: 0 5px 0 14px;
  position: absolute;
  right: 0;
  top: calc(50% - 24px);
  width: var(--find-w, min(440px, calc(100vw - 32px)));   /* js/find.js measures the room beside the tabs */
  z-index: 70;
}
.dash-find-box[hidden] { display: none; }
/* Not enough room beside the section tabs: they step aside while the search is open, rather than sit under the box */
.dash-bar .dash-tabs { transition: opacity 0.18s ease, visibility 0.18s; }
.dash-bar.is-finding .dash-tabs { opacity: 0; pointer-events: none; visibility: hidden; }
.dash-find.is-open .dash-find-box { animation: dashFindIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes dashFindIn { from { clip-path: inset(0 0 0 calc(100% - 48px) round 999px); opacity: 0.4; } to { clip-path: inset(0 0 0 0 round 999px); opacity: 1; } }
.dash-find-box:focus-within { box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.14), 0 10px 28px rgba(16, 32, 20, 0.16); }
.dash-find-ico { color: var(--secondary); display: inline-flex; flex: none; }
.dash-find-ico .dash-svg { height: 20px; width: 20px; }
.dash-find-input {
  background: transparent;
  border: 0;
  color: var(--gray-900);
  flex: 1 1 auto;
  font: inherit;
  font-size: 1rem;
  height: 100%;
  min-width: 0;
  outline: none;
  padding: 0;
}
.dash-find-input::placeholder { color: var(--gray-600); }
.dash-find-input::-webkit-search-cancel-button { display: none; }
.dash-find-close {
  align-items: center;
  background: var(--gray-100);
  border: 0;
  border-radius: 50%;
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  flex: none;
  height: 38px;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  width: 38px;
}
.dash-find-close:hover { background: var(--pv-tint); color: var(--secondary); }
.dash-find-close:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.dash-find-close .dash-svg { height: 16px; width: 16px; }
.dash-find-close { text-decoration: none; }                   /* a link back to the page, for browsers without JavaScript */
/* Opened without JavaScript (?find=): no script measures the room, so the tabs step aside */
@media (min-width: 761px) { html:not(.js) .dash-bar:has(.dash-find.is-open) .dash-tabs { visibility: hidden; } }
.dash-find-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(16, 32, 20, 0.18);
  max-height: min(70vh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(50% + 34px);
  width: min(520px, calc(100vw - 32px));
  z-index: 70;
}
.dash-find-panel[hidden] { display: none; }
.dash-find-count { color: var(--gray-600); font-size: 0.85rem; margin: 6px 10px 4px; }
.dash-find-group + .dash-find-group { border-top: 1px solid var(--gray-100); margin-top: 4px; padding-top: 4px; }
.dash-find-panel { overflow-wrap: break-word; }      /* whole words: the bar's own rule breaks anywhere */
.dash-find-head { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 8px 10px 4px; }
.dash-find-head h3 { align-items: center; color: var(--secondary-dark); display: flex; font-size: 0.84rem; font-weight: 800; gap: 6px; margin: 0; white-space: nowrap; }
.dash-find-head a { color: var(--secondary); font-size: 0.84rem; font-weight: 700; white-space: nowrap; }
.dash-find-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash-find-group ul { list-style: none; margin: 0; padding: 0; }
.dash-find-item { align-items: center; border-radius: 10px; color: var(--gray-900); display: flex; gap: 12px; min-height: 52px; padding: 7px 10px; text-decoration: none; }
.dash-find-item:hover { background: var(--pv-tint); }
.dash-find-item:focus-visible { background: var(--pv-tint); box-shadow: inset 0 0 0 2px var(--secondary); outline: none; }
.dash-find-item .dash-avatar { flex: none; }
/* People (2026-11-13): the person's link, then their Connect control on the right */
.dash-find-person { align-items: center; display: flex; gap: 8px; padding-right: 6px; }
.dash-find-person .dash-find-item { flex: 1; min-width: 0; }
.dash-find-connect { margin: 0; }
.dash-find-act { flex: none; font-size: 0.82rem; min-height: 36px; padding: 6px 14px; white-space: nowrap; }
.dash-find-person .dash-find-excerpt { -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box; white-space: normal; }   /* the State stays in view on a phone */
.dash-find-tick { align-items: center; background: var(--secondary); border-radius: 50%; color: var(--white); display: inline-flex; font-size: 0.62rem; height: 15px; justify-content: center; margin-left: 4px; vertical-align: 1px; width: 15px; }
.dash-find-img { align-items: center; background: var(--gray-100); border-radius: 10px; display: inline-flex; flex: none; font-size: 1.1rem; height: 40px; justify-content: center; overflow: hidden; width: 40px; }
.dash-find-img img { display: block; height: 100%; object-fit: cover; width: 100%; }
.dash-find-text { display: flex; flex-direction: column; min-width: 0; }
.dash-find-title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-find-excerpt { color: var(--gray-600); font-size: 0.84rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-find-note { color: var(--gray-700); font-size: 0.92rem; margin: 10px; }
.dash-find-note.is-busy { color: var(--gray-600); }
.dash-find-note.is-err { color: #8B1A1A; }
.dash-find-empty { padding: 16px 12px 12px; text-align: center; }
.dash-find-empty strong { color: var(--gray-900); display: block; font-size: 1rem; }
.dash-find-empty p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.5; margin: 4px auto 12px; max-width: 40ch; }
@media (max-width: 760px) {
  .dash-bar-inner { position: relative; }
  .dash-find { position: static; }                                 /* the box and panel span the bar instead */
  .dash-find-box { left: 12px; right: 12px; top: calc(50% - 23px); height: 46px; width: auto; }
  .dash-find-panel { left: 8px; right: 8px; top: calc(100% + 6px); width: auto; max-height: calc(100vh - var(--dash-bar-h) - var(--dash-bottom, 0px) - 24px); }
}
@media (prefers-reduced-motion: reduce) { .dash-find.is-open .dash-find-box { animation: none; } .dash-find-close { transition: none; } }
