/* PolitiSizeIT: the research view's Phase 2 picture view (research-browse.js; AGENTS gotcha 159). Theme tokens only;
   gold for the sentences used, the chat's own accent for the followed link; nothing blue or red (gotcha 63). */
.rb-fig { margin: 10px 0 4px; padding: 0; }
.rb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; min-width: 0; }
.rb-addr { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-dim); font-size: 13px; }
.rb-addr svg { flex: none; }
.rb-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-ro { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; line-height: 1.5; color: var(--text-dim); background: var(--surface-2); }
.rb-frame { position: relative; max-height: 360px; overflow: auto; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch;
  scrollbar-width: none; }
/* No second scrollbar inside the pane's own (design critic, 18 Oct 2026); the picture still pans with a finger. */
.rb-frame::-webkit-scrollbar { display: none; }
.rb-addr:empty { display: none; }
/* Under the picture: the page count, and on a site's front page the Read-only badge beside it (research-browse.js). */
.rb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; }
.rb-foot .rb-count { margin: 0; }
.rb-foot .rb-ro { margin-left: auto; }
.rb-inner { position: relative; line-height: 0; }
.rb-img { display: block; width: 100%; height: auto; }
.rb-inner.is-drawing .rb-box { visibility: hidden; }
/* 3px of room on every side, so a link or a line stays visible when a phone shrinks the picture to ~40% (pane check). */
.rb-box { position: absolute; display: block; box-sizing: content-box; padding: 3px; margin: -3px 0 0 -3px; border-radius: 4px; pointer-events: none; }
/* An outline with the faintest tint, so the words it marks keep their full contrast (design critic, 18 Oct 2026). */
.rb-used { background: color-mix(in srgb, var(--map-pick) 8%, transparent); box-shadow: 0 0 0 2.5px var(--map-pick); }
/* The link the chat followed: a dashed coral ring with a white halo, visible on light and dark pictures alike. */
.rb-link { outline: 2.5px dashed var(--coral-fill); outline-offset: 0; box-shadow: 0 0 0 4.5px rgba(255, 255, 255, .7); }
.rb-loading { height: 120px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 13px; background: var(--surface-2); }
.rb-note, .rb-count { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.rb-count { font-size: 12px; }
/* Dark mode is html[data-theme="dark"] (theme.css, set before first paint): the picture dimmed slightly (plan 3.3). */
html[data-theme="dark"] .rb-img { filter: brightness(.92); }

/* The one-time permission card, under the reply that asked (plan 4.3). */
.rb-consent { margin: 10px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); max-width: 560px; }
.rb-consent-t { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.rb-consent-b { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.rb-consent-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-allow, .rb-later { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.rb-allow { border: 0; color: #fff; background: var(--coral-fill); }
.rb-later { border: 1px solid var(--line-strong); color: inherit; background: transparent; }
/* Allow waits for the human check: it looks switched off while it is (design critic, 19 Oct 2026). */
.rb-allow:disabled { opacity: .55; cursor: default; }
.rb-consent-said { margin: 8px 0 0; font-size: 14px; }
.rb-consent-said:empty { display: none; }
/* The human check on Allow (human.js #ps-human, drawn just above the words): nothing while Cloudflare checks silently,
   the box only when it asks for a click, lined up with the card's words (as .team-mail's slot in app.css). */
.rb-consent .human-slot { max-width: 100%; }
.rb-consent .human-slot:empty { display: none; }
.rb-consent .human-slot:not(:empty):not(.is-interactive) { position: absolute; width: 0; height: 0; overflow: hidden; }
.rb-consent .human-slot.is-interactive { margin: 12px 0 0; justify-content: flex-start; }
.rb-consent .human-slot.is-interactive + .rb-consent-said { margin-top: 12px; }
.rb-consent.is-declined .human-slot { display: none; }

/* A phone's reading pane that holds a page picture rises higher than Phase 1's 45%, so the picture has room above the
   message box (design critic, 18 Oct 2026: about 125pt of picture showed). It still stops above the box and below the
   chat's header (gotcha 101); the thread keeps room for it, as Phase 1's rule does. */
@media (max-width: 760px) {
  /* From just under the chat's header (--rv-top, research-view.js) to the message box: no strip of the chat between the
     header and the pane (design critic round 2). */
  html.rv-open:has(.rv .rb-fig) .rv { top: calc(var(--rv-top, 64px) + 6px); height: auto; }
  html.rv-open:has(.rv .rb-fig) .chat-stage .thread { padding-bottom: calc(100dvh - var(--rv-top, 64px) - var(--rv-cmp, 76px) + 16px); }
}
/* Over the chat on a narrow laptop window: a shadow along the pane's left edge, so the chat reads as covered, not cut
   (design critic round 3). */
@media (min-width: 761px) {
  html.rv-open:not(.rv-beside) .rv { box-shadow: 0 0 0 1px var(--line), -18px 0 40px -14px rgba(11, 11, 16, .32); }
}
