/* Profile posts (js/posts.js). Flat: no cards, no glass, photos untinted. */

/* camera button above the new-chat button */
/* camera button above the new-chat button */
.fab.fab-cam { width: 46px; height: 46px; margin-bottom: 68px; margin-right: 5px; background: var(--bg-panel); color: var(--text-main); border: 1px solid var(--border); }
.fab.fab-cam svg { width: 22px; height: 22px; stroke-width: 2; }
div.panel.root.mini-sidebar .fab.fab-cam { display: none; }
.toast { z-index: 11600; }

/* ---------- full-screen layers (composer, viewer) */
.pp-screen { position: fixed; inset: 0; z-index: 10500; display: flex; flex-direction: column; background: var(--bg-base); color: var(--text-main); opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.pp-screen.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pp-screen { transition: opacity .01s; transform: none; } }
.pp-bar { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 56px; padding: var(--safe-top, 0) 8px 0; box-sizing: content-box; border-bottom: 1px solid var(--border); }
.pp-bar-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-bar-sp { width: 40px; flex-shrink: 0; }
.pp-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--text-main); border-radius: 50%; cursor: pointer; }
.pp-icon svg { width: 22px; height: 22px; }
.pp-icon:hover { background: var(--bg-input); }
.pp-icon-sm { width: 34px; height: 34px; }
.pp-icon-sm svg { width: 18px; height: 18px; }
.pp-icon:focus-visible, .pp-act:focus-visible, .pp-tile:focus-visible, .pp-row:focus-visible, .pp-share:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pp-share { height: 36px; padding: 0 16px; border: none; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pp-share:disabled { opacity: .4; cursor: default; }
.pp-flex { flex: 1; }

/* ---------- composer */
.pp-compose-body { flex: 1; overflow-y: auto; padding: 16px 0 calc(24px + var(--safe-bottom, 0px)); width: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box; }
.pp-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pp-strip::-webkit-scrollbar { display: none; }
.pp-thumb { position: relative; flex: 0 0 auto; width: min(64vw, 260px); aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--bg-input); scroll-snap-align: start; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb.busy img { opacity: .55; }
.pp-thumb.err img { opacity: .3; }
.pp-add { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--border); background: transparent; color: var(--text-muted); cursor: pointer; width: 110px; }
.pp-add svg { width: 28px; height: 28px; }
.pp-thumb-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pp-thumb-x svg { width: 14px; height: 14px; }
.pp-thumb-n { position: absolute; left: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pp-spin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: pp-spin .8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 34px; padding: 0 14px; border: none; border-radius: 17px; background: var(--bg-panel); color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-field { position: relative; margin: 18px 16px 6px; }
.pp-field textarea { display: block; width: 100%; box-sizing: border-box; min-height: 72px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text-main); font: inherit; font-size: 15px; line-height: 1.45; resize: none; outline: none; }
.pp-field textarea:focus { border-color: var(--primary); }
.pp-counter { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--text-muted); }
.pp-row { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px; padding: 14px 2px; border: none; border-bottom: 1px solid var(--border); background: transparent; color: var(--text-main); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.pp-row-ico { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.pp-row-ico svg { width: 100%; height: 100%; }
.pp-row.on .pp-row-ico { color: var(--primary); }
.pp-row-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-row:not(.on) .pp-row-txt { color: var(--text-muted); }
.pp-row-x { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-muted); }
.pp-row-x[hidden] { display: none; }
.pp-row-x svg { width: 14px; height: 14px; }
.pp-row-x:hover { background: var(--bg-input); }
.pp-note { margin: 12px 18px 0; font-size: 13px; color: var(--text-muted); min-height: 18px; }

/* ---------- sheets (song / place / options) inside Yuki.sheet */
.pp-sheet-search { padding: 4px 16px 10px; }
.pp-sheet-search input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text-main); font: inherit; font-size: 15px; outline: none; }
.pp-sheet-search input:focus { border-color: var(--primary); }
.pp-sheet-list { max-height: min(55dvh, 460px); overflow-y: auto; padding: 0 8px 12px; }
.pp-sheet-msg { padding: 18px 12px; text-align: center; font-size: 14px; color: var(--text-muted); }
.pp-sheet-label { padding: 10px 10px 4px; font-size: 13px; color: var(--text-muted); }
.pp-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: none; border-radius: 12px; background: transparent; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.pp-pick:hover { background: var(--bg-input); }
.pp-pick img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg-input); flex-shrink: 0; }
.pp-pick span:not(.pp-pick-ico):not(.pp-tipamt) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-pick b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-pick small { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-pick-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--bg-input); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.pp-pick-ico svg { width: 20px; height: 20px; }
.pp-tipamt { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.pp-tipamt svg, .pp-tips svg { width: 14px; height: 14px; }
.pp-opts { display: flex; flex-direction: column; padding: 0 8px 12px; }
.pp-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: none; border-radius: 12px; background: transparent; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.pp-opt:hover { background: var(--bg-input); }
.pp-opt b { font-size: 15px; font-weight: 500; }
.pp-opt small { font-size: 13px; color: var(--text-muted); }
.pp-opt.on b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.pp-opt.danger b { color: #e5484d; }
.pp-field-sheet { margin: 0 16px 12px; }
.pp-sheet-btn { width: calc(100% - 32px); margin: 0 16px 16px; }

/* ---------- profile section */
.pv-posts { margin: 8px 0 4px; }
.pp-head { display: flex; align-items: center; gap: 8px; padding: 6px 4px 10px; }
.pp-head > b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pp-count { font-size: 15px; color: var(--text-muted); }
.pp-seg { display: flex; padding: 2px; border-radius: 10px; background: var(--bg-input); }
.pp-seg button { width: 34px; height: 28px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.pp-seg button svg { width: 16px; height: 16px; }
.pp-seg button[aria-selected="true"] { background: var(--bg-panel); color: var(--text-main); }
.pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 14px; overflow: hidden; }
.pp-tile { position: relative; aspect-ratio: 1; padding: 0; border: none; background: var(--bg-input); cursor: pointer; overflow: hidden; }
.pp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.pp-tile:active img { opacity: .8; }
.pp-tile-badges { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.pp-tile-badges svg { width: 16px; height: 16px; }
.pp-more { display: block; margin: 12px auto 0; height: 38px; padding: 0 18px; border: 1px solid var(--border); border-radius: 19px; background: transparent; color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 28px 16px; border: 1.5px dashed var(--border); border-radius: 14px; background: transparent; color: var(--text-main); font: inherit; cursor: pointer; }
.pp-empty:hover { background: var(--bg-input); }
.pp-empty-ico { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--bg-input); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pp-empty-ico svg { width: 22px; height: 22px; }
.pp-empty b { font-size: 15px; font-weight: 600; }
.pp-empty small { font-size: 13px; color: var(--text-muted); }
.pp-map { height: 340px; border-radius: 14px; overflow: hidden; background: var(--bg-input); }
.pp-pin { width: 44px; height: 44px; padding: 2px; border: none; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; }
.pp-pin img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }

/* ---------- viewer */
.pp-feed { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(32px + var(--safe-bottom, 0px)); }
.pp-item { width: 100%; max-width: 560px; margin: 0 auto 28px; position: relative; }
.pp-item-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; }
.pp-item-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bg-input); }
.pp-item-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pp-item-who b { font-size: 15px; font-weight: 600; }
.pp-item-place { align-self: flex-start; padding: 0; border: none; background: none; color: var(--text-muted); font: inherit; font-size: 13px; cursor: pointer; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-item-place:hover { color: var(--text-main); }
.pp-car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg-input); max-height: 78dvh; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.pp-car::-webkit-scrollbar { display: none; }
.pp-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.pp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.pp-dots { display: flex; justify-content: center; gap: 5px; padding-top: 10px; }
.pp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background .15s; }
.pp-dots i.on { background: var(--primary); }
.pp-burst { position: absolute; width: 96px; height: 96px; margin-left: -48px; transform: translateY(-48px); color: #fff; pointer-events: none; animation: pp-burst .7s ease-out forwards; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.pp-burst svg { width: 100%; height: 100%; fill: #fff; stroke: none; }
@keyframes pp-burst { 0% { opacity: 0; scale: .4; } 25% { opacity: 1; scale: 1.1; } 60% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; translate: 0 -24px; } }
.pp-actions { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0; }
.pp-act { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--text-main); border-radius: 50%; cursor: pointer; -webkit-touch-callout: none; user-select: none; }
.pp-act svg { width: 26px; height: 26px; }
.pp-act[hidden] { display: none; }
.pp-like.on { color: #e5484d; }
.pp-like.on svg { fill: currentColor; }
.pp-like.pop svg { animation: pp-pop .35s ease; }
@keyframes pp-pop { 40% { transform: scale(1.25); } }
.pp-tipbtn svg { width: 22px; height: 22px; }
.pp-song { display: flex; align-items: center; gap: 8px; max-width: 55%; height: 34px; padding: 0 12px 0 4px; margin-right: 6px; border: 1px solid var(--border); border-radius: 17px; background: transparent; color: var(--text-main); font: inherit; font-size: 13px; cursor: pointer; }
.pp-song-ico { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; }
.pp-song-ico svg { width: 12px; height: 12px; }
.pp-song-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-meta { display: flex; align-items: center; gap: 14px; padding: 2px 16px 0; }
.pp-likes { padding: 0; border: none; background: none; color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; cursor: default; }
.pp-likes[tabindex="-1"] { pointer-events: none; }
.pp-likes:not([tabindex="-1"]) { cursor: pointer; }
.pp-tips { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); }
.pp-caption { margin: 6px 16px 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-caption b { font-weight: 600; margin-right: 2px; }
.pp-caption a, .pp-at { color: var(--primary); text-decoration: none; cursor: pointer; }
.pp-time { display: block; margin: 6px 16px 0; font-size: 12px; color: var(--text-muted); }

/* ---------- reply-in-DM */
.pp-quote-bar { display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 6px 6px 6px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-panel); }
.pp-quote-bar img, .pp-quote img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg-input); }
.pp-quote-bar span, .pp-quote span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pp-quote-bar b, .pp-quote b { font-size: 13px; font-weight: 600; }
.pp-quote-bar small, .pp-quote small { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-quote { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 280px; min-height: 40px; margin: 2px 0 6px; padding: 6px 10px 6px 6px; border-radius: 10px; border-left: 3px solid currentColor; background: color-mix(in srgb, currentColor 8%, transparent); cursor: pointer; }
.pp-quote:not([data-ok]) { min-height: 52px; }
.pp-quote.gone { cursor: default; opacity: .7; }

/* ---------- avatar ring in the chat list (new post in the last 24 h) */
.avatar-wrap.pp-ring { cursor: pointer; }
.avatar-wrap.pp-ring::after { content: ''; position: absolute; inset: -4px; z-index: 11; border-radius: inherit; pointer-events: none; padding: 2.5px;
    background: conic-gradient(from 200deg, #2f8cff, #7c5cff, #ff5ca8, #ff9f43, #2f8cff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: pp-ring-in .45s cubic-bezier(.2,.8,.2,1); }
.avatar-wrap.pp-ring .avatar { transform: scale(.94); transition: transform .3s ease; }
@keyframes pp-ring-in { from { opacity: 0; transform: rotate(-90deg) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .avatar-wrap.pp-ring::after { animation: none; } }
.avatar-wrap.pp-ring .online-dot { z-index: 12; }

/* comments, views, pins (2026-11-07) */
.pp-cmt { width: auto; min-width: 44px; padding: 0 8px; gap: 5px; border-radius: 22px; }
.pp-cmt span { font-size: 14px; font-weight: 600; }
.pp-views { font-size: 13px; color: var(--text-muted); }
.pp-allc { display: block; margin: 4px 16px 0; padding: 0; border: none; background: none; color: var(--text-muted); font: inherit; font-size: 14px; cursor: pointer; }
.pp-tile-pin { position: absolute; top: 6px; left: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.pp-tile-pin svg { width: 15px; height: 15px; transform: rotate(35deg); }
.pp-cm-list { max-height: min(52dvh, 440px); min-height: 120px; overflow-y: auto; padding: 0 12px 6px; }
.pp-cm { display: flex; gap: 10px; padding: 8px 4px; }
.pp-cm img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-input); }
.pp-cm-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.pp-cm-body b { font-weight: 600; }
.pp-cm-t { white-space: pre-wrap; }
.pp-cm-body small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.pp-cm-del { padding: 0; border: none; background: none; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.pp-cm-del:hover { color: #e5484d; }
.pp-cm-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px calc(12px + var(--safe-bottom, 0px)); border-top: 1px solid var(--border); }
.pp-cm-form textarea { flex: 1; min-height: 42px; max-height: 110px; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--border); border-radius: 21px; background: transparent; color: var(--text-main); font: inherit; font-size: 15px; line-height: 1.4; resize: none; outline: none; }
.pp-cm-form textarea:focus { border-color: var(--primary); }
.pp-cm-send { width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pp-cm-send svg { width: 20px; height: 20px; }
