html {
    font-size: 14px;
}

/* every page fills at least the window, so the footer sits at the bottom (after the content on a longer page) */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* a visitor's header links on one row: the logo on the left, Sign in and Join Weavo on the right. The row is always the logo's
   height, so the header is the same size on Weavo Home, which has no header logo (owner, 2026-10-10) */
header nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    padding: 0.25rem 1rem;
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* the Weavo logo at the start of the header, on every page but Weavo Home (weavo-logo.svg, a square viewBox around the artwork, shown at 32px) */
.nav-logo {
    display: flex;
    margin-right: 0.5rem;
}

.nav-logo img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Sign out is a POST form; its button looks like the header links beside it (owner, 2026-10-08) */
.nav-form {
    display: inline;
    margin: 0;
}

.nav-link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #0000ee; /* the browser's link blue, as the header links */
    text-decoration: underline;
    cursor: pointer;
}

main {
    padding: 1rem;
    flex: 1 0 auto;
}

/* A signed-in User (owner, 2026-10-18): a full-width header - the Weavo logo top left, the Display name and profile image top right -
   and below it the links in one column on the left (the pages, then Member profile, My membership and Account settings, and Admin, one under
   another, a hairline between the groups; Sign out is in the menu top right), the page and its footer to the right. On a narrow screen the links make a row under the header. */
body.with-sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
}

body.with-sidebar > .top-bar {
    grid-column: 1 / 3;
    grid-row: 1;
}

body.with-sidebar > .side-nav {
    grid-column: 1;
    grid-row: 2 / 4;
}

body.with-sidebar > main {
    grid-column: 2;
    grid-row: 2;
}

body.with-sidebar > footer {
    grid-column: 2;
    grid-row: 3;
}

/* The header and left panel in the site's card style (Onboarding Cards Rev 2; owner, 2026-10-18): Figtree, the green-grey palette, white
   on the soft ground, hairline borders. */
.top-bar,
.side-nav {
    --wv-ink: #2a3a37;
    --wv-heading: #1f4a43;
    --wv-accent: #2b6f63;
    --wv-accent-soft: #e3efeb;
    --wv-line: #dfe7e4;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
    background: #fff;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--wv-line);
}

.top-bar .nav-logo {
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    text-decoration: none;
}

.top-bar .nav-logo img {
    width: 40px;
    height: 40px;
}

/* the name after the logo, as on Weavo Home: weavo-text.svg (vector, so crisp at any size; viewBox cropped close to the letters), its
   letters a little over half the logo's height */
.top-bar .nav-logo .nav-logo-name {
    width: auto;
    height: 26px;
}

/* the Display name and profile image; they open a menu with Sign out (owner, 2026-10-27) */
.member-menu {
    position: relative;
    min-width: 0;
}

.member-bar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--wv-heading);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}

.member-bar-link::-webkit-details-marker {
    display: none;
}

.member-bar-link:focus-visible {
    outline: 2px solid var(--wv-accent);
    outline-offset: 2px;
    border-radius: 10px;
}

.member-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 10rem;
    padding: 6px;
    border: 1px solid var(--wv-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.member-menu-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: none;
    font: 600 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
    text-align: left;
    cursor: pointer;
}

/* Account settings and Member profile, links beside the Sign out button (owner, 2026-10-28); each item on one line - the panel grows to
   the longest */
a.member-menu-item {
    box-sizing: border-box;
    text-decoration: none;
}

.member-menu-item {
    white-space: nowrap;
}

.member-menu-item:hover,
.member-menu-item:focus-visible,
.member-menu-item[aria-current="page"] {
    background: var(--wv-accent-soft);
    color: var(--wv-heading);
    outline: none;
}

.member-menu .nav-form {
    display: block;
}

.member-bar-link:hover span:first-child {
    color: var(--wv-accent);
}

.member-bar-link .avatar {
    width: 44px;
    height: 44px;
    margin-right: 0;
}

.member-bar-link .avatar-icon {
    background: var(--wv-accent-soft);
    color: var(--wv-accent);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* the space between the groups, either side of their divider */
    min-width: 12rem;
    padding: 1.25rem 0.75rem 1rem;
    border-right: 1px solid var(--wv-line);
}

/* a little space between the links of a group (owner, 2026-10-28) */
.side-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* a hairline before each group after the first (owner, 2026-10-27; 2026-10-28): Commons, the trade, the account and Admin read as sections. Inset to the
   links' text so it stays quiet. */
.side-nav-group + .side-nav-group {
    margin-inline: 14px;
    padding-top: 0.75rem;
    border-top: 1px solid var(--wv-line);
}

.side-nav-group + .side-nav-group > a {
    margin-inline: -14px;
    width: calc(100% + 28px);
}

/* each link a full-width row: the soft green behind it on hover, and behind the page you are on */
.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    font: 600 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.side-nav a:hover {
    background: var(--wv-accent-soft);
    color: var(--wv-heading);
}

/* the icon beside each link (owner, 2026-10-29): a muted dark teal, Weavo green on the page you are on */
.side-nav a svg {
    flex: none;
    color: #4f706a;
}

.side-nav a[aria-current="page"] {
    background: var(--wv-accent-soft);
    color: var(--wv-accent);
}

.side-nav a[aria-current="page"] svg {
    color: var(--wv-accent);
}

.side-nav a:focus-visible {
    outline: 2px solid var(--wv-accent);
    outline-offset: 1px;
}

@media (max-width: 40rem) {
    body.with-sidebar {
        display: flex;
    }

    .top-bar {
        padding: 0.5rem 1rem;
    }

    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        padding: 0.5rem 0.75rem;
        border-right: 0;
        border-bottom: 1px solid var(--wv-line);
        gap: 2px 1rem;
    }

    .side-nav-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px;
    }

    /* the links wrap into rows here: no dividers, the gap between the groups is enough */
    .side-nav-group + .side-nav-group {
        margin-inline: 0;
        padding-top: 0;
        border-top: 0;
    }

    .side-nav a,
    .side-nav-group + .side-nav-group > a {
        width: auto;
        margin-inline: 0;
        padding: 6px 10px;
        gap: 8px;
    }
}

footer {
    text-align: center;
    padding: 0 1rem;
}

.text-danger {
    color: #b00020;
}

.form-row {
    display: grid;
    grid-template-columns: 11rem minmax(0, 18rem);
    align-items: center;
    column-gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-row > :not(label):not(input) {
    grid-column: 2;
    margin: 0.25rem 0 0;
}

/* the Produce Quantity: the number and its unit side by side in one row (owner, 2026-10-04) */
.form-row > .quantity-inputs {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.quantity-inputs input {
    width: 7rem;
}

.quantity-inputs select {
    flex: 1;
    min-width: 0;
}

.form-row > ul {
    padding-left: 1.25rem;
}

/* A password and its confirmation: the first row sits tight against the second so the two boxes read as one pair. */
.form-row-paired {
    margin-bottom: 0.35rem;
}

/* Separates groups of fields (e.g. the current password from the new pair on Change password). */
.form-section + .form-section {
    margin-top: 2.25rem;
}

/* Display-only label / value pairs (Account settings), aligned like .form-row. */
.details {
    display: grid;
    grid-template-columns: 11rem minmax(0, 24rem);
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    margin: 0;
}

.details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* About Weavo / Questions & Answers: running text */
.content-text {
    max-width: 65ch;
}

.content-text dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.content-text dd {
    margin: 0.25rem 0 0;
}

.footer-links {
    margin-bottom: 0;
}

/* The admin pages' environment badge */
.env-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.6em;
    font-weight: 600;
    vertical-align: middle;
    color: #fff;
}

.env-local { background: #6c757d; }
.env-uat { background: #ffc107; color: #000; }
.env-prod { background: #dc3545; }
.env-demo { background: #0d6efd; }
.env-unknown { background: #343a40; }

.text-muted { color: #6c757d; }

/* Membership: the Community Agreements text is plain text; keep its line breaks */
.agreements-text {
    max-width: 44rem;
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    white-space: pre-wrap;
}

/* Weavo Home (Weavo Home MVP Design Brief Rev 2 §4, §5): the introduction card (white, the ground the logo was drawn for), the four public pages as a two-by-two grid of white
   cards (one column on phones), then Join / Sign in - the card style of the onboarding pages (the tokens are set with .onboarding below). */
main > .weavo-home {
    max-width: 760px;
    gap: 16px;
}

.home-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 28px;
    border-radius: 18px;
    border: 1px solid var(--wv-line);
    background: #fff;
    text-align: center;
}

.weavo-home h1 {
    margin: 0;
    font-weight: 700;
    color: var(--wv-heading);
    line-height: 1.15;
}

/* the tagline: below the logo and name in weight, above the introduction (owner, 2026-10-10) */
.home-intro h1 {
    max-width: 560px;
    font-size: 26px;
    letter-spacing: -0.3px;
}

.home-lead {
    max-width: 560px;
    margin: 0;
    color: var(--wv-muted);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

/* the logo with the name underneath, read as one brand: the name a little wider than the logo (owner, 2026-10-10). weavo-logo.svg (vector, square)
   is cropped to the artwork, so it needs no framing */
.home-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-logo {
    display: block;
    width: 8rem;
    max-width: 100%;
    height: auto;
}

/* The name: weavo-text.svg (vector, viewBox cropped close to the letters; owner, 2026-10-18), a little wider than the logo */
.home-name {
    display: block;
    margin-top: 0.75rem;
    width: 10.5rem;
    max-width: 100%;
    height: auto;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    background: #fff;
    color: var(--wv-ink);
    text-decoration: none;
}

.home-card:hover { border-color: var(--wv-accent); }

.home-card:focus-visible {
    outline: 3px solid #5aa892;
    outline-offset: 2px;
}

.home-card-icon { display: flex; margin-bottom: 8px; color: var(--wv-accent); }
.home-card-title { font-weight: 600; font-size: 17px; color: var(--wv-heading); }
.home-card-note { font-size: 15px; color: var(--wv-muted); }

.step-card.home-join h2 { font-size: 22px; }
.home-join p { margin: 0; color: var(--wv-muted); }

/* five cards in two columns: the last one spans both (Document Management design note, open point 2) */
.home-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* the introduction from the HOME version: paragraphs, centred like the card */
.home-lead p { margin: 0; }
.home-lead p + p { margin-top: 0.75em; }

.home-privacy { margin: 0; text-align: center; font-size: 15px; }
.home-privacy a { color: var(--wv-muted); }

/* a public page: one card with the published words (Document Management CONTRACTS.md C§9) */
main > .public-page { max-width: 640px; padding-top: 24px; }
.public-page h1 { font-size: 30px; letter-spacing: -0.3px; }
.step-card .public-page-note { margin: 0; font-weight: 600; color: var(--wv-heading); }
.public-content { width: 100%; text-align: left; overflow-wrap: anywhere; }
.public-page .public-content h2 { margin: 1.25em 0 0.4em; font-size: 20px; color: var(--wv-heading); }
.public-page .public-content p { margin: 0 0 0.75em; }
.public-page .public-content ul { margin: 0 0 0.75em; padding-left: 1.25em; }
.public-page .public-content > :last-child,
.public-page .public-content .faq-answer > :last-child { margin-bottom: 0; }
/* the FAQ as an accordion: each question a details element, closed until opened (a question with no text is shown open, as a section) */
.public-content .faq-question { border-top: 1px solid var(--wv-line); }
.public-content .faq-question:last-child { border-bottom: 1px solid var(--wv-line); }
.public-content section.faq-question { padding: 14px 0; }
.public-content .faq-question summary {
    display: flex; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; border-radius: 6px;
}
.public-content .faq-question summary::-webkit-details-marker { display: none; }
.public-content .faq-question summary::after {
    content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 4px auto;
    border-right: 2px solid var(--wv-accent); border-bottom: 2px solid var(--wv-accent); transform: rotate(45deg); transition: transform 0.15s ease;
}
.public-content .faq-question[open] summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.public-content .faq-question summary:hover h2 { color: var(--wv-accent); }
.public-content .faq-question summary:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }
.public-page .public-content .faq-question h2 { margin: 0; font-size: 17px; }
.public-content details.faq-question .faq-answer { padding: 0 4px 16px; }
@media (prefers-reduced-motion: reduce) {
    .public-content .faq-question summary::after { transition: none; }
}
.public-page .agreements-text { width: 100%; max-height: none; text-align: left; }
.public-page-version { margin: 0; font-size: 14px; color: var(--wv-muted); }
/* a text page with no Body yet (owner, 2026-10-10): the "being written" line, centred */
.public-page .public-page-pending { width: 100%; margin: 0; text-align: center; }

@media (max-width: 40rem) {
    .home-intro { padding: 24px 18px; }
    .home-intro h1 { font-size: 22px; }
    .home-logo { width: 6.25rem; }
    .home-name { width: 8.2rem; }
    .home-cards { grid-template-columns: 1fr; }
}

/* ---- Marketplace (Marketplace Listing Working Design Rev 6) ---- */
.page-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.filters input[type="search"] {
    min-width: 14rem;
}

.amount-input {
    width: 6rem;
}

.listing-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.photo-list .listing-thumb {
    width: 8rem;
}

.listing-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

/* a Listing's photos as thumbnails; each links to the full-size photo (owner, 2026-10-04) */
.listing-photo {
    display: block;
    width: 10rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f1f3f5;
}

.listing-photo-link {
    cursor: zoom-in;
}

.listing-description {
    white-space: pre-line;
    max-width: 40rem;
}

.pager {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.listing-form textarea {
    font: inherit;
}

/* every card on the listing form shares one left edge (owner, 2026-10-08) */
.listing-form fieldset,
.listing-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin: 0;
    padding: 0.75rem 1rem;
    max-width: 32rem;
}

.check {
    display: block;
    margin: 0.25rem 0;
}

.photo-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.photo-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ---- Marketplace: the owner's Listing Process (2026-10-02) - All Listings / My Listings tabs, tables and the Listing form. Listing text is
   plain - no colour coding or bold (owner, 2026-10-02) */

.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid #ced4da;
    margin: 0.5rem 0 1rem;
}

.tab {
    padding: 0.45rem 0.9rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.4rem 0.4rem 0 0;
    color: #495057;
    text-decoration: none;
    margin-bottom: -1px;
}

.tab-current {
    border-color: #ced4da;
    background: #fff;
    color: #212529;
    font-weight: 600;
}

/* All Listings and My Listings: one card per Listing, the size of the Dashboard's capability cards (owner, 2026-10-02) - one after
   another in a single column, each as wide as one Dashboard column, with its border, corners, padding and shadow. Three short lines:
   title and amount; type, category, status and suburb; owner and expiry with View. Plain text: no colour coding or bold (the detail
   lines are the Dashboard's note grey). */
.listing-cards {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: calc((74rem - 1.25rem) / 2); /* one Dashboard column: half its 74rem grid less the 1.25rem gap */
}

.listing-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 2.6rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid #d9dee4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* the viewer's own Listing: a faint blue outline (owner, 2026-10-04) */
.listing-card.own-listing-card {
    border-color: #9ec5fe;
}

.listing-card-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.listing-card-line > :first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.listing-amount,
.listing-card-actions {
    flex-shrink: 0;
    white-space: nowrap;
}

.listing-card-actions {
    display: flex;
    gap: 0.75rem;
}

.listing-card-meta {
    color: #555;
}

.listing-group + .listing-group {
    margin-top: 1.5rem;
}

.listing-group h2 {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
}

.button {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid #adb5bd;
    border-radius: 0.35rem;
    background: #f1f3f5;
    color: #212529;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.button-primary { background: #8fbc5a; border-color: #6f9a40; color: #fff; }
.button-secondary { background: #f4b393; border-color: #e0855a; color: #212529; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* fields Publish needs (a Draft can be saved without them) */
.required-mark {
    color: #b00020;
    margin-left: 0.2rem;
    font-weight: 600;
}


/* Trading Avatar (Working Design Rev 4 §8, §9; TA17): the thumbnail is cropped to a circle by the browser - no second processing path. */
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.35rem;
}

/* Sizes (owner, 2026-10-11): Listing cards 28px, the Dashboard and a Listing's page 48px, the settings preview 64px, the picker 88px. */
.avatar-small {
  width: 28px;
  height: 28px;
}

.avatar-medium {
  width: 48px;
  height: 48px;
}

.avatar-default {
  display: inline-block;
  background: #e3efeb;
  border: 1px solid #c9d6d2;
}

/* ---------------------------------------------------------------------------------------------------------------------------------------
   The onboarding page and Your Weavo Community (Onboarding Cards Rev 2, the owner's design canvas, 8 October 2026): Figtree (loaded by
   the two pages), a soft green-grey ground, white rounded cards, a progress bar, and black pill buttons.
   --------------------------------------------------------------------------------------------------------------------------------------- */
main:has(> .onboarding),
main:has(> .community),
main:has(> .auth),
main:has(> .weavo-home) {
    background: #f5f7f6;
}

.onboarding,
.community,
.auth,
.weavo-home {
    --wv-ink: #2a3a37;
    --wv-heading: #1f4a43;
    --wv-muted: #4d625e;
    --wv-quiet: #5b6f6b;
    --wv-accent: #2b6f63;
    --wv-accent-soft: #e3efeb;
    --wv-line: #dfe7e4;
    --wv-divider: #e6ecea;
    --wv-field: #c9d6d2;
    --wv-wait: #f1f4f3;
    --wv-amount: #e8f3ef;
    --wv-amber: #7a4f10;
    --wv-amber-soft: #f6ecd9;
    max-width: 712px;
    margin: 0 auto;
    padding: 8px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--wv-ink);
}

.onboarding-title {
    text-align: center;
}

.onboarding h1,
.community h1,
.auth h1 {
    margin: 0;
    font-weight: 700;
    color: var(--wv-heading);
    line-height: 1.15;
}

.onboarding h1 {
    font-size: 44px;
    letter-spacing: -0.5px;
}

.community h1 {
    font-size: 36px;
    letter-spacing: -0.4px;
}

.onboarding-title p {
    margin: 6px 0 0;
    color: var(--wv-muted);
}

/* The progress bar from Registration to the Tokens Allocation (owner, 2026-10-14): one column per stage that applies (five or six), a bar
   over each label. Done: a dark bar and a tick; current: a lighter bar, the label bold (and aria-current); still to come: a pale bar. On a
   narrow screen the labels are kept for screen readers only and the current stage's name shows under the bars. */
.progress-caption {
    display: none;
    margin: 8px 0 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--wv-heading);
}

.progress-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
}

.progress-strip li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    height: 5px;
    border-radius: 3px;
    background: #d3e4df;
}

.progress-strip .done .progress-bar { background: var(--wv-accent); }
.progress-strip .current .progress-bar { background: #5aa892; }

.progress-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    color: var(--wv-quiet);
}

.progress-label svg { flex: none; }
.progress-strip .done .progress-label { color: var(--wv-accent); }
.progress-strip .current .progress-label { color: var(--wv-heading); font-weight: 700; }

/* A notice above the card: success (the welcome, the Claim, the Trading Avatar) with a tick on green; anything else on grey. */
.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--wv-line);
    border-radius: 12px;
    background: var(--wv-wait);
    font-size: 15px;
    color: var(--wv-accent);
}

.notice span { color: var(--wv-ink); }
.notice svg { flex: none; }

.notice-success {
    border-color: transparent;
    background: var(--wv-accent-soft);
}

.notice-success span { color: var(--wv-heading); }

/* The card: centred by default (the waiting cards); a form card keeps its heading centred and the rest left-aligned. */
.step-card,
.community-card {
    background: #fff;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-card {
    align-items: center;
    text-align: center;
}

.step-card-form {
    align-items: stretch;
    text-align: left;
    gap: 16px;
}

.step-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.step-card-form .step-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wv-divider);
}

.step-card h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: var(--wv-heading);
    line-height: 1.25;
}

.step-card p {
    margin: 0;
    max-width: 560px;
}

/* A card's detail text from tContentOnboarding (owner, 2026-11-04): its paragraphs under the line, any after the first smaller and muted. */
.step-detail { display: flex; flex-direction: column; gap: 6px; }
.step-detail p + p { font-size: 14px; color: var(--wv-muted); }

.step-card form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--wv-accent-soft);
    color: var(--wv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Welcome page's buttons, side by side (wrapping on a phone) */
.step-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.step-icon-warning {
    background: var(--wv-amber-soft);
    color: var(--wv-amber);
}

/* "There is nothing for you to do": the grey line with a clock at the foot of a waiting card. */
.step-card .step-wait {
    align-self: stretch;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--wv-wait);
    color: var(--wv-accent);
    text-align: left;
    font-size: 15px;
}

.step-wait span { color: var(--wv-ink); }
.step-wait svg { flex: none; }

.step-hint {
    color: #555;
}

.onboarding .step-hint {
    color: var(--wv-muted);
    font-size: 14px;
}

/* Link rows (the Admin console) */
.link-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--wv-wait);
    color: var(--wv-ink);
    text-decoration: none;
}

.link-row:hover { background: var(--wv-accent-soft); }
.link-row-icon { display: flex; color: var(--wv-accent); }

.link-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.link-row-title { font-weight: 600; color: var(--wv-heading); }
.link-row-note { font-size: 14px; color: var(--wv-muted); }

/* Buttons: a black pill (with an arrow when it moves the journey on), and a light outline pill (Edit). The arrow is decoration only. */
.pill-button,
.pill-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font: 600 16px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.pill-button {
    border: 0;
    background: #1c1d1f;
    color: #fff;
}

.pill-button:hover { background: #3a3c40; }

.pill-outline {
    border: 1px solid var(--wv-field);
    background: #fff;
    color: var(--wv-ink);
}

.pill-outline:hover { border-color: var(--wv-accent); }

.pill-button:focus-visible,
.pill-outline:focus-visible,
.link-row:focus-visible {
    outline: 3px solid #5aa892;
    outline-offset: 2px;
}

.pill-arrow::after {
    content: " \2192";
    content: " \2192" / "";
    white-space: pre;
}

.pill-small {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

/* The Community Agreements (owner, 2026-10-15): a line above the box; the text and, at its bottom, the tick scroll inside the box;
   the button below, outside it */
.step-card .agreements-instruction {
    max-width: none;
    font-size: 15px;
    color: var(--wv-muted);
}

.step-card .agreements-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 16rem;
    overflow: auto;
    padding: 16px;
    border-radius: 12px;
    background: var(--wv-wait);
}

.step-card .agreements-text {
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    font-size: 15px;
    white-space: pre-wrap;
}

#agreements-accept[disabled] { cursor: not-allowed; }

.tick-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--wv-heading);
}

.tick-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--wv-accent);
}

/* The Trading Avatar form: a pill text field and a dashed image box */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label,
.field .field-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--wv-heading);
}

.field input:not([type="file"]):not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    font: 400 16px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
}

.field input:not([type="file"]):not([type="checkbox"]):focus {
    outline: 3px solid #5aa892;
    outline-offset: 1px;
}

.image-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 1.5px dashed var(--wv-field);
    border-radius: 14px;
    color: var(--wv-accent);
    text-align: center;
}

.image-drop input[type="file"] {
    max-width: 100%;
    font: 400 14px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-muted);
}

/* The Claim and the Weavo Balance: the amount in a pale green box */
.amount-box {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    background: var(--wv-amount);
}

.amount-box-left {
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 8px;
}

.amount-caption {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d5a54;
}

.amount-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--wv-accent);
}

.community .amount-value { font-size: 44px; }

/* Your Weavo Community: the rows inside one card, divided by hairlines - name | status (with any action), the note underneath */
.community-card {
    padding: 24px 28px;
    gap: 4px;
}

.community-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--wv-divider);
}

.community-row:last-child { border-bottom: 0; }

.community-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px 10px;
    font-weight: 600;
    color: var(--wv-muted);
}

.community-status form { margin: 0; }
.community-good { color: var(--wv-accent); }
.community-attention { color: var(--wv-amber); }

.community-note {
    grid-column: 1 / -1;
    font-size: 14px;
    color: var(--wv-muted);
}

.community-card > .pill-button { margin-top: 12px; }

/* Commons (M79 Commons Lean Design Brief §5, owner 2026-10-28): the warm, restrained mock-up style - an off-white ground, muted green cards
   with subtle borders and dark green text. Sections in a fixed order; a hidden section leaves no gap. The Community Pool's figure is large,
   its as-of time always beside it; a status is always words in a bordered chip (never colour alone); the panels of How the pool works are
   native <details> elements, so they open with the keyboard and announce their state. */
main:has(> .commons) { background: #f8f6f1; }

.commons .community-card {
    background: #eef4f0;
    border-color: #d5e2dc;
    gap: 10px;
}

.commons-cluster {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wv-muted);
}

.commons-intro p { margin: 10px 0 0; }

.commons-card-title {
    margin: 0;
    font-size: 22px;
    color: var(--wv-heading);
}

.commons-balance {
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.commons-balance-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--wv-heading);
}

.commons-balance-unit { font-weight: 600; color: var(--wv-heading); }

.commons-as-of,
.commons-note,
.commons-meta {
    margin: 0;
    font-size: 14px;
    color: var(--wv-muted);
}

.commons-text p { margin: 0 0 10px; }
.commons-text p:last-child { margin-bottom: 0; }

/* Current release rule (owner, 2026-11-30): label and figure rows, as the Account card's */
.commons-rule { margin: 0; }
.commons-rule dd { margin: 0; }
/* Rule / Details (owner, 2026-12-01): a fixed column of short rule names, then the detail, left-aligned so a sentence wraps inside its
   own column; in a narrow panel the detail goes under its name */
.commons-rule .community-row { grid-template-columns: 11.5rem minmax(0, 1fr); align-items: baseline; gap: 4px 16px; padding: 12px 0; }
.commons-rule .settings-value { text-align: left; }
.commons-rule .community-name { margin: 0; font-weight: 400; color: var(--wv-muted); }
@media (max-width: 560px) {
    .commons-rule .community-row { grid-template-columns: 1fr; }
}

.commons-panels { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

.commons-panel {
    background: #fff;
    border: 1px solid #d5e2dc;
    border-radius: 12px;
}

.commons-panel summary {
    cursor: pointer;
    padding: 14px 16px;
    min-height: 48px;
    box-sizing: border-box;
    font-weight: 600;
    color: var(--wv-heading);
}

.commons-panel summary:focus-visible,
.commons a:focus-visible {
    outline: 3px solid var(--wv-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

.commons-panel-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }

.commons-uses { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.commons-use {
    background: #fff;
    border: 1px solid #d5e2dc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.commons-use-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }

.commons-use-title { margin: 0; font-size: 17px; color: var(--wv-heading); }

.commons-status {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wv-ink);
    background: #fff;
}

.commons-status-approved { border-color: var(--wv-accent); color: var(--wv-accent); }
.commons-status-declined, .commons-status-withdrawn { color: var(--wv-muted); }

.commons-amounts { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.commons-amounts dt { color: var(--wv-muted); }
.commons-amounts dd { margin: 0; font-weight: 600; color: var(--wv-heading); }
.commons-amounts div { display: flex; gap: 6px; }

.commons-footer { font-size: 14px; color: var(--wv-muted); padding: 4px 4px 0; border-top: 1px solid #d5e2dc; }
.commons-footer p { margin: 10px 0 0; }


.community .avatar {
    margin-right: 0;
}

.avatar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wv-accent-soft);
    color: var(--wv-accent);
}

@media (max-width: 40rem) {
    .onboarding h1 { font-size: 34px; }
    .step-card, .community-card { padding: 22px 18px; }
    .progress-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .progress-caption { display: block; }
    .community-row { grid-template-columns: 1fr; }
    .community-status { justify-content: flex-start; }
}

/* Your dashboard (Your dashboard design brief, 2026-10-17 - the Focused design): one column of the same rounded white cards - Needs your
   attention, the Weavo balance on its own, the Account overview, Recent updates. A restrained amber marks something to do; the stronger red
   only an account issue (a suspension). Every colour and icon sits beside text that says the same. */
.dashboard {
    --wv-amber-line: #e6cf9f;
    --wv-urgent: #8f2a1f;
    --wv-urgent-soft: #fbebe8;
    --wv-urgent-line: #e9b9b1;
}

.dashboard .community-card { gap: 8px; }

.dashboard h2 { margin: 0; }

.dashboard-heading {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wv-heading);
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attention-list,
.updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attention-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attention-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 18px 20px;
    border: 1px solid var(--wv-amber-line);
    border-radius: 16px;
    background: var(--wv-amber-soft);
}

.attention-icon {
    display: flex;
    align-self: start;
    padding-top: 1px;
    color: var(--wv-amber);
}

.attention-item h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--wv-heading);
}

.attention-item p {
    margin: 2px 0 0;
    font-size: 15px;
}

.attention-item.tone-urgent {
    border-color: var(--wv-urgent-line);
    border-left: 5px solid var(--wv-urgent);
    background: var(--wv-urgent-soft);
}

.attention-item.tone-urgent .attention-icon,
.attention-item.tone-urgent h3 { color: var(--wv-urgent); }

.dashboard-uptodate {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--wv-accent-soft);
    color: var(--wv-accent);
    font-size: 15px;
    font-weight: 600;
}

.dashboard-uptodate span { color: var(--wv-heading); }
.dashboard-uptodate svg { flex: none; }

.balance-card .amount-value { margin: 0; }

/* the unit after the balance (owner, 2026-10-25: "55 Tokens", the word smaller than the number) */
.amount-unit {
    font-size: 0.5em;
    font-weight: 600;
}

.balance-missing {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--wv-muted);
}

.balance-caption {
    margin: 0;
    font-size: 15px;
    color: var(--wv-muted);
}

.balance-card > .pill-button {
    align-self: flex-start;
    margin-top: 10px;
}

.overview-list { margin: 0; }

.overview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--wv-divider);
}

.overview-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.overview-row dd {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--wv-muted);
    text-align: right;
}

.overview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.overview-status svg { flex: none; }

.overview-note {
    font-size: 14px;
    color: var(--wv-muted);
}

.overview-row .tone-good .overview-status { color: var(--wv-accent); }
.overview-row .tone-attention .overview-status { color: var(--wv-amber); }
.overview-row .tone-urgent .overview-status { color: var(--wv-urgent); }

.updates-list li {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 2px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wv-divider);
}

.updates-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.updates-list time {
    font-size: 14px;
    line-height: 1.6;
    color: var(--wv-quiet);
    font-variant-numeric: tabular-nums;
}

.dashboard-unavailable p { margin: 0; }
.dashboard-unavailable .pill-outline { align-self: flex-start; margin-top: 8px; }
.dashboard-close p { margin: 0; }
.dashboard-close .pill-outline { align-self: flex-start; margin-top: 8px; }

/* Wallet (Wallet Design Brief v2.7): each holding's amount and date, the exact time always on its second line; muted amber warnings */
.wallet-intro { margin: -8px 0 4px; color: var(--wv-muted); }
.wallet .balance-card .pill-outline,
.wallet #contribution-card .pill-outline { align-self: flex-start; margin-top: 8px; }
.balance-label { font-weight: 600; color: var(--wv-accent); }
/* owner, 2026-11-29: the next contribution's date, under "From your balance" - secondary to the row's label */
.contribution-next { display: block; margin-top: 2px; font-size: 13px; color: var(--wv-muted); }

/* owner, 2026-11-28: the cards' own gap spaces their lines */
.wallet .community-card p { margin: 0; }

.wallet-restriction-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wallet-total dt, .wallet-total dd { font-weight: 700; color: var(--wv-heading); }

.restriction-subheading { margin: 12px 0 4px; font-size: 16px; color: var(--wv-heading); }
.restriction-list { margin: 0; padding-left: 1.2em; }
.restriction .community-card p { margin: 0; }
.restriction .community-card .pill-button { align-self: flex-start; margin-top: 8px; }

@media (max-width: 40rem) {
    .attention-item { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
    .attention-item .pill-button { grid-column: 2; justify-self: start; }
    .wallet-restriction-links { grid-column: 2; justify-content: flex-start; }
    .overview-row { grid-template-columns: 1fr; row-gap: 4px; }
    .overview-row dd { align-items: flex-start; text-align: left; }
    .updates-list li { grid-template-columns: 1fr; }
}

/* Sign in, Registration, the emailed code and the message page in the same card style (owner, 2026-10-08): one narrower card, the
   heading inside it, the secondary links underneath. */
.auth {
    max-width: 480px;
    padding-top: 24px;
}

/* Registration is the start of joining (owner, 2026-10-14): its progress bar takes the onboarding page's width, so the bar is the same on
   every Registration and Joining page, while the Registration card keeps the narrower 480px of Sign in, Password reset and Change password. */
.auth.auth-joining {
    max-width: 712px;
}

.auth.auth-joining > .step-card {
    align-self: center;
    box-sizing: border-box; /* 480px with its padding and border, as on Sign in */
    width: 100%;
    max-width: 480px;
}

.auth h1 {
    font-size: 30px;
    letter-spacing: -0.3px;
}

.auth .step-card p {
    max-width: 400px;
}

.auth .step-card > .pill-button {
    align-self: stretch;
}

.auth-links {
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: var(--wv-quiet);
}

/* "Get help · Share pilot feedback" under the Welcome page's buttons (owner, 2026-10-15) */
.step-card .welcome-links {
    font-size: 15px;
    color: var(--wv-quiet);
}

.welcome-links a { color: var(--wv-accent); }

.welcome-links a:hover { color: var(--wv-heading); }

.auth-links a,
.auth .step-card a:not(.pill-button) {
    color: var(--wv-accent);
}

.auth-links a:hover {
    color: var(--wv-heading);
}

/* a refusal (wrong password, locked): the notice in a soft red */
.notice-error {
    border-color: #f0d2cd;
    background: #fbefed;
    color: #a4372c;
}

.notice-error span { color: #7d2a21; }

/* an alert that blocks the next step but is no refusal (not enough Tokens for Buy now): the notice in a soft yellow (owner, 2026-11-01) */
.notice-warning {
    border-color: #ecd98a;
    background: #fdf6d8;
    color: #6b5300;
}

.notice-warning span { color: #4f3d00; }

/* First and last name side by side; one column on a phone */
.field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth .field .step-hint,
.auth .step-hint {
    margin: 0;
    font-size: 14px;
    color: var(--wv-muted);
}

.auth .step-hint:empty { display: none; }

/* the privacy line under Create account (owner, 2026-10-15) */
.auth .privacy-note { text-align: center; }

/* the emailed code: larger, spaced digits */
.code-input {
    font-size: 22px !important;
    letter-spacing: 0.3em;
    text-align: center;
}

.auth .resend {
    gap: 0;
    text-align: center;
}

.auth .resend .step-hint {
    max-width: none;
}

/* "Resend code" reads as a link but is the form's submit button */
.link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--wv-accent);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover { color: var(--wv-heading); }

.link-button:focus-visible {
    outline: 3px solid #5aa892;
    outline-offset: 2px;
}

.auth .validation-summary-errors {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fbefed;
    color: #7d2a21;
    font-size: 15px;
}

.auth .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth .validation-summary-valid { display: none; }

@media (max-width: 40rem) {
    .auth { padding-top: 8px; }
    .field-pair { grid-template-columns: 1fr; }
}

/* Account settings in the card style (owner, 2026-10-08): one card per section - Account, Trading Avatar, Security - each titled. */
.settings-card h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wv-heading);
}

.settings-list {
    margin: 0;
}

.settings-list dt,
.settings-list dd {
    margin: 0;
}

.settings-value {
    font-weight: 600;
    color: var(--wv-ink);
    text-align: right;
    overflow-wrap: anywhere;
}

/* Account settings: a locked Display name - the label and the name on one line, as the Account card's rows (owner, 2026-10-13) */
.settings-name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

/* The Member profile (owner, 2026-10-18): the line under the heading; the form holds two of the cards, spaced as the page's own; the locked
   Display name; and the picker's legend titles the Profile image card as an h2 titles the others */
.profile-intro {
    margin: 6px 0 0;
    color: var(--wv-muted);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-display-name {
    margin: 4px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--wv-ink);
    overflow-wrap: anywhere;
}

.profile-image-card .avatar-picker > legend {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wv-heading);
}

/* "How other Members see you": the Listing's "Listed by" line in a pale box */
.avatar-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--wv-amount);
}

.avatar-preview-caption {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d5a54;
}

.avatar-preview .listed-by {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.avatar-large {
    width: 64px;
    height: 64px;
}

/* "Skip for now" on the onboarding Trading Avatar card (Rev 5.1 §7.2), below the Create form */
.step-skip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--wv-divider, #dde5e3);
}

.step-skip .step-hint {
    margin: 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--wv-divider);
}

.settings-form .text-danger,
.settings-form .step-hint {
    margin: 0;
}

.settings .step-hint {
    font-size: 14px;
    color: var(--wv-muted);
}

/* the Trading Name and its Change button on one line; stacked on a phone */
.field-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.field-inline input {
    flex: 1;
    min-width: 0;
}

.settings-continue {
    margin: 0 0 20px;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-form > .pill-button {
    align-self: stretch;
}

.pill-danger {
    color: #a4372c;
}

.pill-danger:hover {
    border-color: #a4372c;
}

/* The confirmation before Save draft, Publish and Withdraw (owner, 2026-10-15; the browser's own box until then): a small centred card in
   the onboarding style - the message, then Cancel and the action's own button, side by side (stacked on a phone). It sits outside the
   page's card containers, so it sets the colours it uses itself. */
dialog.confirm-dialog {
    --wv-ink: #2a3a37;
    --wv-heading: #1f4a43;
    --wv-accent: #2b6f63;
    --wv-line: #dfe7e4;
    --wv-field: #c9d6d2;
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    background: #fff;
    color: var(--wv-ink);
    box-shadow: 0 12px 40px rgba(20, 35, 32, 0.18);
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

dialog.confirm-dialog::backdrop { background: rgba(20, 35, 32, 0.45); }

.confirm-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 28px 24px 24px;
}

.confirm-dialog-message {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--wv-heading);
    text-align: center;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.confirm-dialog-actions .pill-button,
.confirm-dialog-actions .pill-outline { min-width: 120px; }

.confirm-dialog-actions .pill-button.confirm-danger { background: #a4372c; }
.confirm-dialog-actions .pill-button.confirm-danger:hover { background: #86291f; }

.confirm-dialog-actions button:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }

@media (max-width: 40rem) {
    .confirm-dialog-actions { flex-direction: column-reverse; }
    .confirm-dialog-actions .pill-button,
    .confirm-dialog-actions .pill-outline { width: 100%; }
}

.form-errors {
    margin: 0;
    padding: 12px 16px 12px 34px;
    border-radius: 12px;
    background: #fbefed;
    color: #7d2a21;
    font-size: 15px;
}

@media (max-width: 40rem) {
    .field-inline { flex-direction: column; align-items: stretch; }
    .settings-value { text-align: left; }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------
   The Marketplace in the card style of Onboarding Cards Rev 2 (owner, 2026-10-08): All Listings, My Listings, the Listing and its form.
   The owner's Listing Process decisions stand - Listing text plain (no colour coding or bold), the viewer's own Listings outlined in faint
   blue, Add New under Closed on the left, every card of the form on one left edge.
   --------------------------------------------------------------------------------------------------------------------------------------- */
.marketplace .back-link {
    margin: 0;
    font-size: 15px;
}

.marketplace a:not(.pill-button):not(.pill-outline):not(.tab):not(.listing-card-link) {
    color: var(--wv-accent);
}

.marketplace .empty-note {
    margin: 0;
    padding: 18px 22px;
    border: 1px dashed var(--wv-field);
    border-radius: 18px;
    color: var(--wv-muted);
    text-align: center;
}

/* All Listings | My Listings: a segmented pill */
.marketplace .tabs {
    align-self: flex-start;
    display: inline-flex;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--wv-accent-soft);
}

.marketplace .tab {
    margin: 0;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    color: var(--wv-heading);
    text-decoration: none;
    font-size: 15px;
}

.marketplace .tab:hover { background: rgba(255, 255, 255, 0.6); }

.marketplace .tab-current {
    background: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(31, 74, 67, 0.12);
}

.marketplace .tab:focus-visible {
    outline: 3px solid #5aa892;
    outline-offset: 2px;
}

/* the search: one white card of pill controls */
.marketplace .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    background: #fff;
}

.marketplace .filters input,
.marketplace .filters select {
    box-sizing: border-box;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    background: #fff;
    font: 400 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
}

.marketplace .filters .filters-keyword {
    flex: 1 1 100%;
    min-width: 0;
}

.marketplace .filters select { flex: 1 1 10rem; }
.marketplace .filters .amount-input { width: 7rem; }

.marketplace .filters input:focus,
.marketplace .filters select:focus {
    outline: 3px solid #5aa892;
    outline-offset: 1px;
}

/* the Listing cards: white, rounded, plain text */
.marketplace .listing-cards {
    max-width: none;
    margin: 0;
    gap: 12px;
}

.marketplace .listing-card {
    max-width: none;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    box-shadow: none;
}

/* the cover photo's thumbnail on the left of the card, or a picture placeholder (owner, 2026-10-15); the lines beside it */
.marketplace .listing-card-thumb {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--wv-wait);
}

.marketplace .listing-card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wv-field);
}

.marketplace .listing-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 40rem) {
    .marketplace .listing-card { gap: 12px; padding: 14px 16px; align-items: flex-start; }
    .marketplace .listing-card-thumb { width: 64px; height: 64px; }
}

.marketplace .listing-card.own-listing-card {
    border-color: #9ec5fe;
}

.marketplace .listing-card-line {
    align-items: center;
}

.marketplace .listing-title,
.marketplace .listing-amount {
    font-size: 17px;
    color: var(--wv-ink);
}

/* the price, prominently: a primary decision factor (owner, 2026-10-25) */
.marketplace .listing-amount {
    font-size: 20px;
    font-weight: 600;
}

/* one short descriptive line, cut to the card's width */
.marketplace .listing-summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the whole card opens the Listing (a trade card: the trade), the owner's name and image too: the title's link is stretched over it
   (owner, 2026-10-25; trade cards' View button removed 2026-10-29) */
.marketplace .listing-card {
    position: relative;
}

.marketplace .listing-card .listing-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.marketplace .listing-card .listing-card-link {
    color: var(--wv-ink);
    text-decoration: none;
}

/* My listings (UX review, 2026-11-12): the status beside the title, and what clicking the card does, at the right of its last line */
.marketplace .listing-card-line .listing-card-status {
    flex: none;
    margin-right: auto;
}

/* M107: a second link on a card (Active trades' Original request) sits above the card's stretched link */
.marketplace .listing-card .trade-request-link,
.marketplace .listing-card .trade-message-link { /* M110: Message helper / requester */
    position: relative;
    z-index: 1;
}

.marketplace .listing-card .trade-status {
    font-weight: 600;
    color: var(--wv-heading);
}

.marketplace .listing-card-link:focus-visible {
    outline: none;
}

.marketplace .listing-card:has(.listing-card-link:focus-visible) {
    outline: 2px solid var(--wv-accent);
    outline-offset: 2px;
}

.marketplace .listing-card:hover {
    border-color: var(--wv-field);
}

/* the owner, a distinct element of the Listing (owner, 2026-10-25): on a card a line of its own - the Profile image at 34px, the name and
   "Traded together N times"; on the Listing page a row - "Offered by", the name, the suburb and the note, with a chevron */
.marketplace .member-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 14px;
}

.marketplace .member-identity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--wv-ink);
    font-weight: 600;
    text-align: left;
}

.marketplace .member-avatar {
    flex: none;
    width: 34px;
    height: 34px;
    margin: 0;
}

.marketplace .member-avatar.avatar-icon {
    background: #e3efeb;
    color: var(--wv-accent);
}

.marketplace .member-avatar.avatar-icon svg {
    width: 20px;
    height: 20px;
}

.marketplace .member-row {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wv-divider);
}

.marketplace .member-row .member-identity {
    display: flex;
    width: calc(100% + 12px);
    gap: 14px;
    padding: 6px;
    margin: -6px;
    box-sizing: border-box;
    border-radius: 12px;
    font-weight: 400;
}

.marketplace .member-row button.member-identity:hover {
    background: var(--wv-accent-soft);
}

.marketplace .member-row .member-avatar {
    width: 44px;
    height: 44px;
}

.marketplace .member-row .member-avatar.avatar-icon svg {
    width: 24px;
    height: 24px;
}

.marketplace .member-row-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.marketplace .member-row-label,
.marketplace .member-row-note {
    font-size: 13px;
    color: var(--wv-muted);
}

.marketplace .member-row .listing-owner {
    font-weight: 600;
}

.marketplace .member-row-chevron {
    flex: none;
    display: flex;
    color: var(--wv-muted);
}

.marketplace .listing-card-meta {
    font-size: 14px;
    color: var(--wv-muted);
}

.marketplace .listing-card .avatar-small {
    margin: 0 4px 0 2px;
}

/* A Listing owner: the Display name, then the Profile image (owner, 2026-10-20) */
.marketplace .listing-owner-plain,
.marketplace .listing-owner-button {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.marketplace .listing-owner + .avatar {
    margin: 0 0 0 8px;
}

/* Another Member's name and image on a Listing card or page: a button that reads as plain text, the name underlined on hover */
.marketplace .listing-owner-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.marketplace .listing-owner-button:hover .listing-owner,
.marketplace .listing-owner-button:focus-visible .listing-owner {
    text-decoration: underline;
    color: var(--wv-ink);
}

.marketplace .listing-owner-button:focus-visible {
    outline: 2px solid var(--wv-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* The Member card it opens: the Profile image at 96px above the Display name */
.member-card-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.member-card-avatar {
    width: 96px;
    height: 96px;
    margin: 0;
}

.member-card-avatar.avatar-icon {
    background: #e3efeb;
    color: var(--wv-accent);
}

.member-card-avatar.avatar-icon svg {
    width: 44px;
    height: 44px;
}

.member-card-avatar[hidden] {
    display: none;
}

.member-card-dialog .confirm-dialog-message {
    font-size: 22px;
}

.member-card-identity .confirm-dialog-message + .member-card-since {
    margin: -8px 0 0;
}

.member-card-since {
    font-size: 14px;
    color: #5f6f6b;
}

.member-card-since[hidden] {
    display: none;
}

/* The trades with this Member, in a pale box under the name */
.member-card-trades {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1f6f4;
    font-size: 15px;
    text-align: center;
}

.member-card-trades p {
    margin: 0;
}

.marketplace .pager {
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
}

.marketplace .pager a,
.marketplace .pager strong {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
}

.marketplace .pager a {
    border: 1px solid var(--wv-field);
    background: #fff;
}

.marketplace .pager strong {
    background: #1c1d1f;
    color: #fff;
}

/* My Listings: Active, Not Listed and Closed */
.marketplace .listing-group + .listing-group {
    margin-top: 0;
}

.marketplace .listing-group h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wv-heading);
}

.marketplace .form-actions {
    margin: 0;
    gap: 10px;
}

/* the Listing form's buttons, after Photos on the right: Save draft outlined, Publish filled, both in the heading colour */
.marketplace.listing-edit {
    gap: 16px;
}

.marketplace .listing-actions {
    justify-content: flex-end;
}

.marketplace .listing-actions .pill-outline:not(.pill-quiet) {
    border-color: var(--wv-heading);
    color: var(--wv-heading);
}

.marketplace .listing-actions .pill-button {
    background: var(--wv-heading);
}

.marketplace .listing-actions .pill-button:hover {
    background: var(--wv-accent);
}

/* an Exchange: its title with its role tag, then one card */
.listing-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

/* the Listing as a buyer reads it (owner, 2026-10-25): the cover photo beside the title, the price and who offers it from where */
.marketplace .listing-intro {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wv-divider);
}

.marketplace .listing-cover {
    flex: none;
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--wv-wait);
}

.marketplace .listing-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wv-field);
}

.marketplace .listing-head-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marketplace .listing-intro h1 {
    margin: 0;
    overflow-wrap: anywhere;
}

.marketplace .listing-price {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--wv-ink);
}

.marketplace .listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}

@media (max-width: 40rem) {
    .marketplace .listing-cover { width: 80px; height: 80px; }
    .marketplace .listing-price { font-size: 24px; }
}

/* Buy across the card's foot */
.marketplace .listing-buy {
    width: 100%;
}

.marketplace .own-listing {
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--wv-accent-soft);
    color: var(--wv-accent);
    font-size: 13px;
    font-weight: 600;
}

.listing-sheet {
    gap: 18px;
}

.marketplace .listing-gallery {
    margin: 0;
    gap: 10px;
}

.marketplace .listing-photo {
    width: 9rem;
    border-radius: 12px;
}

.marketplace .listing-details-list {
    grid-template-columns: 10rem minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 0;
}

.marketplace .listing-details-list dt,
.marketplace .listing-details-list dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--wv-divider);
}

.marketplace .listing-details-list dt {
    color: var(--wv-muted);
}

.marketplace .listing-description {
    margin: 0;
    max-width: none;
}

.listing-sheet > form,
.listing-sheet > .listing-action {
    margin: 0;
}

/* the Listing form: each section a white card; legends as card titles */
.marketplace .listing-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marketplace .listing-form > .row-note {
    margin: 0;
}

.marketplace .listing-form fieldset,
.marketplace #photos {
    max-width: none;
    margin: 0;
    padding: 22px 26px;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    background: #fff;
}

.marketplace .form-section + .form-section {
    margin-top: 0;
}

.marketplace .listing-form legend {
    float: left;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--wv-heading);
}

.marketplace .listing-form legend + * {
    clear: both;
}

.marketplace .listing-form [hidden],
.marketplace .selling-fields[hidden] { /* the commitment cards sit outside the form: only the chosen selling method's shows */
    display: none !important;
}

.marketplace .form-row {
    grid-template-columns: 11rem minmax(0, 1fr);
    margin-bottom: 18px;
}

.marketplace .form-row:last-child {
    margin-bottom: 0;
}

.marketplace .form-row label,
.marketplace .form-row > .row-label {
    grid-column: 1;
    margin: 0;
    font-weight: 400;
    color: var(--wv-heading);
    font-size: 15px;
}

/* a hint under its field: the Title, the Amount */
.marketplace .form-row > .field-hint {
    margin: 8px 0 0;
    font-size: 13px;
}

/* Fulfilment: the methods side by side, the label level with the first line when they wrap */
.marketplace #fulfilment {
    align-items: start;
}

.marketplace .check-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
}

.marketplace .check-inline .check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    color: var(--wv-heading);
}

.marketplace .check-inline .check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.marketplace .form-row input:not([type="checkbox"]):not([type="file"]),
.marketplace .form-row select,
.marketplace .form-row textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    background: #fff;
    font: 400 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
}

.marketplace .form-row textarea {
    padding: 10px 14px;
    border-radius: 14px;
    resize: vertical;
}

/* a text area's label sits level with its first line, not its middle (owner, 2026-10-15) */
.marketplace .form-row:has(textarea) {
    align-items: start;
}

.marketplace .form-row:has(textarea) label {
    padding-top: 11px;
}

.marketplace .form-row input:focus,
.marketplace .form-row select:focus,
.marketplace .form-row textarea:focus {
    outline: 3px solid #5aa892;
    outline-offset: 1px;
}

/* Produce's quantity and its unit side by side (owner, 2026-10-15): the number a fixed 8rem, the unit list the rest, never narrower than
   its longest choice - as specific as the 100% rule above, and after it, so it wins */
.marketplace .form-row .quantity-inputs input[type="number"] {
    flex: 0 0 8rem;
    width: 8rem;
}

.marketplace .form-row .quantity-inputs select {
    flex: 1 1 12rem;
    min-width: 10rem;
    width: auto;
}

/* the auction's closing date and its time list side by side (owner, 2026-10-30); they wrap on a narrow screen */
.form-row .closing-time {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-row .closing-time input[type="date"],
.marketplace .form-row .closing-time input[type="date"] {
    flex: 1 1 10rem;
    width: auto;
}

.form-row .closing-time select,
.marketplace .form-row .closing-time select {
    flex: 0 1 9rem;
    min-width: 8rem;
    width: auto;
}

.marketplace .check {
    margin: 6px 0;
}

.marketplace .check input {
    accent-color: var(--wv-accent);
}

.marketplace .row-note {
    color: var(--wv-muted);
    font-size: 14px;
}

/* Photos */
.marketplace #photos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketplace #photos h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--wv-heading);
}

.marketplace #photos .row-note,
.marketplace #photos .photo-list {
    margin: 0;
}

.marketplace .listing-thumb {
    border-radius: 12px;
}

/* the form's photos, new and Draft alike (owner, 2026-10-15, 2026-10-20): square previews, the first marked Cover, each with a round
   remove button, then a dashed Add photos tile; the plain picker (no script) as a small outline pill */
.marketplace #new-photos {
    max-width: 100%;
    font: 400 14px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-muted);
}

.marketplace #new-photos::file-selector-button {
    min-height: 36px;
    margin-right: 10px;
    padding: 0 16px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    background: #fff;
    color: var(--wv-ink);
    font: 600 14px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}

.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-preview,
.photo-add-tile {
    position: relative;
    width: 96px;
    height: 96px;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: var(--wv-wait);
}

.photo-cover {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--wv-ink);
    font-size: 12px;
    font-weight: 600;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--wv-field);
    border-radius: 50%;
    background: #fff;
    color: var(--wv-ink);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.photo-remove:hover { border-color: #a4372c; color: #a4372c; }

.photo-add-tile button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1.5px dashed var(--wv-field);
    border-radius: 12px;
    background: #fff;
    color: var(--wv-accent);
    font: 600 13px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}

.photo-add-tile button span { font-size: 22px; font-weight: 400; line-height: 1; }

.photo-add-tile button:hover { border-color: var(--wv-accent); background: var(--wv-accent-soft); }

.photo-remove:focus-visible,
.photo-add-tile button:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }

/* a trade's Report a problem: the Marketplace form rows, the button lined up under the fields (owner, 2026-10-28) */
.marketplace .report-form {
    margin-top: 16px;
}

.marketplace .report-actions {
    margin-left: calc(11rem + 0.75rem);
}

@media (max-width: 40rem) {
    .marketplace .report-actions { margin-left: 0; }
}

@media (max-width: 40rem) {
    .marketplace .form-row,
    .marketplace .listing-details-list { grid-template-columns: 1fr; }
    .marketplace .listing-details-list dt { border-bottom: 0; padding-bottom: 0; }
    .marketplace .form-row > * { grid-column: 1; }
    .marketplace .form-row:has(textarea) label { padding-top: 0; }
    .marketplace .listing-form fieldset,
    .marketplace #photos { padding: 18px; }
}

/* The avatar image picker (owner, 2026-10-11; M36): "No avatar" and each pre-loaded image as a radio tile; the checked tile is ringed. */
.avatar-picker {
    border: 0;
    margin: 0 0 12px;
    padding: 0;
}

.avatar-picker legend {
    font-weight: 600;
    margin-bottom: 8px;
}

.avatar-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 10px;
}

.avatar-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px 10px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--wv-amount, #eef4f2);
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.avatar-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-choice .avatar {
    width: 88px;
    height: 88px;
    margin-right: 0;
}

.avatar-choice .avatar-icon svg {
    width: 36px;
    height: 36px;
}

.avatar-choice:has(input:checked) {
    border-color: #111;
    background: #fff;
}

.avatar-choice:has(input:focus-visible) {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Phones (owner, 2026-10-11): three avatar images per row at 72px, so a long catalogue stays a short scroll. */
@media (max-width: 40rem) {
    .avatar-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .avatar-choice {
        padding: 10px 4px 8px;
        font-size: 13px;
    }

    .avatar-choice .avatar {
        width: 72px;
        height: 72px;
    }
}

/* The chosen image, large (owner, 2026-10-11): above the grid, kept in view while the grid scrolls; 180px (120px on phones). */
.avatar-picker-preview {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 12px 0 10px;
    background: #fff;
    border-bottom: 1px solid var(--wv-line, #e2e8e6);
}

.avatar-picker-preview[hidden],
.avatar-picker-preview .avatar-picker-preview-image[hidden] {
    display: none;
}

.avatar-picker-preview .avatar-picker-preview-image {
    width: 180px;
    height: 180px;
    margin-right: 0;
}

.avatar-picker-preview .avatar-icon svg {
    width: 64px;
    height: 64px;
}

.avatar-picker-preview-name {
    font-weight: 600;
}

@media (max-width: 40rem) {
    .avatar-picker-preview .avatar-picker-preview-image {
        width: 120px;
        height: 120px;
    }
}

/* "Choose your avatar" (owner, 2026-10-11): the Save button pinned to the bottom of the screen while the grid scrolls, so it is always in
   reach however many avatars there are. */
.avatar-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 12px -4px 0;
    padding: 12px 4px 14px;
    background: #fff;
    border-top: 1px solid var(--wv-line, #e2e8e6);
}

.avatar-save-bar .pill-button {
    min-width: 200px;
}

/* Member profile: hidden while the chosen image is the saved one (owner, 2026-10-28) */
.avatar-save-bar[hidden] {
    display: none;
}

/* The Member Identity card (owner, 2026-10-14): the warning directly beneath the Display name field, in amber so it is not read as one more
   grey hint - two lines, no mark (owner, 2026-10-16); and above the button, the name as it will be confirmed. */
.onboarding .name-warning {
    display: flex;
    flex-direction: column;
    margin: 8px 0 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--wv-amber-soft);
    color: var(--wv-amber);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.onboarding .name-warning { max-width: 560px; } /* as wide as the paragraph it was before M89 */
.onboarding .name-warning p { margin: 0; } /* each paragraph of its tPageText row on its own line (M89) */

.name-confirm-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.name-confirm-bar .name-summary {
    margin: 0;
    color: var(--wv-ink);
    font-size: 14px;
    text-align: center;
    overflow-wrap: anywhere;
}

.name-confirm-bar .name-summary strong {
    color: var(--wv-heading);
    font-weight: 700;
}

/* The rename note above "Create Trading Avatar" (owner, 2026-10-11): how - and how often - the Trading Name can be changed later, so it reads
   as something to weigh, not one more grey hint. */
.name-rules,
.step-card .name-rules {
    max-width: none;
    margin: 4px 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--wv-accent, #2f6b5f);
    border-radius: 8px;
    background: var(--wv-accent-soft, #e3efeb);
    color: #1f3a35;
    font-size: 14px;
    line-height: 1.45;
}

.name-rules strong {
    font-weight: 700;
}

/* The postcode check (Postcode Eligibility brief, 2026-10-14): the field's own error, the result block, and the checked postcode and
   community shown read-only on the Registration forms. */
.auth .field-error {
    margin: 0;
    font-size: 14px;
    color: #a4372c;
}

.auth .field input[aria-invalid="true"] {
    border-color: #a4372c;
}

.eligibility-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eligibility-result p {
    margin: 0;
    font-size: 16px;
    color: var(--wv-ink);
}

/* the result takes focus only so screen readers announce it; it is not interactive, so no focus ring */
.eligibility-result:focus,
.eligibility-result:focus-visible {
    outline: none;
}

.pill-button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* Confirm purchase (owner, 2026-10-25): full width, quiet until the agreement is ticked */
.buy-confirm {
    width: 100%;
}

.pill-button.buy-confirm:disabled {
    opacity: 1;
    background: #eceeed;
    color: #8a948f;
    cursor: not-allowed;
}

/* the Community Pool contribution's rounding, under its label */
.levy-rounding {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--wv-muted);
}

/* An eligible postcode (owner's mockup, 2026-10-14): a centred card - the tick, the heading, the community sentence, the checked postcode
   on a soft green panel, and the full-width Continue button. */
.eligibility-card {
    gap: 20px;
}

.eligibility-card .eligibility-result {
    align-items: center;
    gap: 14px;
}

.eligibility-card h1 {
    margin: 0;
    max-width: 360px;
    line-height: 1.25;
    color: var(--wv-heading);
}

.eligibility-card .eligibility-result p {
    color: var(--wv-muted);
    font-size: 15px;
}

.checked-postcode-panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--wv-accent-soft);
    text-align: left;
}

.eligibility-card > .pill-button {
    align-self: stretch;
    margin-top: 4px;
}

/* Create your account / Finish registering (owner's mockup, 2026-10-14): no divider under the heading; the checked postcode and community
   on the soft green panel at the top of the form; the next step in small print under the button. */
.step-card-plain-head .step-head {
    padding-bottom: 0;
    border-bottom: 0;
}

.registration-postcode {
    gap: 4px;
}

.checked-postcode-line {
    margin: 0;
    font-size: 14px;
    color: var(--wv-heading);
}

.checked-postcode-line strong { font-weight: 700; overflow-wrap: anywhere; }

/* No community for the postcode (owner's mockup, 2026-10-14): the explanation under the postcode panel, left-aligned. */
.eligibility-card .eligibility-explanation {
    align-self: stretch;
    align-items: stretch;
    gap: 16px;
    text-align: left;
}

.eligibility-card .eligibility-explanation p {
    max-width: none;
    font-size: 15px;
    color: var(--wv-ink);
}

/* M61 Admin console: Members (list, detail, confirm). Panels sit two across on a wide screen and stack on a narrow one; the tables become
   labelled rows on a phone, so the page never scrolls sideways. */
.member-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.member-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-search-field input[type="search"] {
    min-width: 16rem;
    max-width: 100%;
}

.member-table-wrap {
    max-width: 100%;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
}

.member-table th,
.member-table td {
    padding: 0.4rem 0.6rem 0.4rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #dee2e6;
}

.member-status {
    display: inline-block;
    padding: 0.1em 0.5em;
    border-radius: 999px;
    font-size: 0.9em;
    background: #e9ecef;
    color: #212529;
    white-space: nowrap;
}

.member-status-active { background: #d1e7dd; color: #0f5132; }
.member-status-onboarding { background: #cfe2ff; color: #084298; }
.member-status-suspended { background: #fff3cd; color: #664d03; }
.member-status-ended { background: #e2e3e5; color: #41464b; }

.member-reason {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.member-search a:focus-visible,
.member-table a:focus-visible,
.member-actions a:focus-visible,
.member-actions button:focus-visible,
.member-search button:focus-visible,
.pager button:focus-visible {
    outline: 3px solid #5aa892;
    outline-offset: 2px;
}

/* The Members list in the card style of Account settings (owner, 2026-10-20): pill fields and buttons, the table on hairlines */
.admin-back {
    margin: 0 0 8px;
    font-size: 15px;
}

.admin-back a,
.admin-members .member-table a {
    color: var(--wv-accent);
    font-weight: 600;
    text-decoration: none;
}

.admin-back a:hover,
.admin-members .member-table a:hover { text-decoration: underline; }

.admin-members h1 .env-badge {
    font-size: 14px;
    letter-spacing: 0;
    border-radius: 999px;
    padding: 4px 12px;
}

.admin-members .member-search { gap: 12px 16px; margin-top: 8px; }
.admin-members .member-search-field { flex: 1 1 14rem; gap: 8px; }
.admin-members .member-search-field input[type="search"] { min-width: 0; }

.admin-members .member-search-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    background: #fff;
    font: 400 16px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
}

.admin-members .member-search-field select:focus {
    outline: 3px solid #5aa892;
    outline-offset: 1px;
}

.admin-members-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    margin-bottom: 8px;
}

.admin-members-count {
    font-size: 14px;
    color: var(--wv-muted);
}

.admin-members .member-table th,
.admin-members .member-table td {
    padding: 14px 16px 14px 0;
    vertical-align: middle;
    border-bottom: 1px solid var(--wv-divider);
}

.admin-members .member-table th {
    padding-top: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wv-quiet);
}

.admin-members .member-table tbody tr:last-child td { border-bottom: 0; }

.admin-members .member-status {
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
}

.admin-members .member-status-active { background: var(--wv-accent-soft); color: var(--wv-accent); }
.admin-members .pager { margin-top: 16px; }

/* The Admin hub (owner, 2026-10-20): link rows in cards, the release line under them */
.admin-hub-card { gap: 10px; }

.admin-release {
    margin: 0;
    font-size: 13px;
    color: var(--wv-quiet);
    overflow-wrap: anywhere;
}

/* The admin tools in the same style (owner, 2026-10-20): results as notices inside their card, the "Check again" line under the cards */
.admin-result { margin-top: 8px; }

.admin-tool-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.admin-tool-form .text-danger { margin: 0; font-size: 14px; }

.admin-checked {
    margin: 0;
    font-size: 14px;
    color: var(--wv-muted);
}

.admin-checked a {
    color: var(--wv-accent);
    font-weight: 600;
    text-decoration: none;
}

.admin-checked a:hover { text-decoration: underline; }

/* New member admission / Interest registration: each choice a bordered option, the chosen one in the accent */
.policy-fieldset {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.policy-legend {
    margin-bottom: 4px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--wv-heading);
}

.policy-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--wv-field);
    border-radius: 14px;
    cursor: pointer;
}

.policy-choice:has(input:checked) {
    border-color: var(--wv-accent);
    background: var(--wv-accent-soft);
}

.policy-choice input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--wv-accent);
}

.policy-choice:has(input:focus-visible) {
    outline: 3px solid #5aa892;
    outline-offset: 2px;
}

.policy-choice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.policy-code { font-weight: 700; color: var(--wv-heading); }
.policy-explanation { font-size: 14px; color: var(--wv-muted); }
.policy-fieldset .step-hint { margin: 4px 0 0; }

.policy-change-state {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--wv-quiet);
}

.policy-fieldset[disabled] .policy-choice { cursor: not-allowed; opacity: 0.6; }
.admin-members .pill-button:disabled { background: #b9c2bf; cursor: not-allowed; }

/* A Member's detail and an action's confirm step in the same style (owner, 2026-10-20) */
.admin-members-none {
    margin: 8px 0 0;
    color: var(--wv-muted);
}

.admin-member-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-members .member-actions { gap: 10px; margin-top: 12px; }
.admin-members .member-actions li { margin: 0; }

.admin-member-effects {
    margin: 8px 0 0;
    padding-left: 20px;
}

.admin-member-effects li + li { margin-top: 6px; }

.member-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.member-confirm-form .step-hint { margin: 0; }

.member-confirm-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 18px;
    border: 1px solid var(--wv-field);
    border-radius: 14px;
    resize: vertical;
    font: 400 16px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
}

.member-confirm-form textarea:focus {
    outline: 3px solid #5aa892;
    outline-offset: 1px;
}

@media (max-width: 40rem) {
    .admin-members .member-table tr { border-bottom: 1px solid var(--wv-divider); padding: 12px 0; }
    .admin-members .member-table tbody tr:last-child { border-bottom: 0; }
    .admin-members .member-table td { padding: 2px 0; border: 0; }
    .admin-members .member-table td::before { color: var(--wv-quiet); }
}

@media (max-width: 40rem) {
    .member-search-field,
    .member-search-field input[type="search"],
    .member-search-field select { width: 100%; min-width: 0; }
    .member-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .member-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid #dee2e6; }
    .member-table td { display: flex; gap: 0.5rem; border: 0; padding: 0.1rem 0; }
    .member-table td::before { content: attr(data-label); flex: 0 0 6.5rem; font-weight: 600; }
}

/* ---- Notifications (M71, slice N1; docs/design/notifications/04-PAGE-AND-CLIENT.md §1, §4, §9; owner decisions ND1 - ND22, 2026-10-26) ----
   The Dashboard's language: white cards with the hairline border on the pale ground. Corners 20 px as the brief says (ND9: the rest of the site
   keeps 18 px). An unread card has a teal dot labelled "Unread" and a stronger title; a status has a labelled badge - colour never alone. Every
   control is at least 44 x 44 px; the cards stack and the controls wrap on a small screen, with no horizontal scrolling. */
.top-bar-end {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    color: var(--wv-heading);
}

.notification-bell:hover { color: var(--wv-accent); background: var(--wv-accent-soft); }
.notification-bell:focus-visible { outline: 3px solid #5aa892; outline-offset: 2px; }

.notification-bell-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #1f4a43;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.notification-bell-badge[hidden] { display: none; }

.notifications {
    --notification-card-radius: 20px;
    --wv-urgent: #8f2a1f;
    --wv-urgent-soft: #fbebe8;
    --wv-amber-line: #e6cf9f;
    gap: 16px;
}

.notifications h1 { font-size: 34px; }
.notifications-intro { margin: -8px 0 0; color: var(--wv-muted); }

.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    background: #fff;
    color: var(--wv-ink);
    font: 600 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}

.filter-button:hover { border-color: var(--wv-accent); }
.filter-button[aria-pressed="true"] { border-color: var(--wv-heading); background: var(--wv-heading); color: #fff; }
.filter-button:focus-visible { outline: 3px solid #5aa892; outline-offset: 2px; }

.attention-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.attention-summary p { margin: 0 auto 0 0; font-weight: 600; color: var(--wv-heading); }
.attention-summary form { margin: 0; }
.attention-summary .pill-small,
.notifications .pill-small { min-height: 44px; }

.notifications button[disabled] { opacity: 0.55; cursor: not-allowed; }

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card,
.notification-details {
    background: #fff;
    border: 1px solid var(--wv-line);
    border-radius: var(--notification-card-radius);
}

.notification-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0;
    font-size: 14px;
    color: var(--wv-muted);
}

.notification-icon { display: flex; color: var(--wv-accent); }
.notification-category { font-weight: 600; color: var(--wv-heading); }
.notification-time::before { content: "·"; margin-right: 10px; color: var(--wv-quiet); }
.notification-facts .notification-time::before { content: none; } /* a time on its own (Accepted) needs no separator */

.notification-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--wv-heading);
}

.notification-card.is-unread .notification-title { font-weight: 800; }
.notification-summary { margin: 0; font-size: 15px; }

.notification-state {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
}

.unread-marker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wv-accent);
}

.unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wv-accent);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border: 1px solid var(--wv-line);
    border-radius: 999px;
    background: var(--wv-wait);
    font-size: 13px;
    font-weight: 600;
    color: var(--wv-ink);
}

.status-badge.status-action-required { border-color: var(--wv-urgent); background: var(--wv-urgent-soft); color: var(--wv-urgent); }
.status-badge.status-warning { border-color: var(--wv-amber-line); background: var(--wv-amber-soft); color: var(--wv-amber); }
.status-badge.status-resolved { border-color: transparent; background: var(--wv-accent-soft); color: var(--wv-heading); }

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 6px;
}

.notification-actions form { margin: 0; }

/* Mark as read: a quiet text button, still 44 px tall */
.pill-text {
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--wv-accent);
    font: 600 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pill-text:hover { color: var(--wv-heading); }
.pill-text:focus-visible { outline: 3px solid #5aa892; outline-offset: 2px; }

.notification-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.notification-details h2:focus { outline: none; }
.notification-details h2:focus-visible { outline: 3px solid #5aa892; outline-offset: 4px; }
.notification-details p { margin: 0; }
.notification-details .notification-subheading { margin: 8px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--wv-heading); }
.notification-details .notification-points { margin: 0; padding-left: 1.25rem; display: grid; gap: 4px; }
.notification-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notification-details .notification-close { align-self: flex-start; }
.notification-details .pill-button { align-self: flex-start; }
.notification-details .pill-outline { align-self: flex-start; }

/* one label column as wide as the longest label, so every value starts at the same place (each row is a subgrid of the list) */
.notification-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 16px;
    margin: 4px 0;
}

.notification-facts div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.notification-facts dt { font-weight: 600; color: var(--wv-heading); }
.notification-facts dd { margin: 0; overflow-wrap: anywhere; }

.notifications-empty p { margin: 0; color: var(--wv-muted); }
.notifications-empty form { margin-top: 10px; }
.notifications-more { display: flex; justify-content: center; }
.notifications-unavailable h2 { margin: 0; }
.notifications-unavailable .pill-outline { align-self: flex-start; }

/* the bell joins the top bar: on a phone the Display name gives way (truncated) so the bell and the profile image stay whole */
@media (max-width: 40rem) {
    .top-bar-end { gap: 0.5rem; min-width: 0; }
    .top-bar-end .member-bar-link { min-width: 0; }
    #member-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .top-bar .nav-logo { flex: none; }
}

@media (max-width: 40rem) {
    .notifications h1 { font-size: 28px; }
    .notification-card { padding: 16px; }
    .notification-details { padding: 18px; }
    .notification-facts { grid-template-columns: minmax(0, 1fr); } /* narrow: each label above its value */
}

/* ---- The shell's alert area (M72, Notifications N2; docs/design/notifications/04-PAGE-AND-CLIENT.md §3): the active account restrictions at
   the top of every signed-in page, in the Dashboard's urgent tone - red bar and text beside words that say the same. Rows wrap and grow; the
   88 px rule only picks the summary-only presentation (the script in _ShellAlerts) and is never a height limit. Targets at least 44 px. */
.shell-alerts {
    --wv-urgent: #8f2a1f;
    --wv-urgent-soft: #fbebe8;
    --wv-urgent-line: #e9b9b1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 712px;
    margin: 0 auto 12px;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #2a3a37;
}

.shell-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    min-height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 0;
    border-left: 5px solid var(--wv-urgent);
    box-shadow: inset 0 0 0 1px var(--wv-urgent-line); /* the hairline takes no height: a one-line row is exactly 44 px */
    border-radius: 20px;
    background: var(--wv-urgent-soft);
}

.shell-alert p { flex: 1 1 16rem; margin: 0; padding: 6px 0; }
.shell-alert strong { color: var(--wv-urgent); }
.shell-alert-icon { display: flex; flex: none; color: var(--wv-urgent); }

.shell-alert-link,
.shell-alerts-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--wv-urgent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shell-alerts-summary > summary { cursor: pointer; list-style: none; }
.shell-alerts-summary > summary::-webkit-details-marker { display: none; }
.shell-alerts-summary > summary:focus-visible,
.shell-alert-link:focus-visible { outline: 3px solid #5aa892; outline-offset: 2px; }
.shell-alerts-text { flex: 1 1 16rem; padding: 6px 0; }

/* two alerts: the lead row and the summary row read as one block with no space between, so two single-line rows are exactly 88 px and both
   show (04 §3.2); anything taller switches to the summary row alone */
.shell-alerts:has([data-alert-lead]) { gap: 0; }
.shell-alerts [data-alert-lead] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.shell-alerts [data-alert-lead] + .shell-alerts-summary > summary { border-top-left-radius: 0; border-top-right-radius: 0; }
.shell-alerts.summary-only .shell-alerts-summary > summary,
.shell-alerts:has(.shell-alerts-summary[open]) .shell-alerts-summary > summary { border-radius: 20px; }
.shell-alerts-summary .when-open,
.shell-alerts-summary[open] .when-closed { display: none; }
.shell-alerts-summary[open] .when-open { display: inline; }

.shell-alerts-all {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* summary-only (the two rows would be taller than 88 px), and while everything is open the lead row would only repeat the list */
.shell-alerts.summary-only [data-alert-lead],
.shell-alerts:has(.shell-alerts-summary[open]) [data-alert-lead] { display: none; }

/* M73: accepting updated Community agreements from the notice - the tick and the button, each at least 44 px */
.notification-accept { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 4px 0 0; }
.notification-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.notification-consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: #1f4a43; }

/* The AI companion page (M88, C2; docs/design/ai-companion 02 §3, §10): the conversation, the suggested questions and the question box.
   No animation, no fixed-height conversation or nested scrolling; questions and buttons wrap on narrow screens. */
.companion-intro p { margin: 6px 0 0; color: var(--wv-muted); }
.companion h2 { margin: 0 0 8px; font-size: 18px; color: var(--wv-heading); }

.companion-card[hidden] { display: none; } /* the card's display: flex would otherwise show the empty conversation card before the first answer */
.companion-conversation { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.companion-turn { padding: 12px 14px; border-radius: 12px; }
.companion-turn p { margin: 4px 0 0; overflow-wrap: anywhere; }
.companion-who { display: block; font-size: 13px; font-weight: 600; color: var(--wv-quiet); }
.companion-question { background: var(--wv-wait); }
.companion-answer { background: var(--wv-amount); }
.companion-pending { color: var(--wv-muted); }
.companion-unavailable, .companion-busy, .companion-allowance_reached, .companion-invalid, .companion-verify_email, .companion-not_eligible {
    background: var(--wv-amber-soft);
}
.companion-sources { font-size: 14px; color: var(--wv-muted); }
.companion-sources a { color: var(--wv-accent); }

.companion-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--wv-muted); }
.companion-feedback form { display: inline-flex; gap: 6px; margin: 0; }
.companion-thumb { border: 1px solid var(--wv-line); background: #fff; border-radius: 8px; padding: 2px 8px; cursor: pointer; font-size: 15px; }
.companion-thumb[aria-pressed="true"] { border-color: var(--wv-accent); background: var(--wv-accent-soft); }
.companion-thumb:focus-visible, .companion-chip:focus-visible, .companion-restart:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }

.companion-chip {
    border: 1px solid var(--wv-line);
    background: #fff;
    color: var(--wv-heading);
    border-radius: 999px;
    padding: 6px 14px;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.companion-chip:hover { background: var(--wv-accent-soft); }
.companion-chip:disabled, .companion-actions button:disabled { opacity: 0.6; cursor: default; }

.companion-label { font-weight: 600; color: var(--wv-heading); }
#companion-question {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--wv-field);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}
.companion-supporting { margin: 0; font-size: 14px; color: var(--wv-muted); }
.companion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.companion-restart { color: var(--wv-accent); }

/* The Member home page (Member Home Page Design Brief, 2026-11-06): the greeting over "What would you like to do?", three main actions as
   large white cards in a row (stacked on a phone), then the companion card. An unavailable action is greyed with
   a label saying so - never colour alone. */
.member-home-title { display: flex; flex-direction: column; gap: 4px; }
.member-home-greeting { margin: 0; font-size: 18px; color: var(--wv-muted); }

.member-home-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.member-home-actions li { display: flex; }

.member-home-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 120px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--wv-line);
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--wv-heading);
    text-decoration: none;
}

.member-home-action svg { width: 26px; height: 26px; color: var(--wv-accent); }
a.member-home-action:hover { border-color: var(--wv-accent); background: var(--wv-accent-soft); }
a.member-home-action:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }

.member-home-action-off { background: var(--wv-wait); color: var(--wv-quiet); }
.member-home-action-off svg { color: var(--wv-quiet); }

.member-home-badge {
    margin-top: auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--wv-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--wv-muted);
}

/* the companion box on the home page and on the companion page: one look, so the two read as one companion (owner, 2026-11-06) */
.member-home-help h2,
.companion .companion-box h2 { margin: 0; font-size: 20px; color: var(--wv-heading); }
.member-home-help form,
.companion-box form { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.companion-box-suggest { align-items: flex-start; }
#companion-question:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }
#member-home-help-question {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--wv-field);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}
.member-home-help .companion-chip:focus-visible,
#member-home-help-question:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }
.member-home-help-suggest { align-items: flex-start; }

@media (max-width: 40rem) {
    .member-home-actions { grid-template-columns: minmax(0, 1fr); }
    .member-home-action { flex-direction: row; align-items: center; flex-wrap: wrap; min-height: 0; }
    .member-home-badge { margin-top: 0; margin-left: auto; }
}

/* M96 (trade reference slice T2): the trade reference - small and muted on cards, a line of its own under the title on the Listing and
   trade pages; letters and digits spaced for reading aloud. The Copy button appears only where the clipboard is available. */
.listing-reference { color: var(--wv-muted); font-size: 14px; }
p.listing-reference { margin: 4px 0 0; }
.trade-reference, .listing-card .listing-reference { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.copy-button { margin-left: 6px; font-size: 14px; }

/* M97 (Support & feedback design brief 01): the hub's visibility notice, text a member wrote (their line breaks kept), the admin thread and the
   queue's filter */
.support-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.support-notice svg { flex: none; color: var(--wv-accent); }
.support-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.submission-message { padding: 10px 0; border-top: 1px solid var(--wv-line); }
.submission-message:first-of-type { border-top: 0; }
.submission-message .row-note { margin: 0 0 4px; }
.admin-filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.admin-filter-form .field { margin: 0; }

/* M98 (Support & feedback design brief 02): Give feedback - the category in the card form's rounded field style, inline field errors */
.feedback-form select {
    box-sizing: border-box;
    width: 100%;
    max-width: 22rem;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--wv-field);
    border-radius: 999px;
    background: #fff;
    font: 400 16px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--wv-ink);
}
.feedback-form select:focus { outline: 3px solid #5aa892; outline-offset: 1px; }
.feedback-form .field-error { margin: 0; font-size: 14px; color: #a4372c; }
.submission-row dt { grid-column: 1; grid-row: 1; }
.submission-row-details { grid-column: 1; grid-row: 2; color: var(--wv-quiet); font-size: 15px; overflow-wrap: anywhere; }
.submission-row-action { grid-column: 2; grid-row: 1 / span 2; }
/* owner, 2026-11-10: Admin > Submissions - the reference, then the Member's name, then the details on a third line */
.submission-row-member { grid-column: 1; grid-row: 2; font-size: 15px; color: var(--wv-ink); overflow-wrap: anywhere; }
.submission-row-member + .submission-row-details { grid-row: 3; }
.submission-description { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--wv-divider); }
.submission-description .community-name { margin: 0; }
.submission-quote { margin: 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--wv-line); color: var(--wv-ink); }
.notice[hidden] { display: none; } /* .notice's display: flex would otherwise show Give feedback's hidden "couldn't confirm" notice on every fresh form */
.feedback-form .field-hint { margin: 0; }
.feedback-form [aria-invalid="true"] { border-color: #a4372c; }
.feedback-form .field-hint[hidden] { display: none; } /* M99: Report a problem's completed-trade hint, hidden once a category is chosen */

/* owner, 2026-11-09: a trade's "Your reports" - one block per report: kind and date with an Open / Handled badge, then the words under a small
   "Message" heading */
.exchange-reports { display: flex; flex-direction: column; }
.exchange-report { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--wv-divider); }
.exchange-report:first-child { border-top: 0; padding-top: 4px; }
.exchange-report p { margin: 0; }
.exchange-report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.exchange-report-when { white-space: nowrap; }

/* Admin > Trade reference: the label keeps its width and a long value wraps beneath itself; the trade's id is a small second line */
#reference-result .community-row { grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; }
#reference-result .settings-value { min-width: 0; overflow-wrap: anywhere; }
.reference-trade-id { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--wv-muted); }

/* M100 (Support & feedback brief 04): My submissions - each row's type and category with its status badge, then the date and a one-line excerpt */
.submission-row .link-row-text { min-width: 0; }
/* owner, 2026-11-10: My submissions - the row is no longer one big link; its reference is the link, so the row keeps its colour on hover */
.my-submission-row:hover { background: var(--wv-wait); }
.my-submission-reference { font-size: 15px; }
.submission-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.submission-excerpt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.submission-reply-form { padding-top: 12px; border-top: 1px solid var(--wv-divider); margin-top: 8px; }
#submission-removal { margin-top: 4px; }
.exchange-report-label { margin-top: 6px !important; font-size: 13px; font-weight: 600; color: var(--wv-quiet); }

/* M102 (What we're learning design brief 05 v1.12): the learning journal, /support/learning - one column: the label over the title, the
   introduction, the topic filters and the result count, then one card per entry (topic and date, title, summary, the
   details Read more opens). A filtered-out card and closed details are hidden: the cards' display: flex would otherwise show them. */
.learning-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wv-accent); }
.learning-intro { display: flex; flex-direction: column; gap: 10px; }
.learning-intro p, .learning-invite p, #learning-closing p { margin: 0; }
.learning-invite .learning-problem { margin-top: 8px; font-size: 14px; color: var(--wv-muted); } /* the quieter way to Report a problem */
.learning-entries { display: flex; flex-direction: column; gap: 14px; }
.learning-entries > div > h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: var(--wv-heading); }
.learning-entries-description { margin: 0; color: var(--wv-muted); }
.learning-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-count { margin: 0; font-size: 14px; color: var(--wv-muted); }
.learning-empty { margin: 0; color: var(--wv-muted); }
.learning-empty[hidden] { display: none; }
.learning-list { display: flex; flex-direction: column; gap: 14px; }
.learning-card { gap: 8px; }
.learning-card[hidden], .learning-details[hidden] { display: none; }
.learning-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--wv-muted); }
.learning-topic { padding: 2px 10px; border-radius: 999px; background: var(--wv-accent-soft); color: var(--wv-heading); font-weight: 600; }
.learning-card h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--wv-heading); overflow-wrap: anywhere; }
.learning-details { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--wv-divider); }
.learning-details h4 { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--wv-heading); }
.learning-details h4:first-child { margin-top: 0; }
.learning-toggle { min-height: 44px; padding: 0; border: 0; background: none; color: var(--wv-accent); font: 600 15px "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.learning-toggle:hover { color: var(--wv-heading); }
.learning-toggle:focus-visible { outline: 3px solid #5aa892; outline-offset: 2px; border-radius: 4px; }
/* Requests (M103, slice Q1; the Requests brief, decisions R22, R38, R39): My listings groups My offers and My requests, each with its button
   beside the heading; the Offers and Requests tabs carry their main action; the request form shares one character count across its answers */
.marketplace .group-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.marketplace .group-heading h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--wv-heading); }
.marketplace .listing-subgroup h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--wv-heading); }
.marketplace .listing-group .group-heading { margin-bottom: 10px; }
/* My listings (owner, 2026-11-12): room between a section's Active group and the Inactive group beneath it */
.marketplace .listing-group .listing-subgroup + .listing-subgroup { margin-top: 22px; }
.marketplace .tab-action { justify-content: flex-start; }
.request-edit #details-count.field-error { color: #a4372c; font-weight: 600; }
/* M104 (slice Q2): a posted request - its answers keep their line breaks; the review lists what stops posting */
.marketplace .request-answer-text { white-space: pre-line; overflow-wrap: anywhere; }
.marketplace #review-problem-list { margin: 0 0 12px; padding-left: 20px; }
.marketplace #review-problem-list .field-error { color: #a4372c; }
.marketplace .listing-sheet + .listing-sheet { margin-top: 16px; }
/* M105 (slice Q3): replies - I can help, the helper's own reply, the requester's reply list */
.marketplace .listing-sheet > h2 { margin: 0 0 10px; font-size: 20px; }
/* the reply form is one column: the confirmation takes the full width with its box beside the first line, and the message label sits
   above its field, so label, field and hint share one left edge */
.marketplace .request-reply-form .form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 14px; }
.marketplace .request-reply-form .form-row > * { grid-column: 1; }
.marketplace .request-reply-form .form-row label { padding-top: 0; }
.marketplace .request-reply-form .form-row > .field-hint { margin-top: 0; }
.marketplace .request-reply-form h2 { margin-bottom: 8px; }
.marketplace .request-reply-form #reply-terms { margin: 0 0 14px; }
.marketplace .request-needed-by { margin: 4px 0 0; font-weight: 600; color: var(--wv-heading); }
.marketplace .request-reply-form .tick-label { align-items: flex-start; }
.marketplace .request-reply-form .tick-label input { flex: none; margin: 2px 0 0; }
.marketplace .request-reply-form textarea { width: 100%; box-sizing: border-box; }
.marketplace .request-reply-form .field-error { margin: 0; font-size: 14px; color: #a4372c; }
.marketplace .request-reply-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.marketplace .request-reply { padding: 12px 14px; border: 1px solid var(--wv-line, #dfe6e3); border-radius: 12px; }
.marketplace .request-reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.marketplace .request-reply-name { font-weight: 600; }
.marketplace .request-reply-message { margin: 0 0 6px; }
.marketplace .request-card-tag { font-size: 13px; }
/* the "Your listing" / "You replied" badge at the right of a card's last line: the bottom right corner (owner, 2026-11-16) */
.marketplace .listing-card-own { flex-shrink: 0; white-space: nowrap; align-self: flex-end; }

/* M109 (Messaging slice MS1): the unread counts, the inbox and a conversation */
.side-nav a .nav-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--wv-heading, #1f4a43);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
}
.messages .conversation-row .listing-card-meta { justify-content: space-between; gap: 8px; }
.messages .conversation-unread .listing-title { font-weight: 700; }
.messages .conversation-unread-label { font-size: 13px; font-weight: 600; color: var(--wv-heading, #1f4a43); }
.messages .conversation-time { color: var(--wv-quiet, #5b6f6b); font-size: 14px; white-space: nowrap; }
.messages .conversation-head h1 { margin: 0 0 4px; }

/* Unified Messages (the owner's brief and mock, 2026-11-13): one list of conversations and Weavo's updates. Every row is three lines of the
   same size - what it is, what it is about, who it is with - with Unread top right; no coloured border, no time, no preview. */
.messages .messages-section-heading { margin: 24px 0 12px; font-size: 17px; font-weight: 600; color: var(--wv-heading, #1f4a43); }
.messages .message-rows { margin-bottom: 8px; }
.messages .message-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.messages .message-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
/* the row's icon (owner, 2026-11-16): a narrow column left of the three lines, level with the first; the sidebar icons' muted teal */
.messages .message-row-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 24px; color: #4f706a; }
.messages .message-row-icon svg { display: block; }
.messages .message-row-line { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--wv-ink); overflow-wrap: anywhere; }
.messages .message-row-unread {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--wv-accent-soft, #e3efeb);
    color: var(--wv-heading, #1f4a43);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
/* the row's one time (owner, 2026-11-16): lower right, under where Unread shows, so the three lines on the left stay as they are */
.messages .message-row { align-items: stretch; }
.messages .message-row-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
/* the card's colour by what it is (owner, 2026-11-16): a sale notice green, a purchase notice amber, a conversation blue; and (owner,
   2026-11-29) Tokens received from the Community Pool violet; every other notice stays white. Soft tints, so the ink and the quiet
   time keep their contrast; Unread turns white so it still stands out. */
.messages .message-row[data-tone="sold"] { background: #edf6f0; border-color: #c5dfd0; }
.messages .message-row[data-tone="purchased"] { background: #fbf4e6; border-color: #ecd9b0; }
.messages .message-row[data-tone="conversation"] { background: #edf3fa; border-color: #c9d9ec; }
.messages .message-row[data-tone="pool"] { background: #f3effa; border-color: #d8cdec; }
.messages .message-row[data-tone="sold"]:hover { border-color: #9cc7b0; }
.messages .message-row[data-tone="purchased"]:hover { border-color: #dcbf82; }
.messages .message-row[data-tone="conversation"]:hover { border-color: #a3bedd; }
.messages .message-row[data-tone="pool"]:hover { border-color: #b7a5db; }
.messages .message-row:not([data-tone="plain"]) .message-row-unread { background: #fff; }
.messages .message-row-time { margin-top: auto; color: var(--wv-quiet, #5b6f6b); font-size: 14px; line-height: 1.5; white-space: nowrap; }
/* an opened update, laid out as the conversation is (owner, 2026-11-16): the title as the page heading, then the summary and what can
   be opened from it close together */
.messages .message-update h1 { margin: 0 0 4px; }
.messages .message-update > p { margin: 0 0 8px; }
.messages .message-update > p:last-child { margin-bottom: 0; }
.messages .message-update-meta { margin: 0 0 12px; }
.messages .message-update-links a + a { margin-left: 16px; } /* View trade, View listing */
.messages .message-update-status { margin: 0 0 8px; font-weight: 600; }
.messages .message-update-more { margin: 12px 0; }
.messages .message-update-more > summary { cursor: pointer; font-weight: 600; }
.messages .message-update-more > summary + * { margin-top: 12px; }
.messages .conversation-meta, .messages .conversation-links { margin: 0 0 4px; }
/* the title with the Offer's state in a small badge beside it (owner, 2026-11-16) */
.messages .conversation-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 4px; }
.messages .conversation-title-row h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.messages .conversation-badge { flex: none; }
.messages .conversation-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
/* the card's foot (owner, 2026-11-16): Conversation options at the bottom left - a small menu that opens upward without script, so it
   stays inside the card - and Send message at the right */
.messages .conversation-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.messages .conversation-options { position: relative; flex: none; margin: 0 auto 0 0; }
.messages .conversation-options > summary { cursor: pointer; white-space: nowrap; }
.messages .conversation-options-menu { position: absolute; left: 0; bottom: 100%; z-index: 5; margin-bottom: 6px; padding: 10px 14px; background: #fff; border: 1px solid var(--wv-line, #dfe7e4); border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); white-space: nowrap; }
/* under the message box: the payment note left, the limit right, wrapping on a narrow screen */
.messages .conversation-hints { text-align: right; }
.messages .conversation-messages { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.messages .message { max-width: 85%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--wv-line, #dfe7e4); }
.messages .message-theirs { align-self: flex-start; background: #fff; }
.messages .message-mine { align-self: flex-end; background: var(--wv-accent-soft, #e3efeb); border-color: transparent; }
.messages .message-from { margin: 0 0 4px; font-size: 13px; color: var(--wv-quiet, #5b6f6b); }
.messages .message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.messages .message-purged { font-style: italic; color: var(--wv-quiet, #5b6f6b); }
.messages .conversation-read-only { margin: 8px 0; }
/* the conversation (owner, 2026-11-16): the reply's label above its box, full width */
.messages .conversation-earlier { margin: 12px 0 0; }
.messages .conversation-reply { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
.messages .conversation-reply > * { grid-column: 1; }
.messages .conversation-reply label { padding-top: 0; }
.messages .conversation-reply > .field-hint { margin-top: 0; }
.listing-enquiry { margin-top: 8px; }
@media (max-width: 600px) {
    .messages .message { max-width: 100%; }
}

/* M112 (Messaging slice MS4): Account settings -> Blocked Members */
.blocked-members { list-style: none; margin: 8px 0 0; padding: 0; }
.blocked-members .blocked-member { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blocked-members .blocked-member-form { margin: 0; }
/* M113 (Messaging slice MS5): Report message and the messages included in a report - the list of ticks is the preview */
.messages .message-actions { margin: 4px 0 0; font-size: 13px; }
.messages .message-actions a, .link-quiet { color: var(--wv-quiet, #5b6f6b); }
.selected-messages { border: 0; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.selected-messages legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.selected-message { display: block; padding: 10px 12px; border: 1px solid var(--wv-line, #dfe6e4); border-radius: 12px; }
.selected-message .message-from, .selected-message .message-body { display: block; }
.selected-message .message-from { margin: 0 0 4px; font-size: 13px; color: var(--wv-quiet, #5b6f6b); }
.selected-message .message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.selected-message-option { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; cursor: pointer; }
.selected-message-option input { grid-row: span 2; margin-top: 3px; }
.selected-message-reported { background: var(--wv-soft, #f3f7f6); }
.report-include { margin: 12px 0; }
.report-include summary { cursor: pointer; font-weight: 600; }
.selected-message-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.selected-message-list .support-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.submission-block-line { display: block; }
