/* Лична страница на мегдана (/profil.html, js/profil.js) */
.pf { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.pf-card { background: #fff; border-radius: 18px; padding: 20px 22px; border: 1px solid rgba(0,0,0,.06); }
.pf-as { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pf-as select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid #d9d2c5; }
.pf-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pf-ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--red-soft); display: grid; place-items: center; font: 600 38px Rubik, sans-serif; color: var(--red); }
.pf-head h1 { margin: 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.pf-head .who { flex: 1; min-width: 200px; }
.pf-sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.pf-cnt { display: flex; gap: 14px; font-size: 14px; margin-top: 6px; }
.pf-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-b { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: 600 14px Rubik, sans-serif; background: var(--red); color: #fff; padding: 9px 16px; border-radius: 10px; text-decoration: none; }
.pf-b.g { background: var(--green); }
.pf-b.ghost { background: #f3eee5; color: var(--ink); }
.pf-b.sm { padding: 6px 11px; font-size: 13px; }
.pf-b:disabled { opacity: .6; cursor: default; }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tabs a { text-decoration: none; color: var(--ink); background: #f3eee5; padding: 7px 13px; border-radius: 999px; font-size: 14px; }
.pf-tabs a.on { background: var(--ink); color: #fff; }
.pf-tabs b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 12px; }
.pf-new textarea { width: 100%; box-sizing: border-box; font: 16px Rubik, sans-serif; border: 1px solid #d9d2c5; border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 90px; }
.pf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pf-row select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1px solid #d9d2c5; }
.pf-file { position: relative; overflow: hidden; }
.pf-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.pf-media > div { position: relative; }
.pf-media img, .pf-media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.pf-media input { width: 100%; box-sizing: border-box; font: 12px Rubik, sans-serif; margin-top: 4px; padding: 4px 6px; border: 1px solid #d9d2c5; border-radius: 6px; }
.pf-media .x { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 50%; width: 26px; height: 26px; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.pf-prog { font-size: 13px; color: var(--muted); }
.pf-rules { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pf-post .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pf-post .meta a { color: inherit; }
.pf-post .au { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.pf-post .au img, .pf-post .au span.pf-ph { width: 40px; height: 40px; font-size: 16px; }
.pf-post p.t { white-space: pre-line; overflow-wrap: anywhere; margin: 8px 0 0; }
.pf-post .gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; margin-top: 10px; }
.pf-post .gal img, .pf-post .gal video { width: 100%; max-height: 520px; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.pf-post .cr { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.pf-post .tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; }
.pf-post .tools select { font: inherit; padding: 4px 6px; border-radius: 8px; border: 1px solid #d9d2c5; }
.pf-hid { background: #fff3f2; border: 1px solid #f3c2bf; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 8px; }
.pf-list { display: grid; gap: 8px; }
.pf-person { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-person a.n { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; text-decoration: none; color: var(--ink); }
.pf-person .pf-ph, .pf-person img { width: 44px; height: 44px; font-size: 18px; }
.pf-err { color: var(--red); font-size: 14px; }
.pf-empty { color: var(--muted); }
.pf-set label { display: block; margin: 10px 0; }
.pf-set select { display: block; margin-top: 4px; font: inherit; padding: 7px 10px; border-radius: 10px; border: 1px solid #d9d2c5; max-width: 100%; }
@media (max-width: 560px) { .pf-card { padding: 16px; } .pf-ph { width: 72px; height: 72px; font-size: 28px; } }
.pf-find input[type=search] { flex: 1; min-width: 200px; font: 16px Rubik, sans-serif; padding: 9px 12px; border: 1px solid #d9d2c5; border-radius: 10px; }

/* Моята страница: стената вляво, „Дъската на мегдана“ вдясно (js/tabla.js Tabla.wall) */
.pf-has-side .pf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; max-width: 1440px; margin: 0 auto; }
.pf-has-side .pf { max-width: none; }
.pf-side { min-width: 0; }
#pf { min-width: 0; }
.pf-side .tb-side h3 { margin-top: 0; }
@media (max-width: 960px) {
  .pf-has-side .pf-wrap { grid-template-columns: 1fr; }
  .pf-side img { display: none; }
}
/* Снимката на корицата (като във Фейсбук) */
.pf-cov { position: relative; margin: -20px -22px 0; height: 240px; border-radius: 18px 18px 0 0; overflow: hidden; background: linear-gradient(135deg, #f6e3d6, #e7efe1); }
.pf-cov.empty { height: 130px; }
.pf-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-cov-tools { position: absolute; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pf-cov-tools .pf-b { background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pf-cov-move { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.pf-cov-move[hidden] { display: none; }
.pf-cov-move input { flex: 1; }
.pf-cov-msg { position: absolute; left: 12px; bottom: 12px; margin: 0; max-width: 55%; font-size: 13px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 0 8px; }
.pf-cov-msg:empty { display: none; }
.pf-cov + .pf-head { align-items: flex-start; }
.pf-cov + .pf-head > .pf-ph { margin-top: -48px; border: 4px solid #fff; position: relative; }
@media (max-width: 600px) {
  .pf-cov { height: 160px; }
  .pf-cov.empty { height: 110px; }
  .pf-cov-tools { right: 8px; top: 8px; bottom: auto; }
}
@media (max-width: 560px) { .pf-cov { margin: -16px -16px 0; } .pf-cov + .pf-head > .pf-ph { margin-top: -36px; } }
/* Менюто вляво на моята страница (като във Фейсбук); на телефона — разделите над стената */
.pf-menu { position: sticky; top: 16px; display: grid; gap: 4px; font-size: 15px; }
.pf-menu[hidden] { display: none; }
.pf-menu nav { display: grid; gap: 2px; }
.pf-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.pf-menu a:hover { background: #f3eee5; }
.pf-menu a.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.pf-menu i { font-style: normal; width: 26px; text-align: center; flex: none; }
.pf-menu small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.pf-menu nav b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 6px; font-size: 12px; }
.pf-menu h4 { margin: 14px 10px 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pf-menu .pf-me .pf-ph { width: 40px; height: 40px; font-size: 18px; }
.pf-menu .pf-me span { display: grid; min-width: 0; }
.pf-menu .pf-me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-menu .pf-me small { margin: 0; }
@media (min-width: 961px) {
  .pf-has-menu .pf-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "menu main"; gap: 22px; align-items: start; max-width: 1440px; margin: 0 auto; }
  .pf-has-menu.pf-has-side .pf-wrap { grid-template-columns: 230px minmax(0, 1fr) 340px; grid-template-areas: "menu main side"; max-width: 1680px; }
  .pf-has-menu .pf-menu { grid-area: menu; }
  .pf-has-menu #pf { grid-area: main; min-width: 0; }
  .pf-has-menu .pf-side { grid-area: side; }
  .pf-has-menu .pf { max-width: none; }
  .pf-has-menu .pf-tabs { display: none; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .pf-has-menu.pf-has-side .pf-wrap { grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "menu main" "menu side"; }
}
/* бутонът „☰ Меню“ — само на телефона; на компютър менюто е винаги отворено */
.pf-menu-btn { display: none; }
.pf-menu-in { display: grid; gap: 4px; }
@media (max-width: 960px) {
  .pf-menu { position: static; margin-bottom: 14px; }
  .pf-has-menu .pf-tabs { display: none; }
  .pf-menu-btn { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid rgba(0,0,0,.08); background: #fff; border-radius: 14px; padding: 12px 16px; font: 600 16px Rubik, sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
  .pf-menu-btn .ico { font-size: 20px; width: 24px; text-align: center; }
  .pf-menu-btn small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-menu-in { display: none; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 8px; margin-top: 6px; }
  .pf-menu.open .pf-menu-in { display: grid; }
  .pf-menu.open .pf-menu-btn { border-color: var(--ink); }
}
/* YouTube, споделени публикации, коментари, известия */
.pf-yt { position: relative; aspect-ratio: 16/9; margin-top: 10px; border-radius: 10px; overflow: hidden; background: #000; }
.pf-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-ytin { width: 100%; box-sizing: border-box; margin-top: 8px; font: 15px Rubik, sans-serif; padding: 8px 12px; border: 1px solid #d9d2c5; border-radius: 10px; }
.pf-ytin[hidden] { display: none; }
.pf-shared { border: 1px solid #e7e0d3; border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: #fcfaf6; }
.pf-shbox { margin-top: 10px; }
.pf-shbox textarea { min-height: 60px; }
.pf-cbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0ebe1; }
.pf-coms { display: grid; gap: 10px; margin-top: 10px; }
.pf-com { display: flex; gap: 8px; align-items: flex-start; }
.pf-com > a .pf-ph, .pf-com > .pf-ph { width: 34px; height: 34px; font-size: 14px; }
.pf-com .b { flex: 1; min-width: 0; }
.pf-com .bub { background: #f3eee5; border-radius: 14px; padding: 7px 12px; display: inline-block; max-width: 100%; box-sizing: border-box; }
.pf-com .bub .n { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.pf-com .bub p.t { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.pf-com .gal { grid-template-columns: repeat(auto-fit, minmax(140px, 220px)); }
.pf-com small { display: block; margin-top: 2px; font-size: 12px; }
.lnk { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.pf-cnew textarea { width: 100%; box-sizing: border-box; font: 15px Rubik, sans-serif; border: 1px solid #d9d2c5; border-radius: 12px; padding: 8px 12px; resize: vertical; }
.pf-cnew .pf-media { grid-template-columns: repeat(auto-fill, minmax(100px, 140px)); }
.pf-izv { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.pf-izv:hover { background: #f3eee5; }
.pf-izv.new { background: #fff3f2; }
.pf-izv i { font-style: normal; font-size: 22px; width: 30px; text-align: center; flex: none; }
.pf-izv span { overflow-wrap: anywhere; }
.pf-remind { background: #fff7e0; border: 1.5px solid #f0c95a; margin-bottom: 14px; }
.pf-remind p { margin: 0 0 8px; }
.pf-remind .pf-btns { margin: 0; }

/* Моята страница / Стената (2026-10-20): големи бутони „следващи“/„приятели“, „Вашият принос“,
   филтър на стената, приятели със снимки, обяви под дъската */
.pf-cnt { gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pf-cnt-b { display: inline-flex; align-items: center; gap: 7px; background: #f3eee5; color: var(--ink); padding: 10px 18px; border-radius: 12px; font: 600 16px Rubik, sans-serif; text-decoration: none; }
.pf-cnt-b b { font-size: 20px; }
.pf-cnt-b i { font-style: normal; }
a.pf-cnt-b:hover { background: #ece3d4; }
.pf-prinos { margin-top: 14px; }
.pf-prinos h3 { margin: 0 0 4px; }
.pf-filt { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.pf-filt button { border: 1.5px solid #e6dccb; background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px Rubik, sans-serif; cursor: pointer; color: var(--ink); }
.pf-filt button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-fr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pf-fr1 { background: #fff; border: 1.5px solid #efe6d8; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-fr1 > a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-fr1 img, .pf-fr1 .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3eee5; display: flex; align-items: center; justify-content: center; font: 700 40px Rubik, sans-serif; color: #b9ab95; }
.pf-fr1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-fr1 small { color: #6f655c; }
.pf-fr1 .mu { color: var(--green); font-weight: 600; }
.pf-fr1 .act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pf-ob h3 { margin-top: 0; }
.pf-oblist { display: flex; flex-direction: column; gap: 6px; }
.pf-oblist a { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; color: var(--ink); text-decoration: none; padding: 7px 8px; border-radius: 10px; background: #faf6ef; }
.pf-oblist a:hover { background: #f3eee5; }
.pf-oblist i { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 6px; align-self: start; grid-row: span 2; }
.pf-oblist a.t i { background: var(--red); }
.pf-oblist a.s i { background: var(--green); }
.pf-oblist b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-oblist small { color: #6f655c; font-size: 12px; }
@media (max-width: 600px) { .pf-fr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-cnt-b { padding: 9px 14px; font-size: 15px; } }

/* Нов облик на „Моята страница“ и „Стената“ (2026-10-20): топли карета със сянка, по-голяма корица и снимка,
   заглавна лента на стената, публикации като във Фейсбук */
body:has(#pf) { background: #f6f1e8; }
.pf { gap: 14px; }
.pf-card { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(43,37,34,.06), 0 6px 18px rgba(43,37,34,.05); }
.pf-cov:not(.empty) { height: 280px; border-radius: 20px 20px 0 0; }
.pf-cov + .pf-head .who { padding-top: 12px; }
.pf-head .pf-ph { width: 128px; height: 128px; border: 5px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 48px; }
.pf-head h1 { font: 700 30px/1.15 'Playfair Display', Georgia, serif; }
.pf-prinos { border-top: 1px solid #efe6d8; padding-top: 14px; }
.pf-prinos h3 { font: 700 20px 'Playfair Display', Georgia, serif; }
.pf-h2 { font: 700 20px 'Playfair Display', Georgia, serif; margin: 8px 4px 0; }
.pf-hero { background: linear-gradient(135deg, #c23b2e 0%, #b9262e 100%); color: #fff; }
.pf-hero h1 { margin: 0 0 4px; font: 700 30px/1.15 'Playfair Display', Georgia, serif; color: #fff; }
.pf-hero p { margin: 0 0 12px; opacity: .95; }
.pf-hero a { color: #fff; font-weight: 600; }
.pf-hero .pf-filt button { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); color: #fff; }
.pf-hero .pf-filt button.on { background: #fff; color: #b9262e; border-color: #fff; }
.pf-new-top { display: flex; gap: 12px; align-items: flex-start; }
.pf-new-top .pf-ph { width: 46px; height: 46px; font-size: 18px; flex: none; }
.pf-new-top textarea { flex: 1; background: #faf6ef; border-color: #efe6d8; border-radius: 16px; min-height: 70px; }
.pf-new-top textarea:focus { background: #fff; outline: 2px solid rgba(216,54,62,.25); }
.pf-post { padding: 18px 20px; }
.pf-post .au b { font-size: 16px; }
.pf-post .au img, .pf-post .au span.pf-ph { width: 46px; height: 46px; }
.pf-post p.t { font-size: 17px; line-height: 1.5; }
.pf-post .gal { margin: 12px -20px 0; gap: 2px; }
.pf-post .gal img, .pf-post .gal video { border-radius: 0; }
.pf-post .tools, .pf-cbar { border-top: 1px solid #f1eadf; padding-top: 10px; }
.pf-menu nav a { border-radius: 12px; }
.pf-menu nav a.on { background: #fff; box-shadow: 0 1px 2px rgba(43,37,34,.08); color: var(--red); font-weight: 600; }
.pf-side .pf-card, .pf-side .tb-side { border-radius: 20px; }
.pf-ob h3 { font: 700 19px 'Playfair Display', Georgia, serif; }
@media (max-width: 560px) {
  .pf-cov:not(.empty) { height: 180px; }
  .pf-cov + .pf-head { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .pf-cov + .pf-head .who { padding-top: 0; min-width: 0; }
  .pf-cnt { justify-content: center; }
  .pf-head .pf-ph { width: 96px; height: 96px; font-size: 36px; }
  .pf-head h1, .pf-hero h1 { font-size: 24px; }
  .pf-post .gal { margin: 12px -16px 0; }
  .pf-post { padding: 16px; }
}

/* Реакции под публикациите (👍 ❤️ 🤗 👏 😆 😮 😢) */
.pf-rxw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-rx { position: relative; display: inline-flex; }
.pf-rx .pf-rxbtn { border-radius: 999px 0 0 999px; font-weight: 600; }
.pf-rx .pf-rxmore { border-radius: 0 999px 999px 0; margin-left: -1px; padding-left: 8px; padding-right: 10px; }
.pf-rxbtn.on { background: #fdecea; border-color: #e9b4ad; color: #a3291c; }
.pf-rxpick { display: none; position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; background: #fff; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(60, 40, 20, .22); padding: 6px 8px; gap: 2px; white-space: nowrap; }
.pf-rx.open .pf-rxpick { display: flex; }
@media (hover: hover) { .pf-rx:hover .pf-rxpick { display: flex; } .pf-rx:hover::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; } }
.pf-rxpick button { border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; padding: 4px 5px; border-radius: 50%; transition: transform .12s;
  display: flex; flex-direction: column; align-items: center; }
.pf-rxpick button small { font-size: 10px; color: #6b5d4f; margin-top: 2px; }
.pf-rxpick button:hover, .pf-rxpick button:focus-visible { transform: scale(1.25) translateY(-3px); }
.pf-rxpick button.on { background: #fdecea; }
.pf-rxsum { border: 0; background: none; cursor: pointer; padding: 2px 4px; color: #6b5d4f; font-size: 15px; display: inline-flex; align-items: center; }
.pf-rxsum i { font-style: normal; display: inline-block; margin-right: -4px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.pf-rxsum b { margin-left: 8px; font-weight: 600; }
.pf-rxsum:hover b { text-decoration: underline; }
.pf-rxlist[hidden] { display: none; }
.pf-rxlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 10px; background: #faf6ef; border-radius: 12px; }
.pf-rxp { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; text-decoration: none; color: inherit; font-size: 14px; }
.pf-rxp .pf-ph { width: 28px; height: 28px; font-size: 13px; }
.pf-rxp i { font-style: normal; }
@media (max-width: 600px) {
  .pf-rxpick { left: -4px; padding: 5px 4px; }
  .pf-rxpick button { font-size: 24px; padding: 3px 3px; }
  .pf-rxpick button small { display: none; }
}
/* Реакции под коментар — по-малки и без черта отгоре. */
.pf-cbar.pf-ccbar { border-top: 0; margin-top: 4px; padding-top: 0; }
.pf-ccbar .pf-b.sm { padding: 3px 9px; font-size: 13px; min-height: 0; }
.pf-ccbar .pf-rxsum { font-size: 13px; }
.pf-com .pf-rxlist { margin-top: 4px; padding: 6px; }
/* Разделите на менюто се разпъват при натискане (собственикът 2026-10-20) */
.pf-sec > summary, .rz-sec > summary { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 9px 10px; border-radius: 12px; background: #f3eee5; font-weight: 600; font-size: 14.5px; cursor: pointer; list-style: none; }
.pf-sec > summary::-webkit-details-marker, .rz-sec > summary::-webkit-details-marker { display: none; }
.pf-sec > summary::after, .rz-sec > summary::after { content: '▸'; margin-left: auto; color: var(--muted); }
.pf-sec[open] > summary::after, .rz-sec[open] > summary::after { content: '▾'; }
.pf-sec > summary:hover, .rz-sec > summary:hover { background: #ece4d6; }

/* „Вашият принос“ (owner 2026-10-20): малки квадратни бутони като „следващи“/„приятели“, всяко каре в свой цвят */
.pf-prinos h3 { font-size: 17px; }
.pf-prinos .pr-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.pf-prinos .pr-box { width: 112px; aspect-ratio: 1; padding: 10px 8px; border-radius: 12px; align-items: center; justify-content: center; text-align: center; gap: 1px; box-shadow: none; border-width: 2px; }
.pf-prinos .pr-box svg { width: 20px; height: 20px; margin: 0 0 2px; }
.pf-prinos .pr-box b { font: 700 19px/1.15 Rubik, sans-serif; }
.pf-prinos .pr-box span { font-size: 11.5px; line-height: 1.2; font-weight: 600; }
.pf-prinos .pr-box small { display: none; }
.pf-prinos .pr-co2 { border-color: #b9dcbf; } .pf-prinos .pr-co2 b { color: #1f6e34; }
.pf-prinos .pr-saved { border-color: #ecc99a; } .pf-prinos .pr-saved b { color: #a55a17; }
.pf-prinos .pr-waste { border-color: #a9cfe0; } .pf-prinos .pr-waste b { color: #2f6f8f; }
.pf-prinos .pr-helped { border-color: #f0b4b6; } .pf-prinos .pr-helped b { color: #c22d35; }
@media (max-width: 600px) { .pf-prinos .pr-grid { justify-content: center; } .pf-prinos .pr-box { width: calc(50% - 5px); max-width: 130px; } }

/* „На линия“ (owner 2026-10-20): каре „Приятели“ най-горе вдясно; точките .on-w/.on-d са в tarsachka.js */
.pf-onl { margin-bottom: 14px; }
.pf-onl h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pf-onl h3 small { font: 500 13px Rubik, sans-serif; color: #6f655c; }
.pf-onl-l { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.pf-onl-l a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.pf-onl-l a:hover { background: #f3eee5; }
.pf-onl-l b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-side .pf-onl-l img, .pf-onl-l .ph { display: flex; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #f3eee5; align-items: center; justify-content: center; font: 700 16px Rubik, sans-serif; color: #b9ab95; }
.pf-fr1 .on-w { display: block; }
.pf-fr1 .on-d { width: 20px; height: 20px; max-width: none; right: 7px; bottom: 7px; border-width: 3px; }
.pf-filt-d { margin: 0 0 10px; font-size: 14px; color: #6b6255; }
.pf-filt-d summary { cursor: pointer; display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f3eee5; list-style: none; }
.pf-filt-d summary::-webkit-details-marker { display: none; }
.pf-filt-d[open] summary { margin-bottom: 6px; }
.pf-wdyska { min-width: 0; max-width: 100%; }
/* Нова публикация v2 (собственикът 2026-10-21): по-голямо каре, цветни бутони, ненатрапващо „Вижда се от“. */
.pf-new2 { padding: 18px 20px 16px; border-radius: 20px; box-shadow: 0 6px 22px rgba(60,40,20,.08); }
.pf-new-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pf-new-head .pf-ph { width: 48px; height: 48px; font-size: 19px; flex: none; }
.pf-new-head b { display: block; font-size: 16px; line-height: 1.2; }
.pf-vis-mini { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; padding: 1px 4px 1px 8px; border-radius: 999px; background: #f6f2ea; color: #7a7165; font-size: 12px; cursor: pointer; }
.pf-vis-mini select { border: 0; background: transparent; color: inherit; font: 500 12px Rubik, sans-serif; padding: 2px 0; cursor: pointer; max-width: 170px; }
.pf-vis-mini select:focus { outline: none; }
.pf-vis-mini:focus-within { box-shadow: 0 0 0 2px rgba(216,54,62,.25); }
.pf-new2 textarea { min-height: 150px; font-size: 17px; line-height: 1.5; background: #fbf8f2; border: 1px solid #efe6d8; border-radius: 16px; padding: 14px 16px; }
.pf-new2 textarea:focus { background: #fff; outline: 2px solid rgba(216,54,62,.25); }
.pf-new-add { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 10px 8px 16px; border: 1px solid #e6ddcf; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pf-new-lbl { font-size: 15px; color: #3a332b; font-weight: 600; }
.pf-adds { display: inline-flex; gap: 2px; }
.pf-add { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; padding: 0; cursor: pointer; border-radius: 50%; background: transparent; transition: background .15s; }
.pf-add:hover, .pf-add:focus-within, .pf-add:focus-visible { background: #f0ebe2; }
.pf-new-go { display: flex; justify-content: center; width: 100%; margin-top: 12px; padding: 12px 16px; font-size: 16px; border-radius: 12px; }
.pf-new2 .pf-rules { font-size: 12px; margin-top: 8px; }
.pf-new2 .pf-prog:empty, .pf-new2 .pf-err:empty { display: none; }
@media (max-width: 480px) { .pf-new2 { padding: 14px; } .pf-new-lbl { font-size: 14px; } .pf-new2 textarea { min-height: 120px; } }
/* „↗ Сподели“ под публикацията */
.pf-shx { margin-top: 10px; padding: 12px; border-radius: 12px; background: #faf6ef; display: grid; gap: 8px; justify-items: start; }
.pf-shx .share { margin: 0; }

/* Собственикът 2026-10-21: бутоните под публикациите са само иконки, надписът излиза при посочване (vkl.js tips) */
.pf-ic{min-width:38px;justify-content:center;font-size:17px}
.pf-ic-vis{display:inline-flex;align-items:center;gap:4px;font-size:15px;color:#7a6e66}
.pf-ic-vis select{border:0;background:transparent;font:inherit;font-size:13px;color:inherit;cursor:pointer;max-width:130px}
.pf-com .lnk{font-size:14px}

/* Собственикът 2026-10-21: по-големи бутони-иконки; „↗ Сподели навън“ = едно бутонче със скрито меню */
.pf-cbar { gap: 10px; }
.pf-b.pf-ic, .pf-rx .pf-b.pf-rxbtn, .pf-rx .pf-b.pf-rxmore { min-width: 48px; min-height: 44px; font-size: 21px; padding: 6px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pf-rx .pf-rxmore { min-width: 44px; }
.pf-com .lnk { font-size: 18px; padding: 4px 6px; }
.pf-ic-vis { font-size: 19px; }
.pf-ic-vis select { font-size: 14px; min-height: 36px; }
.pf-shw { position: relative; display: inline-flex; }
.pf-shx { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; margin: 0; width: 230px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid #eadfce; box-shadow: 0 10px 28px rgba(0,0,0,.16); display: block; }
.pf-shx[hidden] { display: none; }
.pf-shx .share { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; margin: 0; width: 100%; }
.pf-shx .share > span { font-weight: 700; font-size: 13px; color: #7a6e66; padding: 2px 4px 4px; }
.pf-shx .share .sh { display: block; width: 100%; text-align: left; padding: 10px 12px; font-size: 15px; border-radius: 10px; box-sizing: border-box; }
.pf-shx .pf-sub { margin: 8px 4px 2px; font-size: 12px; }
@media (max-width: 520px) { .pf-shx { left: auto; right: 0; } }
/* Общото меню „Сподели“: най-отгоре „на моята стена“, под него мрежите. */
.pf-shx .pf-shwall { display: block; width: 100%; text-align: left; padding: 11px 12px; margin: 0 0 8px; font: inherit; font-size: 15px; font-weight: 700; color: #2f6b3a; background: #eef7ee; border: 1px solid #cfe5cf; border-radius: 10px; cursor: pointer; box-sizing: border-box; }
.pf-shx .pf-shwall:hover, .pf-shx .pf-shwall:focus-visible { background: #dff0df; }
.pf-shbox:not([hidden]) { margin-top: 10px; }
/* Собственикът 2026-10-21: менюто „Сподели“ — стени за кого, „Изпрати на приятел“, мрежите само с логата. */
.pf-shx { width: 300px; max-width: calc(100vw - 24px); }
.pf-shx .pf-shwall { margin: 0 0 6px; font-size: 14px; }
.pf-shx .pf-shwall[data-sfr] { color: #1d5fa8; background: #eef4fb; border-color: #cfdff0; }
.pf-shx .share.sh-icons { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 4px; padding-top: 8px; border-top: 1px solid #f0e8dc; }
.pf-shx .share.sh-icons .sh { box-shadow: none; filter: none; transform: none; width: 48px; height: 48px; padding: 4px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; box-sizing: border-box; }
.pf-shx .share.sh-icons .sh:hover, .pf-shx .share.sh-icons .sh:focus-visible { background: #f3ece0; }
.share.sh-icons .sh svg { width: 36px; height: 36px; display: block; }
.share.sh-icons .sh-ok { font-size: 24px; color: #2f6b3a; }
.pf-frs b { display: block; margin-bottom: 8px; }
.pf-frlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; margin-bottom: 8px; }
.pf-fr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #eadfce; border-radius: 12px; cursor: pointer; }
.pf-fr:has(input:checked) { background: #eef7ee; border-color: #b9dbb9; }
.pf-fr .pf-ph { width: 32px; height: 32px; font-size: 14px; flex: none; }
/* Поле за коментар: отделно каре по цялата ширина, иконки без надписи. */
.pf-cnew2 { margin-top: 12px; padding: 10px 12px; border: 1px solid #e6dccb; border-radius: 18px; background: #fbf8f2; width: 100%; box-sizing: border-box; }
.pf-cnew2:focus-within { background: #fff; border-color: #d8c9b2; }
.pf-cnew2 textarea { border: 0; background: transparent; padding: 6px 4px; font-size: 16px; line-height: 1.45; min-height: 64px; resize: vertical; }
.pf-cnew2 textarea:focus { outline: none; }
.pf-ctools { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding-top: 6px; border-top: 1px solid #efe6d8; }
.pf-ctools .pf-add { width: 44px; height: 44px; }
.pf-ctools .pf-prog { flex: 1; font-size: 13px; color: var(--muted); }
.pf-csend { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #c23b2e; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pf-csend:hover, .pf-csend:focus-visible { background: #b82a31; }
.pf-csend:disabled { opacity: .5; cursor: default; }

/* Телефон (собственикът 2026-10-26): менюто „Сподели“ излизаше извън екрана — сега е панел отдолу,
   целият се вижда и се превърта; отзад екранът потъмнява (натискане там го затваря), ✕ горе. */
.pf-shx .pf-shclose { display: none; }
@media (max-width: 700px) {
  .pf-shx { position: fixed; z-index: 1000; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none;
    max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 12px; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4), 0 -6px 24px rgba(0, 0, 0, .2); }
  .pf-shx .pf-shclose { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 8px; padding: 0 0 8px 4px;
    border: 0; border-bottom: 1px solid #f0e8dc; background: none; font: 700 16px Rubik, sans-serif; color: #3a332d; cursor: pointer; }
  .pf-shx .pf-shclose span { font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #f3ece0; }
  .pf-shx .share.sh-icons { justify-content: space-around; }
}
/* „Първи стъпки“ (profil.js stapki) */
.pf-stapki { background: #f1f8ee; border: 1.5px solid #9fd09a; margin-bottom: 14px; }
.pf-stapki h3 { margin: 0 0 8px; } .pf-stapki h3 small { font-weight: 500; color: var(--muted); font-size: 14px; }
.pf-st-bar { height: 8px; background: #dcebd6; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.pf-st-bar i { display: block; height: 100%; background: var(--green); }
.pf-stapki ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.pf-stapki li a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; background: #fff; border-radius: 12px; padding: 9px 12px; min-height: 44px; }
.pf-stapki li a:hover { background: #fffaf2; }
.pf-stapki li i { font-style: normal; font-size: 22px; flex: none; }
.pf-stapki li span { flex: 1; min-width: 0; } .pf-stapki li small { display: block; color: var(--muted); }
.pf-stapki li em { font-style: normal; color: var(--green); font-weight: 700; }
