/* ==========================================================================
   eAukcije — the account area, /moje-aukcije.
   --------------------------------------------------------------------------
   Loaded *in addition* to `eaukcije.css`, never instead of it. Every token this
   file uses — `--brand`, `--ink`, `--line`, `--radius`, `--shadow`, the
   15px/1.55 body — is declared on `:root` there, and nothing here redefines
   one. If the redesign moves the navy, this section moves with it.

   The position this file takes, and where it differs from the catalogue:

     * A lot is a photograph first — on the catalogue. Here it is a **row**.
       A seller checking twelve lots is reading price, bids, watchers, clock
       and state at once, and a card carries two of those legibly. The 56px
       thumbnail identifies the row; it does not sell it.
     * The table lives inside the same card the rest of the site uses — one
       border, one soft shadow, 14px radius — so a dense grid still reads as
       part of the redesign rather than as a spreadsheet dropped into it.
     * Numbers are tabular and right-aligned. A column of prices you cannot
       scan vertically is a column that has to be read one cell at a time.

   Constraints inherited from `eaukcije.css` and not relaxed:

     * No web font, no CDN, no third-party origin.
     * Every read path works with CSS and JavaScript off. The tab strip is
       links, the toggles are checkboxes in a form with a submit button, the
       countdown is server-rendered text a Stimulus controller later animates.
     * Focus rings are replaced, never removed.
   ========================================================================== */

/* ------------------------------------------------------------------ shell */

.account {
    margin: 24px 0 40px;
}

.account__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 18px;
}

.account__title {
    margin: 0;
    font-size: 1.5625rem; /* 25px, the h1 step */
    font-weight: 750;
    letter-spacing: -0.02em;
}

.account__who {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.account__who strong {
    color: var(--ink);
    font-weight: 650;
}

/* 220px rather than the catalogue's 264px facet rail: six labels need less
   room than a facet list, and the tables want every pixel they can get. */
.account__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account__main {
    min-width: 0; /* lets the table's own scroller work inside a grid track */
}

@media (max-width: 767px) {
    .account__layout { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------- nav */

.accnav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
}

.accnav ul {
    margin: 0;
    padding: 0;
}

.accnav li {
    list-style: none;
}

.accnav__link {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.accnav__link:visited { color: var(--ink-muted); }

.accnav__link:hover {
    background: var(--surface-alt);
    color: var(--ink);
    text-decoration: none;
}

.accnav__link--current,
.accnav__link--current:visited {
    background: var(--brand);
    color: var(--brand-ink);
}

.accnav__link--current:hover {
    background: var(--brand-dark);
    color: var(--brand-ink);
}

/* On a narrow screen the rail is gone (2026-10-09). It used to become a
   strip of eight links scrolling sideways above every page; the phone now has
   `/moje-aukcije/izbornik` for that, and each page a back arrow to it — see
   "The account menu on a phone" at the end of this file. */
@media (max-width: 767px) {
    .accnav { display: none; }
}

/* ----------------------------------------------------------------- flashes */

.accflashes {
    margin: 0 0 16px;
}

.accflash {
    margin: 0 0 8px;
    padding: 11px 14px;
    border: 1px solid;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 550;
}

.accflash--ok {
    background: var(--positive-bg);
    border-color: var(--positive-line);
    color: var(--positive);
}

.accflash--error {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--urgent);
}

/* "Obrisano · Poništi": the sentence and its undo on one line, the undo a
   text-weight button so it reads as part of the message, not a second CTA. */
.accflash--undo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.accflash--undo form {
    margin: 0;
}

.accflash__undo {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.accflash__undo:focus-visible {
    outline: 2px solid var(--focus, #14448a);
    outline-offset: 2px;
}

/* --------------------------------------------------------------- tab strip */

.acctabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}

.acctab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.acctab:visited { color: var(--ink-muted); }

.acctab:hover {
    border-color: var(--line-strong);
    color: var(--ink);
    text-decoration: none;
}

.acctab__count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: var(--pill);
    background: var(--surface-alt);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--ink-muted);
}

.acctab--current { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

.acctab--current .acctab__count { background: var(--surface) !important; color: var(--blue-700) !important; }

/* ------------------------------------------------------------------ panel */

/* The container itself is `.panel` in eaukcije.css, which declares `.accpanel`
   alongside it. It used to be re-declared here with the same five values, which
   is a copy waiting to drift rather than a variant. Only the parts the
   catalogue has no equivalent for live here. */

.accpanel__count {
    margin: 0;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.accpanel__title {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    font-weight: 700;
}

.accpanel--form {
    padding-bottom: 4px;
}

.accempty {
    margin: 0;
    padding: 28px 18px 32px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.9375rem;
}

/*
   The call to action gets its own line.

   Every empty state is a sentence explaining the emptiness followed by the one
   link out of it. Inline, that link reads as the last few words of the
   explanation rather than as the thing to click — and the sentences here are
   long enough ("…i nakon što dražba završi.") that it lands wherever the text
   happens to wrap. On its own line it is unmistakably an action.

   Set on `.accempty a` rather than per template, so watchlist, bids and
   messages cannot drift apart.
*/
.accempty a {
    /*
       `block`, not `inline-block`. An inline-block still sits in the inline
       flow, so the first attempt at this added the top margin and left the
       link on the same line as the sentence — which was the whole complaint.
       `width: fit-content` + `margin: … auto` keeps it centred with the text
       and keeps the hit area the size of the words rather than the full row.
    */
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    font-weight: 600;
}

/* ------------------------------------------------------------------ table */

/* The table scrolls inside its own box rather than pushing the page sideways:
   six columns of Croatian headings do not fit a phone, and a horizontally
   scrolling *document* loses the nav as well as the table. */
.acctable__scroll {
    /* `position: relative` is load-bearing and the reason is invisible, so it
       is written down here rather than rediscovered.

       Every `.visually-hidden` span in this product is `position: absolute`,
       and these tables are full of them — the spoken form of every count, the
       spoken form of every date. An absolutely positioned box resolves against
       its nearest *positioned* ancestor; with none, that is the initial
       containing block, which is outside this scroller, so the span is not
       clipped by the `overflow-x` and is painted at its static position — 800
       px out, inside a table that scrolls. One invisible 1 px span was making
       the document 63 px wider than the phone and nothing on screen said why.

       Making the scroller a containing block puts them back inside it. */
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.acctable__scroll:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.acctable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.acctable th,
.acctable td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.acctable thead th {
    padding-top: 11px;
    padding-bottom: 11px;
    background: var(--surface-alt);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
}

.acctable tbody tr:last-child td {
    border-bottom: 0;
}

.acctable tbody tr:hover {
    background: #fbfcfd;
}

.acctable__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* The bulk-relist toolbar. A strip inside the panel, between the count and the
   table, so it reads as part of the table's furniture rather than as a banner
   dropped on top of it — same padding and hairline as `.accpanel__count`.

   White rather than tinted: the count strip above it is already a header, and
   two tinted bands in a row make the panel look like it has two headings. */
.accbulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

/* `flex: 1 1 320px` rather than a width: the sentence takes the room it needs
   and drops the button onto its own line when there is not enough, which is
   what happens on a narrow laptop long before the phone rules below. */
.accbulk__hint {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.accbulk .accbtn {
    flex: 0 0 auto;
}

/* "Označi sve" (when scripting runs) and "Obnovi", side by side. */
.accbulk__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The count and, on "Nije prodano", the sort form on one strip. The count
   keeps its own padding and hairline; the strip only lays them side by side.
   The form's look comes from `.sortform` in eaukcije.css, as in the catalogue. */
.accpanel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-right: 18px;
    border-bottom: 1px solid var(--line);
}

.accpanel__head .accpanel__count {
    border-bottom: 0;
}

.accpanel__head .sortform select,
.accpanel__head .sortform button {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Search and sort side by side, and one left inset for both, so that when
   the strip wraps on a phone they line up with the count above them instead
   of touching the panel edge. */
.accpanel__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-left: 18px;
}

/* The search box: the sort select's border, radius and size, so the two read
   as one toolbar. The button is the sort form's button, which stays visible
   here — Enter is not discoverable to everyone. */
.accsearch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.accsearch input[type="search"] {
    width: 200px;
    max-width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    font: inherit;
    font-size: 0.84375rem;
}

.accsearch input[type="search"]:focus-visible {
    outline: 2px solid var(--focus, #14448a);
    outline-offset: 1px;
}

.accsearch__go {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font: inherit;
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
}

.accsearch__go:hover { border-color: var(--line-strong); color: var(--ink); }

/* Live search needs no button; see `.js .sortform` in eaukcije.css. */
.js .accsearch__go { display: none; }

@media (max-width: 620px) {
    .accsearch,
    .accsearch input[type="search"] {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 620px) {
    .accpanel__head {
        padding-bottom: 12px;
    }
}

/* The checkbox column. Narrow, and the control centred in it. */
.acctable__tick {
    width: 34px;
    text-align: center;
    vertical-align: middle;
}

/* The box is 16px; the tap target is the cell around it, which is why the
   padding is here and not on the input — padding on a checkbox inflates the
   control itself, and a 36px checkbox is a checkbox that looks broken. */
.acctable__tick input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.acctable__tick label {
    cursor: pointer;
}

/* On a phone (2026-09-27): the three bulk buttons share one compact line
   instead of stacking three full-width bars, and the sentence explaining them
   goes — "Označi sve", "Obnovi" and "Obriši označene" say what they do. */
@media (max-width: 620px) {
    .accbulk {
        padding: 10px 14px;
    }

    .accbulk__hint {
        display: none;
    }

    .accbulk__actions {
        flex: 1 1 100%;
        flex-wrap: nowrap;
    }

    .accbulk .accbtn {
        flex: 1 1 auto;
        padding: 7px 8px;
        font-size: 0.8125rem;
        text-align: center;
    }
}

/* ==========================================================================
   TABLE → CARDS ON A PHONE — the shared skeleton (2026-09-30)
   ==========================================================================

   Five member tables turn into a card per row below 620 px: Moji predmeti /
   Moje ponude / Praćeno (`--lots`), Računi (`--invoices`), Promet novčanika
   (`--wallet`), Potvrde o uplati (`--topups`) and Sljedeći račun
   (`--accruing`). Each arrived separately, and each brought its own copy of
   the same six rules — hide the head, make the row a wrapping flex container,
   strip the cell padding and borders. Five copies of a structure is five
   places to edit and four chances to miss one, so it is written once here.

   What stays per table is what genuinely differs: the `order` of the cells,
   which is the whole design decision, and two values exposed as custom
   properties because they were already different before this was factored out
   and changing them would have been a silent redesign.

   `--inbox` (Poruke) deliberately does NOT use this. It styles `tr` rather
   than `tbody tr`, carries an `:has()` rule on its scroller and makes the whole
   row a link; folding it in would have meant changing it, not deduplicating
   it. */
@media (max-width: 620px) {
    .acctable--cards,
    .acctable--cards tbody {
        display: block;
    }

    .acctable--cards thead {
        display: none;
    }

    .acctable--cards tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: var(--card-align, baseline);
        gap: var(--card-rowgap, 6px) 10px;
        padding: 14px;
        border-bottom: 1px solid var(--line);
    }

    .acctable--cards tbody tr:last-child { border-bottom: 0; }
    .acctable--cards tbody tr:hover { background: none; }

    .acctable--cards td {
        display: block;
        padding: 0;
        border: 0;
    }

    /* A lot's card leads with a photo and a title of unequal heights, so its
       cells align to the top; the others compare a label against an amount on
       one line, where a shared baseline is what makes them line up. */
    .acctable--lots { --card-align: flex-start; --card-rowgap: 8px; }
    .acctable--wallet,
    .acctable--topups,
    .acctable--accruing { --card-rowgap: 4px; }

    /* A zero-height full-width break, so whatever is ordered after it starts a
       new line however short it is: a flex container has no `<br>`. Four of the
       five order their cells around one; `--lots` wraps naturally and does not. */
    .acctable--invoices tbody tr::after,
    .acctable--wallet tbody tr::after,
    .acctable--topups tbody tr::after,
    .acctable--accruing tbody tr::after {
        content: '';
        order: 3;
        flex-basis: 100%;
        height: 0;
    }
}

/* ==========================================================================
   "MOJI PREDMETI" ON A PHONE — rows become cards (2026-09-27)
   ==========================================================================

   The table was 937 px wide inside a 359 px scroller: eight columns of a lot's
   life, most of it off screen. Below 620 px the same markup is laid out as a
   card per lot, the way a phone marketplace shows a seller's own listings:

     [tick] [photo  title                     ]
            [       #id · badges              ]
     status · price · Ponude 3 · Prati 0 · date
     [ Obnovi prodaju                          ]   ← the row's primary action
     [ Prodaj slično ] [ Obriši ]                  ← the rest, compact

   CSS only, scoped to `.acctable--lots`, so the desktop table, every other
   member table and the no-script page are untouched. The `<tr>` becomes a
   wrapping flex row: the lot takes the first line beside the tick box, the
   small cells flow onto the second, and the actions fill the last. A cell's
   `data-label` ("Ponude", "Prati") stands in for the column heading the
   hidden `<thead>` no longer shows. */
@media (max-width: 620px) {
    /* The tabs wrap onto a second row rather than scroll sideways
       (2026-10-09): six of them, and the ones past the edge were the ones
       nobody found. `tabstrip_controller.js` has nothing to scroll and
       does nothing. */
    .acctabs { gap: 6px; }






    .acctable--lots td.acctable__tick {
        flex: 0 0 auto;
        width: auto;
        padding-top: 2px;
    }

    /* The lot: the rest of the first line — all of it, so the small cells
       below cannot squeeze in beside it. 30 px is the tick box and the gap;
       a tab without boxes gives the lot the whole line. */
    .acctable--lots td.acctable__lot {
        flex: 1 1 calc(100% - 30px);
        min-width: 0;
    }

    .acctable--lots td.acctable__lot:first-child {
        flex-basis: 100%;
    }

    /* Status, price, counts, date: small, on one wrapping line. */
    .acctable--lots td.acctable__meta {
        flex: 0 0 auto;
        font-size: 0.8125rem;
        color: var(--ink-muted);
        text-align: left;
    }

    .acctable--lots td.acctable__meta b {
        font-size: 0.875rem;
    }

    .acctable--lots td.acctable__meta .acctable__sub {
        display: none;
    }

    .acctable--lots td[data-label]::before {
        content: attr(data-label) " ";
        color: var(--ink-faint);
    }

    .acctable--lots td.acctable__ops,
    .acctable--lots td.acctable__action {
        flex: 1 1 100%;
    }

    /* Moje ponude and Praćeno (2026-09-28) share this layout; their one
       action — "Licitiraj ponovno", the watch toggle — fills the card's last
       line the way "Obnovi prodaju" does. */
    .acctable--lots td.acctable__action .accbtn,
    .acctable--lots td.acctable__action form {
        display: block;
        width: 100%;
        text-align: center;
    }

    .acctable--lots .acctable__opsrow {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    /* The edit / withdraw pair flows with the rest instead of being a grid. */
    .acctable--lots .acctable__pair {
        display: contents;
    }

    .acctable--lots .acctable__opsrow > form,
    .acctable--lots .acctable__opsrow > a,
    .acctable--lots .acctable__pair > form,
    .acctable--lots .acctable__pair > a,
    .acctable--lots .acctable__opsrow > span.accbtn,
    .acctable--lots .acctable__pair > span.accbtn {
        flex: 1 1 0;
        min-width: 0;
    }

    .acctable--lots .acctable__opsrow .accbtn {
        width: 100%;
        padding: 8px 6px;
        font-size: 0.8125rem;
    }

    /* The row's primary action — "Obnovi prodaju" — gets the whole first
       line, filled, the way a phone marketplace puts "Obnovi" under an
       expired listing. */
    .acctable--lots .acctable__opsrow > .acctable__primary {
        order: -1;
        flex: 1 1 100%;
    }

    .acctable--lots .acctable__primary .accbtn {
        --accbtn-ink: var(--brand-ink);

        background: var(--brand);
        border-color: var(--brand);
        padding: 10px;
        font-size: 0.875rem;
    }
}

.acctable__num b {
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.acctable__sub {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--ink-faint);
    font-weight: 400;
}

.acctable__date {
    white-space: nowrap;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.acctable__action {
    text-align: right;
    white-space: nowrap;
}

.acctable__badges {
    margin: 6px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.acctable__badges:empty {
    display: none;
}

/* -------------------------------------------------------------- lot cell */

.acclot {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 220px;
}

.acclot__thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xs);
    background: var(--photo);
    overflow: hidden;
    display: block;
}

.acclot__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Not a grey rectangle: a drawn corner-fold, so an absent photograph reads as
   "no picture" and not as "the picture failed to load". */
.acclot__nophoto {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 0 60%, var(--line) 60% 62%, transparent 62%),
        var(--photo);
}

.acclot__text {
    display: block;
    min-width: 0;
}

.acclot__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    /* Two lines and then an ellipsis. A 140-character Croatian lot title in a
       table cell otherwise sets the row height for the whole page. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.acclot__title:visited { color: var(--ink); }
a.acclot__title:hover { color: var(--brand); text-decoration: underline; }

.acclot__title--plain {
    color: var(--ink-muted);
}

.acclot__id {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ clock */

.accclock {
    white-space: nowrap;
    font-size: 0.84375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.accclock--none,
.accclock--past {
    color: var(--ink-faint);
    font-weight: 500;
}

/* --------------------------------------------------------------- badges */

.accbadge {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--surface-alt);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.6;
    white-space: nowrap;
    color: var(--ink-muted);
}

.accbadge--positive {
    background: var(--positive-bg);
    border-color: var(--positive-line);
    color: var(--positive);
}

.accbadge--warn {
    background: var(--soon-bg);
    border-color: var(--soon-line);
    color: var(--soon);
}

.accbadge--info {
    background: var(--info-bg);
    border-color: var(--info-line);
    color: var(--brand);
}

.accbadge--neutral {
    background: var(--surface-alt);
    color: var(--ink-muted);
}

/* An unread count. Brand-filled rather than tinted, because this is the one
   badge in the section that is a *notification* — it is asking to be acted on,
   not describing a state. It is never the only signal: the row it sits in is
   also bold, and the badge itself carries the word "nepročitane". */
.accbadge--unread {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-ink);
}

/* Listing and order states. The colour says what kind of outcome it is, the
   word says which one — a seller must be able to tell "I withdrew this" from
   "a moderator took this down", and colour alone never carries that. */
.accbadge--state-active { background: var(--positive-bg); border-color: var(--positive-line); color: var(--positive); }
.accbadge--state-ended_sold { background: var(--positive-bg); border-color: var(--positive-line); color: var(--positive); }
.accbadge--state-scheduled { background: var(--info-bg); border-color: var(--info-line); color: var(--brand); }
.accbadge--state-draft { background: var(--surface-alt); color: var(--ink-muted); }
.accbadge--state-ended_unsold { background: var(--surface-alt); color: var(--ink-muted); }
.accbadge--state-relisted { background: var(--info-bg); border-color: var(--info-line); color: var(--brand); }
.accbadge--state-suspended { background: var(--soon-bg); border-color: var(--soon-line); color: var(--soon); }
.accbadge--state-cancelled { background: var(--danger-bg); border-color: var(--danger-line); color: var(--urgent); }

/*
   Unused while the order state badge is out of `member/_orders.html.twig` — an
   order can only ever be `pending_payment`, so the badge was a status with one
   value (see the note in that template). Kept, not deleted: these eight are the
   places of the order machine in docs/domain/workflows.md §2, and restoring the
   badge when that machine exists should not also mean re-deriving its palette.
*/
.accbadge--order-pending_payment { background: var(--soon-bg); border-color: var(--soon-line); color: var(--soon); }
.accbadge--order-paid,
.accbadge--order-shipped,
.accbadge--order-delivered { background: var(--info-bg); border-color: var(--info-line); color: var(--brand); }
.accbadge--order-completed { background: var(--positive-bg); border-color: var(--positive-line); color: var(--positive); }
.accbadge--order-disputed { background: var(--danger-bg); border-color: var(--danger-line); color: var(--urgent); }
.accbadge--order-refunded,
.accbadge--order-cancelled { background: var(--surface-alt); color: var(--ink-muted); }

/* -------------------------------------------------------------- summary */

.accsummary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
}

.accsummary__stat {
    flex: 1 1 180px;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.accsummary__stat b {
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.accsummary__stat span {
    font-size: 0.84375rem;
    color: var(--ink-muted);
}

.accsummary__stat--positive { border-left-color: var(--positive); }
.accsummary__stat--positive b { color: var(--positive); }
.accsummary__stat--warn { border-left-color: var(--soon); }
.accsummary__stat--warn b { color: var(--soon); }

/* --------------------------------------------------------------- orders */

.accorders {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accorder {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accorder__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    padding: 13px 16px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--line);
}

.accorder__head p {
    margin: 0;
    font-size: 0.875rem;
}

.accorder__state {
    margin-left: auto !important;
}

.accorder__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.accorder__no b {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.acctable--lines thead th {
    background: var(--surface);
}

.accorder__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.accorder__totals {
    margin: 0 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-size: 0.84375rem;
}

.accorder__totals div {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.accorder__totals dt {
    color: var(--ink-muted);
}

.accorder__totals dd {
    margin: 0;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.accorder__grand dd {
    font-size: 1.0625rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

/* Unused while "Rok za plaćanje" is out of the order card — see the note in
   `member/_orders.html.twig`. Kept for the same reason the order badge palette
   above is kept: it is correct again once an order can be marked paid. */
.accorder__due {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--soon);
}

/* ----------------------------------------------------------------- forms */

.accform {
    padding: 16px 18px 6px;
}

.accform__lede {
    margin: 14px 18px 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
    max-width: 62ch;
}

.accform__lede + .accform {
    padding-top: 12px;
}

.accform__field {
    margin: 0 0 16px;
    max-width: 460px;
}

/* Postal code and city on one line, as they are written on an envelope: the
   code narrow, the city taking the rest. Stacks on a phone. The hint for the
   pair sits under the row, so it is pulled up to the row's own gap. */
.accform__row {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
    gap: 0 12px;
    max-width: 460px;
}

.accform__row .accform__field {
    margin-bottom: 0;
}

.accform__row + .accform__hint {
    margin: 6px 0 16px;
}

@media (max-width: 480px) {
    .accform__row {
        grid-template-columns: 1fr;
        gap: 16px 0;
    }
}

/* Who the account is registered to — read, not edited. A quiet two-column
   list above the form, so it is plainly part of the section and plainly not
   one of its fields. */
.accidentity {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 16px;
    margin: 16px 18px 0;
    padding: 12px 14px;
    max-width: 460px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    font-size: 0.84375rem;
}

.accidentity dt {
    font-weight: 600;
    color: var(--ink-muted);
}

.accidentity dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* Doubled class: `.accform__hint` is declared further down and would
   otherwise win the margin back. */
.accform__hint.accidentity__note {
    margin: 6px 18px 0;
}

/* A read-only value in a form (the fixed username): labelled like a field,
   set like text, so it plainly cannot be typed into. */
.accform__label {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 0.84375rem;
    color: var(--ink);
}

.accform__static {
    margin: 0;
    padding: 8px 12px;
    max-width: 460px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--ink);
}

.accform label {
    display: block;
    font-weight: 600;
    font-size: 0.84375rem;
    margin-bottom: 5px;
}

/* `tel` and `select` used to be missing from this list, and both were visible
   bugs rather than omissions of taste. An unlisted `input` falls back to the
   browser's default `size` attribute, which is why `Mobitel` on the
   registration form rendered at 172px beside 460px neighbours; an unlisted
   `select` keeps native chrome, which is why the country box was the one grey
   OS widget in a column of white rounded ones. Adding them here rather than in
   a registration-only rule fixes the same two on the settings page and in the
   sell wizard, which had them for the same reason. */
.accform input[type="text"],
.accform input[type="email"],
.accform input[type="password"],
.accform input[type="tel"],
.accform select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    font: inherit;
    color: var(--ink);
}

/* The chevron is an inline `data:` SVG, not a font glyph and not a file: the
   product loads no icon font and no third-party origin, and one 200-byte URI
   costs no request. `appearance: none` is what removes the native arrow, so the
   replacement has to be drawn here or the control loses its only affordance —
   and the right padding has to leave room for it, or a long country name runs
   underneath. */
.accform select {
    padding-right: 34px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75' fill='none' stroke='%235c6780' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.accform select:focus { border-color: var(--brand); }

/* `:focus-visible`, not `:focus`, and the site's 2px offset rather than 1px.
   As `:focus` this drew a ring on every mouse click into a text box — the exact
   noise `:focus-visible` exists to remove — and at a different offset from every
   other focusable thing in the product. The border tint stays on plain `:focus`,
   because that one *should* answer a click: it says which field has the caret. */
.accform input:focus { border-color: var(--brand); }

.accform__hint {
    margin: 6px 0 0;
    font-size: 0.78125rem;
    line-height: 1.5;
    color: var(--ink-faint);
    max-width: 62ch;
}

.accform__hint--consent {
    color: var(--positive);
    font-weight: 600;
}

.accform__group {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    min-width: 0;
}

.accform__group--consent {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.accform__legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.accform__actions {
    padding-bottom: 14px;
}

/* The per-field message, moved here from `sell.css` when the registration form
   became the second flow to need it — a form's error state belongs in the same
   file as the form. Paired with `aria-describedby` in the markup, which is what
   actually associates it; this is the visual half. */
.accform__error {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--urgent);
}

.accform__error::before {
    content: "⚠ ";
}

/* `.accform` is in the selector only to win a specificity fight, and the fight
   was real: the base rule above is `.accform input[type="text"]` — a class, an
   attribute and an element — which outranks a bare `.accform__field--invalid
   input`, so the red border on a refused field had never actually rendered.
   The error text and the `aria-describedby` were doing all the work alone.
   Found while checking that a 422 still repaints the registration form. */
.accform .accform__field--invalid input,
.accform .accform__field--invalid select,
.accform .accform__field--invalid textarea {
    border-color: var(--urgent);
}


/* A checkbox and two lines of text, not a CSS "switch". A switch built from a
   styled span needs JavaScript to be operable by keyboard in some browsers and
   is a well-known screen-reader trap; a real checkbox is announced correctly,
   is togglable with Space, and works when the stylesheet fails to load. */
.accswitch {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

/* A choice that is fixed for this lot — the duration radios once it is live.
   The checked one still reads normally so the seller can see what it is; the
   greying says "this is showing you a value, not asking for one". The `<input>`
   carries `disabled`, so the pointer rule is cosmetic and the real refusal is
   in the markup and again in `applyPricing()`. */
.accswitch--locked {
    opacity: 0.62;
    cursor: not-allowed;
}

.accswitch--locked input {
    cursor: not-allowed;
}

.accswitch:last-child {
    border-bottom: 0;
}

.accswitch input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--brand);
}

.accswitch label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.accswitch__label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.accswitch__hint {
    display: block;
    margin-top: 1px;
    font-size: 0.78125rem;
    line-height: 1.5;
    color: var(--ink-faint);
}

/* --------------------------------------------------------------- buttons */

/*
   The button's ink is a variable, and `:visited` reads the same variable.

   It used to be `.accbtn:visited { color: var(--brand-ink) }` — white, correct
   for the filled primary button, and wrong for every variant that changes its
   own background. `:visited` outranks a plain class (0,2,0 against 0,1,0), so
   `.accbtn--quiet` — white background, muted ink — rendered white-on-white the
   moment its link had been followed, and only reappeared on hover, because
   hover restated the colour. The reporter found it by opening a message and
   pressing Back.

   Setting `--accbtn-ink` per variant means a variant cannot get this wrong: a
   new modifier declares its ink once and its visited state follows. The
   `:visited` rule still has to exist, because the global `a:visited` would
   otherwise turn every button purple.
*/
.accbtn {
    --accbtn-ink: var(--brand-ink);

    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--accbtn-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    cursor: pointer;
}

.accbtn:visited { color: var(--accbtn-ink); }

.accbtn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-ink);
    text-decoration: none;
}

.accbtn--small {
    padding: 6px 13px;
    font-size: 0.8125rem;
}

/* A refused action, kept visible.

   Rendered as a focusable <span role="button" aria-disabled="true"> rather than
   a disabled <button>: `disabled` removes an element from the tab order, so a
   keyboard user would never land on it and never hear the `title` explaining
   why it is refused. Greyed and un-clickable, but reachable and announced. */
.accbtn--off,
.accbtn--off:hover {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-alt);
    color: var(--ink-muted);
    border-color: var(--line);
}

.accbtn--quiet {
    --accbtn-ink: var(--ink-muted);

    background: var(--surface);
    border-color: var(--line-strong);
}

.accbtn--quiet:hover {
    background: var(--surface-alt);
    border-color: var(--ink-faint);
    color: var(--ink);
}

/* A removal: "Obriši", "Ukloni s popisa", "Povuci", "Obriši označene".
   Outlined in red rather than filled — it should be findable, not the loudest
   thing in a row whose usual action is "Obnovi prodaju". The class was on the
   withdraw button for weeks with no rule behind it, so it rendered as the
   brand's primary blue; this is the rule it was waiting for. */
.accbtn--danger {
    --accbtn-ink: var(--danger);

    background: var(--surface);
    border-color: var(--danger-line);
}

.accbtn--danger:visited { color: var(--danger); }

.accbtn--danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

.acclink {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
}

.watchform {
    margin: 0;
    display: inline;
}


/* -------------------------------------------------------------- messages */
/*
   `.accpanel` carries no padding of its own — the data tables in this section
   are deliberately edge-to-edge, so the card supplies the border and each
   block inside supplies its own gutter, exactly as `.accform` does. Every
   messaging block therefore has to state one, and the first version of this
   file did not: the conversation ran flush into the card border on both sides,
   which reads as "there are no margins".

   One variable so the header, the conversation and the reply box cannot drift
   apart, and one measure so the thread stays readable on a 1440px screen.
   `--msg-measure` is the *content* width: at 44rem a 15px/1.55 paragraph is
   around 80 characters, which is the top of the comfortable range, and the two
   speakers stay near enough to each other to read as one conversation instead
   of two columns at opposite ends of a 1000px card.
*/

.msgthread,
.msgcompose {
    --msg-gutter: 18px;
    --msg-measure: 44rem;
}

/* The nav badge. Sits inside the link so it inherits the current entry's
   colours, which is why it has its own translucent ground on the active row —
   a navy pill on a navy row is invisible. */
.accnav__badge {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: var(--pill);
    background: var(--brand);
    color: var(--brand-ink);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 18px;
    text-align: center;
    vertical-align: 1px;
}

.accnav__link--current .accnav__badge {
    background: rgba(255, 255, 255, 0.24);
    color: var(--brand-ink);
}

/* ---- the inbox ----

   ── The row is a door, and it has to look like one ────────────────────────

   The subject was the only way into a conversation and it was deliberately
   styled not to look like a control: 650 weight, `--ink`, no underline, so the
   list scans as headings rather than a wall of blue. That reads well on a
   desktop, where the pointer changes shape over it. On a phone there is no
   pointer, nothing is underlined, and the date and the delete button are off
   the right-hand edge of a table that scrolls sideways — so the member is
   looking at a block of text with no visible way in. Reported as exactly that:
   people do not know how to enter the conversation.

   Two changes, and neither of them needs JavaScript. The whole row is the hit
   area, and a chevron says the row goes somewhere. */

.msgrow {
    position: relative;
}

/* The hit area. A `<tr>` cannot be wrapped in an `<a>` and a click handler
   would make the inbox depend on JavaScript, so the subject link's own box is
   stretched over the row instead.

   Everything else in the row that is itself a control — the lot link, the
   delete button — sits later in the document than this overlay, so being
   positioned is enough to paint it above; no `z-index` is needed and none is
   set, because a stacking order nobody can see is a stacking order nobody
   maintains. */
.msgrow__subject::after {
    content: "";
    position: absolute;
    inset: 0;
}

.msgrow .acclink,
.msgrow a.msgrow__who,
.msgrow form {
    position: relative;
}

.msgrow:hover {
    cursor: pointer;
}

/* The row has to answer the pointer, and on a phone the tap. `tbody tr:hover`
   in the shared table rules is #fbfcfd — a wash that reads as "this table has
   hover" rather than "this row is a button", which is fine for a table of
   figures and not enough for a list of doors. `:active` is the only feedback a
   touch device gets at all. */
.acctable--inbox tbody tr:hover {
    background: var(--surface-alt);
}

.acctable--inbox tbody tr:active {
    background: var(--info-bg);
}

/* Drawn rather than fetched: the sprite in `_partials/_icons.html.twig` is
   category symbols and has to be emitted once per document, which the account
   shell does not do. Two borders on an empty span is the whole chevron. */
.msgrow__chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 9px;
    border-right: 2px solid var(--ink-faint);
    border-bottom: 2px solid var(--ink-faint);
    transform: translateY(-2px) rotate(-45deg);
}

.msgrow:hover .msgrow__chevron {
    border-color: var(--brand);
}

.msgrow__subject {
    font-weight: 650;
    color: var(--ink);
}

.msgrow__subject:visited { color: var(--ink); }

.msgrow--unread .msgrow__subject {
    font-weight: 750;
}

/* The unread row. A left rule plus weight, never colour alone. */
.msgrow--unread > td:first-child {
    box-shadow: inset 3px 0 0 var(--brand);
}

.msgrow__meta {
    margin: 5px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.msgrow__order {
    font-family: var(--font-num);
    font-size: 0.75rem;
}

.msgrow__excerpt {
    margin: 7px 0 0;
    max-width: 62ch;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.msgrow__who {
    display: block;
    font-weight: 600;
}

/* Reads as the name it was, and shows it is a link when pointed at. */
a.msgrow__who {
    /* `display: block` would stretch the link across the whole cell and take
       the conversation's hit area with it; only the name itself links. */
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

a.msgrow__who:hover,
a.msgrow__who:focus-visible {
    text-decoration: underline;
}

.msgrow__role {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* ---- one conversation ---- */

.msgthread__head,
.msgcompose > .msgthread__head {
    padding: 18px var(--msg-gutter) 16px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.msgthread__kind {
    margin: 0 0 8px;
}

.msgthread__subject {
    margin: 0 0 8px;
    max-width: var(--msg-measure);
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.msgthread__with {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 0.875rem;
}

.msgthread__order {
    font-family: var(--font-num);
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

/*
   The thread-level control bar, above the subject.

   Back on the left, "Obriši razgovor" pushed to the right. They used to be
   stacked one under the other at the foot of the header, which put the way out
   below the content it leaves and set a destructive control directly beneath a
   navigation link — two things a reader scans as a pair.

   `space-between` on a flex row rather than a float, so the destructive end
   stays at the far edge at any width and the two never touch.
*/
.msgthread__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px var(--msg-gutter);
    border-bottom: 1px solid var(--line);
}

.msgthread__back {
    margin: 0;
    font-size: 0.875rem;
}

/* Same shape as `.watchform`: a one-button POST that must not claim a line. */
.msgdelete {
    margin: 0;
    display: inline;
}

/* ── Reporting a conversation (2026-10-13) ─────────────────────────────────
   Beside "Obriši razgovor" because the two are the member's only options about
   a conversation they did not want. Folded away: reporting is rare, and a
   reason dropdown sitting open next to "Pošalji odgovor" would be in the way
   of answering a message, which is what people are actually here to do.

   This shipped without any rules at all and the fields rendered on one line,
   label against select against textarea. The form is a narrow stacked block
   instead. */
.msgreport {
    margin: 0;
    display: inline;
}

.msgreport > summary {
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.msgreport[open] > summary {
    margin-bottom: 8px;
}

.msgreport__form {
    display: grid;
    gap: 6px;
    max-width: 30rem;
    margin: 8px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    text-align: left;
}

.msgreport__form label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}

.msgreport__form select,
.msgreport__form textarea {
    width: 100%;
    font: inherit;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.msgreport__form textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.msgreport__form button {
    justify-self: start;
    margin-top: 2px;
}

/* The explanation of what reporting does and does not do — that the thread
   survives and the other party is not told — is the part that stops somebody
   expecting a deletion. It reads as prose, not as a field label. */
.msgreport__hint {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-muted);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* An ordered list, because the order is the record. */
.msglist {
    margin: 0;
    padding: 20px var(--msg-gutter);
    max-width: calc(var(--msg-measure) + 2 * var(--msg-gutter));
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/*
   Each message is a two-column grid: an initials mark, then the turn itself.

   The mark is the change that makes a long thread scannable. Before it, telling
   your own turns from the other party's meant reading the name on every card —
   the tint and the offset were the only other cues, and both are weak once a
   message is long enough to fill the measure. A initials disc is the same
   device the masthead already uses for the signed-in member, so it reads as
   this product rather than as a chat app bolted on.
*/
.msg {
    max-width: 82%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 11px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
}

.msg__mark {
    grid-row: 1 / span 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    /* The disc must not shrink when a long unbroken token stretches the body. */
    flex: none;
}

.msg--mine .msg__mark {
    background: var(--brand);
    color: var(--brand-ink);
}

/* A run of messages from one person reads as one turn; the extra space marks
   the moment the speaker changes. Without it a four-message thread is four
   evenly spaced boxes and the reader has to check the name on every one. */
.msg + .msg--mine,
.msg--mine + .msg:not(.msg--mine) {
    margin-top: 14px;
}

/* The viewer's own messages, offset to the right. Offset *and* a different
   ground: an alignment-only distinction disappears the moment a message is
   long enough to fill the column. The squared-off corner points at the sender,
   which is the cue that survives being read at a glance. */
/*
   The viewer's own messages, offset to the right. Offset *and* a different
   ground *and* the mark on the other side: an alignment-only distinction
   disappears the moment a message is long enough to fill the column, and a
   tint-only one disappears for anyone who cannot separate the two hues. The
   squared-off corner points at the sender, which is the cue that survives being
   read at a glance.
*/
.msg--mine {
    margin-left: auto;
    grid-template-columns: 1fr auto;
    column-gap: 11px;
    background: var(--info-bg);
    border-color: var(--info-line);
    border-bottom-right-radius: var(--radius-xs);
}

/* Second column, and the meta/body take the first — so the disc sits on the
   outer edge of the bubble on both sides rather than always on the left. */
.msg--mine .msg__mark { grid-column: 2; grid-row: 1 / span 3; }
.msg--mine .msg__meta,
.msg--mine .msg__body,
.msg--mine .msg__flag { grid-column: 1; }

.msg:not(.msg--mine) {
    border-bottom-left-radius: var(--radius-xs);
}

.msg__meta {
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.msg__who {
    color: var(--ink);
    font-weight: 650;
}

.msg__when {
    font-family: var(--font-num);
}

.msg__read {
    color: var(--positive);
}

/* `overflow-wrap` rather than `word-break`: a 4000-character body with one
   unbroken token in it must not push the card sideways, and
   `word-break: break-all` would hyphenate ordinary Croatian mid-word. */
.msg__body {
    font-size: 0.9375rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.msg__flag {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--info-line);
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* The composer is separated from the record by a full-width rule, while the
   form inside it keeps the conversation's measure. The rule is on the block and
   the cap is on its children for exactly that reason: a border that stopped at
   the measure would read as a mistake rather than as a division of the card. */
.msgthread__reply {
    margin-top: 6px;
    padding: 18px var(--msg-gutter) 20px;
    border-top: 1px solid var(--line);
}

.msgthread__reply .accpanel__title,
.msgthread__reply .msgform {
    max-width: var(--msg-measure);
}

/*
   "Odgovor" reads as a section marker, not as a second field label.

   It sat at 15px semibold directly above `<label>Vaša poruka</label>`, which is
   two titles for one textarea — the reader has to work out that the first is a
   heading and the second is the thing they are filling in. Dropping it to an
   uppercase eyebrow keeps the document structure (it is still the section's
   `<h3>`) and stops it competing.
*/
.msgthread__reply .accpanel__title {
    padding: 0 0 10px;
    border-bottom: 0;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    /* --ink-muted, not --ink-faint: at 11px this is small text, and #8d96ab is
       2.77:1 on this ground — below the 4.5:1 it needs and below even the 3:1
       large-text floor. #5c6780 is 5.29:1 and reads the same at a glance. */
    color: var(--ink-muted);
}

/*
   The composer opened about eight rows tall, so an empty box was the largest
   thing on the page and the conversation above it was pushed off-screen. Four
   rows is enough to write the question this feature actually carries — "do you
   post to Osijek, and what does it cost" — and it still grows, because the
   textarea keeps its resize handle.
*/
.msgthread__reply .msgform textarea {
    min-height: 7.5rem;
}

/* ---- the compose page ---- */

.msgcompose .accform__lede {
    margin: 16px var(--msg-gutter) 0;
    max-width: var(--msg-measure);
}

/* ---- the send box and its warning ---- */

.msgform {
    margin: 0;
    padding: 0 0 4px;
}

/* The compose page has no capped wrapper of its own around the form, so it
   supplies the gutter and the measure here. On the thread page
   `.msgthread__reply` has already done both, and `padding: 0` keeps them from
   being applied twice. */
.msgcompose .msgform {
    padding: 12px var(--msg-gutter) 6px;
    max-width: calc(var(--msg-measure) + 2 * var(--msg-gutter));
}

/* `.accform__field` caps at 460px, which is right for a handle and wrong for a
   message. */
.msgform .accform__field {
    max-width: none;
    margin-bottom: 12px;
}

.msgform .accform__hint {
    max-width: var(--msg-measure);
}

.msgform__body {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink);
    resize: vertical;
}

.msgform__body:focus {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
    border-color: var(--brand);
}

.msgform__errors {
    margin: 0 0 14px;
    padding: 11px 14px 11px 30px;
    border: 1px solid var(--danger-line);
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    color: var(--urgent);
    font-size: 0.875rem;
}

/* The contact-detail warning. Amber, not red: nothing was rejected and nothing
   is wrong — the member is one click from sending exactly what they typed. Red
   would read as a refusal and would make a false positive feel like an
   accusation. */
.msgwarn {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--soon-line);
    border-left: 3px solid var(--soon);
    border-radius: var(--radius-md);
    background: var(--soon-bg);
}

.msgwarn__title {
    margin: 0 0 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--soon);
}

.msgwarn__lede,
.msgwarn__foot {
    margin: 0;
    max-width: var(--msg-measure);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink);
}

.msgwarn__list {
    margin: 10px 0;
    padding: 0 0 0 18px;
    font-size: 0.875rem;
    line-height: 1.7;
}

.msgwarn__kind {
    color: var(--ink-muted);
}

/* The matched fragment, quoted back. Monospace so a phone number's grouping is
   readable, and wrapping so a long link cannot widen the panel. */
.msgwarn__fragment {
    font-family: var(--font-num);
    font-size: 0.8125rem;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--soon-line);
    overflow-wrap: anywhere;
}

.msgwarn__foot {
    margin-top: 10px;
    color: var(--ink-muted);
}

.accorder__contact {
    margin: 12px 0 0;
}

/* The card a member was just returned to, after closing or rating an order.

   The redirect carries a fragment, so the browser scrolls here on its own; this
   only answers the question the scroll leaves open — *which* of six near-identical
   cards is the one that changed. The flash sits at the top of the page and is
   therefore off-screen by the time the reader arrives, so the card has to say it.

   `scroll-margin-top` because the header is sticky: without it the browser aligns
   the card's top edge with the viewport's, and the header covers the order number.

   The tint fades out after a few seconds — it marks an event, and a highlight that
   never leaves reads as a state. `prefers-reduced-motion` keeps the tint and drops
   the animation: the information is the colour, not the fade. */

.accorder:target {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--info-line);
    scroll-margin-top: 90px;
    animation: accorder-landed 4s ease-out 1s forwards;
}

@keyframes accorder-landed {
    to {
        border-color: var(--line);
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accorder:target {
        animation: none;
    }
}

/* ---------------------------------------------- closing an order, and rating

   Both blocks sit at the bottom of an order card. They are the only controls
   there, and they are deliberately quiet: an order card is a receipt first, and
   a receipt that shouts a call to action reads like an advertisement.

   Neither block uses a colour the card does not already use. The one exception
   is the negative rating chip, which has to be distinguishable from the other
   two by more than its label — and that is what --danger is for. */

.accfinish {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 12px 0 0;
}

.accfinish__ask {
    margin: 0;
    font-weight: 600;
}

.accfinish__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The hint takes the whole width below the buttons rather than sitting beside
   them: it explains the 14-day sweep, which is the answer to "what if I do
   nothing", and that sentence is worth reading rather than skimming past. */
.accfinish__hint {
    flex-basis: 100%;
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.8125rem;
}

.accrate {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-alt);
}

.accrate__title {
    margin: 0;
    font-size: 0.9375rem;
}

.accrate__lede,
.accrate__hint,
.accrate__closed {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 0.8125rem;
}

.accrate__closed {
    margin: 0;
}

/* Chips, not a radio column. Three options that are read as a scale belong on
   one line in scale order; stacked, they read as an unordered list and the
   reader has to interpret the labels to recover the ordering. */
.accrate__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
}

.accrate__choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--pill);
    background: var(--surface);
    font-size: 0.8125rem;
    cursor: pointer;
}

/* The native control stays in the document rather than being replaced by a
   styled span: it is what makes the group operable by arrow keys, and what
   carries the checked state to a screen reader. */
.accrate__choice input {
    margin: 0;
}

.accrate__choice:hover {
    border-color: var(--ink-muted);
}

/* :has() so the whole chip reflects the selection, not just the dot inside it.
   A browser without :has() still shows the checked radio — the chip simply does
   not tint, which loses emphasis and no information. */
.accrate__choice:has(input:checked) {
    border-color: var(--ink);
    background: var(--page);
    font-weight: 600;
}

.accrate__choice--negative:has(input:checked) {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger);
}

.accrate__choice--positive:has(input:checked) {
    border-color: var(--positive-line);
    background: var(--positive-bg);
    color: var(--positive);
}

.accrate__choice:focus-within {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.accrate__commentlabel {
    display: block;
    margin: 12px 0 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.accrate__text {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}

.accrate__text:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

.accrate__form button {
    margin-top: 10px;
}

/* The rating already left, shown back. The verdict is a word, not a chip: the
   chips above are controls, and reusing their shape for a read-only value is
   how a reader comes to click something that is not a button. */
.accrate__mine {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.accrate__label {
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accrate__verdict {
    font-weight: 600;
}

.accrate__verdict--positive { color: var(--positive); }
.accrate__verdict--negative { color: var(--danger); }
.accrate__verdict--neutral  { color: var(--ink-muted); }

.accrate__comment {
    margin: 4px 0 0;
    /* The member's own words, so they wrap and break like prose rather than
       stretching the card — a 500-character comment with no spaces would
       otherwise widen the order table beside it. */
    overflow-wrap: anywhere;
}

/* On a narrow screen the two speakers cannot be told apart by position — there
   is no room to offset anything — so the bubbles go full width and the ground
   and the corner do the work on their own. */
@media (max-width: 620px) {
    .msgthread,
    .msgcompose { --msg-gutter: 14px; }

    .msg { max-width: 100%; }
    .msg--mine { margin-left: 0; }
}

/* ----------------------------------------------------------------- focus */

/* Seven selectors used to repeat `outline: 2px solid var(--focus)` here, which
   is exactly what `:focus-visible` in eaukcije.css already gives every element on
   the page. Identical values, so it changed nothing — and a second copy of a
   focus rule is how one of them ends up being the one that gets edited. The
   ring for this whole section is the site's ring. */

/* --------------------------------------------------- the seller's row actions

   Added with the sell flow. The last column of "Moji predmeti" holds up to three
   small controls — continue editing a draft, relist an unsold lot, start a
   similar one — and every one of them is a `<form>` with a submit button rather
   than a link, because a link that relists a lot is a lot relisted by a
   prefetcher.

   A grid sized by its content rather than a fixed width: the column is as wide
   as the longest label, and the table is already inside `.acctable__scroll` so
   nothing pushes the page sideways.

   The grid is `.acctable__opsrow` inside the cell, never the `<td>` itself.
   A `<td>` given `display: flex` or `grid` stops being a table cell: it no longer
   stretches to the row's height, so its bottom border stopped short of every
   other cell's and the row divider broke into a step under the buttons. */

.acctable__opsrow {
    display: inline-grid;
    gap: 6px;
}

/* One column, so every control stretches to the widest label and a stack of
   them shares both edges. The edit / withdraw pair is the exception: it sits
   side by side in `.acctable__pair`, two equal halves of that same width.
   `.visually-hidden` inside it is absolutely positioned and takes no cell. */
.acctable__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* A pair of one: a draft's row has "Nastavi uređivanje" and no "Odbaci" since
   "Obriši" replaced it (2026-09-27), and a lone button in a two-column grid
   is half the width of every other control in the column. */
.acctable__pair > :only-child {
    grid-column: 1 / -1;
}

.acctable__opsrow form {
    display: grid;
    margin: 0;
}

.acctable__opsrow .accbtn {
    white-space: nowrap;
    text-align: center;
}

/* ==========================================================================
   THE REGISTRATION PAGE
   ==========================================================================

   `templates/layouts/security/registrationForm.html.twig`, both paths. The page
   is its own block because it is the only signed-out form in the product that
   is a *page* rather than a panel inside the account rail: there is no `.accnav`
   beside it, so nothing else constrains its width and it has to constrain its
   own.

   Everything here is layout. Not one rule changes what a control is, and none
   of it is required for the form to work — with the stylesheet stripped the
   page is still a labelled form with two links at the top of it. */

/* One column, centred, at a measure a form can actually be read at.

   The complaint this fixes: at 1440px the form was a 460px ribbon down the left
   edge of an empty page, and it ran a long way below the fold. 760px is wide
   enough to put two short fields side by side and narrow enough that a full-width
   input is not a 1300px line to track back from. */
.regpage {
    max-width: 760px;
    margin: 0 auto 32px;
}

.regpage__lede {
    margin: 0 0 18px;
    font-size: 0.9375rem;
}

/* `.accpanel` supplies the surface, the border and the radius. This adds only
   the one thing a panel does not have: a head that is not a title. */
.regcard__head {
    padding: 16px 18px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--line);
}

.regcard__foot {
    margin: 0;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-alt);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* -------------------------------------------------------- segmented switch

   Two links that look like one control.

   It has to be two links. The private and business forms are two URLs with two
   validation groups, chosen by the server from the path segment — see
   `App\Enum\Identity\RegistrationPath` — so the control cannot be a radio pair
   that reveals fields, and it cannot be a JS tab: registration is a core path
   and must work with scripting off. What is styled here is therefore a `<nav>`
   with two `<a>` in it, and the selected state is a class the server rendered,
   paired with `aria-current="page"` in the markup.

   Both halves are the same width (`1fr` each) whatever their text, because a
   segment whose halves resize with their labels reads as two buttons that
   happen to touch. */
.segswitch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.segswitch__opt {
    display: block;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    text-align: center;
    color: var(--ink-muted);
}

.segswitch__opt:visited { color: var(--ink-muted); }

.segswitch__opt:hover {
    background: var(--surface-alt);
    border-color: var(--line);
    color: var(--ink);
    text-decoration: none;
}

/* The current option is a link to the page it is on. It stays a link — a
   segmented control with one half missing is not a control — and it is marked
   twice: filled here, `aria-current="page"` in the markup. */
.segswitch__opt--current,
.segswitch__opt--current:visited { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

.segswitch__opt--current:hover { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

.segswitch__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 650;
}

/* The legal term, under the friendly one. Small and quiet, but present: the
   Terms of Use say "fizička osoba" and "pravna osoba", and a visitor who read
   them has to be able to match those words to these two buttons. */
.segswitch__note {
    display: block;
    margin-top: 1px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.82;
}

/* The sentence the control replaced, kept and shortened. The control says which
   one is selected; this says which one the reader is. */
.segswitch__explain {
    margin: 10px 2px 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* ------------------------------------------------------------- form layout

   Two columns on a wide screen, one on a narrow one, and a field opts into the
   full width with `--wide`. The pairs are the ones that are read as one answer:
   postcode with city, country with phone, password with its repeat.

   `align-items: start` matters. Without it a grid item stretches to the row
   height, so the field with the shorter hint would grow a taller box than its
   neighbour and the two inputs would stop lining up. */
.regform__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    align-items: start;
}

/* `.accform__field` caps at 460px, which is the right cap for a field sitting
   alone in a wide panel and the wrong one inside a track the grid has already
   sized. The grid is the constraint here. */
.regform__grid > .accform__field {
    max-width: none;
}

.accform__field--wide {
    grid-column: 1 / -1;
}

/* One column below the width at which two 330px tracks stop being two usable
   columns. Nothing is hidden and nothing reorders — the source order is the tab
   order at both sizes. */
@media (max-width: 640px) {
    .regform__grid { grid-template-columns: minmax(0, 1fr); }
}

.regform__actions {
    margin-top: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* -------------------------------------------------------- the legal block

   Three checkboxes in a row of body text is where people stop reading, and two
   of these three are consent records with evidential weight. So: two boxes, the
   required declarations in one and the newsletter in the other, each with a
   heading that says which it is.

   The separation is the point. GDPR art. 7(4) is about the newsletter not being
   bundled with the contract, and this is that fact made visible — the reader can
   see, without reading a word, that one box is the price of an account and the
   other is not. Nothing here styles the optional box as though ticking it were
   expected: it is the plainer of the two. */
.reglegal {
    margin: 0 0 12px;
    padding: 2px 14px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
}

.reglegal--optional {
    margin-bottom: 0;
    background: var(--surface);
}

.reglegal__head {
    margin: 12px 0 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* `:last-of-type` rather than `:last-child`, because the error paragraph a
   refused submission renders after the last checkbox would otherwise leave the
   divider hanging under it. */
.reglegal .accswitch:last-of-type {
    border-bottom: 0;
}

.reglegal .accform__hint {
    margin: 2px 0 4px 29px;
}

/* The informational sibling of `.alert-danger` in eaukcije.css, which had no
   counterpart — so the "we have no account for that Google address" line
   rendered as an unstyled paragraph with alert padding and nothing to say it
   was one. Same two tokens the rest of the product uses for an information
   surface. */
.alert-info {
    background: var(--info-bg);
    border: 1px solid var(--info-line);
    color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════════════
   THE ACCOUNT AREA ON A PHONE
   ══════════════════════════════════════════════════════════════════════════

   The rail already becomes a scrolling strip at 900 px and every data table
   already lives in `.acctable__scroll`. What was missing is the two things a
   phone actually asks for: hit areas a thumb can land on, and text controls
   the platform will not zoom the page for.

   Sizes only. Nothing here reorders, hides or truncates a member's own data —
   a table that scrolls is complete, and a table that has had columns removed
   for the small screen is not. See `.acctable__scroll` above.
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
    /* 40 px, and the account nav is the only way between seven screens. */
    .accnav__link {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    /* The row actions — continue a draft, relist, sell similar, message the
       buyer — were 34 px, sat two and three to a cell, and are all `<form>`
       submits that change state. Undersized *and* consequential is the worst
       pair to leave on a phone. */
    .accbtn--small {
        padding: 11px 15px;
        min-height: 44px;
    }

    .accbtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    /* `.acclink` is a plain inline link inside a table cell — "Pogledaj",
       "#428". It gets the height without becoming a block, so it does not
       break the line it shares with the text beside it. */
    .acclink,
    .acctab,
    .acclot__title,
    .msgrow__subject {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* The lot title in a table cell wraps to two lines; `inline-flex` on a
       wrapping link collapses it to one. Back to inline, with the height taken
       as vertical padding instead. */
    .acclot__title,
    .msgrow__subject {
        display: inline-block;
        padding: 12px 0;
        min-height: 0;
    }

    /* Both stylesheets ship a 15 px text control and eaukcije.css raises them at
       this breakpoint; the account sheet loads after it and its own rules are
       more specific, so they have to be raised here too or the phone keeps the
       zoom-on-focus that the whole rule exists to stop. */
    .accform input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    .accform select,
    .accform textarea,
    .msgform__body {
        font-size: 1rem;
    }

    /* A consent record is a thing somebody has to be able to tick on the device
       they are holding. 18 px of checkbox in a 9 px-padded row is neither. */
    .accswitch { padding: 12px 0; min-height: 44px; }
    /* Radios as well as checkboxes. `.accswitch` is the sell wizard's condition
       picker too, and there the control is a radio — sized by the browser at
       13 px, which is the smallest hit target in the product. */
    .accswitch input[type="checkbox"],
    .accswitch input[type="radio"] { width: 22px; height: 22px; margin-top: 1px; }
}

/* ── Password reveal ───────────────────────────────────────────────────────

   Cosmetics only. The eye button is created by
   `assets/controllers/password_visibility_controller.js`, and **it applies its
   own position, size and the input's right-hand padding inline** — see that
   file for why. Nothing structural belongs here: this stylesheet is a
   long-lived cached asset, and when a browser held an old copy the button lost
   `position: absolute` and dropped into its own row under the field. Reported
   from a phone, and the reason the layout moved into the controller.

   Everything below degrades to something readable if it never arrives: the
   button is still in the right place, just in the inherited text colour. */

/* The button is absolutely positioned against `.pwfield` at `height: 100%`, so
   the wrapper has to be exactly as tall as the input it wraps. `eaukcije.css`
   gives `.form input[type="password"]` a `margin-bottom: 14px`, and that margin
   lives *inside* the wrapper: measured on the sign-in page the wrapper was 62px
   around a 48px input, so the eye centred on the wrapper and sat 7px below the
   centre of the field. Visible once you look for it, easy to miss if you do not.

   The spacing moves to the wrapper, so the gap under the field is unchanged.

   Scoped to `.form` deliberately: it is that page's margin being corrected. On
   the registration form `.accform input` carries no bottom margin at all —
   spacing comes from `.accform__field` — so an unscoped rule would add 14px
   there and break a layout that is currently right.

   The attribute selector is not decoration: the rule being overridden is
   `.form input[type="password"]`, which is 0,2,1, so a plain `.pwfield > input`
   at 0,1,1 loses and the wrapper stays 62px tall. Matching on the type takes
   this to 0,3,1 and wins outright rather than on load order.

   **Both types are listed, and that is the whole point.** The controller
   toggles the input between `password` and `text`, and `eaukcije.css` gives the
   same 14px bottom margin to both. A rule matching only `[type="password"]`
   stops applying the instant the eye is clicked: the margin returns, the
   wrapper grows back to 62px, and the button — sized `height: 100%` — recentres
   7px lower. The eye visibly drops as you press it, then jumps back when you
   press it again. Reported from the browser; no test would have seen it. */
.form .pwfield > input[type="password"],
.form .pwfield > input[type="text"] { margin-bottom: 0; }
.form .pwfield { margin-bottom: 14px; }

/* `.pwfield .pwtoggle`, not `.pwtoggle`, and the extra class is load-bearing.
   The sign-in page styles its own submit button with `.form button, .btn
   { color: #fff }` — specificity 0,1,1 — which beat a bare `.pwtoggle` at
   0,1,0 and painted the reveal button white on a white field. It was present,
   44px wide, correctly positioned and completely invisible; the controller
   reported connect() with no error, so nothing anywhere said it was wrong.

   Scoping to the wrapper takes this to 0,2,0 and wins. It is also the more
   honest selector: this button only ever exists inside `.pwfield`, and its
   colour belongs to the field component rather than to whatever the host page
   does to buttons. Any page that adopts `.pwfield` inherits the fix. */
.pwfield .pwtoggle {
    color: var(--ink-muted);
}

.pwfield .pwtoggle:hover { color: var(--ink); }

/* The field has its own focus ring; a second one around it reads as two
   controls. Offset inward so the outline stays within the input's border. */
.pwtoggle:focus-visible {
    outline: 2px solid var(--focus, #14448a);
    outline-offset: -3px;
    border-radius: var(--radius-md);
}

/* Pressed state is carried by `aria-pressed`, so the styling follows the
   attribute rather than a class the controller would have to keep in step. */
.pwfield .pwtoggle[aria-pressed="true"] { color: var(--ink); }

/* ------------------------------------------------ invoice payment state */

/* The "Plaćanje" cell on Računi: a state badge, and beside it the "Plati iz
   novčanika" button when the balance covers the invoice. One row, centred on
   the badge, so a payable invoice does not grow taller than a paid one; it
   wraps under the badge only when the table is squeezed on a phone. */
.accpay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.accpay__form {
    margin: 0;
}

.accpay .accbtn {
    white-space: nowrap;
}

/* ------------------------------------------------ Računi: status and sections

   The 2026-09-24 redesign. The page opens on one sentence that answers "do I
   owe anything?" and the one button that settles it, then three figures, then
   one panel per subject, each with a heading. */

/* The status band. A tinted strip in the colour of its state, with a solid
   left rule so the state still reads without colour vision (the sentence says
   it in words as well). Text and action share a row where there is room. */
.accstatus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    border-left: 4px solid var(--line-strong);
}

.accstatus--ok      { background: var(--positive-bg); border-left-color: var(--positive); }
.accstatus--due     { background: var(--info-bg);     border-left-color: var(--brand); }
.accstatus--short   { background: var(--soon-bg);     border-left-color: var(--soon); }
.accstatus--overdue { background: var(--danger-bg);   border-left-color: var(--urgent); }

.accstatus__text {
    flex: 1 1 20rem;
    min-width: 0;
}

.accstatus__headline {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.accstatus--overdue .accstatus__headline { color: var(--urgent); }

.accstatus__sub {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.accstatus__action form,
.accpaybar {
    margin: 0;
}

.accstatus__action .accbtn {
    white-space: nowrap;
}

/* A section heading with its count beside it, quiet, on the same line. */
.accsection__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.accsection__count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

/* The one sentence a section needs to say what it is for. */
.accsection__intro {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* A table's own heading inside a section, set like the table's column heads
   so it reads as belonging to the table below rather than as a new section. */
.accsection__subtitle {
    margin: 0;
    padding: 14px 18px 8px;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* Money in, in the wallet history: green, and signed by the amount itself so
   colour is never the only difference. */
.acctable__num--credit {
    color: var(--positive);
}

/* "Dospjelo" and "Neplaćeno" share one width, so the button starts at the same
   x on every row and the column reads as a column. */
.accpay .accbadge {
    min-width: 5.75rem;
    text-align: center;
}

/* Every row here carries a badge or a button, both taller than a line of
   text, so the default `vertical-align: top` left the invoice number sitting
   above its own badge. Centred, the row reads as one line. */
.acctable--invoices td {
    vertical-align: middle;
}

/* ── Računi on a phone ──────────────────────────────────────────────────────

   Six columns — number, issued, due, total, payment, PDF — inside a 359 px
   scroller, so a member could see the invoice number or the amount but never
   both, and "Plati iz novčanika" sat off the right edge where nobody would
   find it. The one action this page exists for was the least reachable thing
   on it.

   Same treatment as `.acctable--lots` and for the same reasons: the markup is
   unchanged, the desktop table is untouched, and a cell's `data-label` stands
   in for the heading the hidden `<thead>` no longer shows. One card per
   invoice:

     2026-0042                              12,57 €
     Izdan 24.09.2026. · Dospijeva 08.10.2026.
     [Neplaćen]
     [ Plati iz novčanika ]
     [ Preuzmi PDF ]

   The number and the total share the first line because they are the two
   things a member came to see; everything else stacks under them. */
@media (max-width: 620px) {





    /* First line: the number on the left, the amount hard right.
       `order` because the cells arrive in document order — number, issued,
       due, total — so without it the two dates land between them and push the
       amount onto a line of its own, away from the invoice it belongs to. */
    .acctable--invoices td.acctable__invnum {
        order: 1;
        flex: 1 1 auto;
        font-size: 0.9375rem;
    }

    .acctable--invoices td.acctable__invtotal {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 1rem;
        font-weight: 700;
        text-align: right;
    }

    /* A zero-height full-width break after the amount, so the dates start a
       new line however short they are. A flex container has no `<br>`. */

    /* The two dates, small, on one wrapping line under the number. */
    .acctable--invoices td.acctable__meta {
        order: 4;
        flex: 0 0 auto;
        font-size: 0.8125rem;
        color: var(--ink-muted);
        text-align: left;
    }

    .acctable--invoices td.acctable__meta[data-label]::before {
        content: attr(data-label) " ";
        color: var(--ink-faint);
    }

    /* Status and the two buttons each take the full width: the pay button is
       the reason this page exists and must not become a sliver beside a badge. */
    .acctable--invoices td.acctable__invpay {
        order: 5;
        flex: 1 1 100%;
    }

    .acctable--invoices td.acctable__invpdf {
        order: 6;
        flex: 1 1 100%;
    }

    .acctable--invoices .accpay {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .acctable--invoices .accpay__form {
        flex: 1 1 100%;
    }

    .acctable--invoices td.acctable__invpay .accbtn,
    .acctable--invoices td.acctable__invpdf .accbtn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ── Promet novčanika on a phone ────────────────────────────────────────────

   Four columns rather than six, so it was only 33px over — but over is over,
   and the thing pushing it there is "Potvrda o uplati (PDF)", the longest
   string on the page and the one a member taps. Trimming padding to claw back
   33px would have held only until a longer document label or a bigger amount
   arrived.

   Same card as `.acctable--invoices` above, one line shorter: what happened and
   how much on the first line, the date under it, the document last. `order`
   again, because the cells arrive as date, what, amount, document and the date
   would otherwise sit between the two things being compared. */
@media (max-width: 620px) {





    .acctable--wallet td.acctable__walwhat {
        order: 1;
        flex: 1 1 auto;
        font-weight: 600;
    }

    .acctable--wallet td.acctable__walamount {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        font-weight: 700;
        text-align: right;
    }


    .acctable--wallet td.acctable__walwhen {
        order: 4;
        flex: 0 0 auto;
        font-size: 0.8125rem;
        color: var(--ink-muted);
    }

    /* The receipt or the invoice it settled. Its own line: it is the only thing
       here anybody taps, and a link wrapped around a date is a link nobody
       hits. */
    .acctable--wallet td.acctable__waldoc {
        order: 5;
        flex: 1 1 100%;
        font-size: 0.8125rem;
        overflow-wrap: anywhere;
    }
}

/* ── The two three-column tables on the same page ───────────────────────────

   "Potvrde o uplati" and "Sljedeći račun". Neither could be rendered from the
   fixtures when the other two were fixed, so both were left alone rather than
   reshaped unseen; this is that follow-up.

   They are narrower than the four- and six-column tables above, but each has
   one cell that does not shrink: a receipt link reading "Potvrda o uplati
   (PDF)" and a `datetime_hr` stamp carrying a time as well as a date. The same
   card, arranged around whichever cell the member is actually looking for. */
@media (max-width: 620px) {

    /* Potvrde o uplati: every row is a top-up, so the amount is what
       distinguishes them. Amount and date on the first line, receipt below. */
    .acctable--topups td.acctable__tupamount {
        order: 1;
        flex: 0 0 auto;
        font-weight: 700;
    }

    .acctable--topups td.acctable__tupwhen {
        order: 2;
        flex: 1 1 auto;
        margin-left: auto;
        font-size: 0.8125rem;
        color: var(--ink-muted);
        text-align: right;
        white-space: normal;
    }

    .acctable--topups td.acctable__tupdoc {
        order: 4;
        flex: 1 1 100%;
        font-size: 0.8125rem;
        overflow-wrap: anywhere;
    }

    /* Sljedeći račun: the order number is the answer to "where does this come
       from", so it leads, with the amount hard right and the date under them. */
    .acctable--accruing td.acctable__accorder {
        order: 1;
        flex: 1 1 auto;
        font-weight: 600;
    }

    .acctable--accruing td.acctable__accamount {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        font-weight: 700;
        text-align: right;
    }

    .acctable--accruing td.acctable__accwhen {
        order: 4;
        flex: 1 1 100%;
        font-size: 0.8125rem;
        color: var(--ink-muted);
    }

    .acctable--accruing td.acctable__accwhen[data-label]::before {
        content: attr(data-label) " ";
        color: var(--ink-faint);
    }
}

/* ---------------------------------------------------------------- balance */

/* The two figures above the invoices list. They are a pair and they are not
   the same kind of thing: one is billed and due, the other is this month's
   selling with no document behind it yet. Same size, same weight, different
   ink — the quiet one is muted so a glance lands on the number somebody is
   actually waiting for. */
.accbalance {
    border-bottom: 1px solid var(--line);
}

.accbalance__figures {
    display: grid;
    /* Two columns where there is room, stacked where there is not. `minmax` in
       preference to a breakpoint: the panel is also the narrowest thing in the
       section on a phone, and the figure must never be the reason a row
       scrolls sideways. */
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 4px 28px;
    padding: 16px 18px 14px;
}

.accbalance__label {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.accbalance__amount {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    /* The UI font with tabular figures, exactly as `.acctable__num b` sets the
       amounts in the table below it — the monospace `--font-num` is for the
       bidding screens, and at this size it set the two figures in a face that
       appears nowhere else on the page. Tabular so the two line up with each
       other, which is the whole reason they sit side by side. */
    font-variant-numeric: tabular-nums;
}

.accbalance__amount--quiet { color: var(--ink-muted); }

/* Colour is never the only signal: the note underneath says "dospjelo" in
   words, and the badge beside the label repeats it. */
.accbalance__amount--overdue { color: var(--urgent); }

.accbalance__note,
.accbalance__more {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.accbalance__more {
    padding: 0 18px 14px;
}

/* The wallet sits under the two obligation figures and is separated by a rule
   rather than by a card: it belongs to the same panel — it is the third number
   in one reckoning — but it is an *asset* where those two are debts, and a
   reader must not add them up by eye. */
/* ── a top-up that has not landed ──────────────────────────────────────────

   A band, like everything else in this panel: full width, the panel's 18 px
   side padding, a rule separating it from the figures above. The wallet band
   below carries its own top rule, so this one only needs the one.

   Two registers, and the difference between them is weight rather than shape.
   The quiet one is a note in the panel's own voice. The loud one is tinted and
   ruled in the danger colours, because by then it is telling a seller their
   money may be somewhere neither of us can see — but it stays a band, in line
   with the figures above and the balance below, rather than an alert box
   dropped into the card. */

.accbalance__pending {
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.accbalance__pending--slow {
    border-top-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--urgent);
    font-size: 0.875rem;
    font-weight: 550;
}

.accbalance__wallet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 4px 28px;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-alt);
}

.accbalance__topup {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accbalance__topuplabel {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.accbalance__topuprow {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.accbalance__topupinput {
    /* Wide enough for "1.234,56" and no wider: a full-width field invites a
       number nobody meant to type, and the cap on a top-up is a real one. */
    flex: 0 1 9rem;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.accbalance__topupinput:focus-visible {
    outline: 2px solid var(--focus, #14448a);
    outline-offset: 1px;
}

/* The top-up button while a payment session is being opened.
   
   A spinner rather than only a label change, because the wait is a network
   round trip to Stripe and its length is not ours to predict — a static word
   can be read as a stuck page, a turning one cannot. */
.accbtn.is-pending {
    position: relative;
    padding-left: 30px;
    cursor: progress;
    /* Not `disabled`: a disabled submit button is not a valid submitter, and
       disabling one mid-submit cancels the submission in some browsers. The
       press is swallowed in JavaScript instead; this only says so visually. */
    opacity: 0.85;
}

.accbtn.is-pending::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid currentColor;
    /* One transparent edge is what makes the rotation legible; a full ring
       turning looks static. */
    border-top-color: transparent;
    border-radius: 50%;
    animation: accbtn-spin 0.6s linear infinite;
}

@keyframes accbtn-spin {
    to { transform: rotate(360deg); }
}

/* A spinner is decoration, and a reader who has asked for less motion should
   not be made to watch one. The button still says what it is doing, and the
   dimmed state still says it is busy. */
@media (prefers-reduced-motion: reduce) {
    .accbtn.is-pending::before {
        animation: none;
        border-top-color: currentColor;
        opacity: 0.6;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   THE INBOX ON A PHONE
   ══════════════════════════════════════════════════════════════════════════

   Five columns of Croatian headings do not fit a phone, and `.acctable__scroll`
   deals with that by letting a table scroll inside its own box. For a table of
   figures that is right. The inbox is not one: it is a list of doors, and the
   one thing a member came to do is pick a conversation and open it.

   So on a phone each row is a messenger row — who, what about, the last word:

       vinil-1999 · Prodavatelj                  22:29
       5 kuna 1968. — prooflike
       Hvala, stiglo je danas!          2 nepročitane

   ## This one table breaks the section's rule, on purpose

   The phone section above says nothing is hidden on the small screen, because a
   table with columns removed is incomplete. Here the message count, the
   "Predmet"/"Narudžba" badge, the order number, the lot link and "Obriši
   razgovor" are all dropped. The rule protects tables of figures; every fact
   dropped here is one tap away in the conversation, and the thread page's
   header carries the same delete button. The first phone version kept all of
   it, with a label on every cell, and reached seven lines a row — long enough
   that the list stopped being scannable, which was the complaint.

   ## How the rows are laid out without changing the markup

   Each `<tr>` becomes a grid. The first cell is `display: contents`, so its
   three children — the subject link, the badge line and the excerpt — become
   grid items alongside the other cells, and each is placed by area. The
   document order is untouched, so the tab order is too: the subject link is
   still the first focusable thing in the row.
   ────────────────────────────────────────────────────────────────────────── */

/* The short time and the bare unread count are the phone's; the table has
   room for the full date and the full words. */
.msgrow__when,
.msgrow__unread-n {
    display: none;
}

@media (max-width: 620px) {
    .acctable--inbox,
    .acctable--inbox tbody {
        display: block;
    }

    .acctable--inbox thead {
        display: none;
    }

    /* Nothing to scroll any more, and a live scroller would let a stray
       horizontal drag move a list that no longer goes sideways. */
    .acctable__scroll:has(.acctable--inbox) {
        overflow-x: visible;
    }

    .acctable--inbox tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "with    when"
            "subject subject"
            "excerpt unread";
        column-gap: 12px;
        row-gap: 2px;
        /* Room on the right for the chevron. */
        padding: 12px 34px 12px 16px;
        border-bottom: 1px solid var(--line);
    }

    .acctable--inbox tbody tr:last-child {
        border-bottom: 0;
    }

    .acctable--inbox td {
        padding: 0;
        border: 0;
    }

    .acctable--inbox td:first-child {
        display: contents;
    }

    /* ---- line 1: who, and when ---- */

    .acctable--inbox .msgrow__with {
        grid-area: with;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9375rem;
    }

    .acctable--inbox .msgrow__who,
    .acctable--inbox .msgrow__role {
        display: inline;
    }

    .acctable--inbox .msgrow__role::before {
        content: " · ";
    }

    .acctable--inbox .acctable__date {
        grid-area: when;
        justify-self: end;
        align-self: baseline;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .acctable--inbox .msgrow__when-full {
        display: none;
    }

    .acctable--inbox .msgrow__when {
        display: inline;
    }

    /* ---- line 2: the item ---- */

    .acctable--inbox .msgrow__subject {
        grid-area: subject;
        display: block;
        min-width: 0;
        padding: 0;
        min-height: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--ink-muted);
    }

    /* ---- line 3: the last word, and whether it is unread ---- */

    .acctable--inbox .msgrow__excerpt {
        grid-area: excerpt;
        min-width: 0;
        max-width: none;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.875rem;
    }

    /* The badge line keeps only the unread count. It is how the conversation
       the e-mail mentioned is found, and it is text — "2 nepročitane" — so
       the unread state is never colour alone. */
    .acctable--inbox .msgrow__meta {
        grid-area: unread;
        justify-self: end;
        align-self: center;
        margin: 0;
    }

    .acctable--inbox .msgrow__meta > :not(.accbadge--unread) {
        display: none;
    }

    /* "2 nepročitane" as a pill took a third of a narrow row and squeezed the
       name and the message to a few letters each. A round count is what every
       inbox shows; the words move off-screen for a screen reader, which is why
       this is `.visually-hidden`'s clip rather than `display: none`. */
    .acctable--inbox .accbadge--unread {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 10px;
        font-size: 0.75rem;
        line-height: 1;
    }

    .acctable--inbox .msgrow__unread-n {
        display: inline;
    }

    .acctable--inbox .msgrow__unread-text {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* A row with no excerpt and nothing unread must not keep an empty line. */
    .acctable--inbox .msgrow__meta:not(:has(.accbadge--unread)) {
        display: none;
    }

    /* ---- what the phone leaves to the conversation itself ---- */

    .acctable--inbox .acctable__num,
    .acctable--inbox .acctable__action {
        display: none;
    }

    /* ---- unread ---- */

    .acctable--inbox .msgrow--unread .msgrow__who,
    .acctable--inbox .msgrow--unread .msgrow__subject {
        font-weight: 700;
        color: var(--ink);
    }

    .acctable--inbox .msgrow--unread .msgrow__excerpt {
        color: var(--ink);
    }

    .acctable--inbox .msgrow--unread .acctable__date {
        color: var(--brand);
        font-weight: 600;
    }

    /* The left rule ran down the first cell, which is now `contents` and
       draws nothing, so it moves to the row. */
    .msgrow--unread > td:first-child {
        box-shadow: none;
    }

    .acctable--inbox .msgrow--unread {
        box-shadow: inset 3px 0 0 var(--brand);
    }

    .msgrow__chevron {
        position: absolute;
        top: 50%;
        right: 16px;
        margin: -4px 0 0;
        width: 7px;
        height: 7px;
        transform: rotate(-45deg);
    }
}

/* ==========================================================================
   COLOUR-CODED FIGURES — Računi, on trial since 2026-09-24
   ==========================================================================

   The three figures under the status line, each in a colour that says what
   kind of number it is:

     Za plaćanje         the colour of its state — green clear, amber due,
                         red overdue
     Saldo novčanika     blue: money the member holds
     U pripremi …        violet: what is coming, not yet owed

   Each is a small card of its own: a tint that fades to white, a rule along
   the top in the accent colour, a round icon, and the amount set in a deep
   shade of the same hue. Colour is never the only signal — the label and the
   note beneath say the same thing in words.

   ROLLBACK: delete from this comment to the end of the file. The template's
   `accfig*` classes and icons then fall back to the plain figures. */

.accbalance__figures:has(.accfig) {
    gap: 12px;
    padding: 16px 18px 18px;
}

.accfig {
    --fig-accent: var(--ink-muted);
    --fig-deep: var(--ink);
    --fig-tint: var(--surface-alt);
    --fig-line: var(--line);

    position: relative;
    padding: 14px 16px 14px;
    border: 1px solid var(--fig-line);
    border-top: 3px solid var(--fig-accent);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--fig-tint) 0%, var(--surface) 88%);
    box-shadow: 0 1px 2px rgba(15, 23, 41, 0.04);
}

.accfig .accbalance__label {
    color: var(--fig-deep);
}

.accfig .accbalance__amount {
    color: var(--fig-deep);
}

.accfig__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fig-accent);
    color: #ffffff;
}

/* What is to be paid — the colour of where it stands. */
.accfig--owed.accfig--clear {
    --fig-accent: #12a150;
    --fig-deep: #0b6b37;
    --fig-tint: #e8f8ee;
    --fig-line: #c6ecd4;
}

.accfig--owed.accfig--due {
    --fig-accent: #f08c1a;
    --fig-deep: #9a4a06;
    --fig-tint: #fff4e6;
    --fig-line: #ffdcb0;
}

.accfig--owed.accfig--overdue {
    --fig-accent: #e0342b;
    --fig-deep: #a31d16;
    --fig-tint: #feeceb;
    --fig-line: #f9c7c3;
}

/* Overdue earns one more signal than colour: the card lifts a little, so it
   is the first thing an eye lands on in the row. */
.accfig--owed.accfig--overdue {
    box-shadow: 0 4px 14px rgba(224, 52, 43, 0.14);
}

/* What the member holds — calm, the brand's own blue. */
.accfig--wallet {
    --fig-accent: #1f6fd1;
    --fig-deep: #0f4c81;
    --fig-tint: #eaf2fd;
    --fig-line: #cfe0f7;
}

/* What is coming — violet, apart from both money owed and money held. */
.accfig--next {
    --fig-accent: #7a5af8;
    --fig-deep: #5334c4;
    --fig-tint: #f3f0ff;
    --fig-line: #ddd4fd;
}

/* The quiet grey the plain figure used for "not yet due" would fight the
   violet; the colour already says "later". */
.accfig--next .accbalance__amount--quiet {
    color: var(--fig-deep);
}

/* ── Notices from eAukcije in the inbox (2026-10-01) ─────────────────────
   A short list above the conversations. Unread ones are bold and carry the
   same "Novo" badge as unread messages, so the mark is not colour alone. */
.notices { margin-bottom: 16px; }
.notices__list { list-style: none; margin: 0; padding: 0; }
.notices__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 12px 18px; /* the panel title's inset, so the row lines up under it */
    border-top: 1px solid var(--line);
}
.notices__item:first-child { border-top: 0; }
.notices__item a { flex: 1 1 240px; }
.notices__item--unread a { font-weight: 650; }
.notice__body { margin: 16px 0; padding: 0 18px; line-height: 1.6; }
.notice__noreply { margin: 20px 0 16px; padding: 0 18px; font-size: 0.875rem; }


/* ── The account menu on a phone (2026-10-09) ────────────────────────────
   Modelled on the "list, then detail" pattern of a phone app: the menu page
   lists every section as a full-width row; each section page shows a back
   arrow to it and its own name, in place of the "Moje aukcije" heading and
   the scrolling strip of links that used to sit above it. */
.account__mobilehead { display: none; }

.accmenu {
    display: grid;
    gap: 16px;
}

.accmenu__group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accmenu__heading {
    margin: 0;
    padding: 12px 16px 6px;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.accmenu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.accmenu__list li + li { border-top: 1px solid var(--line); }

.accmenu__link,
.accmenu__link:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.accmenu__link:hover {
    background: var(--surface-alt);
    text-decoration: none;
}

.accmenu__label { flex: 1 1 auto; min-width: 0; }

.accmenu__chevron { flex: 0 0 auto; color: var(--ink-faint); }

.accmenu__logout {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accmenu__logout .accmenu__link { color: var(--danger, #b42318); }

@media (max-width: 767px) {
    .account { margin-top: 0; }

    .account__mobilehead {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 4px;
        min-height: 56px;
        margin: 0 calc(-1 * var(--gutter)) 12px;
        padding: 0 var(--gutter) 0 6px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
    }

    .account__back {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        color: var(--brand);
    }

    .account__back:hover { background: var(--surface-alt); }

    .account__mobiletitle {
        margin: 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.0625rem;
        font-weight: 750;
    }

    /* A section page names itself in the bar above; the "Moje aukcije"
       heading stays only on the menu. */
    .account:not(.account--menu) .account__head { display: none; }
    .account--menu { margin-top: 20px; }
}

/* ── "Ponude kupaca" (2026-10-13; cards since 2026-10-14) ────────────────
   Each offer is a card: lot and state on top, the amount large, who offered
   against which price beneath. A card waiting for the member ends in one
   action bar whose three answers share a height and a style; on a phone the
   bar stacks, each answer full width. */
.offercards {
    list-style: none;
    margin: 0;
    /* The panel has no padding of its own — its title carries 14px 18px —
       so the cards bring theirs, level with the title. */
    padding: 14px 18px 18px;
    display: grid;
    gap: 12px;
}

.offercard {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.offercard--awaits {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand) inset;
}

.offercard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.offercard__lot {
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.offercard__lot:hover { color: var(--brand); text-decoration: underline; }

.offercard__body { margin-top: 6px; }

.offercard__amount {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.offercard__meta {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.offercard__meta strong { color: var(--ink); font-weight: 600; }

.offerstate { flex: none; white-space: nowrap; }
.offerstate--pending { background: #fff4e0; color: #8a5300; }
.offerstate--accepted { background: #e8f5ec; color: #1d6b35; }
.offerstate--declined,
.offerstate--expired,
.offerstate--lapsed { background: #f1f2f4; color: var(--ink-muted); }
.offerstate--countered { background: #eef2fb; color: var(--brand); }

/* The action bar: accept, counter, decline — one row on a wide screen. */
.offerbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.offerbar form { margin: 0; }

.offerbar__counter {
    display: flex;
    flex: 1 1 260px;
    gap: 0;
}

.offerbar__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.offerbar__field input {
    width: 100%;
    height: 42px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line-strong, var(--line));
    border-right: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font: inherit;
    font-size: 0.9375rem;
    background: var(--surface);
}

.offerbar__field input:focus {
    outline: none;
    border-color: var(--brand);
}

.offerbar__currency {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    pointer-events: none;
}

.offerbar__counter .ofbtn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* One button, three looks. */
.ofbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.ofbtn--primary { background: var(--brand); color: #fff; }
.ofbtn--primary:hover { filter: brightness(1.1); }

.ofbtn--outline { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.ofbtn--outline:hover { background: #eef2fb; }

.ofbtn--quiet { background: transparent; color: var(--ink-muted); border-color: var(--line); }
.ofbtn--quiet:hover { color: var(--ink); border-color: var(--ink-faint); }

.ofbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 640px) {
    .offercards { padding: 12px; }

    .offercard { padding: 14px; }

    .offercard__amount { font-size: 1.375rem; }

    /* Stacked, each answer full width: accept, then the counter, then
       decline — the order a thumb meets them in. */
    .offerbar {
        flex-direction: column;
        align-items: stretch;
    }

    .offerbar__counter { flex: none; }

    .offerbar .ofbtn { width: 100%; }

    .offerbar__counter .ofbtn { width: auto; }

    .offerbar__field input,
    .ofbtn { height: 46px; }
}

.offernote {
    margin: 0 0 24px;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}
