/* مراجعة الحليف (#/reviews, #/review-edit/<id>): one card a review, one card a file, the rest behind a tap. */
/* The page uses the whole width: its own action sits at the far edge, like every other page's. */
.rva-page { max-width: none; }
.rva-tabs { margin: 0 0 16px; flex-wrap: wrap; }
.rva-row { display: block; padding: 12px 16px; margin: 0 0 10px; color: inherit; text-decoration: none; }
.rva-row:hover { border-color: var(--ui-line-2); }
.rva-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.rva-name { min-width: 0; overflow-wrap: anywhere; }
.rva-head-acts { gap: 8px; flex-wrap: wrap; }
.rva-facts { margin: 0 0 6px; line-height: 1.8; }

.rva-link { display: flex; gap: 18px; align-items: flex-start; padding: 16px; margin: 0 0 14px; }
.rva-qr { flex: none; width: 132px; }
.rva-qr svg { display: block; width: 100%; height: auto; }
.rva-link-b { min-width: 0; flex: 1; }
.rva-url { font-size: 13px; padding: 8px 10px; background: var(--ui-bg, #f6f5f1); border: 1px solid var(--ui-line); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.rva-link-acts { gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.rva-link p { margin: 0; line-height: 1.7; }

.rva-item { display: flex; gap: 14px; padding: 12px 16px; margin: 0 0 10px; }
.rva-thumb { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #efeadb; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.rva-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rva-kind { font-size: 15px; font-weight: 700; color: #6d6641; }
.rva-body { min-width: 0; flex: 1; }
.rva-said { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ui-bad-bg); color: var(--ui-ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.rva-acts { gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.rva-item details.more { margin: 10px 0 0; }
.rva-hist { margin: 0; padding: 0 18px 0 0; font-size: 12.5px; line-height: 1.9; }
body.ui-en .rva-hist, body.ui-en .rva-inotes { padding: 0 0 0 18px; }
.rva-inotes { margin: 8px 0 0; padding: 0 18px 0 0; list-style: none; }
.rva-inotes li { padding: 6px 0; border-top: 1px dashed var(--ui-line); }
.rva-inotes li:first-child { border-top: 0; }
.rva-inotes li div { white-space: pre-wrap; overflow-wrap: anywhere; }
.card > .rva-inotes { margin: 0; padding: 8px 16px; }
.rva-note { padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }

.rva-src { max-height: 52vh; overflow: auto; }
.rva-st { padding: 8px 0; border-top: 1px solid var(--ui-line); }
.rva-st-h { margin: 0 0 4px; overflow-wrap: anywhere; }
.rva-sf { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.rva-sf-n { flex: 1; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .rva-link { flex-direction: column; align-items: stretch; }
  .rva-qr { width: 150px; margin: 0 auto; }
  .rva-item { flex-direction: column; }
  .rva-thumb { width: 100%; height: 180px; }
  .rva-thumb.rva-thumb-file { width: 64px; height: 48px; }
  .rva-top { flex-direction: column; gap: 6px; }
}

/* 2026-10-22: the alliances' standing links, the social placement of a piece, the conversation */
.rva-link { display: block; }
.rva-link-h { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.rva-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #111110; color: #bdb797; display: grid; place-items: center; font-weight: 700; }
.rva-av img { width: 100%; height: 100%; object-fit: cover; }
.rva-link-t { min-width: 0; display: flex; flex-direction: column; }
.rva-link .rva-qr { width: 150px; margin: 10px 0 0; }
.rva-thumb video { width: 100%; height: 100%; object-fit: cover; }
.rva-post { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.rva-plats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.rva-post textarea { width: 100%; }
.rva-post .row { gap: 10px; flex-wrap: wrap; align-items: center; }
.bad-text { color: var(--ui-bad, #9a3b2e); }
.rva-add { gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.rva-msg { padding: 12px 16px; margin: 0 0 10px; }
.rva-msg.house { border-inline-start: 3px solid #bdb797; }
.rva-msg.client { border-inline-start: 3px solid #9a3b2e; }
.rva-msg.done { opacity: .7; }
.rva-msg-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rva-msg-t { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.rva-reply { margin: 8px 0 0; padding: 8px 12px 0; border-top: 1px dashed var(--ui-line); white-space: pre-wrap; overflow-wrap: anywhere; }
.rva-msg-acts { gap: 8px; margin: 8px 0 0; }
.rva-pinprev { position: relative; display: inline-block; max-width: 260px; margin: 8px 0 0; line-height: 0; }
.rva-pinprev img { max-width: 100%; max-height: 200px; border-radius: 6px; }
.rva-pinprev i { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #9a3b2e; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.rva-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; margin: 0 0 12px; }
.rva-compose textarea { flex: 1; }
.rva-pad { padding: 0 14px 12px; }
.banner.small { font-size: 12.5px; padding: 6px 10px; margin: 8px 0 0; }
.rva-ptext textarea { width: 100%; }
.rva-changed { padding: 10px 16px; margin: 0 0 12px; border-inline-start: 3px solid #8a5a12; }
.rva-changed-h { margin: 0 0 4px; }
.rva-changed ul { margin: 0; padding-inline-start: 18px; line-height: 1.9; }
.rva-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.rva-folder { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0; color: inherit; text-decoration: none; }
.rva-folder:hover { border-color: var(--ui-line-2); }
.rva-folder .rva-av { width: 46px; height: 46px; font-size: 18px; }
.rva-folder-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rva-folder-t b { font-size: 16px; overflow-wrap: anywhere; }
.rva-folder-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rva-people { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.rva-person { padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 10px; }
.rva-person.off { opacity: .65; }
.rva-person-h { margin: 0 0 6px; }
.rva-appr { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rva-round { padding: 12px 16px; margin: 0 0 12px; }
.rva-round ul { list-style: none; margin: 8px 0 0; padding: 0; }
.rva-round li { padding: 6px 0; border-top: 1px solid var(--ui-line); display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; align-items: center; }
.rva-round li > div { flex-basis: 100%; }
.rva-round-acts { gap: 8px; margin: 8px 0 0; flex-wrap: wrap; }
.rva-cond { color: #3d6a33; }
.rva-voice { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.rva-voice audio { height: 32px; max-width: 280px; }

/* The second visual review (2026-10-24). */
/* The meta line under a review's title: each item keeps together, the dot travelling with the item it introduces. */
.rva-meta .rva-mi { display: inline-block; }
.rva-meta .rva-mi + .rva-mi::before { content: '·'; margin: 0 7px; color: var(--ui-muted); }
body:not(.ui-en) .rva-meta .rva-mi + .rva-mi::before { content: '•'; }
/* A tab's count is a small pill, so a zero never reads as one more dot. */
.rva-n { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--ui-line); color: var(--ui-ink-2); font-size: 11px; line-height: 18px; text-align: center; margin-inline-start: 4px; }
.rva-tabs button.on .rva-n { background: rgba(255, 255, 255, .22); color: #fff; }
/* Caption boxes grow with their text (the script sets the height; the browser may do it itself). */
.rva-post textarea { field-sizing: content; min-height: 3.4em; resize: vertical; }
.rva-plats input[type=checkbox], .rva-post input[type=checkbox] { accent-color: var(--ui-ink); }
@media (max-width: 760px) {
  .rva-plats { gap: 6px 10px; font-size: 12.5px; }
  /* A film's buttons: full width, the ↑ ↓ pair together at the end. */
  .rva-acts { gap: 6px; }
  .rva-acts > .btn:not([data-act="up"]):not([data-act="down"]) { flex: 1 1 100%; justify-content: center; }
  .rva-acts > .btn[data-act="up"], .rva-acts > .btn[data-act="down"] { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  /* On a phone the meta items wrap with space between them, no dot to strand at a line's start. */
  .rva-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .rva-meta .rva-mi + .rva-mi::before { content: none; }
  /* The four platforms two by two; the posting day's label above its field. */
  .rva-plats { display: grid; grid-template-columns: 1fr 1fr; }
  .rva-post > label.small:has(input) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* The third review, second core pass (2026-10-24). */
/* The meta line: every item, codes included, is a plain item; the code keeps its own direction inside it, so the dot before it stands between it and the item before. On a phone the items wrap with space, no dots, in both languages. */
.rva-meta .rva-mi > bdi[dir="ltr"] { unicode-bidi: isolate; }
@media (max-width: 760px) { body .rva-meta.rva-meta .rva-mi + .rva-mi::before { content: none; } }
/* The note stands apart from the tabs under it, as every other block on the page. */
.rva-note { margin-bottom: 14px; }
/* A film's header row: its name, then its state and the ↑ ↓ that move it, together at the far end. */
.rva-top-end { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.rva-top-end .rva-mv { min-width: 30px; padding-inline: 8px; justify-content: center; }
@media (max-width: 760px) {
  /* The three tabs on one line, sliding sideways if they must, like every other row of choices on a phone. */
  #view .seg.rva-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  #view .seg.rva-tabs > button { flex: none; white-space: nowrap; }
  .rva-top { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rva-top > .rva-name { flex: 1 1 100%; }
}

/* An archived piece: its file is gone, its name and story stay. */
.rva-thumb.rva-gone { border: 1px dashed #c9bfa5; background: transparent; color: #8a7f66; }
@media (max-width: 600px) { .rva-thumb.rva-gone { width: 64px; height: 48px; } }

/* The platform preview on the House's own page, and the House's review before the alliance's (2026-11-15). */
.rva-prev { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3dabd; }
.rva-prev-plats { gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; align-items: center; }
.rva-prev-gap { flex: 1 1 12px; }
.rva-prev-host.mobile { width: min(100%, 300px); margin: 0 auto; }
.rva-prev-host.desktop { width: 100%; max-width: 760px; margin: 0 auto; }
.rva-house { margin: 12px 0; padding: 14px 16px; }
.rva-house-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rva-house .row { gap: 8px; flex-wrap: wrap; align-items: center; }
