/* BRRM web styles: the Industrial Motorsport tokens (BRRM Design System 1.0, DECISIONS R2-49) and the shared components.
   The theme follows the system setting; the profile toggle sets data-theme on <html> (NFR-008).
   Every colour pair used for text passes WCAG AA in both themes. */

@import url("../fonts/fonts.css");

:root {
  --br-bg: #F4F4F4;
  --br-surface: #FFFFFF;
  --br-raised: #EBEBEB;
  --br-line: #D9D9D9;
  --br-field: #767676;
  --br-text: #111111;
  --br-muted: #666666;
  --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --br-accent: #C4001D;       /* red as text, links, outlines, the active tab: 4.5:1 or more (R2-49) */
  --br-accent-fill: #E60023;  /* Racing Red as a fill: buttons, selected chips, badges, always with white text */
  --br-accent-fill-hover: #C4001D;
  --br-accent-fill-press: #A90019;
  --br-accent-2: #E60023;     /* a second red fill: unread counts and dots */
  --br-on-accent: #FFFFFF;
  --br-ok: #16803C;
  --br-warn: #8A5100;
  --br-hot: #E60023;          /* "Traženo" (R40-4) and the dial's red zone */
  --br-on-hot: #FFFFFF;
  --br-bad: #C4001D;
  --br-tint: rgba(230, 0, 35, 0.08);

  --br-space: #111111;        /* Industrial Black: header, footer, hero, the phone's top bar */
  --br-space-surface: #242424;
  --br-space-text: #FFFFFF;
  --br-space-muted: #CCCCCC;
  --br-neon: #FF6B78;
  --br-neon-2: #FFFFFF;

  --br-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Barlow Condensed has no Cyrillic: Roboto Condensed (its Cyrillic subsets only) sets sr-Cyrl and ru titles. */
  --br-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --br-mono: "JetBrains Mono", ui-monospace, monospace;
  --br-r-chip: 2px;
  --br-r-control: 4px;
  --br-r-card: 6px;
  --br-r-sheet: 6px;
  --br-tabbar-h: 76px;
  --br-header-h: 73px;
  --br-mobilebar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --br-bg: #111111;
    --br-surface: #242424;
    --br-raised: #2C2C2C;
    --br-line: #353535;
    --br-field: #8A8A8A;
    --br-text: #FFFFFF;
    --br-muted: #CCCCCC;
    --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --br-accent: #FF6B78;
    --br-accent-fill: #E60023;
    --br-accent-fill-hover: #C4001D;
    --br-accent-fill-press: #A90019;
    --br-accent-2: #E60023;
    --br-on-accent: #FFFFFF;
    --br-ok: #4ADE80;
    --br-warn: #FFB020;
    --br-hot: #E60023;
    --br-on-hot: #FFFFFF;
    --br-bad: #FF6B78;
    --br-tint: rgba(230, 0, 35, 0.16);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --br-bg: #111111;
  --br-surface: #242424;
  --br-raised: #2C2C2C;
  --br-line: #353535;
  --br-field: #8A8A8A;
  --br-text: #FFFFFF;
  --br-muted: #CCCCCC;
  --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --br-accent: #FF6B78;
  --br-accent-fill: #E60023;
  --br-accent-fill-hover: #C4001D;
  --br-accent-fill-press: #A90019;
  --br-accent-2: #E60023;
  --br-on-accent: #FFFFFF;
  --br-ok: #4ADE80;
  --br-warn: #FFB020;
  --br-hot: #E60023;
  --br-on-hot: #FFFFFF;
  --br-bad: #FF6B78;
  --br-tint: rgba(230, 0, 35, 0.16);
  color-scheme: dark;
}

/* The black bands (header, footer, the home hero, the phone's top bar) carry the dark tokens in both themes, so
   what sits in them reads on black. */
.br-header, .br-footer, .br-hero, .br-mobilebar {
  color-scheme: dark;
  --br-bg: #111111;
  --br-surface: #242424;
  --br-raised: #2C2C2C;
  --br-line: #353535;
  --br-field: #8A8A8A;
  --br-text: #FFFFFF;
  --br-muted: #CCCCCC;
  --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --br-accent: #FF6B78;
  --br-accent-fill: #E60023;
  --br-accent-fill-hover: #C4001D;
  --br-accent-fill-press: #A90019;
  --br-accent-2: #E60023;
  --br-on-accent: #FFFFFF;
  --br-ok: #4ADE80;
  --br-warn: #FFB020;
  --br-hot: #E60023;
  --br-on-hot: #FFFFFF;
  --br-bad: #FF6B78;
  --br-tint: rgba(230, 0, 35, 0.16);
}

/* --- base ---------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* Always keep room for the scrollbar, so the centred header does not shift between short and tall pages. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--br-bg);
  color: var(--br-text);
  font: 400 16px/1.5 var(--br-font);
  overflow-x: hidden;
}
a { color: var(--br-accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--br-accent); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.br-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.br-skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px;
  border-radius: var(--br-r-control); background: var(--br-accent-fill); color: var(--br-on-accent); font-weight: 600;
}
.br-skip:focus { top: 12px; }

.br-display { font-family: var(--br-display); font-weight: 800; letter-spacing: 0; }
.br-price { font-family: var(--br-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.br-mono { font-family: var(--br-mono); font-weight: 500; letter-spacing: 0.04em; }
.br-muted { color: var(--br-muted); }

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

.br-app { min-height: 100vh; display: flex; flex-direction: column; }
.br-main { flex: 1; padding-bottom: 32px; }
.br-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.br-page { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; padding-bottom: 32px; }
.br-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* A tablet (R45-3): as many cards as fit at about a phone card's width, three or four in a row, not two large ones. */
@media (min-width: 640px) and (max-width: 899px) {
  .br-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
}

@media (min-width: 900px) {
  .br-main { padding-bottom: 48px; }
  .br-container { padding-inline: 20px; }
  .br-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* --- header (desktop) and tab bar (phone) ------------------------------------------------- */

.br-header { display: none; background: var(--br-space); color: var(--br-space-text); border-bottom: 2px solid var(--br-accent-fill); }
.br-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
/* Up to 1074 px (R45-3) the header stays one row: the search field gives up room first, the gaps tighten, and under
   980 px "How it works" leaves for the footer, which has it too. */
@media (min-width: 900px) and (max-width: 1074px) {
  .br-header__row { flex-wrap: nowrap; gap: 16px; }
  .br-header__search { flex: 1 1 160px; }
  .br-header__nav { flex-wrap: nowrap; flex: none; }
}
@media (min-width: 900px) and (max-width: 979px) { .br-header__nav > .br-header__how { display: none; } }
.br-header__search {
  flex: 1 1 320px; min-width: 0; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--br-field); border-radius: var(--br-r-control); background: var(--br-bg);
  color: var(--br-muted); text-decoration: none;
}
.br-header__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.br-mobilebar {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 16px;
  background: var(--br-space); color: var(--br-space-text);
}
/* Where the footer is hidden, language and theme stand before the bell (R50-1), each as large as it. */
.br-mobilebar__end { display: flex; align-items: center; gap: 2px; }
.br-mobilebar__lang { font: 700 14px var(--br-font); letter-spacing: 0.02em; }
.br-langmenu .br-menu__row[aria-current="true"] { font-weight: 600; color: var(--br-accent); }

.br-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--br-tabbar-h);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 8px 14px;
  background: var(--br-surface); border-top: 1px solid var(--br-line);
}
.br-tab {
  min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--br-muted); text-decoration: none; font-size: 12px; font-weight: 500;
}
.br-tab[aria-current="page"] { color: var(--br-accent); font-weight: 600; box-shadow: inset 0 3px 0 var(--br-accent-fill); }
.br-tab__sell {
  width: 40px; height: 32px; border-radius: var(--br-r-control); display: grid; place-items: center;
  background: var(--br-accent-fill); color: var(--br-on-accent);
}
.br-tab__icon { position: relative; display: grid; }
.br-iconbtn .br-tab__badge { top: 2px; right: 0; }
.br-tab__badge {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--br-r-chip);
  background: var(--br-accent-2); color: var(--br-on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

@media (min-width: 900px) {
  .br-header { display: block; }
  .br-mobilebar, .br-tabbar { display: none; }
}

/* --- brand -------------------------------------------------------------------------------- */

.br-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.br-brand__word { font-family: var(--br-display); font-weight: 900; font-size: 26px; letter-spacing: 0.02em; line-height: 1; }

/* --- controls ------------------------------------------------------------------------------ */

.br-btn {
  min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--br-r-control); background: var(--br-accent-fill); color: var(--br-on-accent);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
}
.br-btn--secondary { background: transparent; color: var(--br-text); border: 1.5px solid var(--br-text); }
.br-btn--ghost { background: transparent; color: var(--br-accent); padding: 0 12px; }
.br-btn--danger { background: transparent; color: var(--br-bad); border: 1.5px solid var(--br-bad); }
.br-btn[disabled], .br-btn[aria-disabled="true"] { background: var(--br-raised); color: var(--br-muted); border-color: transparent; cursor: not-allowed; }
.br-iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: var(--br-r-control);
  background: transparent; color: inherit; cursor: pointer; position: relative; text-decoration: none;
}

.br-field { display: flex; flex-direction: column; gap: 6px; }
.br-field__label { font-size: 15px; font-weight: 600; }
.br-field__hint { font-size: 13px; color: var(--br-muted); }
.br-field__error { font-size: 14px; color: var(--br-bad); }
.br-input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--br-field); border-radius: var(--br-r-control);
  background: var(--br-surface); color: var(--br-text);
}
/* Every dropdown, in the theme: the field of the inputs beside it, and the chevron of the search page's sort (NFR-025). */
select.br-input {
  -webkit-appearance: none; appearance: none; padding-inline-end: 40px; cursor: pointer; text-overflow: ellipsis;
  background-image: var(--br-chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select.br-input:hover:not(:disabled) { border-color: var(--br-accent); }
select.br-input:disabled { cursor: not-allowed; }
/* The list that opens, in the theme too, with a mouse or trackpad. A touch screen keeps the browser's own picker,
   which suits a thumb and is what people expect there (R29-7); so do browsers without this. */
@media (pointer: fine) { @supports (appearance: base-select) {
  select.br-input, .br-select select { appearance: base-select; display: flex; align-items: center; }
  select.br-input::picker-icon, .br-select select::picker-icon { display: none; }
  select.br-input::picker(select), .br-select select::picker(select) {
    appearance: base-select; margin-block: 4px; padding: 6px; border: 1px solid var(--br-line); border-radius: 6px;
    max-block-size: min(320px, 60vh); overflow-y: auto;
    /* Down, and up only when it does not fit: the browser's default is the side with the most room. */
    position-try-order: normal;
    background: var(--br-surface); color: var(--br-text); box-shadow: 0 12px 28px rgba(17, 17, 17, .28);
    opacity: 1; transform: none;
    transition: opacity var(--br-t-fast) var(--br-ease), transform var(--br-t-fast) var(--br-ease);
  }
  @starting-style {
    select.br-input::picker(select), .br-select select::picker(select) { opacity: 0; transform: translateY(-4px); }
  }
  select.br-input option, .br-select select option {
    display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 4px;
    background: transparent; color: var(--br-text); font: 400 15px var(--br-font); cursor: pointer;
  }
  select.br-input option::checkmark, .br-select select option::checkmark { display: none; }
  select.br-input option:hover, select.br-input option:focus-visible, .br-select select option:hover, .br-select select option:focus-visible {
    background: var(--br-tint); color: var(--br-text); outline: none;
  }
  select.br-input option:checked, .br-select select option:checked { color: var(--br-accent); font-weight: 600; }
  @media (prefers-reduced-motion: reduce) {
    select.br-input::picker(select), .br-select select::picker(select) { transition: none; }
  }
} }
.br-input[aria-invalid="true"] { border: 2px solid var(--br-bad); }

.br-chip {
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: var(--br-r-control);
  border: 1px solid var(--br-field); background: transparent; color: var(--br-text); text-decoration: none;
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.br-chip[aria-pressed="true"] { border: 1.5px solid var(--br-accent); background: var(--br-tint); color: var(--br-accent); }

.br-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--br-r-chip); background: var(--br-raised); font-size: 13px; font-weight: 600; }
.br-status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.br-status--ok { color: var(--br-ok); }
.br-status--warn { color: var(--br-warn); }
.br-status--bad { color: var(--br-bad); }
.br-status--accent { color: var(--br-accent); }

/* --- surfaces ------------------------------------------------------------------------------ */

.br-card { background: var(--br-surface); border-radius: var(--br-r-card); padding: 16px; }
.br-card--line { border: 1px solid var(--br-line); }
.br-note { display: flex; gap: 12px; padding: 14px; border-radius: 6px; border: 1.5px solid var(--br-warn); background: var(--br-surface); }

.br-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 24px; }
.br-state__icon { width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; background: var(--br-raised); color: var(--br-muted); }
.br-state--error .br-state__icon { color: var(--br-warn); }

.br-skel { background: var(--br-raised); border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .br-skel { animation: br-pulse 1.4s ease-in-out infinite; }
}
@keyframes br-pulse { 50% { opacity: 0.55; } }

/* --- starfield (brand band) ---------------------------------------------------------------- */

.br-hero { position: relative; overflow: hidden; background: var(--br-space); color: var(--br-space-text); padding-block: 28px 32px; }
.br-hero > :not(.br-stars) { position: relative; z-index: 1; }
/* The racing stripes (BRRM Design System 1.0 §08): a red band and a thin white one, slanted, behind the content. */
.br-hero::before, .br-hero::after { content: ""; position: absolute; top: -10%; bottom: -10%; pointer-events: none; transform: skewX(-28deg); }
.br-hero::before { right: 14%; width: 56px; background: var(--br-accent-fill); }
.br-hero::after { right: calc(14% - 34px); width: 10px; background: #FFFFFF; opacity: .85; }
@media (max-width: 899px) { .br-hero::before { right: -8px; width: 36px; } .br-hero::after { right: -40px; width: 8px; } }
.br-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .br-tw { animation: br-tw 4.2s ease-in-out infinite; }
  .br-tw2 { animation: br-tw 5.6s ease-in-out -2.1s infinite; }
}
@keyframes br-tw { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.2; } }

/* --- footer ------------------------------------------------------------------------------ */

.br-footer {
  display: flex; flex-direction: column; gap: 28px; margin-top: 24px; padding-top: 32px;
  background: var(--br-space); color: var(--br-space-text);
  /* Full width: the black and the red rule above it reach both edges of the window. */
  box-shadow: 0 0 0 100vmax var(--br-space), 0 -2px 0 100vmax var(--br-accent-fill); clip-path: inset(-2px -100vmax 0);
  padding-bottom: calc(var(--br-tabbar-h) + 16px);
}
.br-prefs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

@media (min-width: 900px) { .br-footer { padding-bottom: 24px; } }
.br-main:focus { outline: none; }
/* Under 900 px language and theme are in the top bar instead (R50-1). */
@media (max-width: 899px) { .br-footer { display: none; } .br-main { padding-bottom: calc(var(--br-tabbar-h) + 16px); } }

/* --- responsive helpers ------------------------------------------------------------------- */

@media (max-width: 899px) { .br-desk { display: none !important; } }
@media (min-width: 900px) { .br-phone { display: none !important; } }
.br-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* --- sections ----------------------------------------------------------------------------- */

.br-section { display: flex; flex-direction: column; gap: 12px; }
.br-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.br-section__title { font-size: 18px; font-weight: 600; }
.br-section__title--sm { font-size: 17px; }
.br-section__more { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
/* Similar and the seller's other listings as two tabs (R40-3). "Show all" keeps its room on either tab. */
/* Similar / from the seller (LTB-001): only the two tabs on their row; "Show more" is a button under the list.
   They share the row, each half of it, at every width (R45-9), a long name taking a second line rather than pushing
   the other out of view. */
.br-moretabs__tabs { overflow: visible; }
.br-moretabs__panel { display: flex; flex-direction: column; }
.br-page__title { font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.br-state__title { font-size: 20px; line-height: 1.3; }
.br-state__mark { display: block; }
@media (min-width: 900px) {
  .br-section { gap: 16px; }
  .br-section__title { font-family: var(--br-display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
  .br-section__title--sm { font-family: var(--br-font); font-weight: 600; font-size: 18px; }
  .br-page__title { font-size: 36px; }
}

/* --- listing cards ------------------------------------------------------------------------ */

.br-cards { list-style: none; margin: 0; padding: 0; }
.br-cards > li { min-width: 0; }
.br-cards__more { grid-column: 1 / -1; }
/* Every listing photo's box: 4:3 landscape, the usual frame of a vehicle photo and the shape uploads are cropped to
   (DECISIONS R1-16, brrm.images/listing-ratio), never Zgrabi's portrait 402:568 (NFR-054). */
:root { --br-photo-ratio: 4 / 3; }
/* Like Vinted (R32-5): the photo is the card, tall as a phone's photo box, with the text under it on the page. */
.br-lcard { position: relative; height: 100%; }
.br-lcard__link { display: flex; flex-direction: column; height: 100%; color: var(--br-text); text-decoration: none; }
.br-lcard__img {
  position: relative; aspect-ratio: var(--br-photo-ratio); width: 100%; display: grid; place-items: center; border-radius: 6px;
  background: var(--br-raised); color: var(--br-muted); overflow: hidden;
}
.br-lcard__img img { width: 100%; height: 100%; object-fit: cover; }
/* A card's other photos (SRC-034). They swap at once: a pointer sweeping across must not wait for a fade. */
.br-lcard__more { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.br-lcard__more[data-on="true"] { visibility: visible; }
.br-lcard__img[data-slow="true"] > img { filter: blur(2px) brightness(.95); }
.br-lcard__loadbar { position: absolute; inset: 0 0 auto; height: 3px; overflow: hidden; background: color-mix(in srgb, var(--br-accent) 15%, transparent); pointer-events: none; }
.br-lcard__loadbar > span { display: block; width: 25%; height: 100%; background: var(--br-accent); animation: br-card-loadbar 1.1s var(--br-ease) infinite; }
@keyframes br-card-loadbar { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.br-lcard__morecount { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 17, 17, .55); color: #fff; font-size: 14px; font-weight: 600; pointer-events: none; }
.br-lcard__dots { position: absolute; left: 50%; bottom: 8px; display: flex; gap: 5px; transform: translateX(-50%); pointer-events: none; }
.br-lcard__dots > span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(17, 17, 17, .6); transition: width var(--br-t-fast) var(--br-ease), background-color var(--br-t-fast) var(--br-ease); }
.br-lcard__dots > span[data-on="true"] { width: 16px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .br-lcard__dots > span { transition: none; } .br-lcard__loadbar > span { animation: none; width: 100%; } }
.br-lcard__badge {
  position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 4px;
  background: var(--br-text); color: var(--br-bg); font-size: 12px; font-weight: 600;
}
/* "Traženo" (R40-4): a flame and the word, on the card's photo and by the listing's title. */
.br-hot { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 4px;
  background: var(--br-hot); color: var(--br-on-hot); font-size: 12px; font-weight: 700; line-height: 18px; }
.br-lcard__hot { position: absolute; left: 10px; top: 10px; pointer-events: none; }
.br-item__hot { margin-bottom: 6px; }
.br-lcard__body { padding: 8px 2px 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.br-lcard__price { font-size: 16px; }
/* The price in the viewer's currency (MKT-012): one quiet line, always present so cards stay one size. */
.br-approx { display: block; font-size: 13px; line-height: 18px; min-height: 18px; color: var(--br-muted); white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.br-item__approx { font-size: 15px; line-height: 22px; min-height: 22px; margin-top: -4px; }
/* The seller's currency beside the price (LST-027). */
.br-pricefield { display: flex; gap: 8px; }
.br-pricefield .br-input:first-child { flex: 1 1 auto; min-width: 0; }
.br-pricefield__currency { flex: 0 0 88px; }
.br-lcard__title, .br-lcard__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-lcard__title { font-size: 14px; font-weight: 600; }
.br-lcard__meta { font-size: 13px; color: var(--br-muted); }
.br-lcard__link:hover .br-lcard__title { text-decoration: underline; }
.br-fav {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--br-r-control);
  background: transparent; color: var(--br-text); cursor: pointer;
}
.br-fav__dot { width: 32px; height: 32px; border-radius: var(--br-r-control); display: grid; place-items: center; background: var(--br-surface); }
.br-fav[aria-pressed="true"] { color: var(--br-accent); }
.br-lcard__fav { position: absolute; top: 6px; right: 6px; }

/* --- home --------------------------------------------------------------------------------- */

.br-home__hero { color: var(--br-text); }
.br-home__hero .br-stars { color: var(--br-accent); }
.br-stars__spark { fill: var(--br-accent-2); }
.br-home__hero-body { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; padding-bottom: 18px; }
.br-home__heading { font-size: 24px; }
.br-home__lead { max-width: 600px; font-size: 18px; color: var(--br-muted); }
.br-home__search {
  height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--br-field);
  border-radius: var(--br-r-control); background: var(--br-surface); color: var(--br-muted); text-decoration: none;
}
.br-home__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.br-btn--neon { background: var(--br-accent-fill); color: var(--br-on-accent); }
.br-btn--outline-neon { background: transparent; color: var(--br-text); border: 1.5px solid var(--br-text); }
.br-home { gap: 24px; }
@media (min-width: 900px) {
  .br-home__hero-body { padding-top: 72px; padding-bottom: 64px; gap: 20px; }
  .br-home__heading { max-width: 720px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
  .br-home { gap: 48px; padding-top: 40px; }
}

/* One width for every chip: the widest one's (R24-9). */
.br-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.br-cats__item {
  flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--br-r-control);
  background: var(--br-surface); border: 1px solid var(--br-line); color: var(--br-text);
  text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.br-cats__item:hover { border-color: var(--br-accent); }
@media (min-width: 900px) {
  .br-cats:not(.br-cats--sub) { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; overflow: visible; }
  .br-cats:not(.br-cats--sub) .br-cats__item {
    min-height: 72px; padding: 14px 16px; border-radius: 6px; align-items: flex-end;
    font-size: 16px; font-weight: 600; white-space: normal; line-height: 1.25;
  }
  .br-cats--sub { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 0; padding: 0; overflow: visible; }
}

.br-promise {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 6px;
  background: var(--br-surface); color: var(--br-text); text-decoration: none; font-size: 14px;
}
.br-promise svg { flex: none; color: var(--br-accent); }
.br-promise { --br-lead: 22px; }
/* The row's whole width in every language, since the bolder words are wider than their reservation. */
.br-promise > span { flex: 1; min-width: 0; }
.br-promise .br-tr { display: grid; width: 100%; }
.br-promise strong { color: var(--br-accent); font-weight: 600; }

.br-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.br-steps__item { padding: 20px; border-radius: var(--br-r-card); background: var(--br-surface); display: flex; flex-direction: column; gap: 6px; }
.br-steps__n { font-size: 28px; color: var(--br-accent); line-height: 1; }
.br-steps__item strong { font-size: 17px; }

/* --- search ------------------------------------------------------------------------------- */

.br-searchbox { position: relative; display: flex; gap: 8px; align-items: center; }
.br-searchbox > svg { position: absolute; left: 14px; top: 14px; color: var(--br-muted); pointer-events: none; }
.br-searchbox__input { flex: 1; min-width: 0; padding-left: 44px; padding-right: 44px; }
.br-searchbox__input::-webkit-search-cancel-button { display: none; }
.br-searchbox__clear { position: absolute; right: 2px; top: 2px; color: var(--br-muted); }
/* Room for the Search button, which only wide screens show: on a phone the button is there but hidden, so a
   phone rule of lower specificity could not win over this one (the clear button sat in the middle of the field). */
@media (min-width: 900px) { .br-searchbox:has(.br-searchbox__submit) .br-searchbox__clear { right: 112px; } }
.br-searchbox__submit { flex: none; width: 104px; }

.br-search { display: flex; flex-direction: column; gap: 16px; }
.br-search__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.br-chip--filters { background: var(--br-surface); color: var(--br-text); border-color: var(--br-line); font-weight: 600; }
.br-chip--filters-on { background: var(--br-accent-fill); color: var(--br-on-accent); border-color: transparent; }
.br-chip--remove { gap: 6px; padding: 0 10px 0 14px; }
.br-activefilters { display: flex; gap: 8px; flex-wrap: wrap; }
.br-search__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }
/* How results are ordered (ZZP Art. 28/1/1, TRD-004): a quiet line under the sort, at its end. */
.br-search__ranking { margin: 2px 0 0; text-align: end; }
.br-input--sm { width: auto; min-height: 44px; padding: 0 10px; font-size: 14px; }
.br-search__layout { display: flex; gap: 24px; align-items: flex-start; }
.br-search__aside {
  flex: 0 0 280px; position: sticky; top: var(--br-side-top, 16px); padding: 20px; border-radius: var(--br-r-card);
  background: var(--br-surface); display: flex; flex-direction: column; gap: 16px;
}
.br-search__results { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.br-search__count { font-size: 14px; }
.br-search__more { align-self: center; margin-top: 8px; }

.br-flip { position: relative; } /* motion/use-list-motion places what is leaving against it */
.br-activefilters:empty { display: none; }
.br-filters { display: flex; flex-direction: column; gap: 20px; }
.br-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.br-fieldset legend { padding: 0; margin-bottom: 6px; }
.br-filters__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.br-filters__pair label { display: flex; flex-direction: column; gap: 4px; }
.br-filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.br-filters__chips .br-chip { border-radius: 4px; }
/* A chip holding a whole sentence wraps on a narrow screen, in every language's reservation too. */
.br-report .br-tr__on { text-align: start; }
.br-chip.br-self-start { white-space: normal; max-width: 100%; height: auto; }

/* One row in every language, so nothing under it moves, though each crumb is as wide as its own text (I18-015). */
/* A row of pills (R38-13): one line, each as wide as its own text (R26-5). */
.br-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; padding: 2px 0; }
.br-crumbs__pill { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 14px; border-radius: var(--br-r-control);
  border: 1px solid var(--br-line); background: var(--br-surface); color: var(--br-text); font-weight: 500; text-decoration: none; }
.br-crumbs__pill svg { color: var(--br-muted); flex: none; }
a.br-crumbs__pill:hover { border-color: var(--br-accent); }
a.br-crumbs__pill:hover svg { color: var(--br-accent); }
.br-crumbs__pill--here { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 32px;
  background: var(--br-tint); border-color: var(--br-accent); color: var(--br-text); font-weight: 600; }
.br-crumbs__sep { display: inline-flex; flex: none; color: var(--br-muted); opacity: .6; }

/* --- filter sheet (phone) ------------------------------------------------------------------ */

.br-sheet {
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 56px); padding: 0; border: 0;
  border-radius: var(--br-r-sheet) var(--br-r-sheet) 0 0; background: var(--br-surface); color: var(--br-text);
}
.br-sheet[open] { display: flex; flex-direction: column; animation: br-sheet-in var(--br-t-slow) var(--br-ease) backwards; }
.br-sheet::backdrop { background: rgba(5, 6, 14, 0.6); }
.br-sheet[open]::backdrop { animation: br-fade-in var(--br-t-slow) var(--br-ease) both; }
/* Its top (grip and head) is what a finger drags it down by (R37-6). */
.br-sheet__top { flex: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.br-sheet__grip { display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--br-line); }
@media (min-width: 900px) { .br-sheet--center .br-sheet__grip { display: none; } .br-sheet--center .br-sheet__top { touch-action: auto; } }
.br-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 8px 16px; border-bottom: 1px solid var(--br-line); }
.br-sheet__title { font-size: 18px; font-weight: 600; }
.br-sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.br-sheet__foot { display: flex; gap: 10px; padding: 12px 16px 20px; border-top: 1px solid var(--br-line); }
.br-sheet__foot .br-btn { flex: 1; }
.br-sheet__foot .br-sheet__apply { flex: 1.4; }

/* --- listing page ------------------------------------------------------------------------- */

.br-item { display: flex; flex-direction: column; gap: 16px; }
.br-item__media, .br-item__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) {
  .br-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
  .br-item__side { position: sticky; top: var(--br-side-top, 16px); }
  .br-item__media { container-type: inline-size; }
}
/* Wide screens (SRC-037, R33-7, R52-1): the chosen photo large at the listing ratio, one size whatever the number of
   photos, at the left of its column, in line with the description under it; beside it, every photo in a grid as tall
   as it. The large photo leaves the grid --br-gallery-side of its width (less on a narrow column) and is never taller
   than 78 % of the screen; item/tile-grid sets the grid's columns and tile size so all of them fit, none scrolls. */
.br-gallery {
  --br-gallery-side: 0.45;
  --br-gallery-h: min(78vh, 780px, (100cqw - 12px) * 3 / 4 / (1 + var(--br-gallery-side)));
  --br-gallery-w: calc(var(--br-gallery-h) * 4 / 3);
  display: grid; grid-template-columns: var(--br-gallery-w); justify-content: start; gap: 12px; align-items: stretch;
}
@container (max-width: 560px) { .br-gallery { --br-gallery-side: 0.3; } }
.br-gallery--rail { grid-template-columns: var(--br-gallery-w) minmax(0, 1fr); }
.br-gallery__thumbs {
  height: 0; min-height: 100%; overflow: hidden;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-content: start; gap: 8px;
}
.br-gallery__thumbs .br-gallery__thumb { width: 100%; height: 100%; border-radius: 4px; }
.br-gallery__main {
  position: relative; aspect-ratio: var(--br-photo-ratio); width: 100%; justify-self: center;
  border-radius: var(--br-r-card); overflow: hidden; cursor: zoom-in;
  background: var(--br-raised); display: grid; place-items: center;
}
.br-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
/* Never the pointer's target: a photo swapped out from under it would take the news of leaving with it (SRC-035). */
.br-gallery__layer { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.br-gallery__layer > * { grid-area: 1 / 1; }
.br-gallery__under { display: contents; }
.br-gallery__layer img { grid-area: 1 / 1; }
/* A photo of another shape must not linger around the new one (R33-4): the old one fades out while
   the new one fades in, both quickly, and is gone when they end. */
.br-gallery__layer--in { animation: br-gallery-in var(--br-t-fast) var(--br-ease) both; }
.br-gallery__layer--back { animation: br-gallery-out var(--br-t-fast) var(--br-ease) both; }
@keyframes br-gallery-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes br-gallery-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .br-gallery__layer--back { display: none; }
  .br-gallery__layer--in { animation: none; }
  .br-gallery__nav, .br-gallery__nav svg { transition: none; }
  .br-gallery__nav:hover, .br-gallery__nav:active, .br-gallery__nav:hover svg { transform: none; }
}
.br-gallery__none { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--br-muted); }
.br-gallery__badge { left: 14px; top: 14px; font-size: 14px; }
/* No transform to centre it: a press's or a hover's would replace it, and the arrow would jump (SRC-035). */
.br-gallery__nav {
  position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; border-radius: var(--br-r-control);
  display: grid; place-items: center; background: var(--br-surface); color: var(--br-text); cursor: pointer; opacity: 0.94;
  box-shadow: 0 2px 8px rgba(17, 17, 17, .22);
  transition: transform var(--br-t-fast) var(--br-ease), box-shadow var(--br-t-fast) var(--br-ease), opacity var(--br-t-fast) var(--br-ease);
}
.br-gallery__nav svg { transition: transform var(--br-t-fast) var(--br-ease); }
@media (hover: hover) {
  .br-gallery__nav:hover { opacity: 1; transform: scale(1.08); box-shadow: 0 6px 16px rgba(17, 17, 17, .28); }
  .br-gallery__nav--prev:hover svg { transform: translateX(-2px); }
  .br-gallery__nav--next:hover svg { transform: translateX(2px); }
}
.br-gallery__nav:active { box-shadow: 0 1px 4px rgba(17, 17, 17, .22); }
.br-gallery__nav--prev { left: 10px; }
.br-gallery__nav--next { right: 10px; }
.br-gallery__count {
  position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: var(--br-r-chip);
  background: rgba(17, 17, 17, 0.72); color: #FFFFFF; font-size: 13px; font-weight: 600;
}
.br-gallery__thumb {
  aspect-ratio: var(--br-photo-ratio); padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--br-line); background: var(--br-raised);
}

/* Phones (SRC-037): edge to edge, a strip the finger scrolls, stopping on every photo. */
/* The whole width, right under the header, at the listing ratio on every phone: 65 % of an iPhone 17's height (R32-8). */
.br-strip { position: relative; margin-inline: -16px; margin-top: -20px; }
.br-strip__track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.br-strip__track::-webkit-scrollbar { display: none; }
.br-strip__slide {
  position: relative; flex: 0 0 100%; aspect-ratio: var(--br-photo-ratio); max-height: 80svh; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 0; background: var(--br-raised); overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.br-strip__slide:active { transform: none; }
/* Never cropped: a listing photo fills the box exactly; a taller-than-screen box on a tablet, or a photo from before
   R32-8 of another shape, shows the whole photo. */
.br-strip__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* A tablet (R45-3): each photo at the listing ratio, filling its slide exactly, as tall as most of the screen, and
   the next one showing beside it, rather than one photo in a box as wide as the screen. */
@media (min-width: 640px) and (max-width: 899px) {
  .br-strip { margin-top: -4px; }
  .br-strip__track { gap: 8px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .br-strip__slide { flex: 0 0 min(62%, calc(72svh * 4 / 3)); max-height: none; border-radius: 6px; }
}
.br-strip__dots { position: absolute; left: 50%; bottom: 16px; display: flex; gap: 5px; transform: translateX(-50%); pointer-events: none; }
.br-strip__dots > span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(17, 17, 17, .6); transition: width var(--br-t-fast) var(--br-ease), background-color var(--br-t-fast) var(--br-ease); }
.br-strip__dots > span[data-on="true"] { width: 16px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .br-strip__dots > span { transition: none; } }
.br-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.br-gallery__thumb[aria-pressed="true"] { border: 2px solid var(--br-accent); }

.br-item__buy { display: flex; flex-direction: column; gap: 14px; }
.br-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.br-item__title { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.br-item__price { font-size: 26px; }
.br-item__fav { flex: none; background: var(--br-raised); border-radius: var(--br-r-control); }
.br-item__fav .br-fav__dot { background: transparent; }
.br-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.br-actions .br-actions__buy { grid-column: 1 / -1; }
.br-actions .br-btn { padding: 0 12px; }
.br-note { border-color: var(--br-warn); }

.br-estimate { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--br-line); }
.br-estimate__title { --br-lead: 18px; --br-lead-gap: 8px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--br-accent); }
.br-estimate__rows { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.br-estimate__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.br-estimate__row dd { margin: 0; text-align: right; }
.br-estimate__note { font-size: 13px; color: var(--br-muted); }

.br-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; border-radius: var(--br-r-card); background: var(--br-surface); }
.br-details dt { font-size: 13px; color: var(--br-muted); }
.br-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.br-details__link { color: inherit; text-decoration: underline; text-decoration-color: var(--br-field); text-underline-offset: 3px; }
@media (hover: hover) { .br-details__link:hover { color: var(--br-accent); text-decoration-color: currentColor; } }
.br-item__desc { display: flex; flex-direction: column; gap: 8px; }

.br-seller {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--br-r-card);
  background: var(--br-surface); color: var(--br-text); text-decoration: none;
}
.br-seller__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Following (R40-5): the seller card with a Follow button beside it; the button keeps one width. */
/* The seller's card, and under it the follow button across the whole row with the follower count (FOL-007). */
.br-sellerrow { display: flex; flex-direction: column; gap: 8px; }
.br-sellerrow > .br-seller { min-width: 0; }
.br-sellerrow__follow { width: 100%; gap: 6px; }
/* Each part keeps the room its longest language needs; the shown words lean together, so they read as one. */
.br-sellerrow__follow > .br-swap { text-align: end; }
.br-sellerrow__follow > .br-follow__n { text-align: start; }
/* The count is lighter than the button's word (R45-14): the same colour, partly see-through. */
.br-follow__n { font-weight: 500; color: color-mix(in srgb, currentColor 68%, transparent); transition: opacity var(--br-t-med) var(--br-ease); }
.br-follow__n[data-off="true"] { opacity: 0; visibility: hidden; }
.br-swap { display: inline-grid; }
.br-swap > * { grid-area: 1 / 1; transition: opacity var(--br-t-fast) var(--br-ease); }
.br-swap > [data-off="true"] { visibility: hidden; opacity: 0; }
.br-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.br-follow { flex: none; border: 1.5px solid var(--br-accent); }
.br-follow__counts { font-size: 14px; }
.br-profile__follow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.br-seller__name { font-weight: 600; }
.br-seller__meta { font-size: 14px; }
.br-avatar {
  flex: none; width: 44px; height: 44px; border-radius: var(--br-r-control); display: grid; place-items: center;
  background: var(--br-tint); color: var(--br-accent); font-weight: 700; text-transform: uppercase;
}
.br-avatar--lg { width: 72px; height: 72px; font-size: 24px; font-family: var(--br-display); }
.br-report { align-self: flex-start; color: var(--br-muted); padding: 0 4px; }

/* --- member profile ------------------------------------------------------------------------ */

.br-profile { display: flex; gap: 16px; align-items: center; }
.br-profile__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.br-profile__name { font-size: 22px; overflow-wrap: anywhere; }
.br-profile__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.br-ratingboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.br-ratingbox { padding: 14px; border-radius: 6px; background: var(--br-surface); display: flex; flex-direction: column; gap: 2px; }
.br-ratingbox__label { font-size: 13px; }
.br-ratingbox__avg { font-size: 24px; }
.br-ratingbox__of { font-family: var(--br-font); font-size: 14px; font-weight: 400; }
/* A member's page (R45-10): one card across the page, who they are on the left, their numbers and the actions on
   the right; on a phone one under the other. */
.br-profile.br-member {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px;
  border-radius: var(--br-r-card); background: var(--br-surface); border: 1px solid var(--br-line);
}
.br-member__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.br-member__head { display: flex; gap: 18px; align-items: center; min-width: 0; }
.br-member__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.br-member__meta { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.br-member__meta > li::first-letter { text-transform: uppercase; }
.br-member__bio { margin: 0; max-width: 72ch; font-size: 16px; line-height: 1.55; }
.br-member__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.br-member__stats { max-width: none; }
.br-member .br-ratingbox { background: var(--br-bg); border: 1px solid var(--br-line); }
.br-member__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.br-member__actions > .br-member__follow { grid-column: 1 / -1; width: 100%; }
.br-member__actions > .br-profile__several { width: 100%; margin: 0; }
.br-member__actions > :only-child, .br-member__actions > .br-sharebtn:nth-child(2) { justify-self: start; }
@media (min-width: 900px) {
  .br-profile.br-member { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 40px; padding: 28px 32px; }
  .br-member .br-profile__name { font-size: 34px; }
  .br-member .br-avatar--lg { width: 96px; height: 96px; font-size: 32px; }
}
.br-tabs { display: flex; border-bottom: 1px solid var(--br-line); }
.br-tabs__tab {
  min-height: 48px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent;
  color: var(--br-muted); font-weight: 600; cursor: pointer;
}
.br-tabs__tab[aria-selected="true"] { color: var(--br-text); border-bottom-color: var(--br-accent); }
.br-ratings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.br-ratings__item { padding: 14px; border-radius: 6px; background: var(--br-surface); display: flex; flex-direction: column; gap: 4px; }
.br-ratings__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.br-ratings__who { font-weight: 600; }
.br-stars { color: var(--br-accent); letter-spacing: 2px; }
.br-state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* --- list filters (DECISIONS R14-1) -------------------------------------------------------- */

/* Every filter whose values come from a given list: a grid of equal buttons, two per row on a phone,
   the picked ones filled (R33-1). Rows share one height, so a size that wraps keeps the grid even. */
.br-optgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.br-opt.br-chip {
  min-height: 44px; height: auto; padding: 6px 10px; border-radius: 4px; justify-content: center; text-align: center;
  white-space: normal; font-weight: 600; line-height: 1.25;
}
.br-opt.br-chip[aria-pressed="true"] { background: var(--br-accent-fill); border-color: var(--br-accent); color: var(--br-on-accent); }
.br-opt.br-chip[aria-pressed="true"] .br-swatch { outline-color: var(--br-on-accent); }
.br-opt__label { min-width: 0; overflow-wrap: anywhere; }
.br-opt--colour.br-chip { justify-content: flex-start; text-align: start; }
.br-opt--size.br-chip { min-height: 56px; } /* room for a size that wraps to two rows, so every size is one height */
.br-optgroups { display: flex; flex-direction: column; gap: 14px; }
.br-optgroup { display: flex; flex-direction: column; gap: 8px; }
.br-optgroup__title { margin: 0; font-size: 13px; font-weight: 600; color: var(--br-muted); }
.br-facet__n { font-size: 12px; font-weight: 500; color: var(--br-muted); }
.br-chip[aria-pressed="true"] .br-facet__n { color: inherit; }
.br-chip--size { min-width: 52px; justify-content: center; border-radius: 4px; padding: 0 12px; font-weight: 600; }
.br-chip--colour { border-radius: 4px; padding: 0 12px 0 8px; }
.br-swatch { width: 22px; height: 22px; border-radius: 999px; flex: none; border: 1px solid var(--br-field); }
.br-chip[aria-pressed="true"] .br-swatch { outline: 2px solid var(--br-accent); outline-offset: 1px; }
.br-swatch--black { background: #16181F; }
.br-swatch--white { background: #FFFFFF; }
.br-swatch--grey { background: #9096A3; }
.br-swatch--beige { background: #DCC9A6; }
.br-swatch--brown { background: #7A4E2B; }
.br-swatch--red { background: #D32F3C; }
.br-swatch--pink { background: #F08CB6; }
.br-swatch--orange { background: #F0802A; }
.br-swatch--yellow { background: #F5D131; }
.br-swatch--green { background: #2F9E5B; }
.br-swatch--blue { background: #2F73D9; }
.br-swatch--navy { background: #1B2A5B; }
.br-swatch--purple { background: #7E4BC9; }
.br-swatch--gold { background: linear-gradient(135deg, #F3D67A, #B98A25); }
.br-swatch--silver { background: linear-gradient(135deg, #EEF0F4, #A4A9B4); }
.br-swatch--multicolour { background: conic-gradient(#D32F3C, #F5D131, #2F9E5B, #2F73D9, #7E4BC9, #D32F3C); }
.br-facet__find { position: relative; }
.br-facet__find svg { position: absolute; left: 12px; top: 15px; color: var(--br-muted); pointer-events: none; }
.br-facet__find .br-input { padding-left: 38px; }
.br-facet__find .br-input::-webkit-search-cancel-button { display: none; }
.br-facet__list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 268px; overflow-y: auto; }
.br-facet__row { min-height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.br-facet__row input { width: 20px; height: 20px; flex: none; accent-color: var(--br-accent); }
.br-facet__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.br-facet__none { font-size: 14px; padding: 8px 0; }

/* --- login --------------------------------------------------------------------------------- */

.br-auth { max-width: 460px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; padding-bottom: 32px; }
.br-auth__form { display: flex; flex-direction: column; gap: 16px; }
.br-auth__link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.br-auth__other { text-align: center; }
.br-auth__other a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* --- checkout, payment and order ----------------------------------------------------------- */

.br-small { font-size: 14px; }
.br-block { display: block; }
.br-pagehead { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.br-section__legend { padding: 0; margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.br-card.br-fieldset { padding: 16px; gap: 8px; }
.br-card.br-fieldset legend { float: left; width: 100%; }
.br-card.br-fieldset legend + * { clear: both; }
.br-choice { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.br-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--br-accent); }
.br-choice--box { padding: 12px 14px; border: 1px solid var(--br-line); border-radius: 6px; }
.br-choice--box[data-on="true"] { border: 1.5px solid var(--br-accent); }
.br-choice__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-choice__head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.br-choice__title { font-weight: 600; }
.br-choice__price { font-weight: 600; white-space: nowrap; }
.br-btn--big { min-height: 52px; font-size: 17px; width: 100%; }
.br-btn--dashed { background: transparent; color: var(--br-accent); border: 1.5px dashed var(--br-accent); width: 100%; }
.br-thumb { width: 64px; height: 64px; flex: none; border-radius: 4px; overflow: hidden; background: var(--br-raised); display: block; }
.br-thumb img { width: 100%; height: 100%; object-fit: cover; }
.br-orderhead { display: flex; gap: 12px; align-items: center; }
.br-orderhead__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-orderhead__body a { color: inherit; }
.br-checkout { display: flex; flex-direction: column; gap: 16px; }
.br-checkout__main, .br-checkout__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.br-checkout__sum { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) {
  .br-checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
  .br-checkout__side { position: sticky; top: var(--br-side-top, 16px); }
}
.br-lines { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.br-lines__row { display: flex; justify-content: space-between; gap: 12px; }
.br-lines__row dd { margin: 0; white-space: nowrap; }
.br-lines__total { padding-top: 10px; border-top: 1px solid var(--br-line); font-weight: 700; font-size: 18px; }
.br-addressform { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.br-addressform__title { font-size: 16px; font-weight: 600; }
.br-addressform__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.br-pay { max-width: 560px; }
.br-pay__amount { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; text-align: center; }
.br-pay__total { font-size: 34px; line-height: 1.15; }
.br-pay__safe { display: flex; gap: 12px; }
.br-pay__safe svg { flex: none; color: var(--br-accent); }
.br-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 40px 12px; }
.br-result__title { font-size: 24px; line-height: 1.25; }
.br-result__icon {
  width: 88px; height: 88px; border-radius: 999px; display: grid; place-items: center;
  font-size: 44px; font-weight: 700; background: var(--br-raised);
}
.br-result__icon--ok { background: var(--br-accent-fill); color: var(--br-on-accent); }
.br-result__icon--warn { color: var(--br-warn); }
.br-result__icon--bad { color: var(--br-bad); }
.br-result__action { align-self: stretch; }
.br-result__spin { width: 72px; height: 72px; border-radius: 999px; border: 6px solid var(--br-line); border-top-color: var(--br-accent); }
@media (prefers-reduced-motion: no-preference) {
  .br-result__spin { animation: br-spin 1.1s linear infinite; }
}
@keyframes br-spin { to { transform: rotate(360deg); } }
.br-order { max-width: 720px; }
.br-nextstep { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 6px; background: var(--br-surface); border: 1.5px solid var(--br-accent); }
.br-nextstep--off { border-color: var(--br-line); }
.br-nextstep__title { font-size: 17px; }
.br-nextstep__actions { display: flex; flex-direction: column; gap: 10px; }
.br-timeline { list-style: none; margin: 0; padding: 0; }
.br-timeline__step { position: relative; display: flex; gap: 12px; min-height: 52px; padding-bottom: 10px; }
.br-timeline__dot { width: 16px; height: 16px; flex: none; margin-top: 3px; border-radius: 999px; border: 2px solid var(--br-field); background: transparent; }
.br-timeline__step:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--br-line); }
.br-timeline__step--done .br-timeline__dot { border-color: var(--br-accent); background: var(--br-accent); }
.br-timeline__step--done:not(:last-child)::before { background: var(--br-accent); }
.br-timeline__text { display: flex; flex-direction: column; }
.br-timeline__step:not(.br-timeline__step--done) .br-timeline__label { color: var(--br-muted); }
.br-timeline__step[aria-current="step"] .br-timeline__label { font-weight: 700; }
.br-tracking__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.br-order__help { display: flex; flex-wrap: wrap; gap: 8px; }
.br-verify-next { margin: 8px 0 0 32px; }
.br-collectcode { display: flex; flex-direction: column; gap: 4px; }
.br-collectcode__value { font-size: 28px; }

/* --- profile tab and addresses ------------------------------------------------------------- */

.br-menu { border-radius: var(--br-r-card); background: var(--br-surface); overflow: hidden; }
.br-menu__row {
  min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--br-text); text-decoration: none; border-top: 1px solid var(--br-line);
}
.br-menu__row:first-child { border-top: 0; }
.br-account__balance { font-size: 24px; }
.br-account__logout { align-self: center; color: var(--br-bad); }
.br-addresslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.br-addressrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.br-addressrow__actions { display: flex; flex-wrap: wrap; gap: 4px; }
.br-auth__form > .br-status { align-self: flex-start; }

/* --- selling (S14, S15, S16, S31) ------------------------------------------------------------ */
.br-sell { max-width: 1100px; }
.br-pagehead--between { justify-content: space-between; flex-wrap: wrap; }
/* The title starts right after the back arrow, as on every other page; only the action goes to the end. */
.br-pagehead--between > .br-page__title { flex: 1 1 auto; min-width: min-content; overflow-wrap: normal; word-break: normal; }
/* When the title and the action do not fit on one row, the action goes under it, still at the end. */
.br-pagehead--between > .br-page__title ~ :last-child { margin-inline-start: auto; }
.br-savestate { min-height: 20px; }
.br-accent { color: var(--br-accent); }
.br-sellgrid { display: flex; flex-direction: column; gap: 20px; }
.br-sellgrid__fields { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 20px; }
.br-sellmain { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.br-sellabout { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.br-field--wide { grid-column: 1 / -1; }
.br-field__label--row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; width: 100%; }
.br-field__optional { font-weight: 400; }
/* R39-2: a category field's name on one line, cut with an ellipsis; the whole name over it on hover or focus. */
.br-field:has(> .br-field__label--line), .br-fieldset:has(> .br-field__label--line) { min-width: 0; }
.br-field__label--line { position: relative; display: block; min-width: 0; max-width: 100%; padding: 0; }
.br-field__line { display: block; overflow: hidden; white-space: nowrap; }
.br-field__line .br-tr { display: grid; width: 100%; }
.br-field__line .br-tr__on { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.br-field__line .br-tr__hold, .br-field__line .br-tr::after { overflow: hidden; white-space: nowrap; }
/* The text leaves its line for an overlay; the label is its containing block, so the line's overflow does not clip it. */
.br-field__label--line[data-cut]:hover .br-field__line .br-tr__on,
.br-field:focus-within > .br-field__label--line[data-cut] .br-field__line .br-tr__on,
.br-fieldset:focus-within > .br-field__label--line[data-cut] .br-field__line .br-tr__on {
  position: absolute; z-index: 6; top: -6px; inset-inline-start: -8px; width: max-content; max-width: min(320px, calc(100vw - 32px));
  padding: 6px 8px; border-radius: 4px; background: var(--br-surface); color: var(--br-text);
  box-shadow: 0 6px 18px rgba(17, 17, 17, .22); white-space: normal; overflow: visible; pointer-events: none;
  opacity: 1; transform: none; transition: opacity var(--br-t-fast) var(--br-ease), transform var(--br-t-fast) var(--br-ease);
}
@starting-style {
  .br-field__label--line[data-cut]:hover .br-field__line .br-tr__on,
  .br-field:focus-within > .br-field__label--line[data-cut] .br-field__line .br-tr__on,
  .br-fieldset:focus-within > .br-field__label--line[data-cut] .br-field__line .br-tr__on { opacity: 0; transform: translateY(3px); }
}
.br-textarea { padding: 12px 14px; resize: vertical; font: inherit; line-height: 1.5; }
.br-sellsub { display: flex; flex-direction: column; gap: 14px; margin: 0 0 8px 34px; }
.br-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; }
.br-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--br-accent); }
.br-check__text { display: flex; flex-direction: column; font-weight: 500; }
/* A box drawn as its text's mark (ui/tx :mark, R2-45): the row keeps the box's room at its start, and the box goes with
   the first line of the text shown, wherever that text sits in the room kept for the longest language. */
.br-check { --br-lead: 22px; }
.br-choice { --br-lead: 20px; }
.br-check:has(.br-tr__mark), .br-choice:has(.br-tr__mark) { display: block; padding-inline-start: calc(var(--br-lead) + var(--br-lead-gap, 12px)); }
.br-tr__mark input { margin: 0; }
.br-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.br-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.br-size { min-height: 56px; border-radius: 4px; border: 1px solid var(--br-field); background: transparent; color: var(--br-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 15px var(--br-font); cursor: pointer; }
.br-size--on { border: 1.5px solid var(--br-accent); background: var(--br-tint); }
.br-size { padding: 8px 4px; gap: 2px; }
.br-size .br-small { white-space: nowrap; }
.br-size__name { display: block; text-align: center; overflow-wrap: anywhere; line-height: 1.2; }
.br-size s, .br-size s * { text-decoration: line-through; }
/* Tiles with an icon: categories and couriers on the listing form (R20-1). */
.br-catpick { gap: 8px; }
.br-catpick__tiles { display: grid; gap: 8px; outline: none; }
.br-catpick__back .br-tr__on { text-align: start; }
.br-catpick__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.br-catpick__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none;
  color: var(--br-accent); font: 500 14px var(--br-font); cursor: pointer; }
.br-catpick__group { display: inline-flex; align-items: center; gap: 6px; color: var(--br-muted); font-size: 14px; font-weight: 500; }
.br-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
/* In the filters and on a category page: two rows of text at most, ending in "…" (SRC-033). */
.br-filters .br-tile, .br-cats--sub .br-tile { min-height: 0; padding: 10px 6px 8px; gap: 4px; }
.br-filters .br-tile__name, .br-cats--sub .br-tile__name { height: 2.5em; overflow: hidden; }
.br-filters .br-tile__name .br-tr, .br-cats--sub .br-tile__name .br-tr { display: grid; grid-template-rows: 2.5em; width: 100%; height: 2.5em; }
.br-filters .br-tile__name .br-tr__on, .br-cats--sub .br-tile__name .br-tr__on {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.br-tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 96px; padding: 12px 6px 10px;
  border-radius: 6px; border: 1px solid var(--br-field); background: transparent; color: var(--br-text); text-align: center;
  font: 500 13px/1.25 var(--br-font); cursor: pointer; overflow-wrap: anywhere;
  animation: br-tile-in var(--br-t-med) var(--br-ease) both; }
.br-tile__icon { display: inline-flex; color: var(--br-accent); transition: transform var(--br-t-fast) var(--br-ease); }
.br-tile__name { display: block; width: 100%; }
.br-tile__hint { display: block; width: 100%; color: var(--br-muted); font-size: 12px; font-weight: 400; }
.br-tile--on, .br-tile[aria-current="page"] { border: 1.5px solid var(--br-accent); background: var(--br-tint); }
a.br-tile { text-decoration: none; }
.br-cats--sub .br-tile { min-width: 104px; scroll-snap-align: start; }
.br-tile--on .br-tile__icon, .br-tile[aria-current="page"] .br-tile__icon { animation: br-pop var(--br-t-slow) var(--br-ease); }
/* A short wave across the set, which never delays a click and stays within --br-t-slow. */
.br-tile:nth-child(n+2) { animation-delay: 6ms; } .br-tile:nth-child(n+3) { animation-delay: 12ms; } .br-tile:nth-child(n+4) { animation-delay: 18ms; }
.br-tile:nth-child(n+5) { animation-delay: 24ms; } .br-tile:nth-child(n+6) { animation-delay: 30ms; } .br-tile:nth-child(n+7) { animation-delay: 36ms; }
.br-tile:nth-child(n+8) { animation-delay: 42ms; } .br-tile:nth-child(n+9) { animation-delay: 48ms; } .br-tile:nth-child(n+10) { animation-delay: 54ms; }
.br-tile:nth-child(n+11) { animation-delay: 60ms; } .br-tile:nth-child(n+12) { animation-delay: 66ms; }
@keyframes br-tile-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .br-tile:hover { transform: var(--br-hover-lift); box-shadow: 0 6px 16px rgba(17, 17, 17, .14); border-color: var(--br-accent); } }
/* Room for the suggestion is kept, so the tiles under it never jump when it appears (LST-031). */
.br-suggest { min-height: 44px; display: flex; align-items: center; }
.br-suggest__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 0 14px 0 10px; border-radius: var(--br-r-control);
  border: 1.5px solid var(--br-accent); background: var(--br-tint); color: var(--br-text); font: 500 14px var(--br-font); cursor: pointer; text-align: start; }
.br-suggest__spark { display: inline-flex; color: var(--br-accent); animation: br-pop var(--br-t-slow) var(--br-ease); }
.br-recent { display: grid; gap: 6px; margin-top: 4px; }
.br-recent__label { display: inline-flex; align-items: center; gap: 6px; }
.br-recent__list { display: flex; flex-wrap: wrap; gap: 6px; }
.br-recent__chip { display: inline-flex; align-items: center; gap: 6px; }
.br-admin__listrow { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--br-line); }
.br-sizes__note { grid-column: 1 / -1; }
.br-courierpacks { display: grid; gap: 12px; }
.br-courierpack { display: grid; gap: 6px; }
.br-packmeasures { display: grid; gap: 8px; }
.br-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.br-photos__add { aspect-ratio: var(--br-photo-ratio); border-radius: 4px; border: 1.5px dashed var(--br-accent); background: transparent; color: var(--br-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; font: 600 12px var(--br-font); cursor: pointer; }
.br-photo { position: relative; aspect-ratio: var(--br-photo-ratio); border-radius: 4px; overflow: hidden; background: var(--br-raised); cursor: grab; }
.br-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-photo__size { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 4px; background: rgba(17, 17, 17, .72); color: #FFFFFF; font-size: 11px; line-height: 18px; opacity: 0; pointer-events: none; transition: opacity var(--br-t-fast) var(--br-ease); }
.br-photo:hover .br-photo__size, .br-photo:focus-within .br-photo__size { opacity: 1; }
.br-plainlist { list-style: none; margin: 0; padding: 0; }
.br-photo__cover { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 4px; background: var(--br-accent-fill); color: var(--br-on-accent); font-size: 11px; font-weight: 700; }
.br-photo__tools { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; }
.br-photo__tool { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 4px; background: rgba(17, 17, 17, 0.78); color: #FFFFFF; cursor: pointer; }
.br-combo { position: relative; }
.br-combo__list { position: absolute; z-index: 20; top: 78px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--br-field); border-radius: var(--br-r-control); background: var(--br-surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.br-combo__option { min-height: 44px; padding: 10px 12px; border-radius: 4px; cursor: pointer; }
.br-combo__option--on, .br-combo__option:hover { background: var(--br-tint); }
.br-combo__none { padding: 10px 12px; }
.br-sellside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.br-sellprice { display: flex; flex-direction: column; gap: 14px; align-self: start; width: 100%; }
.br-priceinput { position: relative; }
.br-priceinput input { padding-right: 56px; min-height: 52px; font-size: 20px; }
.br-priceinput > span { position: absolute; right: 14px; top: 14px; font-weight: 600; }
.br-sellactions { display: flex; flex-direction: column; gap: 10px; }
.br-btn--bad { color: var(--br-bad); }
.br-btn--start { align-self: flex-start; padding-left: 0; }
.br-note--plain { border-color: var(--br-field); }
.br-state--left { align-items: flex-start; text-align: left; max-width: 480px; margin: 0 auto; }
.br-gatesteps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.br-gatestep { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 6px; background: var(--br-surface); }
.br-gatestep__n { width: 28px; height: 28px; flex: none; border-radius: var(--br-r-chip); display: grid; place-items: center; background: var(--br-raised); font-weight: 700; font-size: 14px; }
.br-gatestep__n--on { background: var(--br-accent-fill); color: var(--br-on-accent); }
/* The business page (R36-12): numbered steps, the registry's data, and owner rows. */
.br-bizstep__head { display: flex; gap: 10px; align-items: center; }
.br-bizdata { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.br-bizdata dt { color: var(--br-muted); }
.br-bizdata dd { margin: 0; overflow-wrap: anywhere; }
.br-bizowner { display: grid; grid-template-columns: 1fr 1fr 72px 44px; gap: 8px; align-items: center; }
@media (max-width: 560px) { .br-bizowner { grid-template-columns: 1fr 1fr; } }
.br-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--br-line); overflow-x: auto; }
.br-tabs__tab { flex: none; min-height: 48px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--br-muted); font: 600 15px var(--br-font); cursor: pointer; }
.br-tabs__tab--on { border-bottom-color: var(--br-accent); color: var(--br-text); }
/* Every tab row spans the width, its tabs sharing it equally ("Oglasi" and "Ocene" half each, R45-13); a long name
   takes a second line, and only a row whose words cannot fit at all scrolls. */
.br-tabs > .br-tabs__tab { flex: 1 1 0; min-width: min-content; white-space: normal; line-height: 1.2; }
.br-minelist { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.br-minerow { display: flex; flex-direction: column; gap: 10px; }
.br-minerow__top { display: flex; gap: 12px; }
.br-minerow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.br-minerow__head { display: flex; justify-content: space-between; gap: 8px; }
.br-minerow__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-minerow__price { flex: none; }
.br-minerow__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.br-minerow__actions .br-btn { flex: 1 1 120px; }
/* The longest label of the row gets a row of its own, so it never wraps beside another (I18-011). */
.br-minerow__actions .br-minerow__wide { flex-basis: 100%; }
/* Segments a finger uses on a phone: the statistics period and grouping (NFR-003). */
.br-segments--touch .br-segments__item { min-height: 44px; padding: 0 10px; font-size: 13px; }
.br-statuschip { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.br-statuschip__dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.br-statuschip--ok { color: var(--br-ok); background: var(--br-tint); }
.br-statuschip--warn { color: var(--br-warn); background: var(--br-raised); }
.br-statuschip--bad { color: var(--br-bad); background: var(--br-raised); }
.br-statuschip--lime { color: var(--br-accent); background: var(--br-raised); }
.br-statuschip--off { color: var(--br-muted); background: var(--br-raised); }
.br-appeal { display: flex; flex-direction: column; gap: 10px; }
.br-idcard { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--br-field); }
.br-idcard--ok { border-color: var(--br-ok); color: inherit; }
.br-idcard--warn { border-color: var(--br-warn); }
.br-idcard--bad { border-color: var(--br-bad); }
.br-idcard__title { margin: 0; display: inline-flex; gap: 8px; align-items: center; font-size: 17px; font-weight: 700; }
.br-idcard__qr { align-self: center; padding: 8px; border-radius: var(--br-r-control); background: #fff; line-height: 0; }
.br-idcard__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--br-field); }
.br-idcard--ok .br-idcard__dot { background: var(--br-ok); }
.br-idcard--warn .br-idcard__dot { background: var(--br-warn); }
.br-idcard--bad .br-idcard__dot { background: var(--br-bad); }
.br-idcard .br-btn { align-self: flex-start; }
@media (min-width: 900px) {
  .br-sellgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  /* The price and the buttons stay in view while the form scrolls (R24-1). */
  .br-sellside { position: sticky; top: var(--br-side-top, 16px); }
}

/* --- after a sale (S23, S37, S38, S40) -------------------------------------------------------- */
.br-choice--off { opacity: 0.6; }
.br-center { text-align: center; }
.br-qr { display: block; border-radius: 4px; }
.br-label { display: flex; flex-direction: column; gap: 16px; }
.br-label__head { display: flex; justify-content: space-between; align-items: center; }
.br-label__code { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 6px; background: #FFFFFF; color: #111111; }
.br-label__number { font-size: 22px; letter-spacing: 0.06em; text-align: center; }
.br-label__pin { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.br-label__pinvalue { font-size: 30px; letter-spacing: 0.12em; color: var(--br-accent); }
.br-labelrows { margin: 0; }
.br-labelrow { display: flex; align-items: center; gap: 8px; min-height: 52px; border-top: 1px solid var(--br-line); }
.br-labelrow__text { flex: 1; min-width: 0; padding: 6px 0; }
.br-labelrow__text dd { margin: 0; overflow-wrap: anywhere; }
.br-copy { flex: none; }
.br-pickupcode { font-size: 40px; letter-spacing: 0.18em; }
.br-pickupinput { min-height: 60px; font-size: 28px; letter-spacing: 0.18em; text-align: center; }
.br-link--bad { color: var(--br-bad); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.br-nextstep--warn { border-color: var(--br-warn); }
.br-proofs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.br-proofs img { width: 100%; border-radius: 4px; display: block; }
.br-stepper { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.br-stepper__controls { display: inline-flex; align-items: center; gap: 8px; }
.br-stepper__btn { width: 44px; height: 44px; border: 1px solid var(--br-field); border-radius: 4px; background: transparent; color: var(--br-text); font-size: 20px; cursor: pointer; }
.br-stepper__value { min-width: 84px; text-align: center; font-weight: 600; }

/* --- the same space in every language (R16-3): the other languages reserve their room invisibly ----- */
.br-tr { display: inline-grid; grid-template-columns: minmax(0, 1fr); max-width: 100%; min-width: 0; vertical-align: baseline; }
/* First in order, so the visible text gives the baseline, not the reservation of no height before it. */
/* In the middle of the room kept for the longest language (R38-16): German on two lines, Serbian on one, sits centred. */
.br-tr__on { grid-area: 1 / 1; min-width: 0; order: -1; align-self: center; }
.br-tr__hold { grid-area: 1 / 1; min-width: 0; visibility: hidden; pointer-events: none; }
.br-tr__hold::before { content: attr(data-c); }
/* An icon before a text (ui/tx :lead), as a list's bullet (R38-16): the row keeps the icon's room at its start
   (br-lead-room) and the icon is drawn from inside the text's own box, level with the first line shown. That text
   sits in the middle of the room kept for the longest language, so an icon beside the room would follow the room. */
.br-lead-room { padding-inline-start: calc(var(--br-lead, 20px) + var(--br-lead-gap, 12px)); }
.br-tr--lead > .br-tr__on { position: relative; }
.br-tr__lead {
  position: absolute; inset-inline-start: calc(-1 * (var(--br-lead, 20px) + var(--br-lead-gap, 12px)));
  top: calc((1lh - var(--br-lead, 20px)) / 2); display: flex; width: var(--br-lead, 20px); height: var(--br-lead, 20px);
}
.br-tr__lead svg { display: block; flex: none; }
.br-tr[data-a]::before, .br-tr[data-b]::after { grid-area: 1 / 1; visibility: hidden; pointer-events: none; min-width: 0; }
/* Width from every other language, one per line and at no height; height from the longest (R24-9). */
/* clip, not hidden: a box that hides its overflow scrolls, and a scrolling box gives its parent no minimum width, so a
   column sized to its words (a tab, a table cell) would follow the language shown rather than all of them (R2-47). */
.br-tr[data-a]::before { content: attr(data-a); white-space: pre-line; height: 0; overflow: clip; }
.br-tr[data-b]::after { content: attr(data-b); }
a:not([class]) .br-tr__on { text-decoration: underline; }
/* Text sits where its control wants it inside the reserved room. */
.br-btn, .br-chip, .br-tab, .br-tabs__tab, .br-iconbtn, .br-size, .br-cats__item, .br-header__nav a, .br-mobilebar a:not(.br-brand), .br-state, .br-sheet__foot { text-align: center; }
.br-section__more, .br-lines dd, .br-estimate__row dd, .br-choice__price, .br-minerow__price { text-align: end; }
@media (min-width: 900px) { .br-cats:not(.br-cats--sub) .br-cats__item { text-align: start; } }


/* --- motion (R16-1, docs/UI-RULES.md): everything moves, nothing waits ------------------------------ */
:root {
  --br-t-fast: 120ms; --br-t-med: 200ms; --br-t-slow: 280ms;
  --br-ease: cubic-bezier(.2, .8, .2, 1);
  --br-hover-lift: translateY(-1px);
}
html { -webkit-tap-highlight-color: transparent; }
:where(button, .br-btn, .br-chip, .br-tab, .br-tabs__tab, .br-size, .br-tile, .br-cats__item, .br-iconbtn, .br-menu__row) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:where(a, button, summary, select, input, textarea, label, [role="button"], [role="tab"], [role="radio"], [role="option"]) {
  transition: color var(--br-t-med) ease, background-color var(--br-t-med) ease, border-color var(--br-t-med) ease,
    box-shadow var(--br-t-med) ease, opacity var(--br-t-fast) ease, transform var(--br-t-fast) var(--br-ease),
    text-decoration-color var(--br-t-med) ease, outline-color var(--br-t-med) ease;
}
:where(.br-lcard, .br-card, .br-seller, .br-minerow, .br-lcard__img, .br-lcard__img img, svg, .br-fav__dot, .br-timeline__dot, .br-statuschip, .br-note) {
  transition: transform var(--br-t-med) var(--br-ease), box-shadow var(--br-t-med) ease, background-color var(--br-t-med) ease,
    border-color var(--br-t-med) ease, color var(--br-t-med) ease, fill var(--br-t-med) ease;
}

/* Pressing: everything that can be pressed gives way a little, and more while held. */
:where(a[class], button, summary, label.br-choice, label.br-check, [role="button"], [role="tab"], [role="radio"], [role="option"]):active:not(:disabled, [aria-disabled="true"]) { transform: scale(.975); }
/* A card gives way to a mouse press only: a touch may become a swipe or a hold, so it shows nothing as it lands (R45-8). */
@media (hover: hover) and (pointer: fine) { :where(.br-lcard):has(.br-lcard__link:active) { transform: scale(.985); } }
[data-holding="true"]:not(:disabled) { transform: scale(.95); }
:where(input[type="checkbox"], input[type="radio"]):active { transform: scale(.88); }
/* A finger held on a card (R45-5): the card sinks slowly over the 1 s it takes its menu to open, and comes back up
   as the menu opens; a finger that moves first is swiping its photos, and the card lets go. The browser's own
   callout and text selection never start from it, and the shared hold's quicker sink does not apply. */
.br-lcard__link { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.br-lcard__link[data-holding="true"] { transform: none; }
.br-lcard[data-pressing="true"] { transform: scale(.94); transition: transform .75s cubic-bezier(.25, .1, .25, 1); }
.br-lcard[data-pressing="true"] .br-lcard__img { box-shadow: 0 0 0 3px color-mix(in srgb, var(--br-accent) 45%, transparent); transition: box-shadow .75s ease-in; }
.br-lcard[data-pressing="done"] { transform: none; transition: transform var(--br-t-fast) var(--br-ease); }
@media (prefers-reduced-motion: reduce) { .br-lcard[data-pressing] { transform: none; transition: none; } }
.br-cardmenu__row { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; font: inherit; cursor: pointer; justify-content: flex-start; text-align: start; }
.br-cardmenu__row .br-tr__on { text-align: start; }
.br-ripple { position: fixed; z-index: 9999; overflow: hidden; pointer-events: none; }
/* The logo's ripple reaches past its box, with a button's corners (motion/overlay! reads both). */
.br-brand { --br-ripple-out: 12px; --br-ripple-radius: var(--br-r-control); }
.br-ripple__dot { position: absolute; border-radius: 50%; background: currentColor; }
.br-ripple--hold { background: color-mix(in srgb, currentColor 14%, transparent); transition: background-color var(--br-t-slow) ease; }

:where(.br-btn):active:not(:disabled, [aria-disabled="true"]) { --br-accent-fill: var(--br-accent-fill-press); }

/* Hovering, only where hover exists. Transform and colour only, so nothing shifts. */
@media (hover: hover) and (pointer: fine) {
  :where(.br-btn, .br-size, .br-chip):hover:not(:disabled, [aria-disabled="true"], :active) { transform: var(--br-hover-lift); box-shadow: 0 6px 16px rgba(17, 17, 17, .18); }
  :where(.br-btn--ghost):hover:not(:disabled, :active) { box-shadow: none; background: var(--br-tint); }
  /* Racing Red darkens on hover (#C4001D) and press (#A90019): only what is filled with it changes. */
  :where(.br-btn):hover:not(:disabled, [aria-disabled="true"]) { --br-accent-fill: var(--br-accent-fill-hover); }
  .br-iconbtn:hover, .br-tab:hover, .br-tabs__tab:hover, .br-menu__row:hover, .br-combo__option:hover { background-color: var(--br-tint); }
  .br-menu__row:hover svg { transform: translateX(3px); }
  .br-cats__item:hover, .br-seller:hover { transform: var(--br-hover-lift); box-shadow: 0 6px 16px rgba(17, 17, 17, .14); }
  .br-lcard:hover { transform: translateY(-3px); }
  .br-lcard:hover .br-lcard__img { box-shadow: 0 12px 28px rgba(17, 17, 17, .2); }
  .br-lcard:hover .br-lcard__img img { transform: scale(1.04); }
  .br-fav:hover .br-fav__dot { transform: scale(1.12); }
  .br-photo:hover { transform: scale(1.03); }
  .br-choice--box:hover, .br-check:hover input { border-color: var(--br-accent); }
  a:not([class]):hover { text-decoration-thickness: 2px; }
}

/* Something appears: a short fade and rise, never holding anything up. */
@keyframes br-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes br-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes br-sheet-in { from { transform: translateY(100%); } }
@keyframes br-fade-in { from { opacity: 0; } }
.br-enter, .br-field__error, [role="alert"], [role="status"]:not(.br-sr-only), .br-note, .br-sellsub, .br-combo__list, .br-appeal, .br-lcard, .br-minerow, .br-photo, .br-label__code {
  animation: br-enter var(--br-t-med) var(--br-ease) both;
}
.br-fav[aria-pressed="true"] .br-fav__dot svg { animation: br-pop var(--br-t-slow) var(--br-ease); }
/* Arriving (R37-3): a new screen does not animate its arrival. While its data loads (html[data-arriving]),
   and on what arrived then (data-arrived), entrances and placeholder pulses do not run. The same list as
   brrm.app.motion/arriving-selector. What appears later on the same screen still fades in. */
html[data-arriving] main :is(.br-enter, .br-field__error, [role="alert"], [role="status"], .br-note, .br-sellsub, .br-combo__list,
  .br-appeal, .br-lcard, .br-minerow, .br-photo, .br-label__code, .br-tile, .br-skel),
main [data-arrived] { animation: none !important; }

/* A change of screen is not animated (R37-1). Header and tab bar stay still while a sheet slides; a
   language change crossfades them with the rest. */
html[data-vt]:not([data-vt="language"]) .br-header { view-transition-name: br-header; }
html[data-vt]:not([data-vt="language"]) .br-mobilebar { view-transition-name: br-mobilebar; }
html[data-vt]:not([data-vt="language"]) .br-tabbar { view-transition-name: br-tabbar; }
::view-transition-group(br-header), ::view-transition-group(br-mobilebar), ::view-transition-group(br-tabbar) { animation: none; z-index: 2; }
::view-transition-new(br-header), ::view-transition-new(br-mobilebar), ::view-transition-new(br-tabbar) { animation: none; }
::view-transition-old(br-header), ::view-transition-old(br-mobilebar), ::view-transition-old(br-tabbar) { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--br-t-med); }
html[data-vt="language"]::view-transition-old(root), html[data-vt="language"]::view-transition-new(root) { animation-duration: var(--br-t-slow); }

/* Reduced motion: none of the above. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  :where(a, button, label, [role="tab"], [role="radio"]):active, .br-lcard:hover, [data-holding="true"] { transform: none !important; }
}

/* --- category and search head (SRC-019): subcategories, count and sort ------------------------------ */
.br-cats { scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
/* A phone's row of categories: one width, and a name's two rows at most in any language (I18-014, NFR-003).
   It holds up to the wide layout's grid at 900 px, so a tablet gets the same row, never squeezed pills. */
@media (max-width: 899px) {
  .br-cats:not(.br-cats--sub) { grid-auto-columns: 148px; grid-auto-rows: 1fr; }
  .br-cats:not(.br-cats--sub) .br-cats__item { justify-content: center; padding: 6px 12px; border-radius: 6px; white-space: normal; line-height: 1.2; font-size: 13px; text-align: center; }
  .br-cats:not(.br-cats--sub) .br-cats__item .br-tr { width: 100%; }
}
.br-cats__item { scroll-snap-align: start; }
.br-cats__item[aria-current="page"] { background: var(--br-tint); border: 1.5px solid var(--br-accent); color: var(--br-accent); font-weight: 600; }
.br-cats__item .br-tr__on, .br-btn .br-tr__on, .br-chip .br-tr__on { display: grid; align-content: center; }
.br-search__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.br-search__bar { flex-wrap: nowrap; justify-content: space-between; min-height: 44px; }
.br-search__count { margin: 0; flex: 1; min-width: 0; }
.br-search__sort { margin-left: 0; flex: none; }
.br-select { position: relative; display: inline-flex; align-items: center; width: 200px; color: var(--br-text); }
.br-select select {
  width: 100%; min-height: 44px; padding: 0 40px 0 16px; border: 1px solid var(--br-line); border-radius: var(--br-r-control);
  background: var(--br-surface); color: inherit; font: 500 14px var(--br-font); cursor: pointer;
  -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.br-select select:hover { border-color: var(--br-accent); }
.br-select svg { position: absolute; right: 14px; pointer-events: none; color: var(--br-muted); }
.br-select:hover svg { transform: translateY(1px); color: var(--br-accent); }
@media (pointer: fine) { @supports (appearance: base-select) { .br-select select { appearance: base-select; display: flex; align-items: center; } } }

/* Phones: a row that scrolls sideways, fading at its edges, with room so nothing is cut off. */
@media (max-width: 719px) {
  .br-cats--sub {
    margin-block: -6px; padding-block: 6px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  }
  .br-cats--sub .br-tile:hover { transform: none; box-shadow: none; }
}
/* Wider: tiles of one width that wrap, so a longer translation never makes the row uneven. */
@media (min-width: 720px) {
  .br-cats--sub { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; margin: 0; padding: 4px 0; overflow: visible; }
  .br-cats--sub .br-tile { min-width: 0; }
}
/* Phones: filters and sort share one row, sort taking the room it needs; the count goes under them. */
@media (max-width: 899px) {
  .br-search__bar { flex-wrap: wrap; }
  .br-search__bar .br-chip--filters { flex: none; }
  .br-search__sort { flex: 1 1 0; min-width: 0; }
  .br-select { width: 100%; }
  .br-search__count { order: 3; flex: 1 0 100%; font-size: 13px; min-height: 20px; }
}
/* The title and its search button always share a row; a long name wraps instead of pushing it down. */
.br-search > .br-section__head { flex-wrap: nowrap; align-items: flex-start; }
.br-search > .br-section__head .br-page__title { flex: 1; min-width: 0; }
.br-search > .br-section__head .br-iconbtn { flex: none; }
@media (max-width: 719px) { .br-search > .br-section__head .br-page__title { font-size: 22px; line-height: 1.25; } }

/* --- no photo (SRC-021): the still logo on deep space, in both themes ------------------------------------ */
/* A shade above the deep-space page, so the card keeps its edge in the dark theme. */
.br-noimg { position: absolute; inset: 0; display: block; overflow: hidden; background: #101A2E; }
.br-noimg__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.br-lcard:hover .br-noimg__art { transform: scale(1.04); }
.br-thumb, .br-gallery__thumb, .br-photo, .br-gallery__main { position: relative; }

/* A home category card's icon (R33-6): on the right, behind the name, as tall as the card and set 20 %
   below it, so the card's bottom edge cuts it off. */
.br-cats:not(.br-cats--sub) .br-cats__item { position: relative; overflow: hidden; isolation: isolate; }
.br-cats__art {
  position: absolute; right: 0; top: 20%; height: 100%; aspect-ratio: 1; z-index: -1; pointer-events: none;
  color: var(--br-accent); opacity: .16; transform: translateX(14%);
  transition: transform var(--br-t-med) var(--br-ease), opacity var(--br-t-med) var(--br-ease);
}
.br-cats__art svg { display: block; width: 100%; height: 100%; }
.br-cats__name { position: relative; display: grid; width: 100%; min-width: 0; }
@media (hover: hover) {
  .br-cats__item:hover .br-cats__art { opacity: .26; transform: translateX(14%) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) { .br-cats__art { transition: none; } }

/* All category cards are one height, whatever their names, with the text sitting on the same line. */
@media (min-width: 900px) {
  .br-cats:not(.br-cats--sub) { grid-auto-rows: 1fr; }
  .br-cats:not(.br-cats--sub) .br-cats__item { align-items: stretch; }
  .br-cats:not(.br-cats--sub) .br-cats__item .br-tr { display: grid; width: 100%; }
  .br-cats:not(.br-cats--sub) .br-cats__item .br-tr__on { align-self: stretch; align-content: end; }
}
@media (min-width: 720px) { .br-cats--sub { grid-auto-rows: 1fr; } }

/* The logo (DECISIONS R1-13), with no badge: the dial in the theme's accent and red zone, the needle and hub
   in its text colour (NFR-034). The loader and the no-photo art keep the dark theme's colours on deep space.
   The unlit track shows only during the navbar's pass. */
.br-mark { --br-mark-arc: var(--br-text); --br-mark-red: var(--br-hot); --br-mark-ink: var(--br-text); }
.br-mark .br-mark__track { display: none; stroke: var(--br-mark-arc); }
.br-mark .br-mark__track--red, .br-mark .br-mark__lr { stroke: var(--br-mark-red); }
.br-mark .br-mark__lt { stroke: var(--br-mark-arc); }
.br-mark .br-mark__needle, .br-mark .br-mark__hub { stroke: var(--br-mark-ink); }
/* The needle turns about the dial's centre; at rest it points into the red zone. */
.br-mark__nd { transform-box: view-box; transform-origin: 32px 38px; transform: rotate(100deg); }
/* The phone's top bar is deep space in both themes, so its logo is the dark theme's in both. */
.br-mobilebar .br-mark { --br-mark-arc: #FFFFFF; --br-mark-red: #E60023; --br-mark-ink: #FFFFFF; }
/* The navbar's logo answers a successful load with a pass (NFR-014): the needle sweeps across the dial,
   lighting it, and returns to rest. Its keyframes are the loader's own (css/loader.css), from bin/logo-export. */
@media (prefers-reduced-motion: no-preference) {
  html[data-logo="arrive"] .br-brand .br-mark__track { display: inline; }
  html[data-logo="arrive"] .br-brand .br-mark__nd { animation: br-needle 3.36s linear 1 both; }
  html[data-logo="arrive"] .br-brand .br-mark__lt { stroke-dasharray: 100 200; animation: br-lit-t 3.36s linear 1 both; }
  html[data-logo="arrive"] .br-brand .br-mark__lr { stroke-dasharray: 100 200; animation: br-lit-r 3.36s linear 1 both; }
}

/* --- shared pieces of the account, order and message screens ------------------------------- */
.br-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.br-stack--tight { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.br-self-start { align-self: flex-start; }
.br-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.br-nowrap { white-space: nowrap; }
.br-wrap { overflow-wrap: anywhere; }
.br-strike { text-decoration: line-through; }
.br-bullets { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
.br-avatar { overflow: hidden; }
.br-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-iconbtn__dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 999px; background: var(--br-accent-2); box-shadow: 0 0 0 2px var(--br-bg); }
.br-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.br-radio input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--br-accent); }
.br-radio--box { padding: 8px 14px; border: 1px solid var(--br-line); border-radius: var(--br-r-control); background: var(--br-surface); }
.br-radio--box:has(input:checked) { border-color: var(--br-accent); box-shadow: inset 0 0 0 0.5px var(--br-accent); }
/* NFR-022. The underline is on the text itself: an inline grid (.br-tr) takes none from its link. */
.br-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: start;
  padding-top: 32px; border-top: 1px solid var(--br-line); }
.br-footer__nav { display: contents; }
.br-footer__brand { grid-column: 2; grid-row: 1; text-align: center; }
.br-footer__group { grid-column: 1; grid-row: 1; }
.br-footer__group + .br-footer__group { grid-column: 3; justify-self: end; text-align: end; }
.br-footer__mark { display: inline-flex; align-items: center; gap: 8px; }
.br-footer__tagline { margin: 8px 0 0; color: var(--br-muted); font-size: 14px; }
.br-footer__title { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.br-footer__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.br-footer__link { display: inline-block; padding-block: 4px; color: var(--br-muted); font-size: 14px; text-decoration: none;
  transition: color var(--br-t-med) var(--br-ease); }
.br-footer__link .br-tr__on { text-decoration: underline 1.5px transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--br-t-med) var(--br-ease); }
.br-footer__link:hover, .br-footer__link:focus-visible { color: var(--br-text); }
.br-footer__link:hover .br-tr__on, .br-footer__link:focus-visible .br-tr__on { text-decoration-color: var(--br-accent); }
@media (min-width: 900px) {
  .br-sheet--center { margin: auto; max-width: 520px; border-radius: var(--br-r-sheet); }
}

/* --- messages (S18, S19) ----------------------------------------------------------------------- */
.br-chat__title { padding-inline: 8px; }
.br-chat__search { padding-inline: 8px; }
.br-chat__none { padding: 16px 8px; }
.br-chat__pick { padding: 48px 24px; text-align: center; }
.br-chat__pane { min-width: 0; }
.br-chat--open .br-chat__list { display: none; }
.br-chat:not(.br-chat--open) .br-chat__pane { display: none; }
@media (max-width: 899.98px) {
  /* On a phone an open conversation is the whole screen: edge to edge, right under the header, its head set off from
     the header by its own surface and a line, and the composer resting on the tab bar (R37-5). */
  .br-main:has(.br-chat--open) { padding-bottom: var(--br-tabbar-h); }
  .br-chat--open { padding: 0; gap: 0; }
  .br-chat--open .br-thread { min-height: calc(100dvh - var(--br-mobilebar-h) - var(--br-tabbar-h)); }
  .br-chat--open .br-thread__head { background: var(--br-surface); border-top: 1px solid var(--br-line); padding-inline: 4px 8px; }
}
@media (min-width: 900px) {
  .br-chat { display: grid !important; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 0;
    background: var(--br-surface); border: 1px solid var(--br-line); border-radius: 6px; padding: 0; overflow: hidden;
    /* It is its own card, so the page's spacing and the container's gutters become margins: clear of the header, and in line with its content. */
    width: calc(100% - 40px); max-width: 1200px; margin: 20px auto;
    /* The screen under the header, the same space above and below (MSG-010); what is long scrolls inside. */
    height: calc(100dvh - var(--br-header-h) - 40px); min-height: 480px; }
  .br-chat--open .br-chat__list, .br-chat .br-chat__list { display: block; padding: 16px 8px; border-inline-end: 1px solid var(--br-line); min-height: 0; overflow-y: auto; }
  .br-chat:not(.br-chat--open) .br-chat__pane { display: block; }
  .br-chat .br-chat__pane { min-height: 0; overflow-y: auto; }
  .br-chat .br-thread { height: 100%; min-height: 0; }
  .br-chat .br-msgs { min-height: 0; overflow-y: auto; }
}
.br-convos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.br-convo { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.br-convo[aria-current="page"] { background: var(--br-raised); }
.br-convo__media { position: relative; flex: none; }
.br-convo__who { position: absolute; right: -4px; bottom: -4px; }
/* Over the listing's photo the avatar's tint sits on a solid ground, so the photo never shows through (R45-18). */
.br-convo__who .br-avatar { width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--br-bg); background: linear-gradient(var(--br-tint), var(--br-tint)), var(--br-surface); }
.br-convo__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-convo__line { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; }
.br-convo__name { font-weight: 600; overflow-wrap: anywhere; }
.br-convo--unread .br-convo__name { font-weight: 700; }
.br-convo__snippet { font-size: 14px; color: var(--br-muted); }
.br-convo--unread .br-convo__snippet { color: var(--br-text); }
.br-convo__unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: var(--br-r-chip); background: var(--br-accent-2); color: var(--br-on-accent); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.br-thread { display: flex; flex-direction: column; min-height: 560px; min-width: 0; }
.br-thread__head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--br-line); position: relative; }
.br-thread__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.br-thread__who .br-avatar { width: 36px; height: 36px; font-size: 13px; flex: none; }
.br-thread__name { font-size: 16px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.br-thread__listing { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--br-raised); color: inherit; text-decoration: none; }
.br-thread__listing-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-deal { display: flex; flex-direction: column; gap: 8px; margin: 12px 16px 0; padding: 14px; border-radius: 6px; background: var(--br-surface); border: 1.5px solid var(--br-accent); }
.br-deal__title { --br-lead-gap: 8px; display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--br-text); }
.br-deal__title svg { color: var(--br-accent); flex: none; }
.br-deal--inline { margin: 0; }
.br-deal__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.br-deal__actions .br-btn { flex: 1 1 auto; }
.br-msgs { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.br-msgs__end { height: 0; }
.br-msg { max-width: 78%; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; animation: br-enter var(--br-t-med) var(--br-ease) both; }
.br-msg--mine { align-self: flex-end; border-radius: 6px 6px 4px 6px; background: var(--br-accent-fill); color: var(--br-on-accent); }
.br-msg--theirs { align-self: flex-start; border-radius: 6px 6px 6px 4px; background: var(--br-raised); }
.br-msg--unsent { background: transparent; color: var(--br-text); border: 1.5px dashed var(--br-bad); }
.br-msg--theirs { position: relative; }
.br-msg__report { position: absolute; left: 100%; bottom: calc(50% - 22px); color: var(--br-muted); }
.br-thread__note { margin: 12px 16px 0; }
.br-showmore { align-self: center; margin-top: 12px; }
.br-admin__restrictselect { width: 280px; max-width: 100%; }
.br-thread__who-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.br-thread__active { font-size: 12px; }
.br-msg__time { font-size: 11px; opacity: 0.75; text-align: end; }
.br-msg__photo { display: block; width: 200px; max-width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.br-msg__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-admin__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.br-msg__warning { font-size: 12px; font-weight: 600; }
.br-msg__masked { font-size: 12px; opacity: 0.75; }
/* What will be hidden with stars (R40-1): below a field, or above the chat row. */
.br-maskhint { color: var(--br-muted); margin: 0; min-height: 0; }
.br-composer__hint { padding: 0 4px 6px; }
.br-msgcard { align-self: stretch; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--br-field); display: flex; flex-direction: column; gap: 2px; }
.br-composer { position: sticky; bottom: calc(var(--br-tabbar-h) + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; background: var(--br-surface); border-top: 1px solid var(--br-line); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .br-composer { bottom: 0; } }
.br-composer__row { display: flex; gap: 6px; align-items: center; }
.br-composer__input { flex: 1; min-width: 0; border-radius: 6px; min-height: 44px; }
.br-composer__offer { min-height: 44px; padding: 0 12px; flex: none; }
.br-composer__send { background: var(--br-accent-fill); color: var(--br-on-accent); border-radius: var(--br-r-control); flex: none; }
.br-composer__send[disabled] { background: var(--br-raised); color: var(--br-muted); }
.br-composer__photos { display: flex; gap: 6px; flex-wrap: wrap; }
.br-composer__photo { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--br-raised); }
.br-composer__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-menu-wrap { position: relative; }
.br-popmenu { position: absolute; inset-inline-end: 0; top: 48px; z-index: 5; min-width: 240px; padding: 6px; border-radius: 6px; background: var(--br-surface); border: 1px solid var(--br-line); box-shadow: 0 12px 32px rgba(5, 6, 14, 0.25); }
.br-popmenu__item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--br-text); font: inherit; text-align: start; cursor: pointer; }
.br-popmenu__item.br-link--bad { color: var(--br-bad); }
.br-offer__about { display: flex; gap: 12px; align-items: center; }
.br-offer__about-body { display: flex; flex-direction: column; min-width: 0; }
.br-offer__amount { font-size: 20px; font-weight: 500; flex: 1; min-width: 0; }
.br-offer__chips { display: flex; gap: 8px; }
.br-offer__chips .br-chip { flex: 1; justify-content: center; }

/* --- orders, cases, returns, ratings ------------------------------------------------------------ */
.br-orderrow { display: flex; gap: 12px; color: inherit; text-decoration: none; }
.br-orderrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.br-orderrow__body .br-minerow__head { width: 100%; }
.br-evidence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.br-evidence__add, .br-evidence__item { aspect-ratio: 1; border-radius: 4px; overflow: hidden; display: grid; place-items: center; padding: 0; cursor: pointer; }
.br-evidence__add { border: 1.5px dashed var(--br-accent); color: var(--br-accent); font-size: 13px; font-weight: 600; text-align: center; }
.br-evidence__item { border: 0; background: var(--br-raised); }
.br-evidence__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-evidencelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.br-evidencelist__photo { max-width: 260px; width: 100%; border-radius: 4px; display: block; }
.br-starpick { display: flex; gap: 4px; }
.br-starpick__star { width: 48px; height: 48px; border: 0; background: transparent; font-size: 34px; line-height: 1; color: var(--br-field); cursor: pointer; }
.br-starpick__star--on { color: var(--br-accent); }

/* --- notifications (S27) ------------------------------------------------------------------------ */
.br-notifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.br-notif { display: flex; gap: 10px; padding: 12px; border-radius: 6px; color: inherit; text-decoration: none; }
.br-notif--unread { background: var(--br-surface); }
.br-notif__dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 999px; background: transparent; }
.br-notif--unread .br-notif__dot { background: var(--br-accent-2); }
.br-notif__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.br-notif__line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.br-notif__title { font-weight: 500; min-width: 0; }
.br-notif--unread .br-notif__title { font-weight: 700; }

/* --- wallet (S32, S33) -------------------------------------------------------------------------- */
.br-balance { display: flex; flex-direction: column; gap: 10px; }
.br-balance__value { font-size: 30px; line-height: 1.15; }
.br-balance__pending { display: flex; flex-direction: column; gap: 2px; padding-block: 10px; border-block: 1px solid var(--br-line); }
.br-balance .br-minerow__head { display: flex; justify-content: space-between; gap: 12px; }
.br-ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.br-ledgerrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--br-line); }
.br-ledgerrow:last-child { border-bottom: 0; }
.br-ledgerrow__sign { flex: none; width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; background: var(--br-raised); font-weight: 700; }
.br-ledgerrow__sign--plus { color: var(--br-ok); }
.br-ledgerrow__sign--wait { color: var(--br-warn); }
.br-ledgerrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-ledgerrow__title { font-weight: 500; overflow-wrap: anywhere; }
.br-ledgerrow__amount { flex: none; text-align: end; }

/* --- settings (S34) ----------------------------------------------------------------------------- */
.br-settings__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.br-settings__text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.br-settings__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.br-settings__row .br-btn--ghost { flex: none; }
.br-card.br-settings { padding-inline-end: 24px; }
/* Whatever ends a row ends at the card's right edge (ACC-041): a text button's words, not its padding, which
   still shows as the hover background. A reservation's spare room goes to the left of the words. */
.br-settings__row > .br-btn--ghost { margin-inline-end: -12px; }
/* A group's own margin, not its last button's: when its buttons wrap on a phone, each line ends at the edge. */
.br-settings__actions:has(> .br-btn--ghost:last-child) { margin-inline-end: -12px; }
.br-settings__row .br-btn--ghost .br-tr__on, .br-settings__row > .br-muted .br-tr__on { text-align: end; }
.br-prefstable { width: 100%; border-collapse: collapse; }
.br-prefstable th, .br-prefstable td { padding: 8px 4px; text-align: center; font-weight: 400; }
.br-prefstable th[scope="col"] { width: 72px; }
.br-prefstable th[scope="col"], .br-prefstable td { padding-inline-end: 0; text-align: end; }
.br-prefstable th[scope="row"] { padding-inline-start: 0; text-align: start; }
.br-prefstable thead th { font-size: 13px; color: var(--br-muted); }
.br-prefstable__hit { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.br-prefstable input, .br-settings__row input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--br-accent); }
.br-codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--br-raised); border-radius: 4px; }

/* --- help, legal, contact ------------------------------------------------------------------------ */
/* Each step is as tall as its own room (R16-3), never the tallest step's (R2-48, I18-023): a row stretched to another
   step's room left the empty part of it under a shorter step's text. */
.br-howsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.br-howstep { --br-lead: 28px; display: block; }
.br-howstep__n { flex: none; width: 28px; height: 28px; border-radius: var(--br-r-chip); display: grid; place-items: center; background: var(--br-tint); color: var(--br-accent); font-weight: 700; font-size: 14px; }
.br-doc { display: flex; flex-direction: column; gap: 12px; }
.br-doc p { margin: 0; line-height: 1.6; }
.br-doc__li { padding-inline-start: 18px; position: relative; }
.br-doc__li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.65em; width: 5px; height: 5px; border-radius: 999px; background: var(--br-muted); }
/* The dot belongs to the text shown, not to the room kept for the longest translation: where this language takes
   fewer lines, the text sits in the middle of that room (R38-16), and its dot goes with its first line. */
.br-doc__li:has(.br-tr__on)::before { content: none; }
.br-doc__li .br-tr__on { position: relative; }
.br-doc__li .br-tr__on::before {
  content: ""; position: absolute; inset-inline-start: -14px; top: 0.65em; width: 5px; height: 5px; border-radius: 999px; background: var(--br-muted);
}
.br-supportrow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.br-supportlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* --- Staff area (A01-A12). Everything comes from the tokens, so both themes hold. --- */
.br-admin { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--br-bg); }
.br-admin__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--br-surface); color: var(--br-text); border-inline-end: 1px solid var(--br-line); }
.br-admin__nav { flex: 1 0 auto; display: flex; flex-direction: column; gap: 6px; }
.br-admin__group { display: flex; flex-direction: column; gap: 2px; }
.br-admin__group-title { padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--br-muted); }
.br-admin__link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 4px; color: var(--br-text); font-size: 14px; text-decoration: none; }
@media (min-width: 900px) { .br-admin__link { min-height: 30px; } }
.br-admin__link svg { flex: none; color: var(--br-muted); }
.br-admin__link[aria-current="page"] { background: var(--br-tint); color: var(--br-accent); font-weight: 600; }
.br-admin__link[aria-current="page"] svg { color: inherit; }
.br-admin__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--br-line); }
.br-admin__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.br-admin__who-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.br-admin__foot .br-segments--locales { flex: 1 1 100%; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
.br-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 4px; background: var(--br-raised); }
.br-segments__item { min-width: 34px; min-height: 28px; display: grid; place-items: center; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--br-muted); font: 600 12px var(--br-font); text-decoration: none; cursor: pointer; }
.br-segments__item[aria-current="true"], .br-segments__item[aria-checked="true"] { background: var(--br-surface); color: var(--br-text); box-shadow: 0 0 0 1px var(--br-line); }
.br-admin__settingform { display: flex; flex-direction: column; gap: 16px; }
.br-admin__fields { display: flex; flex-direction: column; gap: 14px; }
.br-admin__group-fields { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border: 1px solid var(--br-line); border-radius: 4px; }
.br-admin__group-fields > legend { padding: 0 6px; }
.br-admin__sidebyside { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.br-admin__row { max-width: 420px; }
.br-admin__number { max-width: 200px; }
.br-admin__select { max-width: 320px; }
.br-admin__check { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.br-admin__check input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--br-accent); }
.br-admin__choices { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.br-admin__branch { border: 1px solid var(--br-line); border-radius: 4px; padding: 0 12px; }
.br-admin__branch-title { min-height: 40px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.br-admin__branch[open] { padding-bottom: 12px; }
.br-admin__linkish[aria-current="true"] { color: var(--br-text); text-decoration: none; }
.br-admin__main { min-width: 0; padding: 28px 32px; color: var(--br-text); }
.br-admin__page { display: flex; flex-direction: column; gap: 18px; }
.br-admin__h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.br-admin__h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.br-admin__h3 { margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.br-admin__card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.br-admin__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.br-admin__tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--br-text); text-decoration: none; }
.br-admin__figure { font-size: 24px; font-weight: 500; line-height: 1.2; }
.br-admin__split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.br-admin__split > * { flex: 1 1 380px; min-width: 0; }
.br-admin__stack { display: flex; flex-direction: column; gap: 20px; }
.br-admin__wrap { overflow-x: auto; }
.br-admin__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.br-admin__table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--br-muted); padding: 8px 10px; border-bottom: 1px solid var(--br-line); white-space: nowrap; }
.br-admin__table td { padding: 10px; border-bottom: 1px solid var(--br-line); vertical-align: top; }
.br-admin__search { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.br-admin__search .br-input { flex: 1 1 240px; min-width: 200px; }
.br-admin__form { display: flex; flex-direction: column; gap: 10px; }
.br-admin__text { min-height: 96px; height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.br-admin__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.br-admin__dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.br-admin__dl dt { color: var(--br-muted); }
.br-admin__dl dd { margin: 0; overflow-wrap: anywhere; }
.br-admin__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.br-admin__rowline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.br-admin__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.br-admin__item { display: flex; flex-direction: column; gap: 6px; }
.br-admin__linkish { padding: 0; min-height: 24px; border: 0; background: none; color: var(--br-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }
.br-admin__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.br-admin__evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.br-admin__field { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.br-admin__roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 12px; }
.br-admin__radio { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.br-admin__cell { width: 130px; height: 36px; padding: 0 6px; font-size: 13px; }
.br-admin__pre { white-space: pre-wrap; }
@media (max-width: 760px) {
  .br-admin { grid-template-columns: minmax(0, 1fr); }
  .br-admin__side { position: static; height: auto; border-inline-end: 0; border-bottom: 1px solid var(--br-line); }
  .br-admin__main { padding: 20px 16px; }
}

.br-offline { margin: 0; padding: 10px 16px; background: var(--br-raised); color: var(--br-text); text-align: center; font-size: 14px; }
.br-offline--notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }

/* A tile's note always takes the tile's full width, so a line breaks at the same place in every language. */
.br-admin__tile .br-statuschip { display: flex; width: 100%; box-sizing: border-box; align-items: flex-start; }
.br-admin__tile .br-statuschip > :last-child { flex: 1 1 0; min-width: 0; }
.br-admin__tile .br-statuschip__dot { flex: none; margin-top: 7px; }
/* Its note sits in the middle of its room, so the dot is drawn from the note's first line (R2-45); the dot's own
   span keeps its place in the row. */
.br-admin__tile .br-statuschip:has(> .br-tr) > .br-statuschip__dot { visibility: hidden; }
.br-admin__tile .br-statuschip > .br-tr > .br-tr__on { position: relative; }
.br-admin__tile .br-statuschip > .br-tr > .br-tr__on::before {
  content: ""; position: absolute; inset-inline-start: -13px; top: calc((1lh - 7px) / 2);
  width: 7px; height: 7px; border-radius: 999px; background: currentColor;
}

/* --- what stays in reach on a phone (R24-1) --------------------------------------------------- */

.br-stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 15; display: flex; align-items: center; gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: var(--br-surface); border-bottom: 1px solid var(--br-line);
  box-shadow: 0 4px 12px rgba(17, 17, 17, .12); opacity: 0; visibility: hidden; transform: translateY(-100%);
  transition: opacity var(--br-t-med) var(--br-ease), transform var(--br-t-med) var(--br-ease), visibility 0s linear var(--br-t-med);
}
.br-stickybar[data-on="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* The price is never cut (R45-4): it keeps its own width and the buttons share what is left, a long label taking two lines. */
.br-stickybar__price { flex: none; font-weight: 700; white-space: nowrap; }
.br-stickybar .br-btn { min-height: 40px; padding: 0 14px; flex: none; }
.br-stickybar:has(> .br-stickybar__price) > .br-btn { flex: 1 1 auto; min-width: 0; padding: 0 8px; white-space: normal; line-height: 1.15; }
.br-stickybar__field { position: relative; flex: 1; min-width: 0; }
.br-stickybar__field input { width: 100%; min-height: 40px; padding-right: 46px; font-weight: 700; }
.br-stickybar__field > span { position: absolute; right: 10px; top: 10px; font-size: 14px; }
@media (min-width: 900px) { .br-stickybar:not(.br-stickybar--wide) { display: none; } }
.br-sellerbar { display: flex; align-items: center; gap: 10px; }
.br-sellerbar .br-avatar { width: 40px; height: 40px; font-size: 14px; flex: none; }
.br-sellerbar__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.br-sellerbar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.br-sellerbar__facts { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--br-muted); }
.br-sellerbar__rating { flex: none; }
/* On the narrowest phones a confirmation shortens rather than leaving the bar. */
.br-sellerbar__facts .br-status { flex: 0 1 auto; min-width: 0; font-size: 12px; padding-inline: 8px; }
.br-sellerbar__facts .br-status .br-tr__on { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .br-sellerbar { padding-inline: 0; } }
.br-sellerbar__rating strong { color: var(--br-text); }
@media (min-width: 900px) {
  .br-sellerbar__body { flex-direction: row; align-items: center; gap: 16px; }
  .br-sellerbar__name { flex: none; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .br-stickybar { transition: none; } }

/* --- photo editor (LST-039): a frame of the listing ratio to turn, zoom and move the photo in --------------------------- */
.br-editor { margin: auto; width: min(100% - 32px, 520px); max-height: calc(100dvh - 32px); border-radius: var(--br-r-sheet); }
@media (max-width: 599px) { .br-editor { margin: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; } }
.br-editor__count { margin-inline-start: 10px; font-size: 14px; font-weight: 500; color: var(--br-muted); }
.br-editor__body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; }
.br-editor__stage {
  position: relative; width: min(100%, calc(min(60dvh, 560px) * 4 / 3)); aspect-ratio: var(--br-photo-ratio); flex: none;
  border-radius: 6px; overflow: hidden; background: var(--br-raised); touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.br-editor__stage[data-moving="true"] { cursor: grabbing; }
.br-editor__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.br-editor__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--br-t-fast) ease;
  background:
    linear-gradient(to right, transparent calc(100% / 3 - .5px), rgba(255, 255, 255, .5) 0 calc(100% / 3 + .5px), transparent 0 calc(200% / 3 - .5px), rgba(255, 255, 255, .5) 0 calc(200% / 3 + .5px), transparent 0),
    linear-gradient(to bottom, transparent calc(100% / 3 - .5px), rgba(255, 255, 255, .5) 0 calc(100% / 3 + .5px), transparent 0 calc(200% / 3 - .5px), rgba(255, 255, 255, .5) 0 calc(200% / 3 + .5px), transparent 0);
}
.br-editor__stage[data-moving="true"] .br-editor__grid { opacity: 1; }
.br-editor__wait { position: absolute; inset: 0; }
.br-editor__failed { position: absolute; inset: auto 12px 12px; margin: 0; padding: 8px 12px; border-radius: 4px; background: var(--br-surface); }
.br-editor__tools { display: flex; align-items: center; gap: 4px; width: min(100%, 420px); }
.br-editor__zoom { flex: 1; min-width: 0; accent-color: var(--br-accent); }
.br-editor__hint { margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .br-editor__grid { transition: none; } }

/* --- photo viewer (SRC-036): full screen, zoomed and swiped like a phone's own gallery --------------- */
html.br-noscroll { overflow: hidden; }
.br-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #FFFFFF; overflow: hidden;
}
.br-viewer[open] { display: block; animation: br-viewer-in var(--br-t-med) var(--br-ease) both; }
.br-viewer::backdrop { background: transparent; }
@keyframes br-viewer-in { from { opacity: 0; transform: scale(.98); } }
.br-viewer__backdrop { position: absolute; inset: 0; background: #05060E; }
.br-viewer__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.br-viewer__track { position: absolute; inset: 0; will-change: transform; }
.br-viewer__slide { position: absolute; top: 0; width: 100%; height: 100%; overflow: hidden; }
.br-viewer__zoom { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.br-viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.br-viewer__img--sharp { opacity: 0; }
.br-viewer__img--sharp[data-ready="true"] { opacity: 1; }
.br-viewer__bar {
  position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px 16px; background: linear-gradient(rgba(5, 6, 14, .6), transparent);
  pointer-events: none;
}
.br-viewer__bar > * { pointer-events: auto; }
.br-viewer__count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.br-viewer__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--br-r-control);
  background: rgba(5, 6, 14, .5); color: #FFFFFF; cursor: pointer;
}
.br-viewer__nav { position: absolute; top: calc(50% - 22px); }
.br-viewer__nav--prev { left: 16px; }
.br-viewer__nav--next { right: 16px; }
.br-viewer__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .br-viewer__nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .br-viewer[open] { animation: none; } }

/* --- Buying several items from one seller (S28, DECISIONS round 34) ------------------------------- */
.br-pickcard__btn { width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.br-pickcard .br-lcard__img { outline: 3px solid transparent; outline-offset: -3px; transition: outline-color var(--br-t-med) var(--br-ease); }
.br-pickcard[data-on="true"] .br-lcard__img { outline-color: var(--br-accent); }
/* A card shows a plus until it is picked and a check once it is (R38-10). */
.br-pickcard__mark {
  position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--br-r-control);
  background: color-mix(in srgb, var(--br-surface) 88%, transparent); color: var(--br-text); border: 2px solid var(--br-line);
  box-shadow: 0 2px 8px rgba(17, 17, 17, .18); pointer-events: none;
  transition: background-color var(--br-t-med) var(--br-ease), color var(--br-t-med) var(--br-ease), border-color var(--br-t-med) var(--br-ease),
    transform var(--br-t-fast) var(--br-ease);
}
.br-pickcard[data-on="true"] .br-pickcard__mark { background: var(--br-accent-fill); border-color: var(--br-accent); color: var(--br-on-accent); }
.br-pickcard__btn:hover .br-pickcard__mark { transform: scale(1.08); }
.br-pickcard__btn:hover .br-lcard__title { text-decoration: underline; }
.br-item__several, .br-profile__several { width: 100%; }
.br-profile__several { width: auto; margin: 8px 0; }
.br-orderhead__thumbs { display: flex; gap: 4px; flex: none; }
.br-orderhead__thumbs > .br-thumb { width: 40px; height: 40px; border-radius: 4px; }

/* --- buy several as a cart (R38-10) --- */
.br-pick__layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .br-pick__layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.br-pick__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.br-pick__main > .br-page__title { margin: 0; }
@media (max-width: 899px) { .br-pick--tray { padding-bottom: 96px; } }

.br-picksteps { display: flex; flex-direction: column; gap: 8px; }
.br-picksteps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.br-picksteps__item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: var(--br-r-control);
  background: var(--br-surface); border: 1px solid var(--br-line); color: var(--br-muted); font-size: 14px; font-weight: 600; }
.br-picksteps__item--on { border-color: var(--br-accent); color: var(--br-text); }
.br-picksteps__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--br-r-chip);
  border: 1.5px solid currentColor; font-size: 13px; }
.br-picksteps__item--on .br-picksteps__n { background: var(--br-accent-fill); border-color: var(--br-accent); color: var(--br-on-accent); }
.br-picksteps__text { min-width: 0; }

.br-basket { display: flex; flex-direction: column; gap: 14px; }
.br-card.br-basket { padding: 18px; }
.br-sheet .br-basket { padding: 16px; }
.br-basket__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.br-basket__head .br-section__title { margin: 0; }
.br-basket__clear { padding: 0 10px; min-height: 40px; margin-inline-end: -10px; }
.br-sheet .br-basket__clear { align-self: center; }
/* It never scrolls by itself: the side panel moves with the page, and the sheet scrolls (a leaving item's copy must not show a bar). */
.br-basket__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.br-basket__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.br-basket__item .br-thumb, .br-bundle__item .br-thumb { width: 48px; height: 48px; border-radius: 4px; }
.br-basket__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-basket__title { font-weight: 600; }
.br-basket__price { font-size: 14px; color: var(--br-muted); white-space: nowrap; }
.br-basket__remove { width: 40px; height: 40px; min-height: 40px; color: var(--br-muted); }
.br-basket__empty { margin: 0; }
.br-basket__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--br-line); }
.br-basket__total .br-price { font-size: 20px; white-space: nowrap; }
.br-basket__go { width: 100%; }
.br-basket__note { margin: -4px 0 0; text-align: center; }

.br-tray {
  position: fixed; left: 8px; right: 8px; bottom: calc(var(--br-tabbar-h) + 8px); z-index: 19;
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px;
  background: var(--br-surface); border: 1px solid var(--br-line); box-shadow: 0 10px 28px rgba(17, 17, 17, .28);
}
.br-tray__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px;
  border: 0; border-radius: 4px; background: none; color: var(--br-text); font: inherit; text-align: start; cursor: pointer; }
.br-tray__stack { display: flex; flex: none; }
.br-tray__stack .br-thumb { width: 40px; height: 40px; border-radius: 4px; border: 2px solid var(--br-surface); }
.br-tray__stack .br-thumb + .br-thumb { margin-inline-start: -16px; }
.br-tray__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.br-tray__text > * { white-space: nowrap; }
.br-tray__sum { white-space: nowrap; font-size: 17px; }
.br-tray__up { flex: none; display: grid; place-items: center; color: var(--br-muted); }
@media (max-width: 899px) {
  .br-picksteps__list { gap: 6px; }
  .br-picksteps__item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; font-size: 13px; line-height: 1.25; }
}
.br-tray__go { flex: none; min-height: 48px; padding: 0 14px; }

.br-offerpicks { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--br-line); }
.br-offerpicks__photos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.br-offerpicks .br-thumb { width: 44px; height: 44px; border-radius: 4px; }
.br-offer__chips--amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.br-offerchip { flex-direction: column; justify-content: center; gap: 0; min-height: 56px; padding: 6px 8px; border-radius: 6px; line-height: 1.2; }
.br-offerchip__p { font-weight: 700; }
.br-offerchip__amount { font-size: 12px; color: var(--br-muted); }
.br-offerchip--on .br-offerchip__amount { color: inherit; }

.br-bundle__layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .br-bundle__layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
@media (max-width: 899px) { .br-bundle__side { order: -1; } }
.br-bundle__main { min-width: 0; }
.br-bundle__side { display: flex; flex-direction: column; gap: 12px; }
.br-bundle__side .br-deal { margin: 0; }
.br-bundle__card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.br-bundle__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.br-bundle__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.br-bundle__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-bundle__title { color: var(--br-text); font-weight: 600; text-decoration: none; }
.br-bundle__title:hover { text-decoration: underline; }
.br-bundle__item > .br-price { white-space: nowrap; }
.br-bundle__sums { padding-top: 12px; border-top: 1px solid var(--br-line); }
.br-bundle__offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.br-bundle__offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.br-bundle__offerwho { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.br-bundle__package { display: flex; flex-direction: column; gap: 8px; }
.br-deal__below { color: var(--br-accent); font-weight: 600; }
.br-deal__answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.br-deal__accept { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .br-pickcard .br-lcard__img, .br-pickcard__mark { transition: none; } }

/* --- Round 35 (owner, 2026-11-09) ------------------------------------------------------------------- */
/* R35-1: on the home page a listing card is one piece: the text sits on the card's own surface,
   joined to the photo above it. */
.br-home .br-lcard { background: var(--br-surface); border: 1px solid var(--br-line); border-radius: 6px; overflow: hidden; }
.br-home .br-lcard__img { border-radius: 0; }
.br-home .br-lcard__body { padding: 10px 12px 12px; }

/* R35-2: the listing form's category heading has its suggestion beside it, not a row of its own.
   One row of a fixed height, never wrapping, so a suggestion coming or going moves nothing (LST-031). */
.br-catpick__top { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.br-catpick__top > .br-field__label { flex: none; }
.br-catpick .br-suggest { min-height: 0; min-width: 0; flex: 0 1 auto; }
.br-catpick .br-suggest__chip { min-height: 32px; padding: 0 12px 0 8px; max-width: 100%; overflow: hidden; }
.br-catpick .br-suggest__chip > span { white-space: nowrap; }
.br-catpick .br-suggest__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* R35-3: the listing form's category tiles look like the home page's category cards (R33-6), narrower:
   the name on the card's surface at the bottom, the icon large and faint on the right, cut by the edge. */
.br-catpick .br-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.br-catpick .br-tile {
  position: relative; overflow: hidden; isolation: isolate; min-height: 68px; padding: 10px 12px;
  justify-content: flex-end; align-items: flex-start; text-align: start;
  background: var(--br-surface); border: 1px solid var(--br-line); border-radius: 6px; font: 600 14px/1.25 var(--br-font);
}
.br-catpick .br-tile .br-tr__on { text-align: start; }
.br-catpick .br-tile__icon {
  position: absolute; right: 0; top: 20%; height: 100%; aspect-ratio: 1; z-index: -1; pointer-events: none;
  opacity: .16; transform: translateX(14%);
  transition: transform var(--br-t-med) var(--br-ease), opacity var(--br-t-med) var(--br-ease);
}
.br-catpick .br-tile__icon svg { display: block; width: 100%; height: 100%; }
.br-catpick .br-tile--on { border: 1.5px solid var(--br-accent); background: var(--br-tint); color: var(--br-text); }
.br-catpick .br-tile--on .br-tile__icon { animation: none; opacity: .32; }
@media (hover: hover) { .br-catpick .br-tile:hover .br-tile__icon { opacity: .26; transform: translateX(14%) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .br-catpick .br-tile__icon { transition: none; } }

/* A tile's name sits on the bottom line whatever room its longest translation keeps (as R33-6). */
.br-catpick .br-tile__name .br-tr { display: grid; width: 100%; }
.br-catpick .br-tile__name .br-tr__on { align-self: stretch; align-content: end; }

/* NFR-029: while any dialog is open (a sheet, the photo editor, the photo viewer, filters), the page behind
   it stays still: no wheel, touch or keyboard scrolling. The dialog's own content still scrolls. The stable
   scrollbar gutter on html keeps the page from shifting sideways when its scrollbar goes. */
html:has(dialog[open]) { overflow: hidden; }
dialog[open] { overscroll-behavior: contain; }

/* --- search like a phone app (DECISIONS round 38) ------------------------------------------------------ */
/* The start screen (R38-1, SRC-044): the groups as tiles like the home cards, name at the top left and the
   icon cut off at the right; two columns on a phone, as many as fit (four to six) on wide screens. */
.br-browse { display: flex; flex-direction: column; gap: 16px; }
.br-cats.br-cats--browse {
  grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; grid-auto-rows: 1fr;
  gap: 10px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
}
.br-cats.br-cats--browse .br-cats__item {
  min-height: 88px; padding: 12px 14px; border-radius: var(--br-r-card); align-items: stretch; justify-content: flex-start;
  font-size: 15px; font-weight: 600; line-height: 1.25; white-space: normal; text-align: start;
}
.br-cats.br-cats--browse .br-cats__item .br-tr { display: grid; width: 100%; }
.br-cats.br-cats--browse .br-cats__item .br-tr__on { align-self: stretch; align-content: start; }
/* A tablet (R45-3): three in a row, as its cards. */
@media (min-width: 640px) and (max-width: 899px) { .br-cats.br-cats--browse { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .br-cats.br-cats--browse { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .br-cats.br-cats--browse .br-cats__item { min-height: 112px; padding: 16px 18px; font-size: 16px; }
}

/* The header of a list (R38-2, R38-3): back, the heading and the field. On a phone a result list's heading is only
   for screen readers; a group's list shows its name. */
.br-rhead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; margin-left: -8px; }
.br-rhead__title {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.br-rhead--group { grid-template-columns: auto minmax(0, 1fr) auto; }
.br-rhead--group .br-rhead__title, .br-rhead--group .br-rhead__title * { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
.br-rhead--group .br-rhead__title { font-size: 20px; line-height: 1.25; }
.br-rhead__field { min-width: 0; }
.br-rhead .br-searchbox__submit { display: none; }
.br-rhead .br-searchbox:has(.br-searchbox__submit) .br-searchbox__clear { right: 2px; }
@media (min-width: 900px) {
  .br-rhead { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 440px); }
  .br-rhead__title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: 28px; line-height: 1.2; }
  .br-rhead--group { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* A group's list (R38-2, SRC-045): "All", then a row per subcategory with its icon; three or four columns wide. */
.br-browse__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; border-top: 1px solid var(--br-line); }
.br-browse__list > li { min-width: 0; }
.br-browse__row {
  height: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 4px;
  border-bottom: 1px solid var(--br-line); color: var(--br-text); text-decoration: none; font-size: 16px; font-weight: 500;
}
.br-browse__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: var(--br-tint); color: var(--br-accent); }
.br-browse__name { flex: 1; min-width: 0; }
.br-browse__name .br-tr { display: grid; width: 100%; }
@media (hover: hover) { .br-browse__row:hover { color: var(--br-accent); } }
@media (min-width: 900px) {
  .br-browse__list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; }
}

/* The pills (R38-4, SRC-047): Filteri, then one per filter, all of one width (R24-9); the row scrolls sideways. */
.br-pills { position: relative; }
.br-pills__row {
  display: flex; gap: 8px; align-items: stretch; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 16px; scroll-padding-inline: 16px;
}
.br-pills__row::-webkit-scrollbar { display: none; }
.br-pills__row > .br-chip--filters { flex: none; }
.br-pills__same { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.br-pill { justify-content: space-between; background: var(--br-surface); border-color: var(--br-line); }
.br-pill > svg { flex: none; color: var(--br-muted); }
.br-pill__label { min-width: 0; text-align: start; }
.br-pill--on { border: 1.5px solid var(--br-accent); background: var(--br-tint); color: var(--br-accent); font-weight: 600; }
.br-pill--on > svg { color: currentColor; }
.br-pill[aria-expanded="true"] > svg { transform: rotate(180deg); }
.br-pill > svg { transition: transform var(--br-t-fast) var(--br-ease); }
.br-pill__n {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--br-r-chip);
  background: var(--br-accent-fill); color: var(--br-on-accent); font-size: 12px; font-weight: 700; line-height: 1;
}
.br-chip--filters-on .br-pill__n { background: var(--br-on-accent); color: var(--br-accent-fill); }
@media (min-width: 720px) { .br-pills__row { margin: 0; padding: 2px 0; } }
@media (prefers-reduced-motion: reduce) { .br-pill > svg { transition: none; } }

/* A pill's panel on wide screens: under its pill, inside the row's width. */
.br-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(400px, 100%); max-height: min(70vh, 560px);
  display: flex; flex-direction: column; background: var(--br-surface); border: 1px solid var(--br-line);
  border-radius: var(--br-r-card); box-shadow: 0 18px 48px rgba(17, 17, 17, .18);
}
.br-pop__body { overflow: auto; padding: 16px; }
.br-pop__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--br-line); }

/* The count and how results are ordered, on one line (R38-5, SRC-048). */
.br-search__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.br-search__meta .br-search__count { order: 0; margin: 0; flex: 1 1 auto; min-width: 0; min-height: 0; font-size: 14px; }
/* Plain text flow, so the link stays a link inside a line of text (NFR-003, WCAG 2.5.8). */
.br-search__meta .br-search__ranking { display: block; flex: none; margin: 0; text-align: end; white-space: nowrap; }
.br-search__ranking > svg { display: inline; vertical-align: -3px; margin-left: 6px; color: var(--br-accent); }

/* What the text fits while typing (R38-6, SRC-049). */
.br-searchbox .br-qsuggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; margin: 0; padding: 6px; list-style: none;
  background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-control);
  box-shadow: 0 18px 48px rgba(17, 17, 17, .18);
}
.br-qsuggest__row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 4px; cursor: pointer; color: var(--br-text); }
.br-qsuggest__row > svg { flex: none; color: var(--br-accent); }
.br-qsuggest__row[aria-selected="true"] { background: var(--br-tint); color: var(--br-accent); }
@media (hover: hover) { .br-qsuggest__row:hover { background: var(--br-tint); } }
.br-qsuggest__text { min-width: 0; overflow-wrap: anywhere; }
.br-filters--one > .br-fieldset > .br-field__label, .br-filters--one > .br-field > .br-field__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* Wide screens: the pills wrap instead of scrolling, still all one width. */
@media (min-width: 900px) {
  .br-pills__row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; overflow: visible; }
  .br-pills__same { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
  .br-pill__label { overflow: hidden; white-space: nowrap; }
}

/* The Profile tab's head: the member on the theme's surface, then two equal buttons (R24-9). */
.br-me { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--br-r-card); background: var(--br-surface); border: 1px solid var(--br-line); }
.br-me__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.br-me__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-me__name { margin: 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.br-me__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-me__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.br-me__action { min-width: 0; gap: 8px; padding-inline: 10px; font-size: 14px; }
.br-me__action > svg { flex: none; }
.br-me__action .br-tr__on { text-align: start; }

/* --- following and saved searches (S36, R40-5, R40-8, R40-9) ---------------------------------- */
.br-savesearch { flex: none; padding: 0 8px; min-height: 40px; }
.br-savesearch[aria-pressed="true"] { color: var(--br-accent); }
.br-lcard__badge--new { background: var(--br-accent-fill); color: var(--br-on-accent); }
.br-suggest { min-width: 0; max-width: 100%; }
.br-suggest__row { min-width: 0; max-width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 216px; justify-content: start; /* one width, so one height, however many (R45-6) */ gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0; padding: 0 0 4px; list-style: none; scroll-snap-type: x proximity; }
/* A seller card (R45-6): one thing per row, one line each, in the same order on every card, so every card is one height
   whatever it has: photo, name, rating, followers, three listings and Follow. */
.br-suggest__item { scroll-snap-align: start; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 14px 14px;
  border-radius: var(--br-r-card); background: var(--br-surface); text-align: center; }
.br-suggest__item.br-skel { min-height: 318px; }
/* R48-1: photo, name, rating and followers are one link; it takes a background, never an underline. The negative
   margin keeps the text where it was while the background reaches past it. */
.br-suggest__who { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; color: var(--br-text); text-decoration: none;
  margin: -8px -6px -4px; padding: 8px 6px 4px; border-radius: 4px; transition: background-color var(--br-t-fast) var(--br-ease);
  -webkit-tap-highlight-color: transparent; }
.br-suggest__who > .br-avatar { align-self: center; }
.br-suggest__who:active { background-color: var(--br-tint); }
.br-suggest__name { max-width: 100%; font-weight: 600; line-height: 22px; height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-suggest__line { display: block; height: 20px; line-height: 20px; font-size: 14px; color: var(--br-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.br-suggest__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.br-suggest__photo { aspect-ratio: var(--br-photo-ratio); border-radius: 4px; overflow: hidden; background: var(--br-raised); }
.br-suggest__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-suggest__item > .br-follow { width: 100%; }
/* The section of seller cards shares its name with the category suggestion chip, whose row centres it. */
.br-section.br-suggest { align-items: stretch; }
@media (hover: hover) { .br-suggest__who:hover { background-color: var(--br-tint); } }
.br-followed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.br-followed__who { display: flex; align-items: center; gap: 10px; color: var(--br-text); text-decoration: none; min-width: 0; }
.br-alert { display: flex; flex-direction: column; gap: 10px; }
.br-alert__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.br-alert__label { font-weight: 600; overflow-wrap: anywhere; }
.br-alert__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.br-alert__freq { display: flex; align-items: center; gap: 8px; }
.br-alert__select { width: 180px; min-height: 40px; }

/* --- sharing (DECISIONS round 42, SHR-003..SHR-007) --------------------------------------------------- */
/* What the link will show, at the card's own 1200:630, then the apps in two groups of equal tiles (R24-9). */
.br-share { display: flex; flex-direction: column; gap: 12px; }
.br-share__preview { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 4px; background: #101A2E; object-fit: cover; }
.br-share__head { margin: 4px 0 0; font: 600 15px/1.3 var(--br-font); color: var(--br-muted); }
.br-share__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.br-share__tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 92px; padding: 12px 6px 10px;
  border-radius: 6px; border: 1px solid var(--br-field); background: var(--br-surface); color: var(--br-text); text-align: center;
  font: 500 13px/1.25 var(--br-font); cursor: pointer; overflow-wrap: anywhere;
  transition: background var(--br-t-med) var(--br-ease), border-color var(--br-t-med) var(--br-ease);
}
.br-share__tile:disabled { cursor: progress; opacity: .8; }
.br-share__icon { display: inline-flex; color: var(--br-accent); }
.br-share__label { display: block; width: 100%; }
@media (hover: hover) { .br-share__tile:hover:not(:disabled) { border-color: var(--br-accent); background: var(--br-tint); } }
.br-share__status { min-height: 1.5em; margin: 0; color: var(--br-muted); }
/* Every share button reads "Podeli" beside its icon (R45-12); as tall as an icon button, so it fits beside one. */
.br-sharebtn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px 0 12px; }

/* The listing's share and favourite buttons side by side; a search's and a category's share at the end of their header. */
.br-item__headbtns { display: flex; flex: none; gap: 8px; align-items: center; }
.br-item__headbtns .br-iconbtn { background: var(--br-raised); border-radius: var(--br-r-control); }
.br-rhead:has(.br-rhead__share) { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (min-width: 900px) {
  .br-rhead:has(.br-rhead__share) { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 440px) auto; }
}
.br-home__share { color: inherit; border: 1.5px solid currentColor; border-radius: var(--br-r-control); }

/* The invitation page (RFR-004) and promo credit at checkout (PRM-005). */
.br-invite__numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.br-invite__numbers > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.br-invite__n { font-size: 22px; line-height: 1.2; }
.br-pay__promo { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--br-accent-2); }
@media (prefers-reduced-motion: reduce) { .br-share__tile { transition: none; } }

/* --- BRRM screens: browse, listing, sell, messages, profiles, organizations, admin -------------------- */
ul.br-cats, .br-minelist, .br-inbox, .br-ratings, .br-locations, .br-recent, .br-pills, .br-grid, .br-admin__thumbs,
.br-thread__messages { list-style: none; margin: 0; padding: 0; }
.br-cats > li { display: flex; min-width: 0; }
.br-cats > li > .br-cats__item { flex: 1; }
button.br-cats__item { font: inherit; cursor: pointer; }
.br-cats__item--on { border-color: var(--br-accent); background: var(--br-tint); }
/* A tile with its count of listings: the count in the top corner, out of the name's way. */
.br-cats__item--count { position: relative; padding-top: 26px; }
.br-cats .br-cats__item .br-cats__count { position: absolute; top: 8px; inset-inline-start: 12px; font-weight: 400; }
.br-cats .br-cats__item .br-cats__count .br-tr { display: inline-grid; width: auto; }
@media (min-width: 900px) { .br-cats:not(.br-cats--sub) .br-cats__item--count { min-height: 96px; padding-top: 34px; } .br-cats .br-cats__item .br-cats__count { top: 12px; inset-inline-start: 16px; } }

.br-hero { padding: 40px 0 24px; }
.br-hero .br-container { display: flex; flex-direction: column; gap: 16px; }
.br-hero__title { font-size: clamp(34px, 6vw, 72px); font-weight: 900; line-height: 0.98; max-width: 16ch; text-transform: uppercase; }

/* The market: Serbia, Montenegro or both (MKT-001). */
.br-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--br-r-control);
  background: var(--br-raised); align-self: flex-start; }
.br-seg__item { min-height: 44px; border: 0; background: transparent; color: var(--br-muted); font: inherit; font-weight: 600; padding: 8px 16px;
  border-radius: calc(var(--br-r-control) - 4px); cursor: pointer; transition: background-color .2s, color .2s; }
.br-seg__item--on { background: var(--br-surface); color: var(--br-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
@media (hover: hover) { .br-seg__item:not(.br-seg__item--on):hover { color: var(--br-text); } }

.br-searchbox { display: flex; gap: 8px; }
.br-searchbox .br-input { flex: 1; min-width: 0; }
.br-search { display: flex; flex-direction: column; gap: 16px; }
.br-search__results { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.br-sort { max-width: 280px; }
.br-premium { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--br-r-card); background: var(--br-tint); }
.br-showmore { align-self: center; }
.br-lcard__badge--sponsored { background: var(--br-accent-fill); color: var(--br-on-accent); }
.br-required { color: var(--br-bad); }
.br-strong { font-weight: 600; }

/* The listing page. */
.br-item__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.br-sellerbox, .br-contact { display: flex; flex-direction: column; gap: 12px; }
.br-seller__row { display: flex; align-items: center; gap: 12px; }
.br-seller__row .br-seller__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-details__row { min-width: 0; }

/* The listing form. */
.br-wizsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: step; }
.br-wizsteps__item { counter-increment: step; font-size: 13px; color: var(--br-muted); padding-top: 10px; border-top: 3px solid var(--br-line);
  transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.br-wizsteps__item::before { content: counter(step) ". "; }
.br-wizsteps__item--done { border-top-color: var(--br-accent); }
.br-wizsteps__item--on { border-top-color: var(--br-accent); color: var(--br-text); font-weight: 600; }
.br-sellform { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.br-sellactions { display: flex; gap: 8px; justify-content: flex-end; }
.br-sellphotos { display: flex; flex-direction: column; gap: 12px; }
.br-sellphotos .br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.br-sellphoto { position: relative; border-radius: var(--br-r-control); overflow: hidden; aspect-ratio: 4 / 3; background: var(--br-raised); }
.br-sellphoto img { width: 100%; height: 100%; object-fit: cover; }
.br-sellphoto .br-iconbtn { position: absolute; top: 6px; right: 6px; background: var(--br-surface); }
.br-minerow--off { opacity: .6; }

/* Messages. */
.br-inbox { display: flex; flex-direction: column; gap: 8px; }
.br-inbox__link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.br-inbox__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-inbox__who { font-weight: 600; }
.br-inbox__row--unread .br-inbox__who { color: var(--br-accent); }
.br-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 4px; background: var(--br-accent-fill); color: var(--br-on-accent);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.br-thread { display: flex; flex-direction: column; gap: 12px; }
.br-thread__messages { display: flex; flex-direction: column; gap: 8px; }
.br-bubble { align-self: flex-start; max-width: min(80%, 560px); padding: 10px 14px; border-radius: 6px 6px 6px 4px; background: var(--br-surface);
  display: flex; flex-direction: column; gap: 4px; animation: br-bubble-in .25s ease-out; }
.br-bubble p { margin: 0; }
.br-bubble--mine { align-self: flex-end; border-radius: 6px 6px 4px 6px; background: var(--br-tint); }
@keyframes br-bubble-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .br-bubble { animation: none; } }
.br-thread__form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; padding: 8px 0; background: var(--br-bg); }
.br-thread__form .br-textarea { flex: 1; }

/* Profiles and companies. */
.br-profile { display: flex; align-items: center; gap: 16px; }
.br-locations, .br-ratings { display: flex; flex-direction: column; gap: 8px; }
.br-locations .br-statuschip { margin-inline-start: 8px; }
.br-hours { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 8px 0 0; }
.br-hours__row { display: contents; }
.br-hours dt { color: var(--br-muted); }
.br-hours dd { margin: 0; }
.br-recent { display: flex; flex-direction: column; gap: 6px; }
.br-tile__n { font-family: var(--br-display); font-size: 22px; }
.br-admin__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
/* Subcategory and step pills (search, the listing form). */
/* One size for every pill: the widest one's, in any language (I18-014); a row that scrolls when it is wider. */
nav.br-pills, ul.br-pills { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.br-pills > li { display: grid; }
.br-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--br-line); border-radius: var(--br-r-control);
  font: inherit; font-size: 14px; color: var(--br-text); cursor: pointer; transition: border-color .2s, background-color .2s; }
@media (hover: hover) { .br-pill:not(.br-pill--on):hover { border-color: var(--br-accent); } }
/* The audit log's filters and its old and new values (AUD-003). */
.br-admin__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin-bottom: 12px; }
.br-audit__values { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 32ch; }
@media (max-width: 899px) {
  .br-search__layout { flex-direction: column; align-items: stretch; }
  .br-filters__open { align-self: flex-start; }
}
.br-pill { min-height: 44px; }
/* A long title never squeezes the back button below its touch size (NFR-003). */
.br-pagehead > .br-iconbtn { flex: none; }
/* The market: in the footer on wide screens, in the top bar beside language and theme under 900 px (R2-48), and the
   first visit's choice of market under the header (MKT-003). */
.br-marketbtn { gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; }
.br-marketbtn svg { flex: none; }
.br-welcome { background: var(--br-tint); border-bottom: 1px solid var(--br-line); }
.br-welcome__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.br-welcome__title { margin: 0; font-size: 16px; font-weight: 600; }
.br-welcome__row .br-seg { flex: 1 1 280px; max-width: 420px; }
.br-welcome__row .br-iconbtn { margin-inline-start: auto; }
@media (max-width: 899px) { .br-mobilebar__market .br-tr { display: none; } }
/* One width in every language: a select is as wide as the name it shows. */
.br-welcome__lang .br-input { min-height: 44px; width: 13rem; max-width: 100%; }

/* The map on search (SRC-006): list or map, and the map itself; Leaflet's own rules are in leaflet.css. */
/* The sort keeps a set width (UI-RULES §2): in a row, a select would follow its options' text. */
.br-search__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.br-search__tools .br-sort { flex: 0 1 280px; min-width: 0; }
.br-search__tools .br-sort select { width: 100%; min-width: 0; }
.br-viewswitch { flex: 0 0 auto; min-width: 200px; }
.br-map { display: flex; flex-direction: column; gap: 12px; }
/* The sell wizard's point picker (SRC-015): smaller than the search map. */
.br-map--picker .br-map__canvas { height: 300px; min-height: 260px; }
.br-map__canvas { position: relative; z-index: 0; height: min(62vh, 560px); min-height: 360px; border-radius: var(--br-r-card);
  overflow: hidden; border: 1px solid var(--br-line); background: var(--br-raised); }
.br-map__canvas .leaflet-container { font: 12px var(--br-font); }
.br-map__canvas path.br-map__pin { fill: var(--br-accent); fill-opacity: .9; stroke: var(--br-surface); stroke-width: 2; cursor: pointer;
  transition: fill-opacity var(--br-t-fast) var(--br-ease); }
@media (hover: hover) { .br-map__canvas path.br-map__pin:hover { fill-opacity: 1; } }
.br-map__selected .br-cards { grid-template-columns: minmax(0, 360px); }
.br-admin__agent { display: inline-block; max-width: 220px; vertical-align: bottom; }

/* Plans and subscribing (PLN-007, SUB-001..SUB-015, INV-003). Plan cards are one size (UI-RULES §6). */
.br-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.br-plan { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.br-plan--on { box-shadow: 0 0 0 2px var(--br-accent); }
.br-plan__name { margin: 0; font-size: 22px; }
.br-plan__price { margin: 0; font-size: 20px; font-weight: 600; }
.br-plan__list, .br-plan__terms { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.br-plan__cta { margin-top: auto; align-self: stretch; text-align: center; }
.br-subscribe { display: flex; flex-direction: column; gap: 16px; }
.br-subscribe .br-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: br-step; }
.br-subscribe .br-steps__item { counter-increment: br-step; padding: 8px 10px; border-radius: var(--br-r-control); background: var(--br-raised); color: var(--br-muted); font-size: 13px; text-align: center; }
.br-subscribe .br-steps__item::before { content: counter(br-step) ". "; }
.br-subscribe .br-steps__item[aria-current="step"] { background: var(--br-accent-fill); color: var(--br-on-accent); }
.br-subscribe .br-steps__item--done { color: var(--br-text); }
@media (max-width: 599px) { .br-subscribe .br-steps { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); } .br-subscribe .br-steps__item { font-size: 11px; padding: 6px 2px; } }
.br-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.br-inline .br-field { flex: 1 1 200px; }
.br-note--warn { border-left: 3px solid var(--br-warn); }
.br-tablewrap { overflow-x: auto; }
.br-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.br-table th, .br-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--br-line); white-space: nowrap; }
.br-table th { color: var(--br-muted); font-weight: 600; }

/* --- BRM RENT (WEB-12, WEB-13, RNT-01..07) ------------------------------------------------------------ */
.br-rent__filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.br-rent__photo { aspect-ratio: var(--br-photo-ratio); border-radius: var(--br-radius, 4px); overflow: hidden; background: var(--br-surface-2, var(--br-line)); }
.br-rent__photo img { width: 100%; height: 100%; object-fit: contain; }
.br-rent__status { white-space: nowrap; }
.br-rent__status--confirmed, .br-rent__status--active, .br-rent__status--completed { color: var(--br-accent); }
.br-rent__status--declined, .br-rent__status--expired, .br-rent__status--cancelled { color: var(--br-muted); }
.br-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.br-list__item, .br-list__link { display: flex; align-items: center; gap: 12px; }
.br-list__link { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.br-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.br-list__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- BRM PROVERA badges (PRV-009) ---------------------------------------------------------------------- */
.br-provera__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.br-provera__badge { text-decoration: none; color: var(--br-accent); }

/* --- BRM UPOREDI, CENOMETAR, LAKŠI DOGOVOR (WEB-08, WEB-09, WEB-11) --------------------------------------- */
/* Beside the favourite button, never on it: each keeps its whole 44 px (NFR-052). */
.br-lcard__cmp { position: absolute; top: 6px; right: 50px; }
.br-cmptray {
  position: fixed; z-index: 15; right: 16px; bottom: calc(var(--br-tabbar-h) + 12px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(360px, calc(100vw - 32px));
}
.br-cmptray__problem {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 6px;
  border: 1.5px solid var(--br-warn); background: var(--br-surface);
}
@media (min-width: 900px) { .br-cmptray { bottom: 20px; } }
.br-compare { overflow-x: auto; }
.br-compare__table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 640px; }
.br-compare__table th, .br-compare__table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--br-field); }
.br-compare__table tbody th { font-weight: 500; color: var(--br-muted); width: 180px; }
.br-compare__corner { width: 180px; }
.br-compare__head { font-weight: 400; }
.br-compare__head > * { display: block; margin-bottom: 8px; }
.br-compare__photo { aspect-ratio: var(--br-photo-ratio); overflow: hidden; border-radius: 4px; background: var(--br-field); }
.br-compare__photo img { width: 100%; height: 100%; object-fit: cover; }
.br-compare__title { font-weight: 600; color: inherit; }
.br-compare__row--differs td { background: color-mix(in srgb, var(--br-accent) 12%, transparent); font-weight: 600; }
.br-cenometar__median { font-size: 32px; margin: 0; }
.br-cenometar__confidence { align-self: flex-start; }
.br-cenometar__confidence--high { color: var(--br-accent); }
.br-dogovor__kinds { list-style: none; padding: 0; margin: 16px 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* LAKŠI DOGOVOR: one column per partner, all the same size (LDG-007, R24-9). */
.br-dogovor__offers { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.br-dogovor__offer[data-status="closed"], .br-dogovor__offer[data-status="declined"], .br-dogovor__offer[data-status="cancelled"] { opacity: .62; }
.br-dogovor__offer[data-status="accepted"] { border-color: var(--br-accent); }
/* The answers stack, full width, so a column is as tall in every language (I18-011). */
.br-dogovor__offer .br-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; }
.br-dogovor__offer .br-actions .br-btn { width: 100%; }
/* P2P: the application's fields. */
.br-p2p__form { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: end; }
.br-plainlist { list-style: none; margin: 0; padding: 0; }
.br-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.br-item__tools { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.br-footer__modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 20px; }

/* --- the RENT partner's fleet (RNT-01, RNT-06) ------------------------------------------------------------ */
.br-fleet__fee, .br-fleet__range { border: 1px solid var(--br-field); border-radius: 4px; padding: 12px; margin: 0; min-width: 0; }
.br-fleet__range { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
/* A text button inside a sentence: "Mašinski prevod · Prikaži original" (I18-019). */
.br-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--br-accent); text-decoration: underline; cursor: pointer; }
.br-item__translated { margin-top: -4px; }

/* Key numbers (credits, statistics; R2-34, R2-35): one size for every tile of a group (UI-RULES §6). */
.br-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.br-kpi { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; }
.br-kpi__n { font: 700 22px/1.15 var(--br-font); font-variant-numeric: tabular-nums; }
.br-kpi__label { color: var(--br-muted); font-size: 13px; }
.br-segments__item[aria-pressed="true"] { background: var(--br-surface); color: var(--br-text); box-shadow: 0 0 0 1px var(--br-line); }
/* The statistics chart (STA-007): bars per bucket, promotions as bands behind them. */
.br-chart { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin: 0; }
.br-chart__svg { width: 100%; height: 180px; display: block; }
.br-chart__views { fill: var(--br-accent); }
.br-chart__impressions { fill: var(--br-line); }
.br-chart__promo { fill: var(--br-accent); opacity: .1; }
.br-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--br-muted); font-size: 13px; }
.br-chart__key { display: inline-flex; align-items: center; gap: 6px; }
.br-chart__key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--br-line); }
.br-chart__key--views::before { background: var(--br-accent); }
.br-chart__key--promo::before { background: var(--br-accent); opacity: .25; }

/* --- every width, from 320 px to 1920 px (NFR-003, NFR-052, NFR-053, DECISIONS R2-47) ------------------------------- */

/* A home category tile's count sits in its corner above the name on a phone's row too: the row's padding must not
   undo the room the count is given (CAT-017). */
@media (max-width: 899px) {
  .br-cats:not(.br-cats--sub) .br-cats__item--count { padding-top: 26px; padding-bottom: 8px; }
}

/* Text whose words must set its box's width: a tab, a table cell, a step, a badge. ui/tx lets text shrink to nothing
   by default (for fields that end in an ellipsis); here no word is ever narrower than itself, so a row that cannot fit
   scrolls in its own box rather than drawing one word over the next. */
.br-tabs > .br-tabs__tab .br-tr,
.br-admin__table .br-tr,
.br-subscribe .br-steps__item .br-tr,
.br-provera__badge .br-tr { grid-template-columns: minmax(min-content, 1fr); }

/* A sheet's body scrolls; what is in it keeps its whole height, so the last language of a list is never hidden under
   the next heading. */
.br-sheet__body > * { flex-shrink: 0; }

/* The subscription's steps: five equal columns of the row's width, whatever the generic step list's columns are. */
.br-subscribe .br-steps { grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }

/* Staff tables keep their columns: a date on its own lines, values wrapping only between words, and a table wider
   than its card scrolls inside it (.br-admin__wrap). */
.br-admin__table td { min-width: 9ch; }
.br-audit__values { overflow-wrap: break-word; min-width: 24ch; max-width: 44ch; }
.br-admin__select { width: 100%; }
.br-admin__who-body .br-ellipsis:not(strong) { white-space: normal; overflow: visible; text-overflow: clip; }

/* A technical example (an import's columns) wraps rather than widening the page. */
.br-code { overflow-wrap: anywhere; }

/* The photo row of a listing on a phone or tablet starts under the welcome banner, never over it. */
.br-app:has(.br-welcome) .br-strip { margin-top: 0; }

/* A PROVERA badge's words wrap inside it on a narrow screen. */
.br-provera__badge { white-space: normal; flex-wrap: wrap; max-width: 100%; row-gap: 0; padding-block: 6px; }

/* A card's title and its facts each have two lines, the same two for every card so that a row of cards stays one size
   (I18-014). The facts always fit in them; a title longer than two lines shows whole in its tooltip. */
.br-lcard__title, .br-lcard__meta {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3;
  overflow: hidden; text-overflow: clip;
}
.br-lcard__title { min-height: calc(2 * 1.3em); }
.br-lcard__meta { min-height: calc(2 * 1.3em); }
.br-minerow__title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Touch targets of at least 44 px on a touch screen (NFR-003), the staff area included. */
@media (max-width: 767px) {
  .br-admin__link { min-height: 44px; }
  .br-segments__item { min-height: 44px; min-width: 44px; }
  .br-admin__linkish { min-height: 44px; }
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  .br-page > a, .br-nextstep > a, .br-seller__name > a, a.br-minerow__title { display: inline-flex; align-items: center; min-height: 44px; }
}
/* A narrow phone: a listing row's price goes under its title, which keeps the row's whole width; the staff area's
   margins are 12 px, so a field's chosen text has the room it needs. */
@media (max-width: 479px) {
  .br-minerow__head { flex-direction: column; gap: 2px; }
  .br-minerow__head .br-minerow__price { text-align: start; }
}
@media (max-width: 399px) {
  .br-admin__main, .br-admin__card { padding-inline: 12px; }
}
/* A page head: the title takes the room between its buttons and wraps its words there, rather than pushing the
   buttons onto lines of their own; its longest word is still never cut (R2-47). */
.br-pagehead--between > .br-page__title { flex: 1 1 0; }
.br-pagehead--between > .br-page__title .br-tr { grid-template-columns: minmax(min-content, 1fr); }
/* A header that never wraps reserves every language's whole line, not its words: its column is then as wide in every
   language, however tightly the table is squeezed (I18-011). */
.br-admin__table th .br-tr[data-a]::before, .br-table th .br-tr[data-a]::before { white-space: pre; }

/* A member's billing table, like the staff's: cells keep their words, the table scrolls in its box, and its document
   links are 44 px to tap on a phone (NFR-003). */
.br-table .br-tr { grid-template-columns: minmax(min-content, 1fr); }
@media (max-width: 767px) { .br-table td > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; } }
/* A list's title wraps rather than ending in an ellipsis: what a row is must be read whole (R2-47). */
.br-list__title { white-space: normal; overflow: visible; text-overflow: clip; }

/* --- R2-50: the home page, search and the listing page, laid out as a vehicle marketplace ------------------- */

/* The hero's search box is a light panel in the light theme and a dark one in the dark theme, inside the black hero. */
.br-herosearch {
  color-scheme: light;
  --br-bg: #F4F4F4; --br-surface: #FFFFFF; --br-raised: #EBEBEB; --br-line: #D9D9D9; --br-field: #767676;
  --br-text: #111111; --br-muted: #666666; --br-accent: #C4001D; --br-tint: rgba(230, 0, 35, 0.08);
  --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .br-herosearch {
    color-scheme: dark;
    --br-bg: #111111; --br-surface: #242424; --br-raised: #2C2C2C; --br-line: #353535; --br-field: #8A8A8A;
    --br-text: #FFFFFF; --br-muted: #CCCCCC; --br-accent: #FF6B78; --br-tint: rgba(230, 0, 35, 0.16);
    --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] .br-herosearch {
  color-scheme: dark;
  --br-bg: #111111; --br-surface: #242424; --br-raised: #2C2C2C; --br-line: #353535; --br-field: #8A8A8A;
  --br-text: #FFFFFF; --br-muted: #CCCCCC; --br-accent: #FF6B78; --br-tint: rgba(230, 0, 35, 0.16);
  --br-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.br-hero__inner { display: flex; flex-direction: column; gap: 14px; }
.br-hero__lead { color: var(--br-muted); font-size: 17px; }
.br-herosearch {
  flex-direction: column; align-items: stretch; gap: 14px; margin-top: 8px; padding: 14px;
  background: var(--br-surface); color: var(--br-text); border-radius: var(--br-r-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); max-width: 1120px;
}
.br-herosearch__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.br-herosearch__fields .br-field { min-width: 0; }
.br-herosearch__fields select { width: 100%; min-width: 0; }
/* One height in every language: a select's text would otherwise set it, and Cyrillic sits 2 px taller (I18-011). */
.br-herosearch__fields .br-input, .br-advanced__makes .br-input { height: 48px; max-height: 48px; field-sizing: fixed; white-space: nowrap; overflow: hidden; }
.br-herosearch__money { position: relative; display: block; }
.br-herosearch__money .br-input { width: 100%; padding-right: 64px; }
.br-herosearch__currency { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--br-muted); pointer-events: none; }
.br-herosearch__go { grid-column: 1 / -1; min-height: 56px; font-size: 16px; }
.br-herosearch__more { align-self: flex-end; min-height: 44px; display: inline-flex; align-items: center; color: var(--br-accent); font-weight: 700; text-decoration: none; }
.br-herosearch__more:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .br-hero { padding-block: 56px 64px; }
  .br-herosearch { padding: 18px 20px 8px; }
  .br-herosearch__fields { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.2fr); }
  .br-herosearch__go { grid-column: auto; }
}

/* Category tiles: Zgrabi's card (R33-6) in Racing Red: the icon on the right behind the name, as tall as the card and
   cut off by its bottom edge; the name at the bottom in the display face, the count in the top corner. */
.br-cats:not(.br-cats--sub) .br-cats__item--count .br-cats__art { color: var(--br-accent-fill); opacity: .8; }
@media (hover: hover) { .br-cats:not(.br-cats--sub) .br-cats__item--count:hover .br-cats__art { opacity: 1; } }
@media (min-width: 900px) {
  /* Two rows of the name exactly under the count's line, so the name's room is never more than two rows (CAT-017). */
  .br-cats:not(.br-cats--sub) .br-cats__item--count { min-height: 94px; padding-top: 36px; padding-bottom: 14px; }
  .br-cats:not(.br-cats--sub) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .br-cats:not(.br-cats--sub) .br-cats__item--count .br-cats__name { font-family: var(--br-display); font-weight: 800; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
}

/* The most-listed makes: names in the display face, a red rule under the one pointed at. */
.br-makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.br-makes__item {
  height: 100%; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px;
  background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card); color: var(--br-text); text-decoration: none;
  transition: border-color var(--br-t-med) var(--br-ease), box-shadow var(--br-t-med) var(--br-ease);
}
.br-makes__name { font-family: var(--br-display); font-weight: 800; font-size: 20px; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
@media (hover: hover) { .br-makes__item:hover { border-color: var(--br-text); box-shadow: inset 0 -3px 0 var(--br-accent-fill); } }

/* "Selling a vehicle?": a black band across the page with two offers. */
.br-band {
  margin-block: 8px; padding-block: 40px; background: var(--br-space); color: var(--br-space-text); position: relative; overflow: hidden;
  color-scheme: dark;
  --br-bg: #111111; --br-surface: #242424; --br-raised: #2C2C2C; --br-line: #353535; --br-field: #8A8A8A;
  --br-text: #FFFFFF; --br-muted: #CCCCCC; --br-accent: #FF6B78; --br-tint: rgba(230, 0, 35, 0.16);
}
.br-band::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40px; width: 36px; background: var(--br-accent-fill); transform: skewX(-28deg); pointer-events: none; }
.br-band__inner { position: relative; display: grid; gap: 20px; }
.br-band__title { font-size: clamp(30px, 4vw, 48px); line-height: 1; text-transform: uppercase; }
.br-band__cards { display: grid; gap: 12px; }
.br-band__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card); }
.br-band__card .br-btn { margin-top: auto; }
.br-band__card-title { font-family: var(--br-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.br-band .br-btn--secondary { color: var(--br-text); border-color: var(--br-text); }
@media (min-width: 900px) {
  .br-band { padding-block: 56px; }
  .br-band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 32px; }
  .br-band__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}

/* The BRRM services: one look for all of them, black and red; only the name and the icon change (§07). */
.br-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.br-services > li { display: flex; }
.br-services__item {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 140px;
  background: var(--br-surface); border: 1px solid var(--br-line); border-top: 3px solid var(--br-text); border-radius: var(--br-r-card);
  color: var(--br-text); text-decoration: none;
  transition: border-color var(--br-t-med) var(--br-ease), transform var(--br-t-fast) var(--br-ease);
}
.br-services__icon { color: var(--br-accent); line-height: 0; margin-bottom: 6px; }
.br-services__name { font-family: var(--br-display); font-weight: 800; font-size: 20px; line-height: 1.05; text-transform: uppercase; }
@media (hover: hover) { .br-services__item:hover { border-top-color: var(--br-accent-fill); transform: var(--br-hover-lift); } }

/* The home page's sections breathe apart; the hero sits flush under the header. */
.br-hero ~ .br-section { margin-top: 28px; }
.br-hero ~ .br-band { margin-top: 40px; }
.br-hero ~ .br-band + .br-section { margin-top: 32px; margin-bottom: 40px; }
@media (min-width: 900px) { .br-hero ~ .br-section { margin-top: 48px; } .br-hero ~ .br-band { margin-top: 56px; } }

/* A selected segment is Racing Red (selections, §02); in the hero's search the category tabs are underlined. */
.br-seg__item--on { background: var(--br-accent-fill); color: var(--br-on-accent); box-shadow: none; }

/* Search (SRC-043): the chosen filters as chips, the filters as a panel at the left, the count in the display face. */
.br-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.br-chosen__chip {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; max-width: 100%;
  border: 1.5px solid var(--br-accent-fill); border-radius: var(--br-r-chip); background: var(--br-tint); color: var(--br-text);
  font: 600 14px var(--br-font); cursor: pointer; text-align: start;
}
.br-chosen__chip > svg { flex: none; color: var(--br-accent); }
.br-chosen__chip .br-tr { min-width: 0; }
.br-chosen__clear { min-height: 44px; padding: 0 6px; font-weight: 700; }
@media (min-width: 900px) {
  .br-search__layout > .br-filters {
    flex: 0 0 300px; padding: 18px; background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card);
    box-shadow: inset 0 3px 0 var(--br-text);
  }
  .br-search__count { font-family: var(--br-display); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--br-text); text-transform: uppercase; }
}

/* A row card: the photo at the left, the words beside it (SRC-043), from 1100 px; narrower, the grid of cards stays.
   Every row is one height whatever its words (I18-014): two lines for the title, two rows kept for the facts. */
.br-lcard__facts, .br-lcard__where { display: none; }
@media (min-width: 1100px) {
  .br-grid.br-rows { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .br-lcard--row { height: 240px; background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card); overflow: hidden;
                   transition: border-color var(--br-t-med) var(--br-ease), box-shadow var(--br-t-med) var(--br-ease); }
  .br-lcard--row .br-lcard__link { flex-direction: row; align-items: stretch; height: 100%; }
  .br-lcard--row .br-lcard__img { flex: none; width: auto; height: 100%; aspect-ratio: var(--br-photo-ratio); border-radius: 0; }
  .br-lcard--row .br-lcard__body { flex: 1; min-width: 0; padding: 14px 16px; gap: 4px; }
  .br-lcard--row .br-lcard__title { order: 1; font-size: 16px; font-weight: 700; padding-inline-end: 96px; min-height: calc(2 * 1.3em); }
  .br-lcard--row .br-lcard__price { order: 2; font-size: 26px; line-height: 1.05; }
  .br-lcard--row .br-lcard__approx { order: 3; }
  .br-lcard--row .br-lcard__meta { display: none; }
  .br-lcard--row .br-lcard__facts { order: 4; display: flex; align-content: flex-start; height: calc(2 * 30px + 6px); overflow: hidden; margin-top: 2px; }
  .br-lcard--row .br-lcard__where { order: 5; display: block; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--br-line);
                                    font-size: 14px; line-height: 20px; color: var(--br-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                                    --br-lead: 16px; --br-lead-gap: 6px; padding-inline-start: 22px; }
  .br-lcard--row .br-lcard__fav { top: 10px; right: 10px; }
  .br-lcard--row .br-lcard__cmp { top: 10px; right: 56px; }
  @media (hover: hover) { .br-lcard--row:hover { border-color: var(--br-text); box-shadow: inset 4px 0 0 var(--br-accent-fill); } }
}

/* Facts: small chips with a line icon, one per fact; each holds its longest word (UI-RULES §7). */
.br-facts { flex-wrap: wrap; gap: 6px; }
.br-facts__item {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px 4px calc(16px + 6px + 10px); border-radius: var(--br-r-chip);
  background: var(--br-raised); color: var(--br-text); font-size: 13px; font-weight: 500; white-space: nowrap;
  --br-lead: 16px; --br-lead-gap: 6px;
}
.br-facts__item .br-tr__lead { color: var(--br-muted); }

/* The listing page (SRC-046): a way back, the key facts as tiles, sections with their headings at the left. */
.br-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 12px; }
.br-item__top .br-crumbs { flex: 1 1 0; min-width: 0; }
.br-back { --br-lead: 18px; --br-lead-gap: 6px; min-height: 44px; display: inline-flex; align-items: center; color: var(--br-accent); font-weight: 700; text-decoration: none; }
.br-back:hover { text-decoration: underline; }

.br-keyfacts__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--br-line);
                     border: 1px solid var(--br-line); border-radius: var(--br-r-card); overflow: hidden; }
.br-keyfacts__item { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
                     padding: 12px 14px; background: var(--br-surface); }
.br-keyfacts__icon { grid-row: 1 / 3; color: var(--br-accent); line-height: 0; }
.br-keyfacts__label { font-size: 13px; color: var(--br-muted); }
.br-keyfacts__value { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@container (min-width: 560px) { .br-keyfacts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.br-item__media > .br-section { padding-top: 18px; border-top: 1px solid var(--br-line); }
.br-item__media > .br-section > .br-section__title { font-family: var(--br-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
@container (min-width: 640px) {
  .br-item__media > .br-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .br-item__media > .br-section > .br-section__title { grid-column: 1; }
  .br-item__media > .br-section > :not(.br-section__title) { grid-column: 2; }
}
.br-item__media .br-details { border: 1px solid var(--br-line); }
.br-item__tools { margin: 0; }
.br-item__tool { --br-lead: 20px; --br-lead-gap: 10px; min-height: 48px; display: flex; align-items: center; padding-block: 8px; padding-inline-end: 14px;
                 background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-control);
                 color: var(--br-text); font-weight: 600; text-decoration: none; }
.br-item__tool { padding-inline-start: calc(14px + 20px + 10px); }
.br-item__tool .br-tr__lead { color: var(--br-accent); }
@media (hover: hover) { .br-item__tool:hover { border-color: var(--br-text); } }

/* The side panel: the title and the price in the display face, the place with its pin, a black rule on top. */
@media (min-width: 900px) {
  .br-item__side { padding: 20px; background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card); box-shadow: inset 0 3px 0 var(--br-text); }
  .br-item__side > .br-card { border: 1px solid var(--br-line); }
}
.br-item__title { font-family: var(--br-display); font-weight: 800; font-size: 30px; line-height: 1.05; }
.br-item__price { font-size: 38px; line-height: 1; }
.br-item__place { --br-lead: 18px; --br-lead-gap: 6px; }
.br-item__similar { margin-top: 40px; margin-bottom: 24px; }

/* The hero's categories as icons with their names under them; the chosen one red and underlined (R2-50). */
.br-herosearch__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); overflow-x: auto; scrollbar-width: none;
                       border-bottom: 1px solid var(--br-line); margin-inline: -4px; }
.br-herosearch__tab {
  min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 10px 6px 12px;
  border: 0; border-radius: 0; background: transparent; color: var(--br-muted); font: 600 13px/1.2 var(--br-font); text-align: center; cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent; transition: color var(--br-t-med) var(--br-ease), box-shadow var(--br-t-med) var(--br-ease);
}
.br-herosearch__tabicon { line-height: 0; color: var(--br-text); transition: color var(--br-t-med) var(--br-ease), transform var(--br-t-fast) var(--br-ease); }
.br-herosearch__tabname { display: grid; width: 100%; min-width: 0; }
.br-herosearch__tab--on { color: var(--br-text); box-shadow: inset 0 -3px 0 var(--br-accent-fill); }
.br-herosearch__tab--on .br-herosearch__tabicon { color: var(--br-accent-fill); }
@media (hover: hover) {
  .br-herosearch__tab:not(.br-herosearch__tab--on):hover { color: var(--br-text); }
  .br-herosearch__tab:not(.br-herosearch__tab--on):hover .br-herosearch__tabicon { color: var(--br-accent-fill); transform: var(--br-hover-lift); }
}
/* A name that runs over its card's red icon keeps a halo of the card's colour, so it reads in full. */
.br-cats:not(.br-cats--sub) .br-cats__item--count .br-cats__name {
  text-shadow: 2px 0 0 var(--br-surface), -2px 0 0 var(--br-surface), 0 2px 0 var(--br-surface), 0 -2px 0 var(--br-surface), 2px 2px 0 var(--br-surface), -2px -2px 0 var(--br-surface), 2px -2px 0 var(--br-surface), -2px 2px 0 var(--br-surface), 3px 0 0 var(--br-surface), -3px 0 0 var(--br-surface), 0 3px 0 var(--br-surface), 0 -3px 0 var(--br-surface), 0 0 8px var(--br-surface);
}

/* Detaljna pretraga (SRC-050): the categories as icons, then every filter in two columns, and a bar that stays at the
   bottom of the screen with the chosen filters and the count. */
.br-advanced { gap: 20px; }
.br-advanced__cats { background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card); margin-inline: 0;
                     grid-auto-columns: minmax(96px, 1fr); }
.br-advanced__makes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.br-advanced__makes select { width: 100%; min-width: 0; height: 48px; }
.br-filters--wide { padding: 18px; background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card); }
@media (min-width: 720px) {
  .br-filters--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; align-items: start; }
  .br-filters--wide > * { min-width: 0; }
}
.br-advanced__bar {
  position: sticky; bottom: calc(var(--br-tabbar-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px; background: var(--br-surface); border: 1px solid var(--br-line); border-radius: var(--br-r-card);
  box-shadow: 0 -8px 24px rgba(17, 17, 17, .12), inset 0 3px 0 var(--br-accent-fill);
}
.br-advanced__bar .br-chosen { flex: 1 1 320px; min-width: 0; }
.br-advanced__go { flex: 0 0 auto; min-height: 56px; min-width: 240px; margin-inline-start: auto; }
@media (min-width: 900px) { .br-advanced__bar { bottom: 16px; } }
@media (max-width: 599px) { .br-advanced__go { flex: 1 1 100%; min-width: 0; } }
/* On a narrow phone, make and model take the whole width: their longest words ("Todos los modelos") fit on one line. */
@media (max-width: 599px) {
  .br-herosearch__fields > .br-field:nth-child(-n+2) { grid-column: 1 / -1; }
  .br-advanced__makes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 419px) { .br-herosearch__fields { grid-template-columns: minmax(0, 1fr); } }

/* Five category cards in a row only where each is wide enough for the longest name in two rows (CAT-017). */
@media (min-width: 1200px) {
  .br-cats:not(.br-cats--sub) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .br-cats:not(.br-cats--sub) .br-cats__item--count .br-cats__name { font-size: 20px; }
}
/* A staff select whose option is a plan's name keeps it whole on the narrowest phone (NFR-052). */
@media (max-width: 400px) { .br-admin__select { font-size: 15px; } }

/* The car body types under the hero's search (SRC-039): one size each, scrolling sideways on a phone. */
.br-bodies { padding-top: 10px; border-top: 1px solid var(--br-line); }
.br-bodies__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none;
                   overflow-x: auto; scrollbar-width: none; }
.br-bodies__list > li { display: flex; }
.br-bodies__item {
  flex: 1; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 6px 4px 8px;
  border-radius: var(--br-r-control); color: var(--br-text); text-decoration: none; font: 600 13px/1.2 var(--br-font); text-align: center;
  transition: background-color var(--br-t-med) var(--br-ease);
}
.br-bodies__icon { line-height: 0; color: var(--br-muted); transition: color var(--br-t-med) var(--br-ease), transform var(--br-t-fast) var(--br-ease); }
.br-bodies__name { display: grid; width: 100%; }
@media (hover: hover) {
  .br-bodies__item:hover { background: var(--br-tint); }
  .br-bodies__item:hover .br-bodies__icon { color: var(--br-accent-fill); transform: var(--br-hover-lift); }
}
