/* =====================================================================
   pf.css — Pinfame redesign (2026-11-03). Loaded after nicekin.css + Bootstrap.
   Palette: aubergine ink on a cool lilac-grey wall, lipstick red for actions.
   Type: Bricolage Grotesque (display) + Figtree (text), both self-hosted.
   ===================================================================== */
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-wght.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-600.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }

:root {
  --pf-ink: #1F1424;
  --pf-ink-2: #4A3F50;
  --pf-muted: #716677;
  --pf-line: #E6E0E9;
  --pf-paper: #F4F2F5;
  --pf-surface: #FFFFFF;
  --pf-red: #E3123F;
  --pf-red-ink: #B50D31;
  --pf-blush: #FFE6EC;
  --pf-ok: #11845B;
  --pf-display: 'Bricolage', 'Figtree', system-ui, sans-serif;
  --pf-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pf-r-sm: 10px; --pf-r: 16px; --pf-r-lg: 24px;
  --pf-top-h: 64px;

  /* map the old nicekin tokens onto the new palette so untouched pages follow */
  --primary: var(--pf-red); --primary-color: var(--pf-red); --primary-hover: var(--pf-red-ink);
  --primary-light: var(--pf-blush); --primary-glow: rgba(227, 18, 63, .14);
  --bg: var(--pf-paper); --surface: var(--pf-surface); --surface-2: #FAF8FB; --border: var(--pf-line);
  --text-primary: var(--pf-ink); --text-secondary: var(--pf-muted); --text-muted: #9B91A1;
  --danger-color: var(--pf-red); --success-color: var(--pf-ok);
  --font: var(--pf-text);
  --bs-body-font-family: var(--pf-text); --bs-body-color: var(--pf-ink); --bs-body-bg: var(--pf-paper);
  --bs-primary: var(--pf-red); --bs-primary-rgb: 227, 18, 63; --bs-link-color: var(--pf-red-ink); --bs-link-color-rgb: 181, 13, 49;
}

html { background: var(--pf-paper); -webkit-text-size-adjust: 100%; }
body.pf { font-family: var(--pf-text); color: var(--pf-ink); background: var(--pf-paper); font-size: 16px; line-height: 1.5; padding-bottom: 0; }
body.pf h1, body.pf h2, body.pf h3, body.pf .section-title, body.pf .hero-title { font-family: var(--pf-display); letter-spacing: -0.02em; color: var(--pf-ink); }
body.pf a { color: inherit; }
body.pf a:not([class]) { color: var(--pf-red-ink); }
:focus-visible { outline: 3px solid var(--pf-red); outline-offset: 2px; border-radius: 6px; }
.pf-skip { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--pf-ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; }
.pf-skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--pf-red); color: #fff !important; font: 700 .95rem/1 var(--pf-text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.pf-btn:hover { background: var(--pf-red-ink); }
.pf-btn:active { transform: scale(.97); }
.pf-btn--ghost { background: #EAE5EC; color: var(--pf-ink) !important; }
.pf-btn--ghost:hover { background: #DDD6E0; }
.pf-btn--ink { background: var(--pf-ink); }
.pf-btn--ink:hover { background: #3A2D40; }
.pf-btn--lg { height: 52px; padding: 0 26px; font-size: 1.05rem; }
.pf-btn--sm { height: 34px; padding: 0 14px; font-size: .85rem; }
body.pf .btn-primary { --bs-btn-bg: var(--pf-red); --bs-btn-border-color: var(--pf-red); --bs-btn-hover-bg: var(--pf-red-ink); --bs-btn-hover-border-color: var(--pf-red-ink); --bs-btn-active-bg: var(--pf-red-ink); border-radius: 999px; font-weight: 700; }
body.pf .form-control, body.pf .form-select { border-radius: 12px; border-color: var(--pf-line); min-height: 44px; }
body.pf .form-control:focus, body.pf .form-select:focus { border-color: var(--pf-ink); box-shadow: 0 0 0 3px rgba(31, 20, 36, .12); }

/* ── Header ─────────────────────────────────────────────────────────── */
.pf-top { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--pf-line); }
.pf-top__bar { display: flex; align-items: center; gap: 14px; height: var(--pf-top-h); padding: 0 20px; max-width: 1680px; margin: 0 auto; }
.pf-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--pf-ink) !important; flex-shrink: 0; }
.pf-logo__mark { width: 34px; height: 34px; border-radius: 50%; background: var(--pf-red); color: #fff; display: grid; place-items: center; font-size: .95rem; transform: rotate(-18deg); }
.pf-logo__word { font: 800 1.55rem/1 var(--pf-display); letter-spacing: -0.045em; }
.pf-search { flex: 1; position: relative; max-width: 720px; margin: 0 auto; }
.pf-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pf-muted); pointer-events: none; }
.pf-search input { width: 100%; height: 46px; border: 0; border-radius: 999px; background: #EFEBF1; padding: 0 18px 0 44px; font: 500 1rem var(--pf-text); color: var(--pf-ink); outline: none; }
.pf-search input::placeholder { color: #8C8292; }
.pf-search input:focus { background: #fff; box-shadow: 0 0 0 2px var(--pf-ink); }
.pf-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pf-link { padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--pf-ink) !important; }
.pf-link:hover, .pf-link.is-on { background: #EFEBF1; }
.pf-icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--pf-ink-2) !important; text-decoration: none; background: none; border: 0; font-size: 1.2rem; }
.pf-icon:hover, .pf-icon.is-on { background: #EFEBF1; color: var(--pf-ink) !important; }
.pf-badge { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--pf-red); color: #fff; font: 800 .7rem/19px var(--pf-text); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.pf-badge[hidden], .pf-count[hidden] { display: none !important; }
.pf-menu { position: relative; }
.pf-avatar-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 6px 4px 4px; border-radius: 999px; color: var(--pf-muted); }
.pf-avatar-btn:hover { background: #EFEBF1; }
.pf-avatar-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pf-avatar-btn i { font-size: .7rem; transition: transform .2s; }
.pf-menu.is-open .pf-avatar-btn i { transform: rotate(180deg); }
.pf-menu__list { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border-radius: var(--pf-r); box-shadow: 0 18px 50px rgba(31, 20, 36, .2), 0 0 0 1px rgba(31, 20, 36, .06); padding: 8px; z-index: 1040; }
.pf-menu__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--pf-ink) !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.pf-menu__list a:hover { background: #F4F1F6; }
.pf-menu__list a > i { width: 18px; text-align: center; color: var(--pf-muted); }
.pf-menu__list hr { margin: 6px 4px; border-color: var(--pf-line); opacity: 1; }
.pf-menu__me { padding: 10px 12px 12px !important; }
.pf-menu__me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pf-menu__me span { display: flex; flex-direction: column; min-width: 0; }
.pf-menu__me strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-menu__me small { color: var(--pf-muted); font-weight: 500; }
.pf-menu__accent { color: var(--pf-red-ink) !important; }
.pf-menu__accent i { color: var(--pf-red) !important; }
.pf-count { margin-left: auto; background: var(--pf-red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 800; }

.pf-cats { border-top: 1px solid #F0ECF2; }
.pf-cats__row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 20px; max-width: 1680px; margin: 0 auto; scrollbar-width: none; }
.pf-cats__row::-webkit-scrollbar { display: none; }
.pf-chip { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--pf-ink-2) !important; text-decoration: none; }
.pf-chip:hover { background: #F1EDF3; color: var(--pf-ink) !important; }
.pf-chip.is-on { background: var(--pf-ink); color: #fff !important; }

.pf-note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 44px 7px 16px; background: #EAF5FB; color: #0B4F6E; font-size: .86rem; font-weight: 600; position: relative; text-align: center; }
.pf-note[hidden] { display: none; }
.pf-note a { color: #075985 !important; font-weight: 800; }
.pf-note button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.3rem; line-height: 1; color: #0B4F6E; opacity: .7; width: 32px; height: 32px; }

.pf-only-mobile { display: none; }
@media (max-width: 760px) {
  :root { --pf-top-h: 56px; }
  .pf-top__bar { gap: 6px; padding: 0 10px 0 12px; }
  .pf-logo__word { font-size: 1.35rem; }
  .pf-logo__mark { width: 30px; height: 30px; font-size: .85rem; }
  .pf-only-desk { display: none !important; }
  .pf-only-mobile { display: grid; }
  .pf-search { position: absolute; left: 0; right: 0; top: var(--pf-top-h); padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--pf-line); display: none; max-width: none; }
  .pf-search i { left: 28px; }
  .pf-top.search-open .pf-search { display: block; }
  .pf-actions { margin-left: auto; }
  .pf-actions .pf-btn { height: 36px; padding: 0 14px; font-size: .88rem; }
  .pf-actions .pf-btn--ghost { background: none; padding: 0 8px; }
  .pf-cats__row { padding: 6px 10px; }
  .pf-note { font-size: .8rem; }
}

/* ── Bottom tab bar (phones) ─────────────────────────────────────────── */
.pf-tabbar { display: none; }
@media (max-width: 991px) {
  body.pf { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .pf-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; height: calc(62px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--pf-line); align-items: center; justify-content: space-around; }
  .pf-tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--pf-muted) !important; text-decoration: none; font-size: .7rem; font-weight: 700; }
  .pf-tabbar a i { font-size: 1.25rem; }
  .pf-tabbar a.is-on { color: var(--pf-ink) !important; }
  .pf-tabbar .pf-badge { top: 0; right: calc(50% - 22px); }
  .pf-tabbar__add { flex: 0 0 auto !important; width: 48px; height: 48px; border-radius: 16px; background: var(--pf-red); color: #fff !important; display: grid !important; place-items: center; margin: 0 6px; }
  .pf-tabbar__add i { font-size: 1.2rem !important; }
}
/* old fixed nav from previous design: never show */
.fixed-footer-nav, .mobile-profile-links, .top-post-banner { display: none !important; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.pf-foot { background: var(--pf-ink); color: #CFC6D3; margin-top: 56px; }
.pf-foot__inner { max-width: 1240px; margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pf-foot .pf-logo { color: #fff !important; }
.pf-foot__brand p { margin: 14px 0 0; max-width: 34ch; font-size: .95rem; color: #B5ABBA; }
.pf-foot__col { display: flex; flex-direction: column; gap: 7px; }
.pf-foot__col h2 { font: 700 1rem var(--pf-display) !important; color: #fff !important; margin: 0 0 6px; letter-spacing: 0; }
.pf-foot__col a { color: #CFC6D3 !important; text-decoration: none; font-size: .92rem; }
.pf-foot__col a:hover { color: #fff !important; text-decoration: underline; }
.pf-foot__base { max-width: 1240px; margin: 0 auto; padding: 18px 24px 26px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #9E94A3; }
.pf-foot__base a { color: #fff !important; }
@media (max-width: 760px) { .pf-foot__inner { grid-template-columns: 1fr 1fr; padding: 36px 18px 20px; } .pf-foot__brand { grid-column: 1 / -1; } }

/* ── Install banner ─────────────────────────────────────────────────── */
.pf-install { position: fixed; z-index: 2000; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); width: min(380px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #fff; border-radius: var(--pf-r); box-shadow: 0 16px 44px rgba(31, 20, 36, .25); }
.pf-install[hidden] { display: none; }
.pf-install__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--pf-red); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.pf-install__text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; font-size: .92rem; }
.pf-install__text small { color: var(--pf-muted); }
.pf-install__x { border: 0; background: none; font-size: 1.4rem; color: var(--pf-muted); width: 32px; }

/* ── Home hero (guests) ─────────────────────────────────────────────── */
.pf-hero { max-width: 1240px; margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pf-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: .98; font-weight: 800; letter-spacing: -0.045em; margin: 0 0 18px; max-width: 12ch; }
.pf-hero__text > p { font-size: 1.12rem; color: var(--pf-ink-2); max-width: 46ch; margin: 0 0 24px; }
.pf-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pf-hero__facts { font-size: .95rem !important; color: var(--pf-muted) !important; margin: 0 !important; }
.pf-hero__facts strong { color: var(--pf-ink); }
.pf-hero__stack { position: relative; height: 400px; }
.pf-polaroid { position: absolute; width: 56%; background: #fff; padding: 10px 10px 34px; border-radius: 6px; box-shadow: 0 22px 50px rgba(31, 20, 36, .22); text-decoration: none; }
.pf-polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; display: block; background: #eee; }
.pf-polaroid span { position: absolute; left: 12px; bottom: 9px; font: 600 .85rem var(--pf-text); color: var(--pf-ink-2); }
.pf-polaroid::before { content: ''; position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF6B8A, var(--pf-red) 55%, #8E0A27); box-shadow: 0 3px 6px rgba(0, 0, 0, .3); z-index: 2; }
.pf-polaroid--1 { left: 22%; top: 0; transform: rotate(-3deg); z-index: 3; }
.pf-polaroid--2 { left: 0; top: 70px; transform: rotate(-11deg); z-index: 1; width: 46%; }
.pf-polaroid--3 { right: 0; top: 50px; transform: rotate(8deg); z-index: 2; width: 46%; }
@media (max-width: 860px) {
  .pf-hero { grid-template-columns: 1fr; padding: 28px 18px 8px; gap: 8px; }
  .pf-hero__stack { display: none; }
  .pf-hero h1 { max-width: 14ch; }
  .pf-hero__text > p { font-size: 1.02rem; }
}

/* ── Photo wall ─────────────────────────────────────────────────────── */
.pf-wall { max-width: 1680px; margin: 0 auto; padding: 16px 20px 24px; min-height: 60vh; }
.pf-wall__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 4px 16px; }
.pf-wall__head h1, .pf-wall__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0; }
.pf-wall__count { color: var(--pf-muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) { .pf-wall { padding: 10px 8px 20px; } }

body.pf #pin-container, body.pf #profile-pin-container { display: flex; gap: 16px; align-items: flex-start; columns: auto; }
body.pf .pin-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) { body.pf #pin-container, body.pf #profile-pin-container, body.pf .pin-col { gap: 10px; } }
body.pf .pin-item { margin: 0; break-inside: avoid; }
.pf-card .pin-card { position: relative; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
.pf-card .pin-card:hover { transform: none; box-shadow: none; }
.pf-card__img { display: block; position: relative; border-radius: var(--pf-r); overflow: hidden; background: #E4DEE7; }
.pf-card__img img { display: block; width: 100%; height: auto; min-height: 120px; object-fit: cover; transition: filter .2s; }
.pf-card:hover .pf-card__img img { filter: brightness(.88); }
.pf-card__badge { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .94); color: var(--pf-ink); font: 800 .72rem/1 var(--pf-text); padding: 6px 9px; border-radius: 999px; }
.pf-card__play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(31, 20, 36, .6); color: #fff; display: grid; place-items: center; padding-left: 3px; }
.pf-card__save { position: absolute; right: 10px; top: 10px; z-index: 3; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--pf-red); color: #fff !important; font: 800 .9rem/38px var(--pf-text); text-decoration: none; opacity: 0; transition: opacity .15s; }
.pf-card:hover .pf-card__save, .pf-card__save:focus-visible { opacity: 1; }
@media (hover: none) { .pf-card__save { opacity: 1; height: 32px; line-height: 32px; padding: 0 12px; font-size: .8rem; right: 8px; top: 8px; } }
.pf-card__body { padding: 8px 4px 2px; }
.pf-card__title { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--pf-ink) !important; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.pf-card__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pf-card__who { display: flex; align-items: center; gap: 7px; min-width: 0; text-decoration: none; color: var(--pf-ink-2) !important; font-size: .85rem; font-weight: 600; }
.pf-card__who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pf-card__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pf .btn-card-like { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 6px; border-radius: 999px; font: 700 .82rem var(--pf-text); color: #A79DAC !important; cursor: pointer; flex-shrink: 0; }
body.pf .btn-card-like span { color: var(--pf-muted); }
body.pf .btn-card-like:hover { background: #ECE7EE; }
body.pf .btn-card-like.liked { color: var(--pf-red) !important; }
body.pf .btn-card-like.liked i { animation: pf-pop .3s ease; }
@keyframes pf-pop { 50% { transform: scale(1.35); } }
@media (max-width: 760px) { .pf-card__title { font-size: .86rem; } .pf-card__who { font-size: .8rem; } .pf-card__who img { width: 20px; height: 20px; } }
body.pf .no-more-pins { text-align: center; color: var(--pf-muted); padding: 32px 0; font-weight: 600; }

/* skeletons */
body.pf .skeleton-card { background: transparent; box-shadow: none; }
body.pf .skeleton-img { border-radius: var(--pf-r); background: linear-gradient(90deg, #E7E2EA 25%, #F0ECF2 50%, #E7E2EA 75%); background-size: 200% 100%; }

/* ── Shared page shell for account pages ─────────────────────────────── */
.pf-page { max-width: 760px; margin: 0 auto; padding: 28px 18px 40px; }
.pf-page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pf-page__head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0; }
.pf-panel { background: #fff; border-radius: var(--pf-r-lg); box-shadow: 0 1px 0 rgba(31, 20, 36, .04), 0 0 0 1px rgba(31, 20, 36, .05); }
.pf-empty { text-align: center; padding: 56px 24px; color: var(--pf-muted); }
.pf-empty i { font-size: 2.4rem; color: #CFC6D3; margin-bottom: 14px; display: block; }
.pf-empty h2 { font-size: 1.3rem; font-weight: 800; color: var(--pf-ink); margin: 0 0 6px; }
.pf-empty p { max-width: 42ch; margin: 0 auto 18px; }
.pf-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs a, .pf-tabs button { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 0; background: #EAE5EC; color: var(--pf-ink-2) !important; font-weight: 700; font-size: .88rem; text-decoration: none; }
.pf-tabs .is-on { background: var(--pf-ink); color: #fff !important; }

/* ── Notifications ─────────────────────────────────────────────────── */
.pf-nlist { list-style: none; margin: 0; padding: 6px; }
.pf-ngroup { font: 700 .9rem var(--pf-text) !important; color: var(--pf-muted) !important; margin: 14px 14px 6px !important; letter-spacing: 0 !important; }
.pf-n { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; position: relative; text-decoration: none; color: var(--pf-ink) !important; }
.pf-n:hover { background: #F7F4F8; }
.pf-n.is-new { background: #FFF3F6; }
.pf-n.is-new::after { content: ''; position: absolute; left: 4px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--pf-red); }
.pf-n__who { position: relative; flex-shrink: 0; }
.pf-n__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pf-n__type { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; color: #fff; border: 2px solid #fff; background: var(--pf-ink); }
.pf-n__type--like { background: var(--pf-red); }
.pf-n__type--comment { background: #2563EB; }
.pf-n__type--follow { background: #7C3AED; }
.pf-n__type--pin { background: #D97706; }
.pf-n__type--dm { background: var(--pf-ok); }
.pf-n__text { flex: 1; min-width: 0; line-height: 1.4; }
.pf-n__text b { font-weight: 800; }
.pf-n__text q { color: var(--pf-ink-2); }
.pf-n__time { display: block; color: var(--pf-muted); font-size: .82rem; margin-top: 2px; }
.pf-n__thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pf-pushcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--pf-r); background: var(--pf-ink); color: #fff; }
.pf-pushcard[hidden] { display: none; }
.pf-pushcard i { font-size: 1.3rem; }
.pf-pushcard p { margin: 0; flex: 1; font-size: .93rem; }
.pf-pushcard strong { display: block; }

/* ── Messages ──────────────────────────────────────────────────────── */
body.page-dm .pf-foot, body.page-dm .pf-note, body.page-dm .pf-cats { display: none; }
@media (max-width: 991px) { body.page-dm.dm-list .pf-dm { height: calc(100dvh - var(--pf-dm-top, 110px) - 62px - env(safe-area-inset-bottom)); } }
.pf-dm { display: flex; height: calc(100dvh - var(--pf-dm-top, 110px)); max-width: 1240px; margin: 0 auto; background: #fff; border-left: 1px solid var(--pf-line); border-right: 1px solid var(--pf-line); }
.pf-dm__list { width: 340px; flex-shrink: 0; border-right: 1px solid var(--pf-line); min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pf-dm__listhead { position: sticky; top: 0; background: #fff; z-index: 2; }
.pf-dm__listhead { padding: 18px 16px 10px; }
.pf-dm__listhead h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.pf-dm__find { position: relative; }
.pf-dm__find i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--pf-muted); font-size: .85rem; }
.pf-dm__find input { width: 100%; height: 40px; border: 0; border-radius: 999px; background: #F1EDF3; padding: 0 14px 0 36px; font: 500 .95rem var(--pf-text); outline: none; }
.pf-dm__find input:focus { box-shadow: 0 0 0 2px var(--pf-ink); background: #fff; }
.pf-dm__convs { padding: 4px 8px 8px; }
.pf-conv { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--pf-ink) !important; }
.pf-conv:hover { background: #F7F4F8; }
.pf-conv.is-on { background: #F1EDF3; }
.pf-conv__av { position: relative; flex-shrink: 0; }
.pf-conv__av img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.pf-conv__av .pf-online { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.pf-conv__main { flex: 1; min-width: 0; }
.pf-conv__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pf-conv__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-conv__time { font-size: .78rem; color: var(--pf-muted); flex-shrink: 0; }
.pf-conv__prev { font-size: .88rem; color: var(--pf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.pf-conv__prev span { overflow: hidden; text-overflow: ellipsis; }
.pf-conv.has-unread .pf-conv__name, .pf-conv.has-unread .pf-conv__prev { color: var(--pf-ink); font-weight: 800; }
.pf-conv__dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pf-red); color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; flex-shrink: 0; }
.pf-dm__suggest { padding: 0 8px 16px; border-top: 1px solid #F0ECF2; margin: 0 8px; }
.pf-dm__suggest h2 { margin-left: 2px !important; }
.pf-dm__suggest h2 { font: 700 .9rem var(--pf-text) !important; color: var(--pf-muted) !important; margin: 10px 0 8px; letter-spacing: 0 !important; }

.pf-dm__chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #FBFAFC; }
.pf-chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--pf-line); background: #fff; min-height: 64px; }
.pf-chat__back { display: none; }
.pf-chat__who { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pf-ink) !important; min-width: 0; flex: 1; }
.pf-chat__who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.pf-chat__who strong { display: block; font-weight: 800; line-height: 1.2; }
.pf-chat__who small { color: var(--pf-muted); font-size: .82rem; }
.pf-chat__body { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.pf-day { align-self: center; font-size: .78rem; font-weight: 700; color: var(--pf-muted); margin: 14px 0 8px; }
.pf-msg { max-width: min(72%, 520px); display: flex; flex-direction: column; }
.pf-msg.me { align-self: flex-end; align-items: flex-end; }
.pf-msg.them { align-self: flex-start; }
.pf-bubble { padding: 9px 14px; border-radius: 20px; font-size: .97rem; line-height: 1.42; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.pf-msg.them .pf-bubble { background: #fff; box-shadow: 0 0 0 1px var(--pf-line); border-bottom-left-radius: 6px; }
.pf-msg.me .pf-bubble { background: var(--pf-ink); color: #fff; border-bottom-right-radius: 6px; }
.pf-msg.me .pf-bubble a { color: #FFC2D0 !important; }
.pf-msg.is-pending .pf-bubble { opacity: .6; }
.pf-msg.is-failed .pf-bubble { background: #FDE8EC; color: var(--pf-red-ink); }
.pf-meta { font-size: .72rem; color: var(--pf-muted); margin: 3px 6px 6px; display: flex; gap: 5px; align-items: center; }
.dm-tick { color: #A79DAC; font-weight: 800; letter-spacing: -2px; }
.dm-tick.is-read { color: #2F80ED; }
.pf-status { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; font-size: .76rem; color: var(--pf-muted); margin: -2px 6px 8px; max-width: 80%; }
.dm-st { display: inline-flex; gap: 4px; align-items: center; }
.dm-st--read { color: #2F80ED; font-weight: 700; }
.dm-st--ok { color: var(--pf-ok); }
.dm-st--warn { color: var(--pf-red-ink); }
.dm-st--wait { font-style: italic; }
.dm-st-sep { color: #C8C0CC; }
.pf-chat__foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pf-line); background: #fff; }
.pf-compose { display: flex; align-items: flex-end; gap: 8px; }
.pf-compose textarea { flex: 1; resize: none; border: 0; background: #F1EDF3; border-radius: 22px; padding: 11px 16px; font: 500 1rem/1.35 var(--pf-text); max-height: 140px; min-height: 44px; outline: none; color: var(--pf-ink); }
.pf-compose textarea:focus { background: #fff; box-shadow: 0 0 0 2px var(--pf-ink); }
.pf-compose button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pf-red); color: #fff; flex-shrink: 0; font-size: 1rem; }
.pf-compose button:disabled { background: #D9D2DC; }
.pf-chat__locked { text-align: center; color: var(--pf-muted); font-size: .92rem; padding: 6px 10px; }
.pf-chat__locked a { font-weight: 800; }
.pf-chat__error { color: var(--pf-red-ink); font-size: .85rem; margin: 0 0 6px 6px; }
.pf-chat__empty { margin: auto; text-align: center; color: var(--pf-muted); padding: 24px; max-width: 360px; }
.pf-chat__empty img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.pf-chat__empty h2 { font-size: 1.25rem; font-weight: 800; color: var(--pf-ink); margin: 0 0 6px; }
.pf-chat__new { position: sticky; bottom: 6px; align-self: center; border: 0; background: var(--pf-ink); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .85rem; box-shadow: 0 6px 18px rgba(31, 20, 36, .25); }
.pf-chat__new[hidden] { display: none; }
@media (max-width: 860px) {
  .pf-dm { border: 0; }
  .pf-dm__list { width: 100%; border: 0; }
  .pf-dm.has-chat .pf-dm__list { display: none; }
  .pf-dm:not(.has-chat) .pf-dm__chat { display: none; }
  .pf-chat__back { display: grid; }
  .pf-msg { max-width: 84%; }
  body.page-dm.dm-chat .pf-tabbar { display: none; }
  body.page-dm.dm-chat { padding-bottom: 0 !important; }
  body.page-dm.dm-chat .pf-top { display: none; }
}

/* ── Generic upgrades for older pages (profile, pin, boards, forum) ───── */
body.pf .card, body.pf .user-card, body.pf .board-card { border-radius: var(--pf-r); border-color: var(--pf-line); }
body.pf .section-title { font-weight: 800; }
body.pf .modal-content { border-radius: var(--pf-r-lg); border: 0; }
body.pf .badge { font-weight: 700; }
body.pf .dropdown-menu { border-radius: var(--pf-r); border: 0; box-shadow: 0 18px 50px rgba(31, 20, 36, .2); }

/* images never wait for JS to become visible (old fade-in left some pages blank) */
body.pf .pin-image { opacity: 1 !important; }
body.pf .pf-card .pin-img-wrapper { min-height: 0; border-radius: var(--pf-r); }
body.pf .pf-card .pin-img-wrapper::after { display: none; }
body.pf .pf-card:hover .pin-image { transform: none; }

/* CSS-columns grid for pages without the JS masonry */
.pf-grid { columns: 5 220px; column-gap: 16px; }
.pf-grid > .pin-item { break-inside: avoid; margin: 0 0 18px; display: block; }
@media (max-width: 760px) { .pf-grid { columns: 2; column-gap: 10px; } .pf-grid > .pin-item { margin-bottom: 12px; } }

/* category / explore header */
.pf-cathead { max-width: 1680px; margin: 0 auto; padding: 28px 24px 8px; }
.pf-crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--pf-muted); margin-bottom: 10px; flex-wrap: wrap; }
.pf-crumbs a { color: var(--pf-muted) !important; text-decoration: none; }
.pf-crumbs a:hover { color: var(--pf-ink) !important; text-decoration: underline; }
.pf-cathead h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 12px; }
.pf-cathead p { max-width: 62ch; color: var(--pf-ink-2); font-size: 1.05rem; margin: 0 0 16px; }
.pf-cathead__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.pf-cathead__chips::-webkit-scrollbar { display: none; }
.pf-chip--soft { background: #EAE5EC; }
@media (max-width: 760px) { .pf-cathead { padding: 18px 14px 4px; } }

/* browse tabs + filters */
body.pf .browse-tabs { max-width: 1680px; margin: 8px auto 0; padding: 0 20px; display: flex; gap: 4px; background: none; border-bottom: 1px solid var(--pf-line); box-shadow: none; }
body.pf .browse-tab { flex: 0 0 auto; padding: 12px 16px; font-weight: 700; color: var(--pf-muted); border-bottom: 3px solid transparent; text-decoration: none; }
body.pf .browse-tab.active { color: var(--pf-ink); border-bottom-color: var(--pf-ink); }
body.pf .filter-bar { max-width: 1680px; margin: 0 auto; background: none; border: 0; padding: 14px 20px 0; }

/* breadcrumb strip on pin pages etc. */
body.pf .breadcrumb { font-size: .85rem; }

/* ── Profile ───────────────────────────────────────────────────────── */
body.pf .profile-header { border-radius: var(--pf-r-lg); box-shadow: 0 0 0 1px rgba(31, 20, 36, .06); border: 0; }
body.pf .profile-cover { background: linear-gradient(120deg, #2B1D31 0%, #5A2440 55%, #C8103A 100%); }
body.pf .profile-photo { border: 4px solid #fff; box-shadow: 0 8px 24px rgba(31, 20, 36, .2); }
body.pf .profile-username { font-family: var(--pf-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
body.pf .profile-bio { color: var(--pf-ink-2); font-size: 1rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
body.pf .profile-stat-label, body.pf .hero-stat-label { text-transform: none !important; letter-spacing: 0 !important; font-size: .85rem; color: var(--pf-muted); }
body.pf .profile-stat-value { font-family: var(--pf-display); font-weight: 800; }
body.pf #follow-btn.btn-primary { background: var(--pf-red); border-color: var(--pf-red); }

/* ── Pin page ──────────────────────────────────────────────────────── */
body.pf .pin-detail-wrapper { border-radius: var(--pf-r-lg); box-shadow: 0 20px 60px rgba(31, 20, 36, .12), 0 0 0 1px rgba(31, 20, 36, .05); }
body.pf .pin-detail-title { font-family: var(--pf-display); font-weight: 800; letter-spacing: -0.02em; }
body.pf .seo-content-block h1, body.pf .seo-content-block h2 { font-family: var(--pf-display); font-weight: 800; letter-spacing: -0.03em; }
body.pf .related-pins-section .section-title { font-size: 1.5rem; }
body.pf .forum-container { padding-top: 28px; }

/* ── Admin bar on member profiles ──────────────────────────────────── */
.pf-adminbar { position: fixed; z-index: 1035; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--pf-ink); border-radius: 999px; box-shadow: 0 14px 40px rgba(31, 20, 36, .35); max-width: calc(100% - 16px); }
@media (min-width: 992px) { .pf-adminbar { bottom: 20px; } }
.pf-adminbar__label { color: #CFC6D3; font-weight: 700; font-size: .85rem; padding: 0 8px 0 10px; white-space: nowrap; }
.pf-adminbar__btn { height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #3A2D40; color: #fff; font-weight: 800; font-size: .88rem; white-space: nowrap; }
.pf-adminbar__btn:hover { background: #4A3A52; }
.pf-adminbar__btn--danger { background: var(--pf-red); }
.pf-adminbar__btn--danger:hover { background: var(--pf-red-ink); }
@media (max-width: 520px) { .pf-adminbar__label { display: none; } .pf-adminbar__btn { padding: 0 12px; font-size: .8rem; } }

/* =====================================================================
   ROUND 2 (2026-11-03): big touch targets, double-tap like, new pin page
   Rule: every tappable control is at least 44×44 px.
   ===================================================================== */

/* ── Card v2: actions live on the photo, big and thumb-friendly ── */
.pf-card__media { position: relative; border-radius: var(--pf-r); overflow: hidden; background: #E4DEE7; isolation: isolate; }
.pf-card__media .pf-card__img { border-radius: 0; }
.pf-card__media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, rgba(20, 10, 25, .42)); pointer-events: none; z-index: 1; }
.pf-card__save { display: inline-flex !important; align-items: center; gap: 7px; height: 44px !important; line-height: 1 !important; padding: 0 16px !important; z-index: 3; right: 8px !important; top: 8px !important; box-shadow: 0 6px 16px rgba(227, 18, 63, .35); }
.pf-card__save i { font-size: .85rem; }
body.pf .pf-card__like { position: absolute; right: 8px; bottom: 8px; z-index: 3; height: 44px; min-width: 64px; padding: 0 14px 0 13px; gap: 7px; justify-content: center;
  border-radius: 999px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--pf-ink) !important; font: 800 .95rem/1 var(--pf-text); box-shadow: 0 6px 18px rgba(20, 10, 25, .22); touch-action: manipulation; }
body.pf .pf-card__like i { font-size: 1.2rem; color: var(--pf-ink); }
body.pf .pf-card__like span { color: var(--pf-ink); }
body.pf .pf-card__like:hover { background: #fff; transform: scale(1.04); }
body.pf .pf-card__like.liked { background: var(--pf-red); }
body.pf .pf-card__like.liked i, body.pf .pf-card__like.liked span { color: #fff; }
body.pf .pf-card__like::before { content: ''; position: absolute; inset: -6px; }    /* invisible extra hit area */
.btn-card-like.pop i, .pf-act--like.pop i { animation: pf-pop .35s ease; }
.pf-card__body { padding: 9px 4px 4px; }
.pf-card__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; font-size: .97rem; }
.pf-card__who { min-height: 32px; font-size: .88rem; }
.pf-card__who img { width: 28px; height: 28px; }
.pf-card:hover .pf-card__img img { filter: none; transform: scale(1.03); }
.pf-card__img img { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) {
  .pf-card__save { opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
  .pf-card:hover .pf-card__save, .pf-card:focus-within .pf-card__save { opacity: 1; transform: none; }
}
@media (hover: none) { .pf-card__save { opacity: 1 !important; height: 40px !important; padding: 0 13px !important; } .pf-card__save span { display: none; } .pf-card__save { width: 40px; justify-content: center; padding: 0 !important; } }
@media (max-width: 760px) {
  body.pf .pf-card__like { height: 42px; min-width: 58px; padding: 0 12px; font-size: .88rem; right: 6px; bottom: 6px; }
  .pf-card__title { font-size: .9rem; }
}

/* ── big heart burst (double-tap) ── */
.pf-burst { position: absolute; left: 50%; top: 50%; z-index: 20; pointer-events: none; color: #fff; font-size: 96px; line-height: 1;
  transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 8px 24px rgba(227, 18, 63, .6)); animation: pf-burst .85s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.pf-burst i { color: #fff; }
@keyframes pf-burst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { opacity: 1; } 35% { transform: translate(-50%, -50%) scale(1.15); } 55% { transform: translate(-50%, -50%) scale(.95); } 75% { opacity: 1; } 100% { transform: translate(-50%, -62%) scale(1); opacity: 0; } }

/* ── toast ── */
.pf-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 14px; background: var(--pf-ink); color: #fff;
  font-weight: 700; font-size: .95rem; box-shadow: 0 16px 40px rgba(20, 10, 25, .35); transition: opacity .2s, transform .2s; }
.pf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pf-toast i { color: #FF8FA8; }
@media (min-width: 992px) { .pf-toast { bottom: 28px; } }

/* ── touch targets everywhere ── */
.pf-chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; }
.pf-tabs a, .pf-tabs button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; }
.pf-menu__list a { min-height: 46px; }
.pf-foot__col a { padding: 6px 0; }
.pf-crumbs a { padding: 6px 0; }
.pf-btn { height: 44px; }
.pf-btn--sm { height: 40px; }
.pf-iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: #EFEBF1; color: var(--pf-ink) !important; font-size: 1.1rem; text-decoration: none; flex-shrink: 0; border: 0; }
.pf-iconbtn:hover { background: #E2DCE5; }
.pf-chipbtn { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #EFEBF1; font-weight: 700; font-size: .88rem; color: var(--pf-ink); display: inline-flex; align-items: center; gap: 7px; }
body.pf .form-control, body.pf .form-select { min-height: 48px; font-size: 1rem; }
body.pf .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
body.pf .btn-sm { min-height: 38px; }

/* ── Pin page v2 ── */
.pf-pin { max-width: 1240px; margin: 0 auto; padding: 14px 20px 40px; }
.pf-pin__crumbs { margin: 0 4px 10px; }
.pf-pin__sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); background: #fff; border-radius: 32px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(31, 20, 36, .12), 0 0 0 1px rgba(31, 20, 36, .05); min-height: 560px; }
.pf-pin__media { position: relative; background: #17101B; display: flex; align-items: center; justify-content: center; min-height: 420px; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.pf-pin__media img { display: block; width: 100%; height: 100%; max-height: 86vh; object-fit: contain; -webkit-touch-callout: none; }
.pf-pin__video { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 86vh; }
.pf-pin__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-pin__badge { z-index: 2; }
.pf-pin__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(20, 10, 25, .55); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.pf-pin__media:hover .pf-pin__hint { opacity: 1; }
.pf-pin__side { display: flex; flex-direction: column; min-width: 0; max-height: 86vh; }
.pf-pin__actions { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #F0ECF2; position: relative; z-index: 4; }
.pf-act-wrap { position: relative; }
.pf-act { height: 48px; min-width: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: #F1EDF3; color: var(--pf-ink) !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 1rem/1 var(--pf-text); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background .15s, transform .1s; }
.pf-act:hover { background: #E6E0E9; }
.pf-act:active { transform: scale(.96); }
.pf-act i { font-size: 1.3rem; }
.pf-act--like.liked { background: var(--pf-red); color: #fff !important; }
.pf-act--like.liked i { color: #fff; }
.pf-act--save { margin-left: auto; background: var(--pf-red); color: #fff !important; padding: 0 22px; }
.pf-act--save:hover { background: var(--pf-red-ink); }
.pf-act--save i { font-size: 1rem; }
.pf-pop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 18px 50px rgba(31, 20, 36, .22), 0 0 0 1px rgba(31, 20, 36, .06); z-index: 20; }
.pf-pop a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--pf-ink) !important; text-decoration: none; font-weight: 700; }
.pf-pop a:hover { background: #F4F1F6; }
.pf-pop a i { width: 20px; text-align: center; font-size: 1.1rem; }
.pf-pin__scroll { flex: 1; overflow-y: auto; padding: 20px 22px 10px; overscroll-behavior: contain; }
.pf-pin__caption h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 10px; }
.pf-pin__desc { font-size: 1.02rem; line-height: 1.55; color: var(--pf-ink-2); overflow-wrap: anywhere; }
.pf-pin__desc a { color: var(--pf-red-ink) !important; font-weight: 700; }
.pf-pin__caption .pf-chipbtn { margin-top: 10px; }
.pf-pin__author { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; padding: 12px; border-radius: 20px; background: #F8F6F9; }
.pf-pin__who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--pf-ink) !important; min-height: 48px; }
.pf-pin__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pf-pin__who > span { display: flex; flex-direction: column; min-width: 0; }
.pf-pin__who strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-pin__who small { color: var(--pf-muted); font-size: .85rem; }
.pf-btn--follow { padding: 0 18px; }
.pf-btn--follow.is-following { background: #E6E0E9; color: var(--pf-ink) !important; }
.pf-pin__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0 2px 14px; color: var(--pf-muted); font-size: .9rem; }
.pf-pin__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pf-pin__tags a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--pf-blush); color: var(--pf-red-ink) !important; font-weight: 700; font-size: .9rem; text-decoration: none; }
.pf-pin__tags a:hover { background: #FFD3DE; }
.pf-pin__boards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--pf-muted); font-size: .9rem; }
.pf-pin__boards a { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; background: #F1EDF3; color: var(--pf-ink) !important; text-decoration: none; font-weight: 600; }
.pf-pin__comments h2 { font-size: 1.15rem; font-weight: 800; margin: 6px 0 12px; }
.pf-pin__nocomments { color: var(--pf-muted); margin: 0 0 8px; }
.pf-pin__composer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #F0ECF2; background: #fff; }
.pf-composer { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 6px 4px 8px; border-radius: 999px; background: #F1EDF3; text-decoration: none; color: var(--pf-muted) !important; }
.pf-composer:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--pf-ink); }
.pf-composer img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pf-composer input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 1rem var(--pf-text); color: var(--pf-ink); height: 44px; }
.pf-composer button { height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pf-red); color: #fff; font-weight: 800; }
.pf-composer button:disabled { background: #D9D2DC; }
.pf-composer--guest { padding: 0 18px; font-weight: 700; gap: 10px; }
.pf-skel-line { height: 14px; border-radius: 7px; background: #EFEBF1; margin: 10px 0; }
.pf-skel-line.short { width: 60%; }
/* comments */
.pf-comment { display: flex; gap: 10px; margin-bottom: 16px; }
.pf-cmt-avatar { width: 36px !important; height: 36px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pf-cmt-body { flex: 1; min-width: 0; }
.pf-cmt-user a { font-weight: 800; color: var(--pf-ink) !important; text-decoration: none; font-size: .95rem; }
.pf-cmt-text { font-size: .97rem; color: var(--pf-ink); line-height: 1.45; overflow-wrap: anywhere; }
.pf-cmt-meta { font-size: .85rem; color: var(--pf-muted); margin-top: 2px; font-weight: 600; }
.pf-cmt-meta a { display: inline-block; padding: 8px 4px; color: var(--pf-muted) !important; text-decoration: none; font-weight: 700; }
.pf-cmt-meta a:hover { color: var(--pf-ink) !important; }
.pf-reply-form textarea { font-size: 1rem !important; }
.pf-reply-form button { min-height: 40px; }
/* more sections */
.pf-pin__more { margin-top: 40px; }
.pf-pin__morehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 14px; }
.pf-pin__morehead h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; margin: 0; }
.pf-pin__bio { max-width: 62ch; color: var(--pf-ink-2); margin: -4px 4px 16px; }
@media (max-width: 900px) {
  .pf-pin { padding: 0 0 24px; }
  .pf-pin__crumbs { padding: 10px 14px 0; margin: 0 0 8px; }
  .pf-pin__sheet { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; min-height: 0; }
  .pf-pin__media { min-height: 0; cursor: default; }
  .pf-pin__media img { max-height: 78vh; }
  .pf-pin__hint { opacity: 1; animation: pf-hint 3s 1.2s forwards; }
  .pf-pin__side { max-height: none; }
  .pf-pin__actions { padding: 10px 12px; gap: 6px; }
  .pf-act { padding: 0 14px; }
  .pf-act-wrap .pf-act span { display: none; }
  .pf-pin__scroll { overflow: visible; padding: 16px 16px 6px; }
  .pf-pin__composer { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 5; }
  .pf-pin__more { padding: 0 8px; margin-top: 28px; }
  .pf-pop { left: auto; right: -60px; }
}
@keyframes pf-hint { to { opacity: 0; } }

body.pf .pf-act { font: 800 1rem/1 var(--pf-text); height: 48px; border-radius: 999px; padding: 0 16px; box-shadow: none; }
body.pf .pf-act--save { padding: 0 22px; }

/* ── "Turn on alerts": visible on every page until notifications are on ── */
.pf-pushpill { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin-right: 4px; border: 0; border-radius: 999px;
  background: var(--pf-blush); color: var(--pf-red-ink); font: 800 .88rem/1 var(--pf-text); white-space: nowrap; position: relative; }
.pf-pushpill:hover { background: #FFD3DE; }
.pf-pushpill i { animation: pf-ring 2.6s ease-in-out infinite; transform-origin: 50% 0; }
.pf-pushpill::after { content: ''; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--pf-red); box-shadow: 0 0 0 0 rgba(227, 18, 63, .6); animation: pf-pulse 1.8s infinite; }
body.push-off .pf-pushpill { display: inline-flex; }
@keyframes pf-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
@keyframes pf-pulse { 70% { box-shadow: 0 0 0 8px rgba(227, 18, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 18, 63, 0); } }
@media (max-width: 760px) { .pf-pushpill { width: 44px; height: 44px; padding: 0; justify-content: center; margin: 0; } .pf-pushpill span { display: none; } .pf-pushpill i { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .pf-pushpill i, .pf-pushpill::after { animation: none; } }
.pf-push-cta-card { display: none !important; }
body.push-off .pf-push-cta-card { display: flex !important; }
.pf-pushcard { align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: var(--pf-r-lg); background: var(--pf-ink); color: #fff; margin-bottom: 16px; }
.pf-pushcard__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--pf-red); display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; }
.pf-pushcard p { margin: 0; flex: 1; font-size: .95rem; color: #DCD3E0; }
.pf-pushcard strong { display: block; color: #fff; font-size: 1.05rem; }
@media (max-width: 520px) { .pf-pushcard { flex-wrap: wrap; } .pf-pushcard .pf-btn { width: 100%; } }

/* ── My photos (photos.php) ─────────────────────────────────────────── */
.pf-studio { max-width: 1240px; margin: 0 auto; padding: 26px 20px 48px; }
.pf-studio__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pf-studio__head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; margin: 0 0 4px; }
.pf-studio__head p { margin: 0; color: var(--pf-muted); }
.pf-studio__cta { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; list-style: none; padding: 0; margin: 0 0 16px; background: var(--pf-line); border-radius: var(--pf-r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--pf-line); }
.pf-stats li { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; }
.pf-stats b { font: 800 1.6rem/1.1 var(--pf-display); letter-spacing: -0.02em; }
.pf-stats span { color: var(--pf-muted); font-size: .88rem; }
@media (max-width: 640px) { .pf-stats { grid-template-columns: repeat(3, 1fr); } .pf-stats li:nth-child(n+4) { display: none; } .pf-stats b { font-size: 1.3rem; } .pf-studio { padding: 18px 12px 40px; } }
.pf-tip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--pf-r); background: #FFF7E0; color: #6B4E00; margin-bottom: 14px; }
.pf-tip i { color: #D9A100; font-size: 1.1rem; }
.pf-tip span { flex: 1; min-width: 200px; }
.pf-studio__bar { position: sticky; top: calc(var(--pf-top-h) + 50px); z-index: 20; display: flex; gap: 8px; align-items: center; padding: 10px 0; background: var(--pf-paper); }
.pf-studio__find { position: relative; flex: 1; min-width: 0; }
.pf-studio__find i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--pf-muted); }
.pf-studio__find input { width: 100%; height: 48px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--pf-line); padding: 0 16px 0 42px; font: 500 1rem var(--pf-text); outline: none; }
.pf-studio__find input:focus { box-shadow: 0 0 0 2px var(--pf-ink); }
.pf-studio__bar .form-select { width: auto; border-radius: 999px; }
@media (max-width: 640px) { .pf-studio__bar { flex-wrap: wrap; top: var(--pf-top-h); } .pf-studio__find { flex-basis: 100%; } .pf-studio__bar .form-select { flex: 1; } }
.pf-studio__selbar { position: sticky; top: calc(var(--pf-top-h) + 50px); z-index: 21; display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 999px; background: var(--pf-ink); color: #fff; font-weight: 700; }
.pf-studio__selbar[hidden] { display: none; }
.pf-studio__selbar span { flex: 1; padding-left: 8px; }
.pf-tiles { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 640px) { .pf-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pf-tile { background: #fff; border-radius: var(--pf-r); overflow: hidden; box-shadow: 0 0 0 1px rgba(31, 20, 36, .06); display: flex; flex-direction: column; transition: transform .2s, opacity .2s, box-shadow .15s; }
.pf-tile[hidden] { display: none; }
.pf-tile.is-ghost { opacity: .35; }
.pf-tile.is-removing { transform: scale(.9); opacity: 0; }
.pf-tile.is-selected { box-shadow: 0 0 0 3px var(--pf-red); }
.pf-tile__media { position: relative; aspect-ratio: 4 / 5; background: #E4DEE7; }
.pf-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.pf-tile__drag { position: absolute; left: 8px; top: 8px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--pf-ink); cursor: grab; touch-action: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.no-drag .pf-tile__drag, .is-selecting .pf-tile__drag { display: none; }
.pf-tile__check { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; display: none; place-items: center; cursor: pointer; }
.is-selecting .pf-tile__check { display: grid; }
.pf-tile__check input { position: absolute; opacity: 0; }
.pf-tile__check span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 2px var(--pf-ink); }
.pf-tile__check input:checked + span { background: var(--pf-red); box-shadow: inset 0 0 0 2px var(--pf-red); }
.pf-tile__check input:checked + span::after { content: '✓'; color: #fff; font-weight: 800; display: grid; place-items: center; height: 100%; }
.pf-tile__check input:focus-visible + span { outline: 3px solid var(--pf-red); outline-offset: 2px; }
.pf-tile__body { padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pf-tile__title { text-align: left; border: 0; background: none; padding: 4px 2px; min-height: 36px; font: 700 .97rem/1.3 var(--pf-text); color: var(--pf-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tile__title.is-empty { color: var(--pf-red-ink); }
.pf-tile__title.is-empty::before { content: '+ '; }
.pf-tile__stats { display: flex; gap: 10px; flex-wrap: wrap; color: var(--pf-muted); font-size: .85rem; padding: 0 2px; }
.pf-tile__stats i { margin-right: 4px; font-size: .78rem; }
.pf-tile__actions { display: flex; gap: 6px; margin-top: auto; }
.pf-tile__actions .pf-iconbtn:last-child { margin-left: auto; }
@media (max-width: 640px) { .pf-tile__actions .pf-iconbtn { width: 40px; height: 40px; font-size: .95rem; } .pf-tile__stats span:nth-child(n+3) { display: none; } }
.pf-studio__none { text-align: center; color: var(--pf-muted); padding: 32px 0; }

/* bottom sheets */
.pf-sheet { position: fixed; inset: 0; z-index: 2500; background: rgba(20, 10, 25, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.pf-sheet[hidden] { display: none; }
.pf-sheet.is-open { background: rgba(20, 10, 25, .5); }
.pf-sheet__panel { width: min(520px, 100%); max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.pf-sheet.is-open .pf-sheet__panel { transform: none; }
@media (min-width: 700px) { .pf-sheet { align-items: center; } .pf-sheet__panel { border-radius: 24px; } }
.pf-sheet__thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 14px; margin: 8px auto 10px; }
.pf-sheet__row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 14px; background: none; color: var(--pf-ink) !important; font: 700 1rem var(--pf-text); text-decoration: none; text-align: left; }
.pf-sheet__row:hover { background: #F4F1F6; }
.pf-sheet__row i { width: 22px; text-align: center; color: var(--pf-muted); }
.pf-sheet__row[hidden] { display: none; }
.pf-sheet__row--danger, .pf-sheet__row--danger i { color: var(--pf-red-ink) !important; }
.pf-sheet__row--cancel { justify-content: center; background: #F1EDF3; margin-top: 6px; }
.pf-sheet__form { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
.pf-sheet__form h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 14px; }
.pf-sheet__form label { font-weight: 700; margin: 10px 0 6px; display: block; }
.pf-count-hint { display: block; text-align: right; color: var(--pf-muted); margin-top: 4px; }
.pf-tagsuggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-form-error { color: var(--pf-red-ink); font-weight: 600; margin: 10px 0 0; }
.pf-sheet__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.pf-related { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 0; }
.pf-related h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; }
.pf-people { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-people a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--pf-line); text-decoration: none; color: var(--pf-ink) !important; font-weight: 700; }
.pf-people a:hover { box-shadow: 0 0 0 2px var(--pf-ink); }
.pf-people img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pf-people span { display: flex; flex-direction: column; line-height: 1.2; }
.pf-people small { color: var(--pf-muted); font-weight: 500; }
@media (max-width: 760px) { .pf-related { grid-template-columns: 1fr; } }
/* explore: member cards */
body.pf .member-card { border-radius: var(--pf-r-lg) !important; box-shadow: 0 0 0 1px rgba(31, 20, 36, .06) !important; border: 0 !important; transition: box-shadow .15s, transform .15s; }
body.pf .member-card:hover { box-shadow: 0 14px 30px rgba(31, 20, 36, .12) !important; transform: translateY(-2px); }
body.pf .member-name { font-family: var(--pf-display); font-weight: 800; }
body.pf .active-badge { background: #E5F6EE !important; color: var(--pf-ok) !important; }
/* visitors page hero */
body.pf .visitors-hero { background: var(--pf-ink) !important; color: #fff; }
body.pf .visitors-hero h1 { color: #fff !important; font-family: var(--pf-display); font-weight: 800; letter-spacing: -0.03em; }
/* tap-target fixes from the audit */
.pf-logo { min-height: 44px; }
.pf-note a { display: inline-block; padding: 10px 2px; }
.pf-note button { width: 44px; height: 44px; right: 2px; }
body.pf .hash-cloud a { min-height: 40px; display: inline-flex !important; align-items: center; padding: 0 14px !important; border-radius: 999px !important; }
.pb-bar button.pb-go { min-height: 44px; }
.pb-bar button.pb-x { width: 44px; height: 44px; top: 2px !important; right: 2px !important; }
@media (max-width: 760px) {
  .pf-wall__count { display: none; }
  .pf-pin__media img { max-height: 64vh; }
}
body.pf .profile-header .btn, body.pf #follow-btn { min-height: 44px; padding-left: 22px !important; padding-right: 22px !important; }
/* (2026-11-03) the category row no longer hides on scroll: it changed the header height mid-scroll and flickered */
body.pf .pf-act.pin-button, body.pf .pf-act--save { font-size: 1rem !important; font-weight: 800 !important; padding: 0 22px !important; height: 48px !important; border-radius: 999px !important; }

/* ── Forum ─────────────────────────────────────────────────────────── */
.pf-forum { max-width: 1240px; margin: 0 auto; padding: 22px 20px 48px; }
.pf-forum__hero { margin-bottom: 18px; }
.pf-forum__herorow { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pf-forum__hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 6px 0 10px; }
.pf-forum__hero p { color: var(--pf-ink-2); font-size: 1.08rem; max-width: 56ch; margin: 0; }
.pf-forum__cta { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-forum__stats { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 16px 0 0; color: var(--pf-muted); }
.pf-forum__stats b { color: var(--pf-ink); font-family: var(--pf-display); font-size: 1.15rem; }
.pf-forum__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pf-forum__main { min-width: 0; }
.pf-forum__side { position: sticky; top: calc(var(--pf-top-h) + 62px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 980px) { .pf-forum__layout { grid-template-columns: 1fr; } .pf-forum__side { position: static; } }
@media (max-width: 640px) { .pf-forum { padding: 14px 12px 40px; } }
.pf-forum__cats { margin-bottom: 10px; }
.pf-forum__cats small { margin-left: 6px; opacity: .6; font-weight: 700; }
.pf-forum__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pf-forum__tools .pf-studio__find { flex: 1 1 260px; }
.pf-forum__sort { margin: 0; }
.pf-threads { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--pf-r-lg); box-shadow: 0 0 0 1px rgba(31, 20, 36, .06); overflow: hidden; }
.pf-thread { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; border-top: 1px solid #F0ECF2; position: relative; }
.pf-thread:first-child { border-top: 0; }
.pf-thread:hover { background: #FBFAFC; }
.pf-thread.is-pinned { background: #FFF8FA; }
.pf-thread__av img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pf-thread__title { font: 800 1.1rem/1.3 var(--pf-text) !important; letter-spacing: -0.01em !important; margin: 0 0 4px; }
.pf-thread__title a { color: var(--pf-ink) !important; text-decoration: none; }
.pf-thread__title a::after { content: ''; position: absolute; inset: 0; }   /* whole row is clickable */
.pf-thread__title a:hover { text-decoration: underline; }
.pf-thread__ex { margin: 0 0 8px; color: var(--pf-ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-thread__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--pf-muted); font-size: .86rem; position: relative; z-index: 1; }
.pf-thread__meta b { color: var(--pf-ink-2); }
.pf-thread__count { position: relative; z-index: 1; min-width: 74px; min-height: 64px; padding: 8px 10px; border-radius: 14px; background: #F1EDF3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--pf-ink) !important; }
.pf-thread__count b { font: 800 1.3rem/1 var(--pf-display); }
.pf-thread__count span { font-size: .78rem; font-weight: 700; }
.pf-thread__count small { font-size: .72rem; color: var(--pf-muted); margin-top: 2px; }
.pf-thread__count.is-zero { background: var(--pf-blush); color: var(--pf-red-ink) !important; }
@media (max-width: 640px) {
  .pf-thread { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; gap: 10px; }
  .pf-thread__av img { width: 36px; height: 36px; }
  .pf-thread__count { grid-column: 2; flex-direction: row; gap: 6px; min-height: 36px; min-width: 0; justify-self: start; padding: 4px 12px; }
  .pf-thread__count b { font-size: 1rem; } .pf-thread__count small { display: none; }
  .pf-thread__last { display: none; }
}
.pf-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #F1EDF3; color: var(--pf-ink-2) !important; font-size: .78rem; font-weight: 700; text-decoration: none; vertical-align: middle; }
a.pf-tag { min-height: 32px; }
.pf-tag--new { background: #E5F6EE; color: var(--pf-ok) !important; }
.pf-tag--pin { background: var(--pf-blush); color: var(--pf-red-ink) !important; }
.pf-tag--admin { background: var(--pf-ink); color: #fff !important; }
.pf-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; color: var(--pf-muted); font-weight: 600; }
.pf-forum__box { padding: 18px; }
.pf-forum__box h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 10px; }
.pf-forum__catlist, .pf-forum__rules, .pf-forum__morelist { list-style: none; margin: 0; padding: 0; }
.pf-forum__catlist li { display: flex; align-items: center; gap: 10px; border-top: 1px solid #F0ECF2; }
.pf-forum__catlist li:first-child { border-top: 0; }
.pf-forum__catlist a { flex: 1; display: flex; flex-direction: column; padding: 10px 0; min-height: 48px; text-decoration: none; color: var(--pf-ink) !important; }
.pf-forum__catlist span { color: var(--pf-muted); font-size: .85rem; }
.pf-forum__catlist b { min-width: 30px; text-align: center; color: var(--pf-muted); }
.pf-forum__rules li { padding: 6px 0 6px 22px; position: relative; color: var(--pf-ink-2); font-size: .93rem; }
.pf-forum__rules li::before { content: '✓'; position: absolute; left: 0; color: var(--pf-ok); font-weight: 800; }
.pf-forum__morelist li { padding: 9px 0; border-top: 1px solid #F0ECF2; }
.pf-forum__morelist li:first-child { border-top: 0; }
.pf-forum__morelist a { display: block; font-weight: 700; color: var(--pf-ink) !important; text-decoration: none; line-height: 1.35; padding: 3px 0; }
.pf-forum__morelist small { color: var(--pf-muted); }
.pf-forum__side .pf-pushcard { margin: 0; flex-wrap: wrap; }
.pf-forum__side .pf-pushcard .pf-btn { width: 100%; }

/* thread page */
.pf-forum--thread .pf-crumbs { margin-bottom: 12px; }
.pf-op { padding: 24px 26px; margin-bottom: 14px; }
.pf-op__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-op h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 14px; }
.pf-op__by { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pf-op__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pf-op__by span { display: flex; flex-direction: column; font-weight: 800; }
.pf-op__by a { color: var(--pf-ink) !important; text-decoration: none; }
.pf-op__by small { color: var(--pf-muted); font-weight: 500; }
.pf-op__body { font-size: 1.08rem; line-height: 1.65; }
.pf-post__body { color: var(--pf-ink); line-height: 1.6; overflow-wrap: anywhere; }
.pf-post__body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 14px; border: 0; margin: 10px 0; }
.pf-post__body a { color: var(--pf-red-ink) !important; }
.pf-post__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-chipbtn--danger { background: var(--pf-blush); color: var(--pf-red-ink); }
@media (max-width: 640px) { .pf-op { padding: 18px 16px; } }
.pf-modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--pf-r); background: var(--pf-ink); color: #CFC6D3; font-weight: 700; }
.pf-modbar .pf-chipbtn { background: #3A2D40; color: #fff; }
.pf-modbar .pf-chipbtn--danger { background: var(--pf-red); }
.pf-replies { margin: 6px 0 14px; }
.pf-replies > h2 { font-size: 1.25rem; font-weight: 800; margin: 18px 4px 12px; }
.pf-okmsg { padding: 12px 14px; border-radius: 14px; background: #E5F6EE; color: #0B5F42; font-weight: 600; }
.pf-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 18px; background: #fff; border-radius: var(--pf-r); box-shadow: 0 0 0 1px rgba(31, 20, 36, .06); margin-bottom: 10px; scroll-margin-top: 140px; }
.pf-post--child { box-shadow: none; background: #F8F6F9; padding: 12px 14px; margin: 12px 0 0; }
.pf-post.is-hidden { opacity: .55; }
.pf-post.is-flash { animation: pf-flash 2.4s ease; }
@keyframes pf-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--pf-red); } 100% { box-shadow: 0 0 0 1px rgba(31, 20, 36, .06); } }
.pf-post__av img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pf-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.pf-post__name { font-weight: 800; color: var(--pf-ink) !important; text-decoration: none; }
.pf-post__time { color: var(--pf-muted) !important; font-size: .85rem; text-decoration: none; margin-left: auto; padding: 6px 0; }
.pf-post .pf-chipbtn { min-height: 38px; font-size: .85rem; text-decoration: none; }
.pf-inreply { margin-top: 10px; }
.pf-replyform { padding: 22px; }
.pf-replyform h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; }
.pf-replyform__me { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--pf-muted); }
.pf-replyform__me img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pf-replyform__note { margin: 14px 0 8px; color: var(--pf-ink-2); }
.pf-replyform__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .pf-replyform__grid { grid-template-columns: 1fr; } }
.pf-replyform__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pf-form-error { padding: 12px 14px; border-radius: 14px; background: var(--pf-blush); margin-bottom: 12px; }

/* compose */
.pf-forum--compose { max-width: 820px; }
.pf-compose { padding: 26px; }
.pf-compose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 6px; }
.pf-compose__lead { color: var(--pf-ink-2); margin-bottom: 18px; }
.pf-compose .form-label { font-weight: 700; margin-top: 14px; }
.pf-compose__cats { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pf-compose__cats legend { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.pf-radiocard { position: relative; display: block; cursor: pointer; }
.pf-radiocard input { position: absolute; opacity: 0; }
.pf-radiocard span { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 14px; border-radius: 14px; background: #F8F6F9; box-shadow: inset 0 0 0 1px var(--pf-line); }
.pf-radiocard small { color: var(--pf-muted); line-height: 1.3; }
.pf-radiocard input:checked + span { background: #fff; box-shadow: inset 0 0 0 2px var(--pf-red); }
.pf-radiocard input:focus-visible + span { outline: 3px solid var(--pf-red); outline-offset: 2px; }
.pf-compose__guest { margin-top: 18px; padding: 16px; border-radius: 16px; background: #F8F6F9; }
.pf-compose__guest p { margin: 0 0 6px; }
@media (max-width: 640px) { .pf-compose { padding: 18px 14px; } }

/* ── Boards directory ─────────────────────────────────────────────── */
.pf-boards { max-width: 1400px; margin: 0 auto; padding: 0 20px 48px; }
.pf-boards__head { padding-left: 0; padding-right: 0; }
.pf-boards__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 16px; }
.pf-boards__tools .pf-studio__find { flex: 1 1 260px; }
.pf-boards__tools .pf-tabs { margin: 0; }
.pf-boardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
@media (max-width: 640px) { .pf-boards { padding: 0 12px 40px; } .pf-boardgrid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; } }
.pf-board__cover { display: grid; gap: 3px; aspect-ratio: 3 / 2; border-radius: var(--pf-r); overflow: hidden; background: #E4DEE7; position: relative; }
.pf-board__cover--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pf-board__cover--3 .pf-board__img--1 { grid-row: 1 / 3; }
.pf-board__cover--2 { grid-template-columns: 1fr 1fr; }
.pf-board__img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pf-board:hover .pf-board__img--1 { transform: scale(1.03); }
.pf-board__none { display: grid; place-items: center; color: #B9AFBF; font-size: 2rem; }
.pf-board__body { padding: 10px 2px 0; }
.pf-board__name { font: 800 1.05rem/1.25 var(--pf-text) !important; letter-spacing: -0.01em !important; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-board__name a { color: var(--pf-ink) !important; text-decoration: none; display: block; padding: 4px 0; }
.pf-board__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--pf-muted); font-size: .86rem; }
.pf-board__who { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--pf-ink-2) !important; text-decoration: none; font-weight: 600; max-width: 100%; }
.pf-board__who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pf-board__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .pf-board__name { font-size: .95rem !important; } .pf-board__meta > span:last-child { display: none; } }
a.pf-tag { min-height: 36px; padding: 0 12px; }
.pf-board__name a { padding: 8px 0; }
.pf-op__by a, .pf-replyform__note a, .pf-compose__guest a { display: inline-block; padding: 8px 0; }
