/* Redesign 2026-10-15, second handover: messages. Built from tokens.css; shared components live in ui.css.
   Poruke (47), PorukeMobile (66), Narudžba (65, and 83 without the payment step).
   `body .account` in front of every rule: account.css loads after this file, so
   equal specificity would lose to it. */

/* ══ Poruke: two panes ═══════════════════════════════════════════════════ */
body .account .msgs {
    display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    min-height: 640px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden;
}
body .account .msgs__list { min-width: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
body .account .msgs__list .pagination { padding: var(--space-3) var(--space-4); }
body .account .msgs__pane { min-width: 0; display: flex; flex-direction: column; }

/* The empty right pane on the list page. */
body .account .msgs__pane--empty { align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-8); text-align: center; color: var(--muted); }
body .account .msgs__pick { margin: var(--space-2) 0 0; font: 700 16px/1.4 var(--font-sans); color: var(--ink); }
body .account .msgs__pickhint { margin: 0; max-width: 36ch; font: 500 14px/1.5 var(--font-sans); color: var(--muted); }

/* ── The list (PorukeAdmin, 2026-10-16: full-width rows between rules) ── */
/* The "Razgovori" heading shows on a phone only; on a desktop the pane says it. */
body .account .msglist2__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body .account .msglist2__empty { margin: 0; padding: var(--space-4); font: 500 14px/1.5 var(--font-sans); color: var(--ink-2); }
body .account .msglist2__rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
body .account .msglist2__rows li + li { border-top: 1px solid var(--border); }
body .account .msgconv,
body .account .msgconv:visited {
    display: flex; align-items: flex-start; gap: var(--space-3);
    min-height: var(--touch-target); padding: 14px var(--space-4);
    color: var(--ink); text-decoration: none;
    transition: background var(--duration-fast) ease;
}
body .account .msgconv:hover { background: var(--ground); text-decoration: none; }
body .account .msgconv.is-current { background: var(--blue-100) !important; }
body .account .msgconv__avatar { width: 44px; height: 44px; font-size: 13px; font-weight: 800; }
body .account .msgconv.is-current .msgconv__avatar { background: var(--surface); }
body .account .msgconv__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body .account .msgconv__top { display: flex; align-items: center; gap: var(--space-2); }
body .account .msgconv__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 15px/1.35 var(--font-sans); }
body .account .msgconv__when { flex: none; margin-left: auto; font: 700 12px/1.3 var(--font-sans); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
body .account .msgconv__lot,
body .account .msgconv__last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/18px var(--font-sans); }
body .account .msgconv__lot { font-weight: 600; color: var(--ink-2); }
body .account .msgconv__last { color: var(--muted); }

/* The pinned eAukcije row, set apart from the conversations by a band. */
body .account .msgconv--official { border-bottom: 6px solid var(--ground); }
body .account .msgconv__shield,
body .account .msgconv.is-current .msgconv__shield { display: flex; align-items: center; justify-content: center; background: var(--navy-900); color: #fff; }
body .account .msgconv__official {
    flex: none; padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--blue-700); font: 700 12px/16px var(--font-sans);
}
body .account .msgconv--official .msgconv__when,
body .account .msgconv--official.msgconv--unread .msgconv__when { color: var(--muted); }
body .account .msgconv__headline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/18px var(--font-sans); color: var(--ink); }
body .account .msgconv__new { display: flex; align-items: center; gap: 6px; font: 800 13px/18px var(--font-sans); color: var(--orange-600); }
body .account .msgconv__new::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--orange-600); }
body .account .msgconv--unread .msgconv__who,
body .account .msgconv--unread .msgconv__last { font-weight: 800; color: var(--ink); }
body .account .msgconv--unread .msgconv__when { color: var(--blue-700); font-weight: 700; }
body .account .msgconv__badge {
    flex: none; align-self: center; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); background: var(--orange-600); color: #fff;
    font: 800 12px/1 var(--font-sans); font-variant-numeric: tabular-nums;
}

/* ── The conversation: lot header ─────────────────────────────────────── */
body .account .msgpane__head {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-5); border-bottom: 1px solid var(--border);
}
body .account .msgthumb {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: var(--radius-md); overflow: hidden; background: var(--tone-slate);
}
body .account .msgthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body .account .msgthumb .icon { width: 22px; height: 22px; }
body .account .msgpane__thumb { flex: none; display: block; border-radius: var(--radius-md); }
body .account .msgpane__what { flex: 1; min-width: 0; }
body .account .msgpane__title { margin: 0 0 var(--space-1); font: 800 17px/1.3 var(--font-sans); color: var(--ink); }
body .account .msgpane__meta { margin: 0; font: 500 13px/1.6 var(--font-sans); color: var(--muted); }
body .account .msgpane__meta > * + *::before { content: " · "; color: var(--muted); font-weight: 500; }
body .account .msgpane__meta a { font-weight: 700; color: var(--blue-700); }
/* The two links in the meta line are drawn at text size and touched at 44 px. */
body .account .msgpane__lotlink,
body .account .msgpane__wholink { position: relative; }
body .account .msgpane__lotlink::after,
body .account .msgpane__wholink::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: var(--touch-target); transform: translateY(-50%); }
body .account .msgpane__price { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
body .account .msgpane__action { flex: none; min-height: var(--touch-target); }
body .account .msgpane__phonehead { display: none; }

/* ── The timeline ─────────────────────────────────────────────────────── */
body .account .msgtimeline {
    flex: 1; margin: 0; padding: var(--space-5); list-style: none;
    display: flex; flex-direction: column; gap: var(--space-4);
    background: var(--ground); min-height: 280px;
}
body .account .msgevent { align-self: center; max-width: 88%; }
body .account .msgevent p {
    margin: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
    background: var(--border); color: var(--ink-2); text-align: center;
    font: 700 13px/1.4 var(--font-sans);
}
body .account .msgbubble { display: flex; flex-direction: column; align-items: flex-start; max-width: 72%; position: relative; }
body .account .msgbubble--mine { align-self: flex-end; align-items: flex-end; }
body .account .msgbubble__anchor { position: absolute; top: -80px; }
body .account .msgbubble__body {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
    background: var(--surface); color: var(--ink);
    font: 500 15px/1.5 var(--font-sans); overflow-wrap: anywhere;
}
body .account .msgbubble--mine .msgbubble__body {
    background: var(--blue-700); border-color: var(--blue-700); color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}
/* iOS Safari turns a phone number into a tel: link in the site's link blue,
   which vanished on this blue bubble (2026-11-13). Keep it tappable, make it
   readable. */
body .account .msgbubble--mine .msgbubble__body a { color: inherit; text-decoration: underline; }
body .account .msgbubble__meta { margin: var(--space-1) 0 0; font: 500 12px/1.3 var(--font-sans); color: var(--muted); font-variant-numeric: tabular-nums; }
body .account .msgbubble__flag { margin: var(--space-1) 0 0; font: 600 12px/1.4 var(--font-sans); color: var(--amber-800); }

/* ── Reply ────────────────────────────────────────────────────────────── */
body .account .msgpane__reply { padding: var(--space-4) var(--space-5) var(--space-4); border-top: 1px solid var(--border); background: var(--surface); }
body .account .msgpane__reply .msgwarn { margin: 0 0 var(--space-3); max-width: none; }
body .account .msgpane__reply .msgform__errors { margin: 0 0 var(--space-3); }
body .account .msgquick2 { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
body .account .msgquick2__chip {
    flex: 0 0 auto; min-height: var(--touch-target); padding: 0 var(--space-4);
    border: 0; border-radius: var(--radius-pill); background: var(--blue-100); color: var(--ink);
    font: 700 13px/1 var(--font-sans); white-space: nowrap; cursor: pointer;
    transition: background var(--duration-fast) ease;
}
body .account .msgquick2__chip:hover { background: #D7E5F3; }
body .account .msgquick2__end { display: none; }
body .account .msgcomposer { display: flex; align-items: center; gap: var(--space-3); margin: 0; padding: 0; max-width: none; }
body .account .msgcomposer__box {
    flex: 1; min-width: 0; min-height: 64px; max-height: 40vh; resize: vertical;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
    font: 500 15px/1.5 var(--font-sans); color: var(--ink);
}
body .account .msgcomposer__box::placeholder { color: var(--muted); }
body .account .msgcomposer__send { flex: none; width: 52px; height: 52px; min-width: 52px; padding: 0; border-radius: var(--radius-md); }
body .account .msgcomposer__anyway { flex: none; }
body .account .msgsafety2 { margin: var(--space-3) 0 0; font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
body .account .msgpane__tools { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0 var(--space-5); padding: var(--space-3) 0 var(--space-4); border-top: 1px solid var(--border); }
body .account .msgpane__report { flex: 1 1 260px; min-width: 0; outline: none; }
body .account .msgpane__report > details > summary,
body .account .msgpane__report > button { min-height: var(--touch-target); display: inline-flex; align-items: center; }
body .account .msgpane__tools .msgdelete { margin: 0; }
body .account .msgpane__tools .msgdelete .accbtn { min-height: var(--touch-target); }

/* ══ Poruke → eAukcije (PorukeAdmin, 2026-10-16) ═════════════════════════ */
body .account .annpane { background: var(--ground); }
body .account .annhead {
    display: flex; align-items: center; gap: var(--space-3);
    padding: 14px var(--space-5); background: var(--surface); border-bottom: 1px solid var(--border);
}
body .annhead__avatar { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--navy-900); color: #fff; }
body .annhead__who { min-width: 0; display: flex; flex-direction: column; }
body .annhead__who strong { font: 800 16px/1.35 var(--font-sans); color: var(--ink); }
body .annhead__who span { font: 600 13px/1.35 var(--font-sans); color: var(--muted); }
body .account .annhead__readall { margin: 0 0 0 auto; padding: 0; max-width: none; }
body .account .annhead__readall button {
    min-height: var(--touch-target); padding: 0; border: 0; background: none; cursor: pointer;
    font: 700 14px/1.3 var(--font-sans); color: var(--blue-700);
}
body .account .annhead__readall button:hover { color: var(--navy-900); }

body .account .annlist { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
body .account .annc {
    display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    scroll-margin-top: var(--space-4);
}
body .account .annc--new { border-color: var(--border-strong); }
body .account .annc__meta { display: flex; align-items: center; gap: var(--space-2); }
body .account .annc__tag { flex: none; padding: 3px var(--space-2); border-radius: var(--radius-sm); font: 700 12px/16px var(--font-sans); }
body .account .annc__tag--novost { background: var(--blue-100); color: var(--blue-700); }
body .account .annc__tag--sigurnost { background: var(--amber-100); color: var(--amber-800); }
body .account .annc__tag--pravila { background: var(--tone-slate); color: var(--tone-slate-ink); }
body .account .annc__new { display: flex; align-items: center; gap: 6px; font: 800 12px/16px var(--font-sans); color: var(--orange-600); }
body .account .annc__new::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--orange-600); }
body .account .annc__when { margin-left: auto; font: 600 13px/1.3 var(--font-sans); color: var(--muted); white-space: nowrap; }
body .account .annc__short { display: none; }
body .account .annc__title { margin: 0; font: 800 17px/24px var(--font-sans); color: var(--ink); }
body .account .annc__body { font: 500 15px/24px var(--font-sans); color: var(--ink-2); overflow-wrap: anywhere; }
body .account .annc__body.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
body .account .annc__link,
body .account .annc__link:visited {
    align-self: flex-start; display: flex; align-items: center; min-height: var(--touch-target);
    padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none;
    font: 700 14px/1.3 var(--font-sans); color: var(--blue-700);
}
body .account .annc__link:hover { color: var(--navy-900); }
body .account .annc__more[hidden] { display: none; }
body .account .annlist__older,
body .account .annlist__older:visited {
    align-self: center; display: flex; align-items: center; min-height: var(--touch-target);
    font: 700 14px/1.3 var(--font-sans); color: var(--blue-700); text-decoration: none;
}

body .account .annpane__noreply {
    display: flex; align-items: center; gap: 10px; padding: 14px var(--space-5);
    background: var(--surface); border-top: 1px solid var(--border);
    font: 600 13px/18px var(--font-sans); color: var(--muted);
}
body .account .annpane__noreply svg { flex: none; }
body .account .annpane__noreply a { font-weight: 700; color: var(--blue-700); }

/* The phone's white head bar for this view; `.appbar` shows below 700 px only. */
body .appbar--official { justify-content: flex-start; gap: var(--space-2); padding: 6px var(--space-4) 10px var(--space-2); background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--border); }
body .appbar--official .appbar__back,
body .appbar--official .appbar__back:visited { width: var(--touch-target); height: var(--touch-target); padding: 0; justify-content: center; color: var(--blue-700); }

/* ══ Narudžba ════════════════════════════════════════════════════════════ */
body .account:has(.ordpage) .account__sectionhead { display: none; }
body .account .ordpage__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-4); }
body .account .ordpage__title { margin: 0; font: 800 26px/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
body .account .ordpage__title span { font-weight: 800; }
body .account .ordpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-4); align-items: start; }
body .account .ordpage__main,
body .account .ordpage__side { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }

body .account .ordcard { margin: 0; padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
body .account .ordcard__title { margin: 0 0 var(--space-3); font: 800 16px/1.3 var(--font-sans); color: var(--ink); }

/* The lot */
body .account .ordlot__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
body .account .ordlot__item { display: flex; align-items: center; gap: var(--space-4); }
body .account .ordlot .msgthumb { width: 64px; height: 64px; }
body .account .ordlot__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body .account .ordlot__name { font: 800 16px/1.35 var(--font-sans); color: var(--ink); }
body .account a.ordlot__name, body .account a.ordlot__name:visited { color: var(--ink); }
body .account a.ordlot__name:hover { color: var(--blue-700); }
body .account a.ordlot__name,
body .account a.ordparty__name { position: relative; }
body .account a.ordlot__name::after,
body .account a.ordparty__name::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; min-height: 100%; height: var(--touch-target); transform: translateY(-50%); }
body .account .ordlot__meta { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
body .account .ordlot__price { margin-left: auto; font: 800 15px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The summary */
body .account .ordsum__rows { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
body .account .ordsum__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
body .account .ordsum__row dt { font: 500 15px/1.4 var(--font-sans); color: var(--ink-2); }
body .account .ordsum__row dd { margin: 0; font: 800 15px/1.4 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
body .account .ordsum__note { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border); font: 500 13px/1.5 var(--font-sans); color: var(--muted); }

/* The other party */
body .account .ordparty { display: flex; align-items: center; gap: var(--space-3); }
body .account .ordparty .avatar { width: 44px; height: 44px; font-size: 14px; }
body .account .ordparty__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body .account .ordparty__role { font: 700 12px/1.3 var(--font-sans); color: var(--muted); }
body .account .ordparty__name { font: 800 16px/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
body .account a.ordparty__name, body .account a.ordparty__name:visited { color: var(--ink); }
body .account .ordparty__meta { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
body .account .ordparty .btn { flex: none; min-height: var(--touch-target); }

/* The order number on a Kupljeno card (member/purchases) opens this page:
   drawn as the number, touched at 44 px. */
body .account a.buyorder__number,
body .account a.buyorder__number:visited { position: relative; color: var(--blue-700); }
body .account a.buyorder__number::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: var(--touch-target); transform: translateY(-50%); }

/* The steps */
body .account .ordsteps__list { margin: 0; padding: 0; list-style: none; }
body .account .ordstep { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-4); }
body .account .ordstep:last-child { padding-bottom: 0; }
body .account .ordstep::before {
    content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border);
}
body .account .ordstep:last-child::before { display: none; }
body .account .ordstep--done::before { background: var(--green-600); }
body .account .ordstep__mark {
    width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border-strong); background: var(--surface); color: var(--muted);
    font: 800 12px/1 var(--font-sans);
}
body .account .ordstep--done .ordstep__mark { border-color: var(--green-600) !important; background: var(--green-600) !important; color: #fff !important; }
body .account .ordstep--current .ordstep__mark { border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
body .account .ordstep__text { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
body .account .ordstep__label { font: 800 15px/1.3 var(--font-sans); color: var(--ink); }
body .account .ordstep__sub { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }

body .account .ordpage__auto { margin: 0; font: 500 13px/1.5 var(--font-sans); color: var(--muted); }

/* Closing: the question, its two answers and their confirmations. The
   confirmations open with `:target`, so they need no script: inline in the
   card on a desktop, a bottom sheet on a phone. */
body .account .ordq__ask { margin: 0 0 var(--space-3); font: 800 16px/1.3 var(--font-sans); color: var(--ink); }
body .account .ordq__acts { display: flex; gap: var(--space-2); }
body .account .ordq__acts .btn { flex: 1 1 0; min-height: var(--touch-target); }
body .account .ordsheet { display: none; margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--ground); outline: none; }
body .account .ordsheet:target { display: block; }
body .account .ordsheet__grip { display: none; }
body .account .ordsheet__title { margin: 0 0 var(--space-2); font: 800 18px/1.3 var(--font-sans); color: var(--ink); }
body .account .ordsheet__body { margin: 0 0 var(--space-4); font: 500 14px/1.5 var(--font-sans); color: var(--ink-2); }
body .account .ordsheet form { margin: 0; }
body .account .ordsheet__acts { display: flex; flex-direction: column; gap: var(--space-2); }
body .account .ordsheet__acts .btn { width: 100%; min-height: var(--touch-target); }

/* The rating */
body .account .ordgrade__lede { margin: 0 0 var(--space-3); font: 500 14px/1.5 var(--font-sans); color: var(--ink-2); }
body .account .ordgrade__note { margin: 0 0 var(--space-3); font: 600 13px/1.5 var(--font-sans); color: var(--amber-800); }
body .account .ordgrade__choices { margin: 0 0 var(--space-4); padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
body .account .ordgrade__choice { position: relative; flex: 1 1 120px; }
body .account .ordgrade__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
body .account .ordgrade__choice span {
    display: flex; align-items: center; justify-content: center; min-height: var(--touch-target); padding: 0 var(--space-3);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
    font: 700 14px/1 var(--font-sans); color: var(--ink);
}
body .account .ordgrade__choice input:focus-visible + span { outline: 2px solid var(--blue-700); outline-offset: 2px; }
body .account .ordgrade__choice--positive input:checked + span { background: var(--green-100) !important; border-color: var(--green-700) !important; color: var(--green-700) !important; }
body .account .ordgrade__choice--neutral input:checked + span { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }
body .account .ordgrade__choice--negative input:checked + span { background: var(--red-100) !important; border-color: var(--red-700) !important; color: var(--red-700) !important; }
body .account .ordgrade__label { display: block; margin: 0 0 var(--space-1); font: 700 13px/1.3 var(--font-sans); color: var(--ink); }
body .account .ordgrade__text { width: 100%; min-height: 88px; padding: var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font: 500 15px/1.5 var(--font-sans); color: var(--ink); }
body .account .ordgrade__hint { margin: var(--space-1) 0 var(--space-4); font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
body .account .ordgrade__mine { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font: 600 14px/1.5 var(--font-sans); color: var(--ink-2); }
body .account .ordgrade__comment { margin: var(--space-2) 0 0; font: 500 14px/1.5 var(--font-sans); color: var(--ink-2); }
body .account .ordgrade__closed { margin: 0; font: 500 14px/1.5 var(--font-sans); color: var(--muted); }

/* ══ Phone ═══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    /* The list page: the list alone, edge to edge inside the 16 px gutter. */
    body .account .msgs { display: block; min-height: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
    body .account .msgs__list { border-right: 0; }
    body .account .msgs__pane--empty { display: none; }
    /* PorukeMobile (2026-10-16): the eAukcije card, then "Razgovori" over their own card. */
    body .account .msglist2 { display: flex; flex-direction: column; gap: var(--space-3); }
    body .account .msglist2__heading {
        position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
        margin: var(--space-2) 0 0; padding: 0 var(--space-1);
        font: 700 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
    }
    body .account .msglist2__empty { padding: 0; }
    body .account .msglist2__rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
    body .account .msgconv { padding: 14px; }
    body .account .msgconv--official { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); }

    /* PorukeAdminMobile: the notices fill the screen under the white bar,
       the no-reply note stays at the bottom. */
    /* The white bar names the sender; of the pane head only "Označi sve kao
       pročitano" stays, right-aligned above the list (MOBILE-FIXES B12). */
    body .account .annhead { justify-content: flex-end; padding: var(--space-2) var(--space-4) 0; background: none; border-bottom: 0; }
    body .account .annhead__avatar, body .account .annhead__who { display: none; }
    body .account .msgs--official .annpane { min-height: calc(100vh - 61px); min-height: calc(100dvh - 61px); }
    /* Bottom padding clears the fixed no-reply note below. */
    body .account .annlist { padding: var(--space-4) var(--space-4) 96px; }
    body .account .annc { padding: var(--space-4); border-color: var(--border-strong); }
    body .account .annc__when { font-size: 12px; font-weight: 700; }
    body .account .annc__long { display: none; }
    body .account .annc__short { display: inline; }
    body .account .annc__title { font-size: 16px; line-height: 22px; }
    body .account .annc__body { line-height: 23px; }
    body .account .annpane__noreply { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: flex-start; padding: var(--space-3) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom)); }

    /* An open conversation fills the screen under the app bar (PorukeMobile). */
    body:has(.msgs--open) .account__mobilehead,
    body:has(.msgs--open) .account__head,
    body:has(.msgs--open) .account__sectionhead,
    body:has(.msgs--open) .accnav,
    body:has(.msgs--open) .accchips,
    body:has(.msgs--open) .msgs__list { display: none !important; }
    body:has(.msgs--open) .account { padding: 0; margin: 0; max-width: none; }
    body:has(.msgs--open) .account__layout,
    body:has(.msgs--open) .account__main { display: block; margin: 0; padding: 0; gap: 0; }
    body:has(.msgs--open) .accflashes { margin: var(--space-3) var(--space-4) 0; }
    body .account .msgs--open { margin-left: calc(-1 * var(--space-4)); margin-right: calc(-1 * var(--space-4)); }
    body .account .msgs--open .msgpane { min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }

    body .account .msgpane__head { display: none; }
    body .account .msgpane__phonehead,
    body .account .msgpane__phonehead:visited {
        display: flex; align-items: center; gap: var(--space-3);
        min-height: 68px; padding: var(--space-3) var(--space-4);
        background: var(--surface); border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none;
    }
    body .account .msgpane__phonehead .msgthumb { width: 44px; height: 44px; }
    body .account .msgpane__phonetext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    body .account .msgpane__phonetext strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 14px/1.3 var(--font-sans); }
    body .account .msgpane__phonetext span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.3 var(--font-sans); color: var(--muted); }
    body .account .msgpane__chev { flex: none; color: var(--muted); }

    body .account .msgtimeline { padding: var(--space-4); }
    body .account .msgbubble { max-width: 82%; }
    body .account .msgevent { max-width: 100%; }
    body .account .msgevent p { border-radius: var(--radius-lg); }

    /* The composer stays at the bottom of the screen. */
    body .account .msgpane__reply { position: sticky; bottom: 0; z-index: 5; padding: var(--space-3) 0 calc(var(--space-3) + env(safe-area-inset-bottom)); }
    body .account .msgquick2 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 var(--space-4); margin-bottom: var(--space-2); }
    body .account .msgquick2::-webkit-scrollbar { display: none; }
    body .account .msgquick2__end { display: block; flex: 0 0 var(--space-1); }
    body .account .msgquick2__chip { min-height: 36px; position: relative; }
    /* 36 px drawn, 44 px to the touch. */
    body .account .msgquick2__chip::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
    body .account .msgcomposer,
    body .account .msgpane__reply .msgwarn,
    body .account .msgpane__reply .msgform__errors,
    body .account .msgsafety2 { margin-left: var(--space-4); margin-right: var(--space-4); }
    body .account .msgpane__tools { margin: 0 var(--space-4); }
    body .account .msgcomposer__box { min-height: var(--touch-target); height: var(--touch-target); padding: 11px var(--space-4); border-radius: var(--radius-pill); resize: none; }
    /* A draft that is already written (the warning step, or typed text)
       gets room for its lines instead of a one-line pill. */
    body .account .msgcomposer__box:not(:placeholder-shown) { height: auto; min-height: 64px; max-height: 30vh; border-radius: var(--radius-md); field-sizing: content; }
    body .account .msgcomposer__send { width: var(--touch-target); height: var(--touch-target); min-width: var(--touch-target); border-radius: 999px; }
    body .account .msgsafety2 { margin-top: var(--space-2); }

    /* ── Narudžba (65) ── */
    body:has(.ordpage) .account__mobilehead,
    body:has(.ordpage) .account__head,
    body:has(.ordpage) .accchips,
    body:has(.ordpage) .accnav { display: none !important; }
    body .account .ordpage { padding-bottom: 96px; }
    body .account .ordpage__head { margin: var(--space-4) 0 var(--space-3); }
    body .account .ordpage__title { font: 500 14px/1.3 var(--font-sans); color: var(--muted); letter-spacing: 0; }
    body .account .ordpage__title span { font-weight: 800; color: var(--ink); }
    body .account .ordpage__grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); }
    body .account .ordpage__main,
    body .account .ordpage__side { display: contents; }
    body .account .ordlot { order: 1; }
    body .account .ordsum { order: 2; }
    body .account .ordparty-card { order: 3; }
    body .account .ordsteps { order: 4; }
    body .account .ordgrade { order: 5; }
    body .account .ordpage__auto { order: 6; }
    body .account .ordq { order: 7; }
    body .account .ordcard { padding: var(--space-4); }
    body .account .ordsteps .ordcard__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

    /* The question becomes the bar at the bottom of the screen. */
    body .account .ordq--open {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        display: flex; align-items: center; gap: var(--space-2);
        padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
        border: 0; border-top: 1px solid var(--border); border-radius: 0;
        box-shadow: 0 -6px 18px rgba(11,37,64,.08);
    }
    body .account .ordq--open .ordq__ask { flex: 1; margin: 0; font-size: 14px; }
    body .account .ordq--open .ordq__acts .btn { flex: none; padding: 0 var(--space-4); }
    body:has(.ordq--open) .sitefoot { padding-bottom: 88px; }

    /* Its confirmations, as bottom sheets. */
    body .account .ordsheet:target {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0;
        max-height: 86vh; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
        padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
        background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-sheet);
        animation: ordsheet-in var(--duration-slow) var(--ease-out);
    }
    body .account .ordsheet:target .ordsheet__grip { display: block; position: absolute; top: var(--space-2); left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: var(--border-strong); }
    body .account .ordq:has(.ordsheet:target) .ordq__backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(11,37,64,.45); }
}

body .account .ordq__backdrop { display: none; }

@keyframes ordsheet-in { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    body .account .msgconv,
    body .account .msgquick2__chip { transition: none; }
    body .account .ordsheet:target { animation: none !important; }
}
