@font-face {
  font-family: 'Abeely Arabic';
  src: url('/a/fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Abeely Arabic';
  src: url('/a/fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');
  font-weight: 600 800; font-display: swap;
}

:root {
  /* One warm-stone identity, including browser-owned inputs and first paint.
     Native status/home insets remain OS-owned; never draw fake system bars. */
  color-scheme: only light;
  --buyer-paper: var(--identity-paper);
  --buyer-edge-fade: 8px;
  --buyer-rail: #e8e0d3;
  --buyer-inset: #e7ddcb;
  --buyer-tool: #f3ecdf;
  /* Neutral selectable rows sit above the paper without changing tools or selection. */
  --buyer-option: var(--identity-card);
  --buyer-sidebar: var(--identity-stone);
  --buyer-search: #eae1d3;
  --buyer-side-selection: var(--identity-control);
  --buyer-line: var(--identity-line);
  --buyer-ink: #242821;
  --buyer-muted: #53564b;
  --buyer-blue: var(--identity-blue);
  --buyer-disabled: #e5dbcc;
  --buyer-action-ink: var(--identity-brown);
  --buyer-action-fill: var(--identity-blue);
  --buyer-action-pressed: var(--identity-blue-pressed);
  --buyer-action-on: var(--identity-on-blue);
  /* The one destructive ink (already the order menu's): delete, unlink. */
  --buyer-danger: #9d302d;
  /* One colour per status word, pastel and soft (owner, 2026-11-30; docs/law/design-system.md «STATUS-PASTEL»):
     «قيد التنفيذ» blue, «مكتمل» a soft sage green, «ملغي» and «منتهي» a light pastel red, «بانتظار العروض» the identity
     stone a shade darker, an offer not yet seen a darker stone, and the unread dot a pastel yellow. Every status mark in
     the buyer app reads these, never a hex; each ink is AA on its fill. */
  --buyer-run: #244a8a;
  --buyer-run-tint: #e3eaf7;
  --buyer-done: #2f5d3d;
  --buyer-done-tint: #e2efdf;
  --buyer-ended: #8a3a30;
  --buyer-ended-tint: #f6e0da;
  --buyer-wait-tint: #ebe3d5;
  --buyer-fresh-tint: #ddd1bd;
  --buyer-news: #e3ac2c;
}
html, body { margin: 0; background: var(--buyer-rail); color: var(--buyer-ink); }
/* Scroll only actual panes and lists, not the standalone requester document. */
html:has([data-abeely-buyer]), body:has([data-abeely-buyer]) {
  block-size: 100%;
  overflow: hidden;
  overscroll-behavior-y: none;
}
html[data-size='أصغر']:has([data-abeely-buyer]) { font-size:92%; }
html[data-size='أكبر']:has([data-abeely-buyer]) { font-size:114%; }
html[data-size='أضخم']:has([data-abeely-buyer]) { font-size:130%; }

[data-abeely-buyer] {
  --buyer-soft: var(--buyer-tool);
  --buyer-text-secondary: var(--buyer-muted);
  --buyer-accent: var(--buyer-blue);
  --buyer-radius-lg: var(--buyer-radius);
  --buyer-radius: 16px;
  /* From the approved 390px board: one curve for all rail silhouettes. */
  --buyer-rail-curve: 12.5px;
  --buyer-rail-control: 38px;
  --buyer-rail-tab: 48px;
  --buyer-edge: clamp(18px, 5.9vw, 23px);
  --buyer-ease: cubic-bezier(.23,.75,.25,1);
  --buyer-overlay-duration: 175ms;
  --buyer-overlay-exit: 115ms;
  --buyer-overlay-ease: cubic-bezier(.22,.75,.22,1);
  --buyer-overlay-shadow: 0 5px 18px rgb(36 40 33 / 14%);
  --buyer-overlay-radius: 15px;
  --buyer-safe-top: env(safe-area-inset-top, 0px);
  --buyer-safe-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
  isolation: isolate;
  direction: rtl;
  color-scheme: only light;
  height: var(--buyer-stable-height, 100dvh);
  overflow: hidden;
  color: var(--buyer-ink);
  background: var(--buyer-rail);
  font: 400 1rem/1.45 'Abeely Arabic', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
[data-abeely-buyer] *, [data-abeely-buyer] *::before, [data-abeely-buyer] *::after { box-sizing: border-box; }
[data-abeely-buyer] [hidden] { display: none !important; }
/* NAV-REAL: a reloaded entry that was an order waits for it with an empty pane, never a composer flash. */
[data-abeely-buyer] [data-buyer-view-wait] { visibility: hidden; }
[data-abeely-buyer] ::selection { background: var(--identity-blue-tint); color: var(--buyer-ink); }
[data-abeely-buyer] :where(button) { font: inherit; color: inherit; cursor: pointer; }
[data-abeely-buyer] :where(button,a[href],summary):focus-visible { outline: 2px solid var(--buyer-blue); outline-offset: 3px; }
[data-abeely-buyer] button:disabled { cursor: default; }
[data-abeely-buyer][dir='ltr'] { direction:ltr; }
.buyer-main { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); height: 100%; }
.buyer-rail {
  display: flex;
  align-items: end;
  gap: 6px;
  padding: calc(var(--buyer-safe-top) + 10px) 12px 0;
  min-height: calc(var(--buyer-safe-top) + 64px);
  background: var(--buyer-rail);
}
/* At enlarged text sizes a status may occupy two lines before its request
   tab expands. Reserve both lines in either rail state. */
html:is([data-size='أكبر'],[data-size='أضخم']) .buyer-rail {
  min-height:calc(var(--buyer-safe-top) + 16px + 3.25rem);
}
.buyer-tool, .buyer-tab {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  min-block-size: 44px;
  border: 0;
}
.buyer-tool { inline-size: 44px; border-radius: var(--buyer-radius); background: var(--buyer-tool); margin-block-end: 3px; }
.buyer-rail > .buyer-tool {
  position: relative;
  inline-size: var(--buyer-rail-control);
  padding: 0;
  border-radius: var(--buyer-rail-curve);
}
.buyer-rail > .buyer-tool::after,
.buyer-rail .buyer-tab[data-fixed]:not([aria-selected="true"])::after {
  position: absolute;
  content: "";
  inset: -5px -3px;
}
.buyer-tabs { min-inline-size: 0; flex: 1; display: flex; align-items: end; gap: 6px; }
.buyer-order-tabs {
  min-inline-size: 0;
  flex: 1;
  display: flex;
  align-items: end;
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  /* Free native momentum; only opening an order explicitly centers it. */
  overflow-anchor: none;
  scroll-behavior: auto;
  padding-inline: 5px;
}
.buyer-order-tabs::-webkit-scrollbar { display: none; }
.buyer-tab {
  position: relative;
  align-self: end;
  inline-size: var(--tab-width, 44px);
  min-block-size: var(--buyer-rail-tab);
  flex-direction: column;
  padding: 3px 8px;
  line-height: 1.15;
  background: transparent;
  color: var(--buyer-muted);
  border-radius: var(--buyer-rail-curve) var(--buyer-rail-curve) 0 0;
  transition: inline-size 200ms var(--buyer-ease), background-color 135ms ease;
}
.buyer-tab[data-order] { font-size: .8125rem; }
.buyer-tab bdi { display: block; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-tab[aria-selected="true"] { font-weight: 600; background: var(--buyer-paper); color: var(--buyer-blue); }
.buyer-tab[aria-selected="true"]::before, .buyer-tab[aria-selected="true"]::after {
  position: absolute; content: ""; pointer-events: none; inset-block-end: 0;
  inline-size: var(--buyer-rail-curve); block-size: var(--buyer-rail-curve);
}
.buyer-tab[aria-selected="true"]::before {
  right: 100%; background: radial-gradient(circle var(--buyer-rail-curve) at top left,
    transparent calc(var(--buyer-rail-curve) - .55px), var(--buyer-paper) var(--buyer-rail-curve));
}
.buyer-tab[aria-selected="true"]::after {
  left: 100%; background: radial-gradient(circle var(--buyer-rail-curve) at top right,
    transparent calc(var(--buyer-rail-curve) - .55px), var(--buyer-paper) var(--buyer-rail-curve));
}
.buyer-tab[data-fixed] {
  --tab-width: var(--buyer-rail-control);
  min-block-size: var(--buyer-rail-control);
  padding-inline: 0;
  border-radius: var(--buyer-rail-curve);
  background: var(--buyer-tool);
}
.buyer-tab[data-fixed][aria-selected="true"] {
  --tab-width: var(--buyer-compose-wide);
  min-block-size: var(--buyer-rail-tab);
  padding-inline: 8px;
  background: var(--buyer-paper);
  border-end-end-radius: 0;
  border-end-start-radius: 0;
  color: var(--buyer-blue);
  font-size: .875rem;
}
.buyer-tab[data-fixed='compose'][aria-selected='true'][data-compact] { --tab-width: var(--buyer-rail-control); }
.buyer-tab[data-fixed] .buyer-fixed-face {
  position: absolute; inset: 0; display: grid; place-items: center;
  overflow: hidden; white-space: nowrap; pointer-events: none;
  transition: opacity 145ms var(--buyer-ease);
}
.buyer-tab[data-fixed] .buyer-fixed-label,
.buyer-tab[data-fixed][aria-selected='true']:not([data-compact]) .buyer-fixed-glyph { opacity: 0; }
.buyer-tab[data-fixed] .buyer-fixed-label { padding-inline:6px; white-space:normal; overflow-wrap:anywhere; }
.buyer-tab[data-fixed][aria-selected='true']:not([data-compact]) .buyer-fixed-label { opacity: 1; }
/* While the rail moves, the faces follow the same clock as the width (--create-open, 0 = «+», 1 = «طلب جديد»). */
.buyer-rail .buyer-tab[data-fixed][data-morph] .buyer-fixed-face { transition: none; }
.buyer-rail .buyer-tab[data-fixed][data-morph] .buyer-fixed-face.buyer-fixed-glyph {
  opacity: clamp(0, calc(1 - var(--create-open, 0) * 2.2), 1); transform: scale(calc(1 - var(--create-open, 0) * .35));
}
.buyer-rail .buyer-tab[data-fixed][data-morph] .buyer-fixed-face.buyer-fixed-label {
  opacity: clamp(0, calc(var(--create-open, 0) * 2.2 - 1.2), 1); transform: scale(calc(.94 + var(--create-open, 0) * .06));
  /* The words keep one line while the slot narrows (the send flight stretches this fold to its landing): clipped, never stacked. */
  white-space: nowrap;
}
/* Reduced motion: no travel, a quick fade between the two faces. */
@media (prefers-reduced-motion: reduce) {
  [data-abeely-buyer] .buyer-tab[data-fixed] .buyer-fixed-face { transition: opacity 90ms linear; transition-duration: 90ms !important; }
}
.buyer-paper { min-height: 0; height: 100%; overflow: hidden; background: var(--buyer-paper); }
.buyer-pane { height: 100%; min-block-size: 0; overflow: auto; overscroll-behavior: contain; }
/* EDGE-DISSOLVE (owner, 2026-11-30 02:46; docs/law/navigation.md): a thin band of the surface's own ground sits at the
   top edge of every scroller under fixed chrome, opaque then clear, so scrolled content dissolves instead of being sliced.
   A sticky first box with a matching negative margin: it takes no room, sits on the padding at rest, and the compositor
   moves it — no blur, no per-frame paint. The side list already has its own fading head (.buyer-side-head::before). */
:where(.buyer-pane:not(.bc-root),.buyer-sidebar-dialog,.bc-content)::before {
  content: ""; display: block; position: sticky; inset-block-start: 0; z-index: 3; pointer-events: none;
  block-size: var(--buyer-edge-fade); margin-block-end: calc(-1 * var(--buyer-edge-fade));
  background: linear-gradient(var(--buyer-edge-ground, var(--buyer-paper)) 25%, transparent);
}
/* The account dialog scrolls itself and draws its own ground: the band rises into its 20px padding and leaves the
   title clear at rest. The composer's pane is a grid (.bc-root), where a box would take a row: its band lives on the
   scroller inside, .bc-content, which is plain block flow. */
.buyer-sidebar-dialog { --buyer-edge-ground: var(--buyer-sidebar); }
.buyer-sidebar-dialog::before { margin-block: -20px calc(20px - var(--buyer-edge-fade)); }
.buyer-content { padding: 23px var(--buyer-edge) calc(26px + var(--buyer-safe-bottom)); max-inline-size: 650px; margin-inline: auto; }
.buyer-content h1 { font-size: 27px; font-weight: 600; margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.buyer-order-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; position: relative; }
.buyer-order-heading h1 { font-size: 25px; line-height: 1.4; }
/* Status, then city and district, then date — the same line as the side rail's rows (owner, 2026-11-30). */
.buyer-order-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .6rem; margin:.28rem 0 0; font-size:13px; color:var(--buyer-muted); }
.buyer-order-meta time { color:var(--buyer-muted); }
.buyer-order-meta .buyer-order-location { margin:0; }
.buyer-order-meta .buyer-order-location[hidden] { display:none; }
.buyer-order-heading > .buyer-tool { width: 44px; min-block-size: 44px; padding: 0; border-radius: 12px; }
.buyer-order-heading > .buyer-tool svg { width: 16px; }
.buyer-order-location { display: flex; align-items: center; gap: 4px; font-size: 13px; margin: 4px 0 0; color: var(--buyer-muted); }
.buyer-order-location svg { width: 14px; height: 14px; }
.buyer-order-description {
  margin: 16px 0 20px; padding: 10px 14px; border-radius: var(--buyer-radius);
  background: var(--buyer-inset); white-space: pre-wrap; overflow-wrap: anywhere;
}
.buyer-order-description:empty { padding: 0; }
[data-inbox-message] { padding: 12px; background: var(--buyer-inset); border-radius: 14px; }
.buyer-order-switch { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--buyer-radius); background: var(--buyer-inset); padding: 3px; }
.buyer-order-switch button { border: 0; border-radius: 13px; min-block-size: 44px; background: none; color: var(--buyer-muted); }
.buyer-order-switch button[aria-pressed='true'] { background: var(--buyer-paper); color: var(--buyer-blue); font-weight: 600; }
.buyer-pane[data-buyer-order-pane] { scroll-padding-block-start: calc(var(--buyer-order-nav-block, 7rem) + 6px); }
/* The primary row keeps its position when the market rail folds underneath it. */
[data-order-view] { min-block-size: calc(100% + var(--buyer-order-pin-floor, 0px)); }
[data-switching-order-view] { overflow-anchor: none; }
.buyer-order-sticky-anchor { display: flow-root; margin-block-start: -10px; }
/* With «من السوق» asleep the offers follow the request under one quiet hairline. */
.buyer-order-rule { border: 0; border-block-start: 1px solid var(--buyer-line); margin: 20px 0 16px; }
.buyer-pane[data-buyer-order-pane]:not(:has(.buyer-order-sticky)) { scroll-padding-block-start: 6px; }
.buyer-order-sticky {
  position: sticky; inset-block-start: 0; z-index: 1; isolation: isolate;
  margin-inline: calc(-1 * var(--buyer-edge)); padding: 10px var(--buyer-edge) 3px;
}
.buyer-order-sticky::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background: linear-gradient(to bottom,color-mix(in srgb,var(--buyer-paper) 86%,transparent) 0 82%,transparent);
  -webkit-backdrop-filter: blur(12px) saturate(115%); backdrop-filter: blur(12px) saturate(115%);
  -webkit-mask-image: linear-gradient(#000 0 78%,transparent); mask-image: linear-gradient(#000 0 78%,transparent);
}
.buyer-order-market-rail { display: grid; grid-template-rows: 0fr; opacity: 0; }
.buyer-order-market-rail > .buyer-market-navigation { min-block-size: 0; overflow: hidden; }
.buyer-order-market-rail > .buyer-market-navigation:not(:empty)::before { content: ""; display: block; block-size: 14px; }
[data-order-view="market"] .buyer-order-market-rail { grid-template-rows: 1fr; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .buyer-order-market-rail { transition: grid-template-rows 190ms var(--buyer-ease), opacity 140ms var(--buyer-ease); }
  [data-switching-order-view] :is([data-order-offers],[data-order-market]):not([hidden]) { animation: buyer-order-content-in 160ms var(--buyer-ease); }
  @keyframes buyer-order-content-in { from { opacity: 0; } }
}
.buyer-order-empty { margin: 56px 0 0; text-align: center; color: var(--buyer-muted); }
/* The retry of a failed load wears the list's own quiet button, never the browser's default one. */
.buyer-order-empty [data-retry] { border:0; background:var(--buyer-inset); min-height:44px; padding:8px 16px; border-radius:12px; }
.buyer-offers, .buyer-history { display: grid; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.buyer-row {
  display: flex; align-items: center; gap: 10px; inline-size: 100%; text-align: start;
  border: 0; padding: 12px 14px; border-radius: 14px; min-height: 62px; background: transparent;
}
.buyer-row[data-unread], .buyer-row[aria-current='true'], .buyer-offers .buyer-row { background: var(--buyer-inset); }
.buyer-offers .buyer-row[data-accepted-offer] { background:#f8f2e8; border:1px solid #bdab90; }
.buyer-offers [data-accepted-offer] .buyer-row-copy { align-self:center; }
.buyer-offer-outcome { display:grid; justify-items:end; gap:.12em; flex:0 1 auto; min-inline-size:0; }
.buyer-offer-agreed-price { color:#392a20; font-variant-numeric:tabular-nums; font-weight:720; }
.buyer-offer-winner { display:inline-flex; align-items:center; gap:.25em; color:#5c4737; font-size:.82rem; font-weight:700; min-inline-size:0; }
.buyer-offer-winner svg, .buyer-offers .buyer-row > svg { flex:none; }
.buyer-offers .buyer-row[data-accepted-offer]:active { background:#e3d4bf; }
@media (hover:hover) and (pointer:fine) {
  .buyer-offers .buyer-row[data-accepted-offer]:hover { background:#f0e6d7; }
}
.buyer-row-copy { display: grid; flex: 1; gap: 3px; min-inline-size: 0; }
.buyer-row-copy strong, .buyer-row-copy small { overflow-wrap: anywhere; }
.buyer-row-copy strong { font-weight: 600; }
.buyer-row-copy small { font-size: 13px; color: var(--buyer-muted); }
.buyer-side {
  position: absolute; inset: 0 0 0 auto; inline-size: min(81.4%, 360px);
  display: grid; grid-template-rows: auto auto minmax(0,1fr) auto;
  /* One column no wider than the panel: a long English line can never push the head or foot past its edge. */
  grid-template-columns: minmax(0,1fr);
  --side-gutter: clamp(16px, 5.12vw, 22px);
  /* The head (44px) is centred on the rail's centre, so the two lines never move between closed and open. */
  padding: calc(var(--buyer-rail-height, calc(var(--buyer-safe-top) + 64px)) / 2 + var(--buyer-safe-top) / 2 - 22px) var(--side-gutter) calc(var(--buyer-safe-bottom) + 6px);
  background: var(--buyer-sidebar);
  /* Full-bleed paper behind the safe areas: no colored corner cutouts. */
  box-shadow: -2px 0 9px rgb(36 40 33 / 13%);
  transform: translateX(103%);
  transition: transform 235ms var(--buyer-ease);
  visibility: hidden;
}
.buyer-side::before {
  content: ''; position: absolute; pointer-events: none;
  inset-inline-end: 0; inset-block: calc(var(--buyer-safe-top) + 58px) max(6px, calc(var(--buyer-safe-bottom) - 5px));
  inline-size: 1px; background: var(--buyer-line); border-radius: var(--buyer-radius);
}
.buyer-main { transition: transform 235ms var(--buyer-ease); }
.buyer-veil {
  position: absolute; inset: 0; border: 0; border-radius: 0;
  background: rgb(36 40 33 / 32%); opacity: 0; pointer-events: none;
  transition: opacity 235ms var(--buyer-ease);
}
[data-side-open] .buyer-side { transform: none; }
[data-side-open] .buyer-main { transform: translateX(-22px); }
[data-side-open] .buyer-veil { opacity: 1; pointer-events: auto; }
.buyer-side[data-visible] { visibility: visible; }
.buyer-side-head, .buyer-side-footer { display: flex; align-items: center; gap: 12px; }
.buyer-side-head { margin-block-end: 12px; margin-inline-start: -7px; }
.buyer-side-head .buyer-tool { margin: 0; width: 44px; min-block-size: 44px; }
/* Larger icons drawn at the same line weight as before (16px at 2.3 = 20px at 1.84). */
.buyer-side-head .buyer-tool svg { width: 20px; height: 20px; stroke-width: 1.84; }
.buyer-side-head strong { font-size: 21px; }
.buyer-side-footer { justify-content: space-between; }
.buyer-business-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 4px;
  color: var(--buyer-ink);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.buyer-business-link:is(:hover, :focus-visible) { text-decoration: underline; }
.buyer-side-footer .buyer-new {
  display: inline-flex; flex-direction:row-reverse; align-items:center; justify-content:center; gap:10px;
  min-height:44px; padding:6px 14px; border:0; border-radius:16px;
  font-weight:600; background:var(--buyer-search); color:var(--buyer-blue);
}
.buyer-history { margin: 20px 0 0; margin-inline-end:-2px; padding-inline-end:2px; align-content: start; gap: 6px; overflow: auto; overscroll-behavior: contain; }
.buyer-history-more { border:0;background:var(--buyer-inset);min-height:44px;border-radius:12px;margin-block:4px; }
/* The one wait: centred where the content will appear, Abeely's moving lines above a readable line.
   A status line that later receives plain words keeps none of this (the mark is gone). */
.buyer-wait:has(> .buyer-wait-mark) {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  min-block-size:min(38dvh,280px); margin:0; padding:24px 16px; box-sizing:border-box;
  color:var(--buyer-muted); font-size:1rem; line-height:1.5; text-align:center;
}
.buyer-wait[data-wait-size=compact]:has(> .buyer-wait-mark) { min-block-size:112px; padding-block:16px; }
/* A published request with no offer yet (PLANE-WIRE ③): the sky's seat under the request — the badge «لم تصلك عروض بعد»,
   the searching plane with its note, and the hint, all drawn by mountSky (buyer-flight.css). No box: it sits on the paper. */
.buyer-offer-sky { display:block; block-size:clamp(300px,44dvh,400px); margin-block-start:4px; }
.buyer-side .buyer-history > .buyer-wait:has(> .buyer-wait-mark) { flex:1; min-block-size:min(46dvh,320px); }
/* The seat keeps its size before the lines arrive, so nothing moves when they do. */
.buyer-wait-mark[data-brand-wait] { position:relative; display:block; flex:none; inline-size:76px; block-size:70px; }
.buyer-wait[data-wait-size=compact] > .buyer-wait-mark[data-brand-wait] { inline-size:54px; block-size:50px; }
.buyer-wait-mark > [data-brand-live] { inline-size:100%; block-size:100%; border-radius:8px; background:transparent; }
/* The matte belongs to the opening; a wait sits on whatever surface holds it. */
.buyer-wait-mark > [data-brand-live] > svg > rect[fill="#F0E9DD"] { fill:transparent; }
.buyer-history-more { position:relative; }
/* Fetching more: the line, then the moving lines centred beneath it, as in every wait. */
.buyer-history-more[aria-busy="true"] { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding-block:12px; color:var(--buyer-muted); }
.buyer-history-more .buyer-wait-mark[data-brand-wait] { inline-size:40px; block-size:37px; }
@media (prefers-reduced-motion: no-preference) {
  [data-abeely-buyer] :is(.bc-cta,.bos-accept)[aria-busy="true"] { animation:buyer-wait-press 1.4s ease-in-out infinite; }
}
@keyframes buyer-wait-press { 0%,100% { opacity:1; } 50% { opacity:.72; } }
.buyer-history-entry { display: flex; position:relative; align-items: center; border-radius: 14px; }
.buyer-history-entry > .buyer-pop { inset-inline-end:0; inset-block-start:100%; }
.buyer-history-entry[data-current] { background: var(--buyer-side-selection); }
.buyer-history-entry > .buyer-row { flex: 1; min-width:0; padding:8px 16px; }
.buyer-history-entry .buyer-row-copy {gap:3px; }
.buyer-history-entry .buyer-row-copy small { font-size:12px; line-height:1.6; }
.buyer-history-entry > .buyer-tool svg {width:16px;height:16px;}
.buyer-history-entry > .buyer-tool { background: none; margin: 0; }
.buyer-pop {
  position: absolute; z-index: 3; padding: 5px; min-width: 138px;
  background: var(--buyer-sidebar); border-radius: var(--buyer-overlay-radius); box-shadow: var(--buyer-overlay-shadow);
}
.buyer-pop > button { display: block; border: 0; background: none; text-align: start; min-height: 42px; width: 100%; padding: 0 10px; }
.buyer-pop > button:hover { background: var(--buyer-inset); border-radius: 10px; }
.buyer-order-heading .buyer-pop { inset-inline-end: 0; top: 38px; }
.buyer-side-footer { position: relative; }
.buyer-side-footer .buyer-pop { inset-inline-end: 0; bottom: 50px; }
/* No «صور الطلب» above the photos (owner, 2026-11-30: «احذف كلمة صور الطلب»): the line is for screen readers only. */
.buyer-photo-caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.buyer-photos { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; margin-block-end: 14px; }
.buyer-photos button { position: relative; display: grid; place-items: center; border: 0; padding: 0; background: var(--buyer-inset); color: var(--buyer-muted); border-radius: 14px; overflow: hidden; flex: 0 0 72px; height: 72px; }
.buyer-photos button:disabled { opacity: 1; }
.buyer-photos img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: 0; }
.buyer-photos [data-photo-state="ready"] img { opacity: 1; }
.buyer-photo-retry { display: none; }
/* A photo on its way: the stone skeleton with Abeely's own moving lines, light (the one wait, buyer-wait.js). */
.buyer-photos .buyer-wait-mark[data-brand-wait] { display: none; inline-size: 40px; block-size: 37px; opacity: .62; }
.buyer-photos [data-photo-state="loading"] .buyer-wait-mark[data-brand-wait] { display: block; }
.buyer-photos [data-photo-state="failed"] .buyer-photo-retry { display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .buyer-photos img { transition: opacity .14s ease-out; }
}
.buyer-image-dialog { padding: 20px; max-width: min(92vw,650px); max-height: 86dvh; border: 0; background: var(--buyer-sidebar); border-radius: 16px; }
.buyer-image-dialog img { display: block; max-width: 100%; max-height: 65dvh; object-fit: contain; }
.buyer-image-dialog::backdrop { background: #24282166; }
[data-abeely-buyer][dir='ltr'] .buyer-side { inset: 0 auto 0 0; transform: translateX(-103%); }
[data-abeely-buyer][dir='ltr'][data-side-open] .buyer-side { transform: none; }
[data-abeely-buyer][dir='ltr'][data-side-open] .buyer-main { transform: translateX(22px); }
[data-abeely-buyer][dir='ltr'] svg:has(path[d='m14.5 6-6 6 6 6']) { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  [data-abeely-buyer] *, [data-abeely-buyer] *::before, [data-abeely-buyer] *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

.buyer-pop[data-order-pop] { min-inline-size: 166px; padding: 5px 7px; overflow: visible; transform-origin: var(--buyer-pop-tip) top; }
.buyer-pop[data-order-pop]::before {
  content:""; position:absolute; inset-block-start:-4px; left:calc(var(--buyer-pop-tip) - 4px);
  inline-size:8px; block-size:8px; transform:rotate(45deg);
  background:var(--buyer-sidebar); pointer-events:none;
}
.buyer-pop[data-order-pop][data-flip] { transform-origin: var(--buyer-pop-tip) bottom; --buyer-pop-lift: 4px; }
.buyer-pop[data-order-pop][data-flip]::before { inset-block-start:auto; inset-block-end:-4px; }
[data-more-order][aria-expanded=true] { background:color-mix(in srgb,var(--buyer-inset) 80%,var(--buyer-muted)); border-radius:var(--buyer-rail-curve); }
.buyer-history-entry > [data-more-order][aria-expanded=true] { background:color-mix(in srgb,var(--buyer-inset) 80%,var(--buyer-muted)); }
[data-sidebar-toggle] svg path { transform-origin:12px 12px; transition:transform 195ms var(--buyer-ease); }
[data-sidebar-toggle] [data-morph-top] { transform:translateY(-3.5px); }
[data-sidebar-toggle] [data-morph-bottom] { transform:translateY(3.5px) scaleX(.65); transform-origin:20px 12px; }
[data-sidebar-toggle][aria-expanded=true] [data-morph-top] { transform:rotate(45deg); }
[data-sidebar-toggle][aria-expanded=true] [data-morph-bottom] { transform:rotate(-45deg); transform-origin:12px 12px; }

.buyer-pop[data-order-pop] > button {
  display: flex; align-items: center; gap: 9px; min-block-size: 44px;
  white-space: nowrap; color: var(--buyer-ink);
}
.buyer-pop[data-order-pop] > button svg { flex: 0 0 17px; inline-size:17px; block-size:17px; }
.buyer-pop[data-order-pop] > button:disabled { color:var(--buyer-muted); cursor:default; background:none; }
.buyer-pop[data-order-pop] > button small { display:block; margin-block-start:1px; font-size:.79em; line-height:1.45; font-weight:400; }
.buyer-pop[data-order-pop] > button[data-destructive] { color:var(--buyer-danger); }
.buyer-pop[data-order-pop] > button:not(:first-child)[data-destructive] {
  border-block-start: 1px solid var(--buyer-line); border-start-start-radius: 0; border-start-end-radius: 0;
}

.buyer-pop[data-order-pop] { animation: buyer-pop-in var(--buyer-overlay-duration) var(--buyer-overlay-ease) both; --buyer-pop-lift: -4px; }
.buyer-pop[data-order-pop][data-closing] { animation: buyer-pop-out var(--buyer-overlay-exit) ease-in both; pointer-events:none; }
@keyframes buyer-pop-in { from { opacity:0; transform:translateY(var(--buyer-pop-lift)) scale(.985); } to { opacity:1; transform:none; } }
@keyframes buyer-pop-out { to { opacity:0; transform:translateY(var(--buyer-pop-lift)) scale(.99); } }
/* REALTIME-02: a row the server sent while the owner looked (an offer, a request, a history entry) enters with the
   same pop, rising from below; the first paint and an unchanged repaint never carry the mark. */
[data-arrived] { animation: buyer-pop-in 240ms var(--buyer-ease) both; --buyer-pop-lift: 6px; }
@media (prefers-reduced-motion: reduce) { [data-arrived] { animation: none; } }


/* The sidebar stays on the stone surface: a single scroll layer underneath
   two small translucent chrome strips, not a blur over the entire panel. */
.buyer-side {
  --side-top-padding: calc(var(--buyer-safe-top) + 17px);
  --side-bottom-padding: calc(var(--buyer-safe-bottom) + 6px);
  --buyer-side-top-space: 104px;
  --buyer-side-foot-space: 44px;
}
.buyer-side-head, .buyer-side > [data-buyer-access], .buyer-history, .buyer-side-footer { grid-column: 1; }
.buyer-side-head { grid-row: 1; position:relative; z-index:2; isolation:isolate; }
.buyer-side > [data-buyer-access] { grid-row: 2; position:relative; z-index:3; min-inline-size:0; }
.buyer-side .buyer-history {
  grid-row: 1 / -1; z-index:0; min-block-size:0; margin-block:0;
  padding-block-start:calc(var(--buyer-side-top-space) + 20px);
  padding-block-end:calc(var(--buyer-side-foot-space) + 13px);
  scroll-padding-block:calc(var(--buyer-side-top-space) + 8px) calc(var(--buyer-side-foot-space) + 10px);
}
.buyer-side-footer { grid-row:4; z-index:2; isolation:isolate; }
.buyer-side-head::before, .buyer-side-footer::before {
  content:""; display:block; position:absolute; z-index:-1; pointer-events:none;
  inset-inline:calc(0px - var(--side-gutter));
  background:var(--buyer-sidebar);
  -webkit-backdrop-filter:blur(12px) saturate(115%); backdrop-filter:blur(12px) saturate(115%);
}
.buyer-side-head::before {
  inset-inline-start:calc(7px - var(--side-gutter));
  inset-block-start:calc(0px - var(--side-top-padding));
  block-size:calc(var(--side-top-padding) + var(--buyer-side-top-space) + 18px);
  background:linear-gradient(to bottom,color-mix(in srgb,var(--buyer-sidebar) 86%,transparent) 0 82%,transparent);
  -webkit-mask-image:linear-gradient(#000 0 78%,transparent);
  mask-image:linear-gradient(#000 0 78%,transparent);
}
.buyer-side-footer::before {
  inset-block-end:calc(0px - var(--side-bottom-padding));
  block-size:calc(var(--side-bottom-padding) + var(--buyer-side-foot-space) + 18px);
  background:linear-gradient(to top,color-mix(in srgb,var(--buyer-sidebar) 86%,transparent) 0 82%,transparent);
  -webkit-mask-image:linear-gradient(to top,#000 0 78%,transparent);
  mask-image:linear-gradient(to top,#000 0 78%,transparent);
}
.buyer-side-footer .buyer-new {
  background:color-mix(in srgb,var(--buyer-search) 80%,transparent);
  border:1px solid color-mix(in srgb,#fff 53%,transparent);
}
.buyer-title-control {
  display:block; background:none; border:0; padding:0; text-align:start;
  white-space:normal; overflow-wrap:anywhere; border-radius:6px;
}

/* Native swipe snap resumes once the single tab-selection animation ends. */
.buyer-tabs[data-rail-motion] .buyer-tab { transition-property: background-color; }

/* The order timeline is physically left-to-right. Text retains the reader's direction. */
.buyer-rail { position:relative; direction:ltr; }
.buyer-tabs {
  position:relative; align-self:stretch; align-items:end; container-type:inline-size;
  min-block-size:max(var(--buyer-rail-tab), 2.125rem);
  --buyer-compose-wide:106px;
  --buyer-create-width:var(--buyer-compose-wide);
  --buyer-rail-clearance:10px;
  --buyer-rail-fade:8px;
  --buyer-rail-spacing:calc(var(--buyer-rail-clearance) + var(--buyer-rail-fade));
  /* Tabs give a little width before the rail overflows: the target «+» width and the tab count come from syncRail. */
  --buyer-tab-min:84px;
  --buyer-create-target:var(--buyer-compose-wide);
}
/* A little room at the rail's «+» end, outside the «+» slot (owner, 2026-11-30: «يكون المكان يسار فاضي شوي، وتندفع التبويبات
   لليمين بشكل طبيعي»): the tabs read as pushed away from where a new one will appear. A rail that fits already has that
   room (its tabs start at the right), so only a full rail — which would pin «+» to the edge — takes it (data-rail-full,
   set by placeCreate). 12px, never more than the newest tab can spare beside an open «طلب جديد» (a 320 screen, the
   largest text): measured against the tabs' container, so a narrow rail gives less air and never cuts the newest tab.
   Registered so placeCreate reads it as a length. */
@property --buyer-rail-air { syntax:'<length>'; inherits:false; initial-value:0px; }
.buyer-tabs[data-rail-full] > :is(.buyer-order-tabs, .buyer-tab[data-fixed]) {
  --buyer-rail-air:clamp(0px, calc(100cqi - var(--buyer-compose-wide) - var(--buyer-rail-control) - 2 * var(--buyer-rail-spacing) - max(94px, 6.75rem) - 2px), 12px);
}
.buyer-order-tabs {
  --buyer-rail-left:calc(var(--buyer-rail-air) + var(--buyer-create-width) + var(--buyer-rail-clearance));
  --buyer-rail-right:calc(var(--buyer-rail-control) + var(--buyer-rail-clearance));
  --buyer-rail-finish:calc(var(--buyer-rail-control) + var(--buyer-rail-spacing));
  --buyer-rail-start:calc(var(--buyer-rail-air) + var(--buyer-create-width) + var(--buyer-rail-spacing));
  /* An edge fades only when content is hidden past it (data-fade-left/-right, set by placeCreate). */
  --buyer-fade-l:0px; --buyer-fade-r:0px;
  --buyer-rail-mask:linear-gradient(to right,transparent var(--buyer-rail-left),#000 calc(var(--buyer-rail-left) + var(--buyer-fade-l)),
    #000 calc(100% - var(--buyer-rail-right) - var(--buyer-fade-r)),transparent calc(100% - var(--buyer-rail-right)));
  direction:ltr; align-items:stretch;
  padding:0 var(--buyer-rail-finish) 0 var(--buyer-rail-start);
  scroll-padding:0 var(--buyer-rail-finish) 0 var(--buyer-rail-start);
  /* Ink passes through the glass fade. The clip also clears hit testing at both tools. */
  -webkit-mask-image:var(--buyer-rail-mask); mask-image:var(--buyer-rail-mask);
  clip-path:inset(0 var(--buyer-rail-right) 0 var(--buyer-rail-left));
}
.buyer-order-tabs[data-fade-left] { --buyer-fade-l:var(--buyer-rail-fade); }
.buyer-order-tabs[data-fade-right] { --buyer-fade-r:var(--buyer-rail-fade); }
.buyer-tab[data-order] {
  --buyer-tab-fit:calc((100cqi - var(--buyer-create-target) - var(--buyer-rail-control) - 2 * var(--buyer-rail-spacing)) / var(--buyer-tab-count, 1));
  --tab-width:min(max(94px,6.75rem), calc(100cqi - var(--buyer-compose-wide) - var(--buyer-rail-control) - 2 * var(--buyer-rail-spacing)),
    max(var(--buyer-tab-min), var(--buyer-tab-fit)));
  --buyer-label-direction:rtl; direction:var(--buyer-label-direction); align-self:stretch; padding-inline:4px;
}
.buyer-tab[data-order][aria-selected=true] {
  --tab-width:min(max(120px,8rem), calc(100cqi - 2 * (var(--buyer-rail-control) + var(--buyer-rail-spacing))),
    max(var(--buyer-tab-min), var(--buyer-tab-fit)));
}
[data-abeely-buyer][dir=ltr] .buyer-tab[data-order] { --buyer-label-direction:ltr; }
.buyer-rail .buyer-brand-menu, .buyer-rail .buyer-tab[data-fixed] { position:absolute; z-index:3; bottom:0; }
.buyer-rail .buyer-tab[data-fixed][aria-selected=true] {
  block-size:calc(100% - 6px); min-block-size:max(var(--buyer-rail-tab), 2.125rem);
}
.buyer-rail .buyer-brand-menu { right:12px; top:calc(50% + var(--buyer-safe-top) / 2); }
.buyer-rail .buyer-tab[data-fixed] { left:max(var(--buyer-rail-air), calc(var(--buyer-group-left, 0px) - var(--buyer-rail-spacing) - var(--buyer-create-width))); }
/* The tabs start at the right edge; a full rail scrolls from its own start as before. */
.buyer-order-tabs > :first-child { margin-left:auto; }
.buyer-rail .buyer-tab[data-fixed]:not([aria-selected=true]) { top:calc(50% - 5px); }
.buyer-rail .buyer-tab[data-fixed]:not([aria-selected=true]), .buyer-rail .buyer-brand-menu {
  bottom:auto; block-size:44px; margin-block-end:0; translate:0 -50%; background:transparent;
}
.buyer-rail .buyer-tab[data-fixed]::before, .buyer-rail .buyer-brand-menu::before {
  position:absolute; inset:-3px -8px -3px -8px; z-index:-1; width:auto; height:auto; pointer-events:none;
  content:''; background:linear-gradient(90deg,var(--buyer-rail) 48%,transparent);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  mask-image:linear-gradient(to right,#000 62%,transparent);
}
.buyer-rail .buyer-brand-menu::before { background:linear-gradient(270deg,var(--buyer-rail) 67%,transparent); mask-image:linear-gradient(to left,#000 74%,transparent); }
.buyer-rail .buyer-tab[data-fixed][aria-selected=true]::before { display:none; }
.buyer-plus-mark { width:21.6px; height:21.6px; }
.buyer-list-mark { width:27.9px; height:16.2px; }
.buyer-rail .buyer-tool, .buyer-rail .buyer-tab[data-fixed]:not([aria-selected=true]) { min-block-size:44px; }
.buyer-side-head { direction:ltr; margin-inline:0; gap:1px; }
.buyer-side-head .buyer-tool { background:transparent; }
.buyer-side-head .brand-abeely-logo { min-inline-size:0; margin-left:auto; margin-right:0; }
/* Same centre as the rail's control: 12px from the edge plus half the rail control. */
.buyer-side-head .buyer-brand-menu { margin-right:calc(12px + var(--buyer-rail-control) / 2 - 22px - var(--side-gutter)); }
[data-abeely-buyer][dir=ltr] .buyer-side { inset:0 0 0 auto; transform:translateX(103%); }
[data-abeely-buyer][dir=ltr][data-side-open] .buyer-side { transform:none; }
[data-abeely-buyer][dir=ltr][data-side-open] .buyer-main { transform:translateX(-22px); }
.buyer-tab-title { display:flex; align-items:center; justify-content:inherit; gap:5px; max-inline-size:100%; min-inline-size:0; }
.buyer-row-copy .buyer-tab-title { font-weight:600; }
.buyer-tab-title bdi { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
/* Any unread notice or new offer: one pastel yellow dot before the title (owner, 2026-11-30). */
.buyer-tab-title [data-notice-kind] { flex:0 0 7px; width:7px; height:7px; border-radius:50%; background:var(--buyer-news); }
.buyer-tab [data-notice-kind] { margin-inline-start:-3px; }
.buyer-history-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:.12rem .45rem; }
.buyer-history-meta :is(time,.buyer-history-place) { color:var(--buyer-muted); }
/* ORDER-SEARCH: why a row matched when its title does not show it — one quiet line, never a second. */
.buyer-history-entry .buyer-row-copy .buyer-history-hit { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; overflow-wrap:normal; }
.buyer-order-status {
  display:inline-block; max-inline-size:100%; padding:.08em .52em; border-radius:.62em;
  color:var(--buyer-muted); font-size:.75rem; font-weight:500; line-height:1.45; overflow-wrap:anywhere;
}
/* A tab's status is one line: it never wraps inside the 48 px tab. The tab grows to the status (the title gives its
   width away and keeps its ellipsis), so the words match the page heading and nothing is cut. */
.buyer-tab > .buyer-order-status {
  margin-block-start:clamp(5px,.3125rem,8px); padding-inline:.25em; line-height:1.25; white-space:nowrap; overflow-wrap:normal;
}
/* In a tab the waiting stone takes no width (two English requests still fit beside «طلب جديد» at 320): the fill
   reaches past the words with two side shadows of its own colour instead of padding. */
.buyer-tab > .buyer-order-status:is([data-status=waiting],[data-status=offers]) {
  padding-inline:0; box-shadow:.24em 0 0 var(--buyer-wait-tint), -.24em 0 0 var(--buyer-wait-tint);
}
.buyer-tab > .buyer-order-status[data-status=offers][data-fresh] { box-shadow:.24em 0 0 var(--buyer-fresh-tint), -.24em 0 0 var(--buyer-fresh-tint); }
.buyer-tab[data-order] { min-inline-size:min-content; }
.buyer-tab[data-order] > .buyer-tab-title { contain:inline-size; align-self:stretch; }
.buyer-order-status[data-status=assigned] { background:var(--buyer-run-tint); color:var(--buyer-run); }
.buyer-order-status[data-status=completed] { background:var(--buyer-done-tint); color:var(--buyer-done); }
.buyer-order-status:is([data-status=cancelled],[data-status=expired]) { background:var(--buyer-ended-tint); color:var(--buyer-ended); }
.buyer-order-status:is([data-status=waiting],[data-status=offers]) { background:var(--buyer-wait-tint); }
.buyer-order-status[data-status=offers] { color:var(--buyer-ink); }
.buyer-order-status[data-status=offers][data-fresh] { background:var(--buyer-fresh-tint); }
.buyer-order-status strong {
  font-weight:700; unicode-bidi:isolate; text-decoration:underline;
  text-decoration-color:color-mix(in srgb,currentColor 55%,transparent); text-decoration-thickness:1px; text-underline-offset:.16em;
}
@media (forced-colors:active) {
  .buyer-order-status strong { text-decoration-color:currentColor; }
}
.buyer-edge-bell {
  position:absolute; z-index:4; inset-block-start:calc(var(--buyer-safe-top) - 13px); transform:translateX(-50%);
  display:grid; place-items:start center; inline-size:44px; min-block-size:44px;
  border:0; border-radius:10px; padding:16px 0 0; background:transparent; color:var(--buyer-action-ink);
  font-size:.75rem; font-weight:700; line-height:1;
}
.buyer-edge-bell[data-side=left] { --buyer-bell-entry:-9px; --buyer-bell-tilt:-9deg; }
.buyer-edge-bell[data-side=right] { --buyer-bell-entry:9px; --buyer-bell-tilt:9deg; }
.buyer-bell-face {
  display:inline-flex; align-items:center; gap:3px; padding:2px 5px; border-radius:7px;
  background:var(--buyer-option); animation:buyer-edge-visit 1.55s var(--buyer-ease) both;
}
.buyer-bell-face svg { width:14px; height:14px; transform-origin:50% 17%; animation:buyer-edge-ring 1.55s var(--buyer-ease) both; }
.buyer-bell-face > span:empty { display:none; }
.buyer-edge-bell:focus-visible :is(.buyer-bell-face,svg) { animation:none; }
/* It pops from the tab's side with a physical bounce (owner, 2026-11-30): past its seat, back, settled. */
@keyframes buyer-edge-visit {
  0%,100% { opacity:0; translate:var(--buyer-bell-entry) 0; }
  11% { opacity:1; translate:calc(var(--buyer-bell-entry) * -.45) 0; }
  17% { translate:calc(var(--buyer-bell-entry) * .18) 0; }
  22% { translate:calc(var(--buyer-bell-entry) * -.06) 0; }
  26%,79% { opacity:1; translate:0 0; }
}
/* A new offer only darkens its tab's stone: its bell pops but neither rings nor shakes. */
.buyer-edge-bell[data-kind=offer] .buyer-bell-face svg { animation:none; }
@keyframes buyer-edge-ring {
  0%,16%,46%,100% { rotate:0deg; }
  23% { rotate:var(--buyer-bell-tilt); }
  30% { rotate:calc(var(--buyer-bell-tilt) * -.8); }
  37% { rotate:calc(var(--buyer-bell-tilt) * .4); }
}
@media (prefers-reduced-motion:reduce) { .buyer-bell-face,.buyer-bell-face svg { animation:none; } }
.buyer-order-updates { margin-block-start:20px; }
.buyer-order-updates [data-order-note], [data-account-note] { border-block-start:1px solid var(--buyer-line); padding:7px 0; }
.buyer-order-updates p, [data-account-note] p { margin:2px 0 0; color:var(--buyer-muted); }
.buyer-order-updates [data-more-notices] { min-block-size:44px; padding-inline:8px; border:0; border-radius:8px; background:transparent; color:var(--buyer-blue); }
.buyer-sidebar-dialog { inline-size:min(90vw,400px); }
.buyer-sidebar-dialog h2 { margin:0; margin-inline-start:46px; margin-block-end:12px; }
:is(.buyer-sidebar-dialog,.buyer-link-dialog) h2:focus { outline:none; }
.buyer-sidebar-dialog > .buyer-tool { position:absolute; inset-inline-start:12px; inset-block-start:10px; background:transparent; }
.buyer-account-settings { display:block; padding:9px 0; color:var(--buyer-blue); }
/* «حسابي»: the composer's own field, code cells and action, on the sidebar dialog. */
.buyer-acct {
  --bc-inset:var(--buyer-inset); --bc-option:var(--buyer-option); --bc-tool:var(--buyer-tool); --bc-stroke:var(--buyer-line);
  --bc-muted:var(--buyer-muted); --bc-blue:var(--buyer-blue); --bc-disabled:var(--buyer-disabled);
  display:grid; gap:10px; margin-block-start:16px; padding-block-start:14px; border-block-start:1px solid var(--buyer-line);
}
.buyer-acct :is(button,input) { font:inherit; color:inherit; }
.buyer-acct h3 { margin:0; font-size:1rem; }
.buyer-acct-lead,.buyer-acct-muted,.buyer-acct .bc-legal { margin:0; line-height:1.6; }
.buyer-acct-muted { color:var(--buyer-muted); font-size:.92rem; }
.buyer-acct-legal { margin:0; text-align:center; color:var(--buyer-muted); font-size:.88rem; }
.buyer-acct-legal a { display:inline-block; padding:12px 8px; color:inherit; }
.buyer-acct .bc-code-feedback { margin:0; }
.buyer-acct .buyer-account-settings { inline-size:100%; min-block-size:44px; border:0; background:transparent; color:var(--buyer-ink); text-align:start; cursor:pointer; }
.buyer-acct .buyer-account-settings:disabled { color:var(--buyer-muted); cursor:default; }
.buyer-acct-action {
  inline-size:100%; min-block-size:48px; border:0; border-radius:var(--buyer-radius); padding:7px 16px;
  background:var(--buyer-action-fill); color:var(--buyer-action-on) !important; font-weight:700; cursor:pointer;
}
.buyer-acct-action:active:not(:disabled) { background:var(--buyer-action-pressed); }
.buyer-acct-action:disabled { background:var(--buyer-disabled); color:var(--buyer-muted) !important; cursor:default; }
.buyer-acct .bc-input-wrap:focus-within { outline:2px solid var(--buyer-blue); outline-offset:0; }
.buyer-acct :is(.bc-input-wrap,.bc-code) input:focus { outline:0; box-shadow:none; }
.buyer-acct .bc-code-line { margin:0; }
.buyer-acct :is(.bc-link,.bc-code) { justify-self:start; }
.buyer-acct-numbers,.buyer-acct-facts { margin:0; padding:0; list-style:none; display:grid; gap:6px; }
.buyer-acct-numbers li { display:flex; align-items:center; gap:10px; min-block-size:44px; padding:6px 12px; border-radius:12px; background:var(--buyer-option); }
.buyer-acct-numbers svg { flex:none; color:var(--buyer-blue); inline-size:18px; block-size:18px; }
.buyer-acct h3:not(:first-child) { margin-block-start:8px; }
/* Account rows are the sidebar's .buyer-row, grouped on a card with hairlines between them. */
.buyer-acct-group { display:grid; border-radius:14px; background:var(--buyer-option); overflow:hidden; }
.buyer-acct-row { min-height:52px; padding:10px 14px; border-radius:0; color:var(--buyer-ink); cursor:pointer; }
.buyer-acct-group > .buyer-acct-row + .buyer-acct-row { border-block-start:1px solid var(--buyer-line); }
.buyer-acct-row > svg { flex:none; inline-size:20px; block-size:20px; color:var(--buyer-blue); }
.buyer-acct-row .buyer-row-copy small { color:var(--buyer-muted); }
.buyer-acct-row:disabled { cursor:default; opacity:.6; }
.buyer-acct-chevron { display:inline-flex; flex:none; margin-inline-start:auto; color:var(--buyer-muted); }
.buyer-acct-chevron svg { inline-size:16px; block-size:16px; }
.buyer-acct-row[data-destructive], .buyer-acct-row[data-destructive] > svg { color:var(--buyer-danger); }
.buyer-acct-danger { margin-block-start:6px; }
.buyer-acct-action[data-destructive]:not(:disabled) { background:var(--buyer-danger); }
a.buyer-acct-action { display:flex; align-items:center; justify-content:center; gap:8px; box-sizing:border-box; text-decoration:none; }
.buyer-acct-switch { display:flex; align-items:center; justify-content:space-between; gap:12px; min-block-size:48px; padding:6px 14px; border-radius:14px; background:var(--buyer-option); }
.buyer-acct-switch input { flex:none; inline-size:1.25rem; block-size:1.25rem; margin:0; accent-color:var(--buyer-blue); }
a.buyer-acct-row { box-sizing:border-box; text-decoration:none; }
.buyer-acct-switch > span { display:grid; gap:2px; }
.buyer-acct-switch small { color:var(--buyer-muted); font-size:13px; }
.buyer-acct-hours { display:flex; gap:10px; }
.buyer-acct-hours label { display:grid; flex:1; gap:4px; color:var(--buyer-muted); font-size:13px; }
.buyer-acct-hours select { min-block-size:44px; padding-inline:10px; border:1px solid var(--buyer-line); border-radius:12px; background:var(--buyer-option); color:var(--buyer-ink); font:inherit; }
.buyer-acct-hours label:focus-within select { outline:2px solid var(--buyer-blue); outline-offset:0; }
.buyer-acct-sums { display:grid; gap:6px; margin:0; }
.buyer-acct-sums div { display:flex; justify-content:space-between; gap:12px; }
.buyer-acct-sums dt { color:var(--buyer-muted); }
.buyer-acct-sums dd { margin:0; font-weight:600; white-space:nowrap; }
.buyer-acct-spend b { white-space:nowrap; }
.buyer-acct-month { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.buyer-acct-month .buyer-tool { margin:0; }
.buyer-acct-month .buyer-tool:disabled { opacity:.4; }
/* The chevron points left: «previous» flips in RTL, «next» flips in LTR. */
.buyer-acct-month [data-acct-month="-1"]:dir(rtl) svg, .buyer-acct-month [data-acct-month="1"]:dir(ltr) svg { transform:scaleX(-1); }
.buyer-acct-spend { margin:0; padding:0; list-style:none; display:grid; border-radius:14px; background:var(--buyer-option); overflow:hidden; }
.buyer-acct-spend li { display:flex; align-items:center; gap:10px; min-block-size:52px; padding:8px 14px; }
.buyer-acct-spend li + li { border-block-start:1px solid var(--buyer-line); }
.buyer-acct-url { overflow-wrap:anywhere; }
.buyer-acct-facts li { padding-block:4px; padding-inline-start:12px; border-inline-start:2px solid var(--buyer-line); line-height:1.55; }
.buyer-language-list { display:grid; gap:3px; }
.buyer-language-list button { text-align:start; min-height:44px; border:0; border-radius:9px; padding-inline:10px; background:transparent; }
.buyer-language-list button[aria-pressed=true] { background:var(--buyer-side-selection); font-weight:700; }
.buyer-language-preference { display:flex; align-items:center; gap:.5rem; min-block-size:44px; margin-block-end:.5rem; }
.buyer-language-preference input { inline-size:1.2rem; block-size:1.2rem; accent-color:var(--buyer-blue); }
.buyer-content-translation { display:flex; align-items:center; flex-wrap:wrap; gap:.25rem .6rem; color:var(--buyer-muted); font-size:.875rem; }
.buyer-content-translation button { min-block-size:44px; padding:.3em .65em; background:var(--buyer-tool); border:0; border-radius:10px; color:var(--buyer-blue); }

/* Controls and interface copy should not show the iOS text selection handles.
   User-authored descriptions, offers, codes and editable fields stay copyable. */
[data-abeely-buyer] :where(button,summary,[role="status"],h1,h2,h3,.bc-step-top,.bc-place-note,.buyer-order-empty,.bc-review-sub>span,.bc-photo-tool small) {
  -webkit-user-select:none;user-select:none;
}
[data-abeely-buyer] :where(input,textarea,[contenteditable="true"],.buyer-order-description,.bc-review-value,.bos-description,.bos-terms li,.ba-code) {
  -webkit-user-select:text;user-select:text;
}
/* Initial focus names the modal; real keyboard navigation still rings buttons. */
.buyer-dialog-focus { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); outline:none; }
[data-order-view="market"] > [data-order-questions] { display:none }
.buyer-request-questions { border-block-end:1px solid var(--buyer-line);margin-block-end:.75rem }
.buyer-request-questions summary { min-block-size:44px;padding:.7rem 0;box-sizing:border-box;font-weight:650;cursor:pointer }
.buyer-question { padding:.65rem 0;border-block-start:1px solid var(--buyer-line) }
.buyer-question p { margin:.3rem 0;overflow-wrap:anywhere }
.buyer-question-by { color:var(--buyer-text-secondary);font-size:.88rem }
.buyer-question-answer { padding-inline-start:.75rem;border-inline-start:2px solid var(--buyer-line) }
.buyer-question textarea {
  display:block;box-sizing:border-box;width:100%;padding:.5rem;margin-block:.4rem;
  color:inherit;background:var(--buyer-soft);border:1px solid var(--buyer-line);
  border-radius:.65rem;font:inherit;resize:vertical
}
