/* «Спільнота» (плагін community застосунку profiles): стиль сторінок читачів ridmi — токени public.css
   (--bg, --surface, --ink, --muted, --line, --coral, --lemon), Comfortaa / Roboto, радіуси 16. */

.rpc{ padding-bottom:12px; }
.rpc-visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.rpc-head{ margin:8px 0 14px; }
.rpc-h1{ margin:0; font:900 28px/1.1 var(--display); letter-spacing:-.01em; color:var(--ink); }
.rpc-lead{ margin:6px 0 0; color:var(--muted); font-size:14px; line-height:1.45; }
.rpc-small{ margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }
.rpc-sec{ margin-top:22px; }
.rpc-sec > .rpf-h2{ margin:0 0 10px; }
.rpc-staff{ margin:0 0 14px; font-size:13px; }
.rpc-back{ display:inline-block; margin:6px 0 10px; color:var(--muted); font-weight:700; font-size:14px; text-decoration:none; }
.rpc-link{ display:inline-block; margin:6px 0 0; color:var(--ink); font-size:13px; font-weight:700; text-underline-offset:3px; }

/* аватар */
.rpc-ava{ --s:40px; flex:none; width:var(--s); height:var(--s); border-radius:50%; overflow:hidden; display:inline-flex; align-items:center;
  justify-content:center; background:var(--lemon); color:var(--ink); font:700 calc(var(--s) * .4)/1 var(--body); }
.rpc-ava img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ряд читачів */
.rpc-people{ display:flex; gap:12px; overflow-x:auto; padding:12px 2px 8px; margin:0 -16px 6px; padding-left:16px; padding-right:16px;
  scrollbar-width:none; }
.rpc-people::-webkit-scrollbar{ display:none; }
.rpc-person{ flex:none; width:64px; display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; color:var(--ink);
  font-size:11px; font-weight:700; text-align:center; }
.rpc-person .rpc-ava{ box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--line); }
.rpc-person.is-followed .rpc-ava{ box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--coral); }
.rpc-person span{ max-width:64px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* «Що читаєте?» */

/* вкладки стрічки — як .rpf-seg, але посиланнями (?tab=following рахує сервер) */
.rpc-seg{ margin-bottom:14px; }
.rpc-seg a{ flex:1; display:flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:6px 8px; border:1.5px solid var(--line); border-radius:12px;
  background:var(--surface); color:var(--ink); font:700 13px/1.2 var(--body); text-decoration:none; }
.rpc-seg a[aria-current="page"]{ border-color:var(--coral); background:var(--coral); color:#fff; }
.rpc-seg a small{ font-size:12px; opacity:.8; }
/* порожні «Підписки»: кого почитати */
.rpc-suggest{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px; }
.rpc-suggest__lead{ margin:0 0 6px; color:var(--muted); font-size:14px; line-height:1.45; }
.rpc-suggest__list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }

/* банер клубу */
.rpc-promo{ display:flex; flex-direction:column; gap:4px; margin:0 0 14px; padding:14px 16px; border-radius:16px; background:var(--lemon);
  color:var(--ink); text-decoration:none; }
.rpc-promo .rpf-pill{ align-self:flex-start; }
.rpc-promo b{ font:900 17px/1.2 var(--display); }
.rpc-promo small{ color:var(--muted); font-size:13px; }

/* картки */
.rpc-cards{ display:flex; flex-direction:column; gap:12px; }
.rpc-mine{ display:contents; }
.rpc-morebtn{ margin-top:4px; }
.rpc-card{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px; }
.rpc-card[hidden]{ display:none; }
.rpc-card__h{ margin:10px 0 4px; font:900 17px/1.25 var(--display); }
.rpc-card__h a{ color:inherit; text-decoration:none; }
.rpc-card p{ margin:8px 0 0; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.rpc-who{ display:flex; align-items:center; gap:10px; }
.rpc-who__a{ display:flex; text-decoration:none; }
.rpc-who__t{ flex:1; min-width:0; display:flex; flex-direction:column; }
.rpc-who__t a{ color:var(--ink); text-decoration:none; }
.rpc-who__t b{ font-size:14px; }
.rpc-who__t small{ color:var(--muted); font-size:12px; }
.rpc-follow{ flex:none; min-height:32px; padding:4px 12px; border:1.5px solid var(--coral); border-radius:12px; background:var(--coral); color:#fff;
  font:700 12px/1 var(--body); cursor:pointer; }
.rpc-follow.is-on{ background:transparent; color:var(--ink); border-color:var(--line); }

/* текст: 4 рядки + «Читати далі» (js) */
.rpc-clamp{ display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.rpc-clamp.is-open{ display:block; -webkit-line-clamp:unset; overflow:visible; }
.rpc-spoiler{ filter:blur(5px); cursor:pointer; user-select:none; transition:filter .2s; }
.rpc-spoiler.is-open{ filter:none; user-select:auto; }
.rpc-spoiler-tag{ display:inline-block; margin-top:8px; padding:2px 8px; border-radius:8px; background:var(--rose); font-size:11px; font-weight:700; }

/* книжка в картці */
.rpc-bk{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.rpc-bk__a{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; }
.rpc-bk__t{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.rpc-bk__t b{ font-size:14px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rpc-bk__t small{ color:var(--muted); font-size:12px; }
.rpc-cover{ flex:none; display:block; aspect-ratio:2/3; border-radius:6px; overflow:hidden; background:var(--line);
  box-shadow:0 2px 6px rgba(24,32,58,.18); }
.rpc-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.rpc-cover > span{ display:block; padding:4px; font-size:9px; line-height:1.2; color:var(--muted); }
.rpc-cover--big{ width:112px; border-radius:10px; }
.rpc-more{ flex:none; width:36px; height:36px; border:0; border-radius:50%; background:var(--bg); color:var(--ink); font:900 18px/1 var(--body);
  cursor:pointer; }

/* дії */
.rpc-acts{ display:flex; align-items:center; gap:4px; margin-top:10px; padding-top:8px; border-top:1px solid var(--line); }
.rpc-acts__sp{ flex:1; }
.rpc-act{ display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:4px 10px; border:0; border-radius:12px; background:none;
  color:var(--muted); font:700 13px/1 var(--body); cursor:pointer; }
.rpc-act[aria-pressed="true"]{ color:var(--coral); }
.rpc-vote[aria-pressed="true"] span{ color:var(--coral); }
.rpc-act:disabled{ opacity:.6; cursor:default; }
@media (hover:hover){ .rpc-act:hover{ background:var(--bg); } }

/* зірки */
.rpc-stars{ color:var(--yellow); letter-spacing:1px; font-size:14px; }
.rpc-stars i{ font-style:normal; color:var(--line); }
.rpc-rev__h{ display:block; margin-top:6px; font-size:14px; }

/* сторінка книжки */
.rpc-social{ display:flex; align-items:center; gap:10px; margin:16px 0 0; color:var(--muted); font-size:13px; font-weight:600; }
.rpc-social__avas{ display:flex; }
.rpc-social__avas a{ display:flex; margin-left:-8px; border-radius:50%; box-shadow:0 0 0 2px var(--bg); }
.rpc-social__avas a:first-child{ margin-left:0; }
.rpc-linkbtn{ padding:0; border:0; background:none; color:var(--ink); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.rpc-ppl{ display:flex; flex-direction:column; gap:10px; margin-top:10px; max-height:60vh; overflow:auto; }
/* клуб: учасник, а книжки ще немає на полиці */
.rpc-clubshelf{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding:12px 14px; border:1px dashed var(--line);
  border-radius:16px; color:var(--muted); font-size:14px; line-height:1.4; }
.rpc-clubshelf .rpf-btn{ flex:none; }
.rpc-clubshelf b{ display:block; color:var(--ink); }
.rpc-clubshelf small{ display:block; margin-top:2px; font-size:13px; }
/* клуби: «почніть клуб» з книжки, яку читаєте */
.rpc-startclub__list{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.rpc-startclub__b{ flex:none; display:flex; align-items:center; gap:10px; max-width:260px; padding:10px 12px; border:1.5px dashed var(--line); border-radius:16px;
  color:var(--ink); text-decoration:none; font-size:13px; line-height:1.3; }
.rpc-startclub__b small{ display:block; color:var(--muted); font-size:12px; }
@media (hover:hover){ .rpc-startclub__b:hover{ border-color:var(--coral); } }
/* повідомлення клубу: реакції · видалити · ⋯ */
.rpc-acts--post{ margin-top:6px; padding-top:4px; border-top:0; }
.rpc-bookhead, .rpc-clubhead{ display:flex; gap:16px; align-items:flex-start; }
.rpc-bookhead__t{ flex:1; min-width:0; }
.rpc-bookhead .rpc-h1, .rpc-clubhead .rpc-h1{ font-size:22px; }
.rpc-rate{ margin:8px 0 0; font-size:14px; }
.rpc-rate small{ color:var(--muted); }
.rpc-bookhead__btns{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.rpc-bookhead__btns .rpf-btn{ min-height:40px; padding:8px 14px; font-size:14px; }

/* клуби */
.rpc-clubs{ display:flex; flex-direction:column; gap:10px; }
.rpc-club{ display:flex; gap:14px; align-items:center; padding:12px; border-radius:16px; background:var(--surface); border:1px solid var(--line);
  color:var(--ink); text-decoration:none; }
.rpc-club__t{ min-width:0; display:flex; flex-direction:column; gap:3px; }
.rpc-club__t b{ font:900 16px/1.2 var(--display); }
.rpc-club__t small{ color:var(--muted); font-size:12px; }
.rpc-parts{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.rpc-parts li > *{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 14px; border-radius:14px;
  background:var(--surface); border:1.5px solid var(--line); color:var(--ink); text-decoration:none; }
.rpc-parts li.is-cur > *{ border-color:var(--coral); }
.rpc-parts li.is-locked > *{ opacity:.55; }
.rpc-parts small{ color:var(--muted); font-size:12px; }

/* вішлісти */
.rpc-wls{ display:flex; flex-direction:column; gap:12px; margin-bottom:12px; }
.rpc-wl{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px; color:var(--ink); text-decoration:none; }
.rpc-wl--mine{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.rpc-wl--mine small{ color:var(--muted); font-size:12px; }
.rpc-wl__covers{ display:flex; gap:8px; margin-bottom:10px; }
/* картка стрічки: вішліст цілком — рядок обкладинок гортається */
.rpc-card > .rpc-wl__covers{ overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.rpc-card > .rpc-wl__covers::-webkit-scrollbar{ display:none; }
.rpc-card > .rpc-wl__covers .rpc-cover{ flex:none; }
.rpc-wl__name{ display:block; margin-bottom:10px; color:var(--ink); text-decoration:none; font:900 17px/1.25 var(--display); }

/* шторки (rpfSheet) */
.rpc-sheet h3{ margin:0 0 4px; font:900 20px/1.2 var(--display); }
.rpc-sheet p{ font-size:14px; line-height:1.5; }
.rpc-sheet__btns{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.rpc-sheet__opt{ display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:10px 14px; border:1.5px solid var(--line);
  border-radius:14px; background:var(--surface); color:var(--ink); font:700 15px var(--body); text-align:left; cursor:pointer; }
.rpc-sheet__opt[aria-pressed="true"]{ border-color:var(--coral); }
.rpc-sheet textarea{ width:100%; min-height:110px; padding:10px 12px; border:1.5px solid var(--line); border-radius:14px; background:var(--surface);
  color:var(--ink); font:600 15px/1.45 var(--body); resize:vertical; box-sizing:border-box; }
.rpc-sheet label.rpc-chk{ display:flex; align-items:center; gap:8px; margin-top:10px; font-size:14px; }

/* нижня панель: кружок «Магазин» + меню Спільноти.
   Фон панелі відтінено від тла сторінки (власник 01.12: «зливається»): світла тема — біла з виразною тінню, темна — світліша
   за картки; під панеллю вміст плавно затемнюється, від середини меню вниз — повністю (--rpc-scrim). */
:root{ --rpc-barbg:#fff; --rpc-barline:color-mix(in srgb, var(--ink) 14%, transparent); --rpc-barshadow:0 8px 28px rgba(24,32,58,.22), 0 1px 3px rgba(24,32,58,.12);
  --rpc-scrim:rgba(39,50,74,.22); }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){ --rpc-barbg:var(--surface); --rpc-barline:color-mix(in srgb, #fff 16%, transparent);
  --rpc-barshadow:0 10px 30px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); --rpc-scrim:rgba(8,12,26,.82); } }
:root[data-theme="dark"]{ --rpc-barbg:var(--surface); --rpc-barline:color-mix(in srgb, #fff 16%, transparent);
  --rpc-barshadow:0 10px 30px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); --rpc-scrim:rgba(8,12,26,.82); }
body:has(.rpc-bar)::after, body:has(.rpc-orb--float):has(.rpf-nav)::after{ content:""; position:fixed; left:0; right:0; bottom:0; z-index:29; pointer-events:none;
  height:calc(130px + env(safe-area-inset-bottom, 0px));
  background:linear-gradient(to top, var(--rpc-scrim) 0, var(--rpc-scrim) calc(43px + env(safe-area-inset-bottom, 0px)), transparent 100%); }
.rpf-app:has(.rpc-bar){ padding-bottom:104px; }
.rpc-bar{ --rpc-barh:66px; position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; align-items:stretch; gap:10px; max-width:560px; margin:0 auto;
  padding:0 12px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events:none; }
.rpc-bar > *{ pointer-events:auto; }
.rpc-menu{ flex:1; display:flex; align-items:stretch; height:var(--rpc-barh); box-sizing:border-box; padding:5px; background:var(--rpc-barbg); border:1px solid var(--rpc-barline); border-radius:999px;
  box-shadow:var(--rpc-barshadow); }
.rpc-menu a{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:7px 2px 6px; border-radius:999px; color:var(--muted);
  font-size:11px; font-weight:700; text-decoration:none; }
.rpc-menu a[aria-current="page"]{ color:var(--ink); background:var(--bg); }
/* кнопка профілю — у стилі меню: та сама висота (тягнеться за меню), фон, рамка, тінь; усередині — аватарка */
.rpc-me{ flex:none; width:var(--rpc-barh); height:var(--rpc-barh); box-sizing:border-box; padding:5px; border-radius:50%; display:flex;
  background:var(--rpc-barbg); border:1px solid var(--rpc-barline); box-shadow:var(--rpc-barshadow); color:var(--ink); text-decoration:none; }
.rpc-me img, .rpc-me b{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:flex; align-items:center; justify-content:center;
  background:var(--lemon); font:700 20px/1 var(--body); }
.rpc-orb{ position:relative; flex:none; width:62px; height:62px; border-radius:50%; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:1px; background:var(--navy); color:#fff; text-decoration:none; font-size:9px; font-weight:700;
  box-shadow:0 6px 20px rgba(24,32,58,.3); }
.rpc-orb--comm{ background:var(--coral); }
/* Сторінка читача / вішліста (кому видно Спільноту): кругла кнопка «Спільнота» зліва — у стилі кнопки профілю Спільноти,
   а їхнє нижнє меню «Сторінка · Магазин · Блог» — така ж закруглена «пігулка» поруч (власник 01.12). */
.rpc-orb--float{ position:fixed; z-index:31; --rpc-side:max(12px, calc(50% - 268px)); left:var(--rpc-side);
  bottom:calc(10px + env(safe-area-inset-bottom, 0px)); width:66px; height:66px; box-sizing:border-box; padding:5px; gap:0;
  background:var(--rpc-barbg); border:1px solid var(--rpc-barline); box-shadow:var(--rpc-barshadow); color:var(--coral); }
.rpc-orb--float span{ display:none; }
.rpc-orb--float svg{ width:100%; height:100%; padding:12px; box-sizing:border-box; border-radius:50%; background:var(--bg); }
body:has(.rpc-orb--float) .rpf-nav{ --rpc-side:max(12px, calc(50% - 268px)); left:calc(var(--rpc-side) + 76px); right:var(--rpc-side);
  bottom:calc(10px + env(safe-area-inset-bottom, 0px)); height:66px; box-sizing:border-box; padding:5px; border:1px solid var(--rpc-barline);
  border-radius:999px; background:var(--rpc-barbg); box-shadow:var(--rpc-barshadow); }
body:has(.rpc-orb--float) .rpf-nav__in{ height:100%; max-width:none; align-items:stretch; }
body:has(.rpc-orb--float) .rpf-nav a{ display:flex; align-items:center; justify-content:center; padding:0 4px; border-radius:999px; }
body:has(.rpc-orb--float) .rpf-nav a[aria-current="page"]{ background:var(--bg); }
body:has(.rpc-orb--float) .rpf-nav a[aria-current="page"]::before{ display:none; }
/* панелі над меню (кошик / подарунок, «Створити сторінку», сповіщення) — вище «пігулки» */
body:has(.rpc-orb--float):has(.rpf-nav) .rpf-giftbar, body:has(.rpc-orb--float):has(.rpf-nav) .rpf-stickycta{ bottom:calc(86px + env(safe-area-inset-bottom, 0px)); z-index:30; }
body:has(.rpc-orb--float):has(.rpf-nav) .rpf-toast{ bottom:calc(160px + env(safe-area-inset-bottom, 0px)); }
body:has(.rpc-orb--float) .rpf-app:has(.rpf-nav){ padding-bottom:100px; }
body.has-giftbar:has(.rpc-orb--float) .rpf-app:has(.rpf-nav){ padding-bottom:180px; }
/* сторінка без свого меню (вішліст): кошик / подарунок — над кнопкою «Спільнота» не налазить */
body:not(:has(.rpf-nav)):has(.rpc-orb--float) .rpf-giftbar{ left:84px; }
.rpc-follow--hero{ margin-top:10px; min-height:38px; padding:6px 16px; font-size:13px; }
/* на кольоровій плашці сторінки читача: біла «пігулка», щоб не зливалась із тлом */
.rpc-follow--hero{ display:inline-flex; align-items:center; border-color:#fff; background:#fff; color:#18203a; border-radius:999px; box-shadow:0 2px 10px rgba(24,32,58,.12); }
.rpc-follow--hero.is-on{ background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.7); color:#fff; box-shadow:none; }
body:has(.rpc-bar) .rpf-toast{ bottom:calc(90px + env(safe-area-inset-bottom, 0px)); }

/* ---------- планшет і десктоп: компактно (власник 01.12) ----------
   Телефон — одна колонка 560px як на сторінках читачів. Планшет (≥768) — ширше, книжки полиці у дві колонки.
   Десктоп (≥1100) — стрічка + бічна колонка «Клуби»; нижнє меню лишається «пігулкою» по центру. */
.rpc-side{ display:none; }
@media (min-width:768px){
  .rpf-app:has(.rpc){ max-width:760px; }
  .rpc-bar{ max-width:560px; }
  .rpc-people{ margin:0 0 6px; padding-left:2px; padding-right:2px; }
  .rpc-card{ display:grid; grid-template-columns:1fr 1fr; column-gap:16px; align-items:start; }
  .rpc-card > *{ grid-column:1 / -1; }
  .rpc-card > .rpc-bk{ grid-column:auto; }
  .rpc-card > .rpc-wl__covers{ grid-column:1 / -1; }
  .rpc-sheet{ max-width:520px; margin:0 auto; }
}
@media (min-width:1100px){
  .rpf-app:has(.rpc[data-rpc-screen="feed"]){ max-width:1040px; }
  .rpc-feedgrid{ display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:24px; align-items:start; }
  .rpc-side{ display:block; position:sticky; top:calc(var(--rpc-toph, 72px) + 16px); padding:16px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
  .rpc-side .rpf-h2{ margin:0 0 10px; }
  .rpc-side__club{ display:flex; gap:10px; align-items:center; padding:8px 0; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line); }
  .rpc-side__club span{ display:flex; flex-direction:column; gap:2px; min-width:0; }
  .rpc-side__club b{ font-size:14px; line-height:1.3; }
  .rpc-side__club small{ color:var(--muted); font-size:12px; }
  .rpc-side .rpc-link{ margin-top:10px; }
  .rpf-app:has(.rpc) .rpc-bk__t b{ font-size:13px; }
}

/* ---------- клуби читачів (база): список, створення, клуб, гілки, повідомлення ---------- */
.rpc-newclub{ display:flex; align-items:center; gap:12px; margin:6px 0 16px; padding:14px 16px; border-radius:16px; background:var(--lemon);
  color:var(--ink); text-decoration:none; }
.rpc-newclub b{ display:block; font:900 17px/1.2 var(--display); }
.rpc-newclub small{ display:block; margin-top:2px; color:var(--muted); font-size:13px; line-height:1.35; }
.rpc-newclub .rpc-ava{ font-size:22px; font-weight:900; }
.rpc-form{ display:flex; flex-direction:column; gap:14px; margin:8px 0 0; }
.rpc-field{ display:flex; flex-direction:column; gap:6px; margin:0; padding:0; border:0; min-width:0; }
.rpc-label{ font-weight:800; font-size:14px; }
.rpc-label small{ color:var(--muted); font-weight:600; }
.rpc-input{ width:100%; box-sizing:border-box; min-height:46px; padding:10px 12px; border:1.5px solid var(--line); border-radius:14px;
  background:var(--surface); color:var(--ink); font:500 16px/1.35 var(--body); }
textarea.rpc-input{ resize:vertical; min-height:84px; }
.rpc-input:focus{ outline:none; border-color:var(--coral); }
.rpc-err{ color:#C2412B; font-size:13px; font-weight:700; }
.rpc-err:empty{ display:none; }
.rpc-found{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.rpc-found__i, .rpc-picked{ display:flex; align-items:center; gap:10px; width:100%; padding:8px; border:1px solid var(--line); border-radius:14px;
  background:var(--surface); color:var(--ink); text-align:left; font:inherit; cursor:pointer; }
.rpc-found__i span:last-child, .rpc-picked__t{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 auto; }
.rpc-found__i b, .rpc-picked__t b{ font-size:14px; line-height:1.25; }
.rpc-found__i small, .rpc-picked__t small{ color:var(--muted); font-size:12px; }
.rpc-picked{ cursor:default; border-color:var(--coral); }
.rpc-radio label{ display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); cursor:pointer; }
.rpc-radio label:has(input:checked){ border-color:var(--coral); }
.rpc-radio input{ margin-top:3px; accent-color:var(--coral); }
.rpc-radio span{ display:flex; flex-direction:column; gap:2px; }
.rpc-radio small{ color:var(--muted); font-size:12px; }
.rpc-clubdesc{ margin:12px 0 0; font-size:15px; line-height:1.5; }
.rpc-members{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0 0; color:var(--muted); font-size:13px; }
.rpc-invite{ display:flex; flex-direction:column; gap:6px; margin:16px 0 0; padding:14px; border-radius:16px; background:var(--lemon); }
.rpc-invite small{ color:var(--muted); font-size:13px; }
.rpc-invite__row{ display:flex; gap:8px; }
.rpc-invite__row .rpc-input{ font-size:13px; }
.rpc-invite .rpc-link{ align-self:flex-start; background:none; border:0; padding:0; cursor:pointer; font:inherit; font-size:13px; }
.rpc-threads{ display:flex; flex-direction:column; gap:8px; }
.rpc-thread{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 14px; border-radius:14px; background:var(--surface);
  border:1px solid var(--line); color:var(--ink); text-decoration:none; }
.rpc-thread > span{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.rpc-thread b{ font-size:15px; line-height:1.25; }
.rpc-thread > small{ flex:0 0 auto; color:var(--muted); font-size:12px; text-align:right; }
.rpc-part{ align-self:flex-start; display:inline-block; padding:2px 8px; border-radius:999px; background:var(--rose); color:var(--ink); font-size:12px; font-weight:700; }
.rpc-addthread{ margin-top:12px; }
.rpc-addthread > summary{ list-style:none; display:inline-flex; }
.rpc-addthread > summary::-webkit-details-marker{ display:none; }
.rpc-addthread[open] > summary{ margin-bottom:6px; }
.rpc-partrow{ display:flex; align-items:center; gap:8px; }
.rpc-partrow select{ flex:1 1 auto; }
.rpc-partrow input{ flex:0 0 84px; }
.rpc-posts{ display:flex; flex-direction:column; gap:10px; margin:14px 0; }
.rpc-post{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px 14px; }
.rpc-post__text{ margin-top:8px; font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
.rpc-post__text.is-spoiler{ filter:blur(6px); cursor:pointer; user-select:none; }
.rpc-post__text.is-spoiler.is-open{ filter:none; user-select:auto; cursor:auto; }
.rpc-post__del{ margin-top:6px; background:none; border:0; padding:0; color:var(--muted); font:inherit; font-size:12px; cursor:pointer; }
.rpc-postform{ position:sticky; bottom:96px; padding:10px; border-radius:18px; background:var(--surface); border:1px solid var(--line); box-shadow:0 6px 24px rgba(0,0,0,.08); gap:8px; }
.rpc-postform__row{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.rpc-check{ display:flex; align-items:center; gap:6px; font-size:14px; color:var(--muted); }
.rpc-check input{ accent-color:var(--coral); }
@media (min-width:768px){ .rpc-clubs{ display:grid; grid-template-columns:1fr 1fr; } }
.rpc [hidden]{ display:none !important; }
.rpc-picked .rpc-link{ flex:0 0 auto; background:none; border:0; padding:4px; color:var(--coral); font:700 13px/1 var(--body); cursor:pointer; }
.rpc-booklink{ color:inherit; font-weight:700; text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; }
.rpc-locked{ display:flex; flex-direction:column; gap:4px; margin-top:10px; padding:12px 14px; border-radius:14px; background:var(--lemon); }
.rpc-locked small{ color:var(--muted); font-size:13px; line-height:1.4; }

/* ---------- реакції-смайлики (inc/rx.html): пігулки «смайлик + кількість», «+» відкриває вибір, як у Telegram ---------- */
.rpc-rx{ position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.rpc-rx__p{ display:inline-flex; align-items:center; gap:5px; height:32px; padding:0 10px; border:1px solid var(--line); border-radius:999px;
  background:var(--bg); color:var(--ink); font:700 13px/1 var(--body); cursor:pointer; }
.rpc-rx__p span{ font-size:17px; line-height:1; }
.rpc-rx__p[aria-pressed="true"]{ background:var(--line); background:color-mix(in srgb, var(--ink) 14%, var(--surface)); border-color:color-mix(in srgb, var(--ink) 28%, var(--surface)); color:var(--ink); }
.rpc-rx__add{ display:inline-grid; place-items:center; width:34px; height:32px; padding:0; border:0; border-radius:999px; background:none; color:var(--muted); cursor:pointer; }
@media (hover:hover){ .rpc-rx__add:hover{ background:var(--bg); color:var(--ink); } .rpc-rx__p:hover{ border-color:var(--muted); } }
.rpc-rx[data-busy]{ opacity:.6; pointer-events:none; }
.rpc-rx__pick{ position:absolute; left:0; bottom:calc(100% + 8px); z-index:5; display:flex; flex-wrap:wrap; align-items:center; gap:2px; width:max-content; max-width:min(336px, calc(100vw - 48px));
  padding:6px; border-radius:22px; background:var(--surface); border:1px solid var(--line); box-shadow:0 10px 30px rgba(0,0,0,.22); }
.rpc-rx__pick button{ width:40px; height:40px; padding:0; border:0; border-radius:50%; background:none; font-size:24px; line-height:1; cursor:pointer; transition:transform .12s; }
.rpc-rx__pick button.is-extra{ display:none; }
.rpc-rx__pick.is-all button.is-extra{ display:inline-block; }
.rpc-rx__pick.is-all .rpc-rx__more{ display:none; }
.rpc-rx__pick .rpc-rx__more{ flex:0 0 32px; width:32px; height:32px; border-radius:50%; box-sizing:border-box; margin-left:2px; padding:0; display:inline-flex; align-items:center; justify-content:center; line-height:0; background:var(--bg); color:var(--muted); }
.rpc-rx__more svg{ display:block; }
@media (hover:hover){ .rpc-rx__pick button:hover{ transform:scale(1.2); } }
.rpc-post .rpc-rx{ margin-top:8px; }
/* блок «Клуби» на сторінці читача */
.rpc-pclubs__h{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:10px; }
.rpc-pclubs__h .rpf-h2{ margin:0; }
.rpc-pclubs__h a{ color:var(--muted); font-size:13px; font-weight:700; text-decoration:none; }
/* відгуки на сторінці книжки: кнопка біля заголовка, «Від редакції», «Куплено на ridmi», відповідь магазину, зірки у вікні */
.rpc-sec__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.rpc-sec__head .rpf-h2{ margin:0; }
.rpc-revbtn{ flex:none; min-height:38px; padding:6px 14px; font-size:13px; }
.rpc-revbtn .rpc-stars{ font-size:12px; }
.rpc-ed{ margin:0 0 12px; padding:14px; border-radius:16px; background:color-mix(in srgb, var(--lemon) 22%, var(--surface)); border:1px solid var(--line); }
.rpc-ed__i + .rpc-ed__i{ margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.rpc-ed .rpc-rev{ margin-top:8px; }
.rpc-bought{ color:#2e9e5b; font-weight:700; white-space:nowrap; }
.rpc-reply{ margin:10px 0 0; padding:10px 12px; border-left:3px solid var(--coral); border-radius:0 12px 12px 0; background:var(--bg); font-size:14px; }
.rpc-reply small{ color:var(--muted); font-size:12px; }
.rpc-reply p{ margin:4px 0 0; }
.rpc-rstars{ display:flex; gap:6px; margin:6px 0 0; }
.rpc-rstars button{ width:44px; height:44px; padding:0; border:0; background:none; color:var(--line); font-size:34px; line-height:1; cursor:pointer; }
.rpc-rstars button.is-on{ color:var(--yellow); }
.rpc-rstars__t{ min-height:1.4em; }
.rpc-err{ margin:8px 0 0; color:#d64545; font-size:13px; }
.rpc-err:empty{ display:none; }

