/* ADDON_1533_RESTORED_STABLE */
/* ADDON_1522_RESTORED_CSS */
/* POSTS_FEED_CSS_1481 */
:root{ --pw-bg:#05060a; --pw-card:#0b1220; --pw-border:#1f2a44; --pw-text:#e5e7eb; --pw-muted:#9ca3af; --pw-accent:#ff0050; }
body.pw-posts-body{ margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; background:var(--pw-bg); color:var(--pw-text); }
a{ color:inherit; text-decoration:none; }
.pw-posts-top{ position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; background:rgba(5,6,10,.92); border-bottom:1px solid rgba(31,42,68,.6); backdrop-filter: blur(10px); }
.pw-posts-top-title{ font-weight:700; letter-spacing:.2px; }
.pw-posts-topbtn{ padding:7px 10px; border:1px solid rgba(31,42,68,.9); border-radius:999px; font-size:12px; color:var(--pw-text); background:rgba(11,18,32,.75); }
.pw-posts-compose{ max-width: 720px; margin:10px auto 0; padding:0 10px; }
.pw-compose-row textarea{ width:100%; box-sizing:border-box; border-radius:14px; border:1px solid rgba(31,42,68,.9); background:rgba(11,18,32,.85); color:var(--pw-text); padding:10px 12px; resize:vertical; min-height:64px; outline:none; }
.pw-compose-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.pw-btn{ padding:8px 10px; border-radius:12px; border:1px solid rgba(31,42,68,.9); background:rgba(11,18,32,.85); color:var(--pw-text); cursor:pointer; font-size:12px; }
.pw-btn.pw-primary{ border-color:rgba(255,0,80,.7); background:rgba(255,0,80,.12); }
.pw-upload-preview{ margin-top:10px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.pw-upload-preview img{ width:100%; height:110px; object-fit:cover; border-radius:14px; border:1px solid rgba(31,42,68,.9); }
.pw-poll-box{ margin-top:10px; padding:10px; border:1px solid rgba(31,42,68,.9); border-radius:14px; background:rgba(11,18,32,.75); }
.pw-poll-box input{ width:100%; box-sizing:border-box; margin:6px 0; padding:8px 10px; border-radius:12px; border:1px solid rgba(31,42,68,.9); background:rgba(5,6,10,.55); color:var(--pw-text); outline:none; }
.pw-posts-feed{ max-width: 720px; margin:10px auto 70px; padding:0 10px; display:flex; flex-direction:column; gap:10px; }
.pw-post-card{ border:1px solid rgba(31,42,68,.9); background:rgba(11,18,32,.85); border-radius:18px; padding:10px; }
.pw-post-head{ display:flex; gap:10px; align-items:center; }
.pw-avatar{ width:38px; height:38px; border-radius:999px; border:1px solid rgba(31,42,68,.9); object-fit:cover; background:#111827; }
.pw-post-meta{ display:flex; flex-direction:column; }
.pw-username{ font-weight:700; font-size:13px; }
.pw-time{ font-size:11px; color:var(--pw-muted); }
.pw-post-text{ margin:10px 0; white-space:pre-wrap; line-height:1.35; font-size:14px; }
.pw-post-media{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.pw-post-media img{ width:100%; height:170px; object-fit:cover; border-radius:16px; border:1px solid rgba(31,42,68,.9); }
.pw-actions{ display:flex; gap:14px; padding-top:10px; border-top:1px solid rgba(31,42,68,.6); margin-top:10px; justify-content:space-between; }
.pw-action{ display:flex; align-items:center; gap:6px; color:var(--pw-muted); font-size:12px; cursor:pointer; user-select:none; }
.pw-action.pw-on{ color:var(--pw-text); }
.pw-counts{ display:flex; gap:10px; color:var(--pw-muted); font-size:11px; margin-top:6px; }
.pw-comments{ margin-top:10px; border-top:1px solid rgba(31,42,68,.6); padding-top:10px; display:none; }
.pw-comments.pw-open{ display:block; }
.pw-comment{ padding:6px 0; border-bottom:1px dashed rgba(31,42,68,.4); }
.pw-comment:last-child{ border-bottom:none; }
.pw-comment strong{ font-size:12px; }
.pw-comment p{ margin:2px 0 0; font-size:12px; color:var(--pw-text); }
.pw-comment-box{ display:flex; gap:6px; margin-top:8px; }
.pw-comment-box input{ flex:1; padding:8px 10px; border-radius:12px; border:1px solid rgba(31,42,68,.9); background:rgba(5,6,10,.55); color:var(--pw-text); outline:none; }
.pw-posts-more{ max-width:820px; margin:0 auto 90px; padding:10px; color:var(--pw-muted); text-align:center; }
@media (min-width: 768px){
  .pw-upload-preview img{ height:140px; }
  .pw-post-media img{ height:220px; }
}

/* PW_POSTS_FONT_1482 */
body.pw-posts{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial; letter-spacing:.1px; line-height:1.45;}
.pw-container{max-width:820px;margin:0 auto;padding:10px 12px 90px;}
.pw-card{border-radius:14px; padding:12px; margin:10px 0;}
.pw-topbar{position:sticky;top:0;z-index:20;backdrop-filter:saturate(180%) blur(10px);}
.pw-topbtn{padding:8px 10px;border-radius:10px;}
.pw-avatar{width:36px;height:36px;border-radius:999px;object-fit:cover;}
.pw-name{font-weight:600;}
.pw-muted{opacity:.7;font-size:12px;}


/* PW_POSTS_SHARE_SHEET_1482 */
.pw-share-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;z-index:9998;}
.pw-share-backdrop.on{display:block;}
.pw-share-sheet{position:fixed;left:0;right:0;bottom:-420px;background:#111;border-top-left-radius:18px;border-top-right-radius:18px;padding:14px 14px 18px;z-index:9999;transition:bottom .22s ease;}
.pw-share-sheet.on{bottom:0;}
.pw-share-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#fff;}
.pw-share-close{background:transparent;border:0;color:#fff;font-size:18px;}
.pw-share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px;}
.pw-share-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border-radius:12px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none;}
.pw-share-item img{width:34px;height:34px;object-fit:contain;}
.pw-share-row{display:flex;gap:8px;}
.pw-share-link{flex:1;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;padding:10px;}
.pw-share-copy{border-radius:10px;border:0;padding:10px 14px;background:rgba(255,255,255,.14);color:#fff;}


/* ADDON_1508R_SHARE_RESP */
.pw-share-sheet{max-height:70vh;overflow:auto;}
@media (max-width:520px){
  .pw-share-item{min-width:72px}
  .pw-share-ico{width: 22px;height:44px}
  .pw-share-label{font-size:12px}
}


/* ADDON_1509_SHARE_RESP */
.pw-share-sheet{max-height:70vh;overflow:auto;}
@media (max-width:520px){
  .pw-share-item{min-width:72px}
  .pw-share-ico{width:44px;height:44px}
  .pw-share-label{font-size:12px}
}

/* ADDON_1509_REPOST_CSS */
.pw-repost-label{opacity:.8;font-size:12px;margin:6px 0 4px 0}
.pw-repost-box{border:1px solid rgba(31,42,68,.9);border-radius:16px;padding:10px;margin-top:8px;background:rgba(10,14,24,.55)}
.pw-repost-head{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.pw-avatar-sm{width:28px;height:28px;border-radius:999px;object-fit:cover}


/* ADDON_1510_SHARE_MOBILE */
@media (max-width:520px){
  .pw-share-sheet{max-height:62vh;overflow:auto;padding:10px 10px 12px;}
  .pw-share-grid{gap:10px;}
  .pw-share-item{min-width:64px;}
  .pw-share-ico{width:40px;height: 22px;}
  .pw-share-label{font-size:11px;}
  .pw-btn{padding:8px 10px;font-size:13px;}
}


/* ADDON_1511_SHARE_TUNE */
@media (max-width:520px){
  .pw-share-item{padding:8px;}
  .pw-share-item img{width:30px;height:30px;}
  .pw-share-link{padding:9px;font-size:13px;}
  .pw-share-copy{padding:9px 12px;font-size:13px;}
}


/* ADDON_1513_RESP — button reset + mobile sizing */
button.pw-action{background:transparent;border:0;padding:6px 0;margin:0;font:inherit}
.pw-action{min-height:34px}
@media (max-width:520px){
  .pw-actions{gap:10px}
  .pw-action{font-size:12px}
  .pw-btn{padding:9px 12px}
  .pw-share-sheet{max-height:70vh}
}


/* ADDON_1514_CSS */
.pw-share-backdrop.pw-on{display:block;}
.pw-share-sheet.pw-open{bottom:0;}
.pw-post-text{max-height:180px; overflow:hidden; position:relative;}
.pw-post-text.pw-expanded{max-height:none;}
.pw-see-more{display:inline-block;margin-top:6px;font-size:12px;opacity:.85;cursor:pointer;}
.pw-post-media{margin-top:10px;}
.pw-post-media img{width:100%; height:auto; display:block; border-radius:14px;}
@supports (aspect-ratio: 1/1){
  .pw-post-media{aspect-ratio:1/1; overflow:hidden; border-radius:14px;}
  .pw-post-media img{width:100%;height:100%;object-fit:cover;}
}
.pw-comment.reply{margin-left:18px; padding-left:10px; border-left:2px solid rgba(255,255,255,.08);}
@media (max-width:520px){
  .pw-action{min-width:44px; padding:8px 10px;}
  .pw-share-item{min-width:72px;}
  .pw-share-ico{width:44px;height:44px;}
}

/* ADDON_1516 */
.pw-post-card{max-width:620px;margin:12px auto;border-radius:14px}
.pw-post-text{max-height:120px;overflow:hidden;position:relative}
.pw-post-text.expanded{max-height:none}
.pw-see-more{color:#1d9bf0;cursor:pointer;font-size:13px;margin-top:6px}
.pw-post-media{width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:12px;margin-top:10px}
.pw-post-media img{width:100%;height:100%;object-fit:cover}
.pw-comment-reply{margin-left:22px;border-left:2px solid #eee;padding-left:10px}
.pw-share-sheet{max-height:55vh;padding:12px}
.pw-share-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pw-share-item img{width:34px;height:34px}


/* ADDON_1515_CSS_PACK */
.pw-post-card{max-width:720px;margin:0 auto 14px;}
.pw-post-text{line-height:1.45;}
.pw-see-more{display:inline-block;margin-top:8px;font-size:13px;opacity:.85;text-decoration:none;}
.pw-see-more:hover{opacity:1;text-decoration:underline;}
.pw-post-media{margin-top:10px;}
.pw-post-media.pw-media-1{grid-template-columns:1fr;}
.pw-post-media img{height:auto;aspect-ratio:1/1;}
.pw-post-media.pw-media-2 img{aspect-ratio:1/1;}
.pw-repost-box .pw-post-media img{aspect-ratio:1/1;}
.pw-comment-reply{margin-left:44px;}
@media (max-width:520px){ .pw-comment-reply{margin-left:34px;} }
.pw-share-grid{grid-template-columns:repeat(4,1fr);} 
@media (max-width:520px){ .pw-share-grid{grid-template-columns:repeat(3,1fr);} }


/* ADDON_1516_CSS_PACK */
/* Share sheet: normal sizing + colored icons */
.pw-share-sheet{max-height:70vh;overflow:auto}
.pw-share-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pw-share-item{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.pw-share-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06)}
.pw-share-ico img{width:28px;height:28px;object-fit:contain;display:block}
.pw-share-label{font-size:12px;opacity:.9;margin-top:6px;text-align:center}
@media (max-width:520px){.pw-share-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pw-share-ico{width:40px;height:40px}.pw-share-ico img{width:26px;height:26px}}

/* Post media: keep square, but add min-height fallback so images show everywhere */
.pw-post-media{aspect-ratio:1/1;min-height:260px;background:#000}
@media (min-width:720px){.pw-post-media{min-height:340px}}

/* Compact long text (See more) */
.pw-post-text.pw-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.pw-post-text.pw-expanded{display:block;-webkit-line-clamp:unset;overflow:visible}
.pw-see-more{background:transparent;border:0;color:#9bd0ff;font-size:13px;margin-top:6px;padding:0;cursor:pointer;text-align:left}

/* Reply indentation */
.pw-comment-reply{margin-left:34px;border-left:2px solid rgba(255,255,255,.10);padding-left:10px}


/* ADDON_1518_CSS — strong overrides (keep UI stable) */
.pw-post-card{max-width:560px;margin:12px auto !important;}
.pw-post-body{padding-bottom:10px !important;}
.pw-post-text{line-height:1.5;}
.pw-see-more{margin-top:8px !important;}
.pw-post-media{display:block !important;overflow:hidden;border-radius:14px !important;margin-top:10px !important;}
.pw-post-media img{display:block !important;max-width:100% !important;}
.pw-share-sheet{max-height:70vh !important;overflow:auto !important;}
.pw-share-ico{width:46px !important;height:46px !important;border-radius:14px !important;}
.pw-share-ico img{width:100% !important;height:100% !important;object-fit:cover !important;border-radius:14px !important;}
.pw-share-label{font-size:12px !important;}
@media (max-width:520px){.pw-share-ico{width:44px !important;height:44px !important;} .pw-share-item{min-width:72px !important;}}
.pw-comment-children{margin-left:26px;border-left:2px solid rgba(255,255,255,.08);padding-left:12px;margin-top:6px;margin-bottom:6px;}
.pw-comment-reply{background:rgba(255,255,255,.03);border-radius:12px;padding:10px 10px 8px;}
.pw-cdel,.pw-crep{opacity:.8;font-size:11px;margin-left:8px;}
.pw-replying{opacity:.7;font-size:12px;margin-top:2px;}


/* ===============================
   ADDON_1519_POSTS_FIXED
   Force consistent card sizing + media + share icons
================================ */
#pwPostsFeed .pw-post-card,
#pwUserPosts .pw-post-card,
.pw-post-card{
  width:100% !important;
  max-width:560px !important;
  box-sizing:border-box;
  margin:0 auto 14px !important;
}
.pw-post-header{gap:10px}
.pw-post-avatar{width:40px;height:40px;border-radius:50%;flex:0 0 40px}
.pw-post-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}

/* Text clamp (works with existing See more) */
.pw-post-text{max-height:160px;overflow:hidden}
.pw-post-card[data-expanded="1"] .pw-post-text{max-height:none;overflow:visible}
.pw-post-more{margin-top:8px}

/* Media: always visible + square */
.pw-post-media{display:block !important;width:100% !important;margin-top:10px;overflow:hidden;border-radius:14px;background:rgba(255,255,255,.05)}
.pw-post-media.pw-media-1{aspect-ratio:1/1}
.pw-post-media.pw-media-1 img{width:100%;height:100%;object-fit:cover;display:block}
.pw-post-media.pw-media-2{display:grid !important;grid-template-columns:1fr 1fr;gap:6px}
.pw-post-media.pw-media-2 img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}

/* Replies indent */
.pw-comment-reply{margin-left:26px;padding-left:10px;border-left:2px solid rgba(255,255,255,.08)}

/* Share sheet compact + icon images */
.pw-share-sheet{max-height:60vh !important;overflow:auto !important;padding:12px 12px 14px !important}
.pw-share-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pw-share-item{min-width:0}
.pw-share-ico{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06)}
.pw-share-ico img{width:26px;height:26px;display:block;object-fit:contain}
.pw-share-label{font-size:12px;opacity:.9;margin-top:6px}
@media (max-width:520px){
  #pwPostsFeed .pw-post-card, #pwUserPosts .pw-post-card, .pw-post-card{max-width:94vw !important}
  .pw-share-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* ADDON_1520_CARDS */
.pw-posts-wrap,.pw-posts-composer,.pw-post-card{max-width:640px;width:100%;margin-left:auto;margin-right:auto;}
.pw-post-card{box-sizing:border-box;}
.pw-post-media{width:100%;aspect-ratio:1 / 1;overflow:hidden;border-radius:14px;background:rgba(0,0,0,.35);} 
.pw-post-media img{width:100%;height:100%;object-fit:cover;display:block;}
.pw-share-ico{width:44px;height:44px;border-radius:12px;overflow:hidden;}
.pw-share-ico img{width:100%;height:100%;object-fit:contain;display:block;}
.pw-share-item{min-width:78px;}
.pw-c-row.pw-c-reply{margin-left:18px;padding-left:10px;border-left:2px solid rgba(255,255,255,.10);}
@media (max-width:520px){.pw-share-item{min-width:72px}.pw-share-label{font-size:12px}}


/* ADDON_1521_CSS_OVERRIDES */
.pw-posts-wrap{max-width:720px;margin:0 auto;}
.pw-posts-compose{max-width:720px;margin:14px auto 10px;}
.pw-post-card{max-width:720px;width:100%;margin-left:auto;margin-right:auto;}
.pw-post-media{width:100%;aspect-ratio:1/1;max-height:720px;overflow:hidden;border-radius:16px;background:rgba(0,0,0,.12);}
.pw-post-media img{width:100%;height:100%;object-fit:cover;display:block;}
.pw-share-sheet{max-height:60vh;overflow:auto;}
.pw-share-ico{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;}
.pw-share-ico img{width:22px;height:22px;display:block;}
.pw-share-item{min-width:78px;}
.pw-comment-reply{margin-left:18px;padding-left:12px;border-left:2px solid rgba(255,255,255,.12);}
@media (max-width:520px){
  .pw-posts-wrap,.pw-posts-compose,.pw-post-card{max-width:96vw;}
  .pw-share-item{min-width:72px;}
}


/* ADDON_1524_UI */
.pw-post-media.pw-media-1{grid-template-columns:1fr;}
.pw-post-media{width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:14px;margin-top:10px;}
.pw-post-media img{width:100%;height:100%;object-fit:cover;display:block;}
.pw-share-sheet{max-height:60vh;overflow:auto;padding:10px 10px 12px;border-top-left-radius:16px;border-top-right-radius:16px;}
.pw-share-grid{gap:10px;}
.pw-share-ico{width:44px;height:44px;}
.pw-share-label{font-size:12px;}
@media (max-width:520px){.pw-share-ico{width:40px;height:40px}.pw-share-label{font-size:11px}.pw-share-sheet{max-height:55vh}}
.pw-comment.is-reply{margin-left:26px;border-left:2px solid rgba(255,255,255,.08);padding-left:10px;}


/* ADDON_1525_SHARE_SMALL */
.pw-share-sheet{max-width:560px;margin:0 auto;left:0;right:0;}
.pw-share-sheet{padding:10px 10px 12px;}
.pw-share-grid{gap:10px;}
.pw-share-item{min-width:70px;}
.pw-share-ico{width:44px;height:44px;}
.pw-share-label{font-size:12px;}
@media (max-width:520px){
  .pw-share-sheet{max-width:100%;border-top-left-radius:16px;border-top-right-radius:16px;}
  .pw-share-item{min-width:64px;}
  .pw-share-ico{width:40px;height:40px;}
  .pw-share-label{font-size:11px;}
}


/* ADDON_1526_SHARE_COMPACT — final override for compact sheet + 16x16 icons */
.pw-share-sheet{max-height:55vh !important; overflow:auto !important; padding:10px 10px 12px !important; border-top-left-radius:16px !important; border-top-right-radius:16px !important;}
.pw-share-head{margin-bottom:8px !important;}
.pw-share-grid{gap:8px !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
.pw-share-item{padding:8px !important; border-radius:12px !important;}
.pw-share-ico{width:32px !important; height:32px !important; border-radius:10px !important;}
.pw-share-ico img{width:16px !important; height:16px !important; object-fit:contain !important;}
.pw-share-label{font-size:11px !important; margin-top:4px !important;}
@media (max-width:520px){
  .pw-share-sheet{max-height:50vh !important; padding:10px 10px 12px !important;}
  .pw-share-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .pw-share-ico{width:30px !important; height:30px !important;}
  .pw-share-ico img{width:15px !important; height:15px !important;}
  .pw-share-label{font-size:10.5px !important;}
}


/* ADDON_1532_COMPOSE_CLASS */
.pw-posts-compose{max-width:640px;margin:12px auto 14px;}
.pw-posts-body{padding-left:10px;padding-right:10px;}
.pw-post-card{max-width:640px;margin:0 auto 12px;}
/* keep composer + cards visually aligned */
#pwCompose{width:100%;}

/* ADDON_1532_SHARE_COMPACT */
.pw-share-sheet{max-height:60vh;}
.pw-share-grid{gap:10px;}
.pw-share-item{min-width:70px;}
.pw-share-ico{width:36px;height:36px;border-radius:12px;}
.pw-share-ico img{width:18px;height:18px;}
.pw-share-label{font-size:12px;}
@media (max-width:520px){
  .pw-share-item{min-width:64px;}
  .pw-share-ico{width:34px;height:34px;}
  .pw-share-ico img{width:17px;height:17px;}
}


/* ADDON_1534_WIDTH_ALIGN */
.pw-posts-compose,
.pw-post-card{
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 520px){
  .pw-posts-compose,
  .pw-post-card{ max-width: 100%; }
}


/* ADDON_1535_WIDTH_ALIGN */
.pw-posts-wrap{width:100%;}
.pw-posts-compose,.pw-posts-feed{width:100%;margin-left:auto;margin-right:auto;}
.pw-post-card{width:100%;box-sizing:border-box;}
.pw-post-media{width:100%;}
/* ADDON_1535_WIDTH_ALIGN_RULES */

@media (max-width:520px){
  .pw-share-ico{width:18px;height:18px}
  .pw-share-item{min-width:62px}
  .pw-share-label{font-size:11px}
}
/* ADDON_1535_SHARE_ICONS_MQ */


/* ADDON_1536_WIDTH_LOCK */
.pw-posts-wrap{max-width:720px;margin:0 auto;}
.pw-post-composer,.pw-post-card{width:100%;box-sizing:border-box;}
@media (max-width:780px){.pw-posts-wrap{max-width:calc(100% - 18px);} }

/* ADDON_1536_SHARE_COMPACT */
.pw-share-sheet{max-height:70vh;overflow:auto;}
.pw-share-item{min-width:72px;}
.pw-share-ico{width:32px;height:32px;}
.pw-share-label{font-size:12px;}
@media (max-width:420px){
  .pw-share-item{min-width:64px;}
  .pw-share-ico{width:28px;height:28px;}
  .pw-share-label{font-size:11px;}
}


/* ADDON_1537_WIDTH_UNIFY */
:root{--pwPostsMax:720px;--pwPostsGutter:10px;}
.pw-posts-feed,.pw-posts-compose,.pw-post-card{box-sizing:border-box;}
.pw-posts-compose{max-width:var(--pwPostsMax);width:calc(100% - (var(--pwPostsGutter) * 2));margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;}
.pw-post-card{max-width:var(--pwPostsMax);width:calc(100% - (var(--pwPostsGutter) * 2));margin-left:auto;margin-right:auto;}
.pw-posts-feed{padding-left:0;padding-right:0;}


/* ADDON_1538_WIDTH_OVERRIDE */
.pw-posts-compose,.pw-posts-feed{max-width:720px;margin:0 auto;box-sizing:border-box;}
.pw-post-card,.pw-posts-composer{width:100%;box-sizing:border-box;}
.pw-post-media{width:100%;}
.pw-post-media img{display:block;width:100%;height:100%;object-fit:cover;}

/* ADDON_1539_COMPOSER_CSS */
:root{ --pw-postw:560px; }

.pw-posts-compose,
.pw-posts-feed,
.pw-posts-more{
  max-width: var(--pw-postw) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.pw-post-card{
  max-width: var(--pw-postw) !important;
  width:100% !important;
  box-sizing:border-box !important;
}

.pw-file-hidden{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.pw-icon-btn{
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid rgba(31,42,68,.9);
  background:rgba(11,18,32,.85);
  color:var(--pw-text);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.pw-icon-btn:hover{ filter:brightness(1.08); }
.pw-icon-btn .pw-ico{ font-size:18px; line-height:1; }

.pw-prev-item{ position:relative; }
.pw-prev-item img{
  width:100%;
  height:110px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(31,42,68,.9);
  display:block;
}
.pw-prev-x{
  position:absolute;
  top:6px; right:6px;
  border:0;
  background:rgba(0,0,0,.55);
  color:#fff;
  width:26px;height:26px;
  border-radius:999px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.pw-prev-badge{
  position:absolute;
  left:8px; bottom:8px;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:11px;
  padding:4px 6px;
  border-radius:999px;
}

.pw-upload-progress{
  position:relative;
  height:12px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(31,42,68,.9);
  background:rgba(11,18,32,.85);
  margin-top:10px;
}
.pw-upload-bar{ height:100%; width:0%; background:rgba(255,0,80,.55); }
.pw-upload-pct{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  color:var(--pw-text);
  opacity:.95;
}

.pw-poll-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }

/* Single-image fit for 9:16 / 4:5 / 1:1 / 16:9 */
.pw-post-media.pw-media-1{
  display:block !important;
  background:rgba(255,255,255,.04);
  border-radius:14px;
  overflow:hidden;
}
.pw-post-media.pw-media-1 img{
  width:100% !important;
  height:auto !important;
  max-height:520px;
  object-fit:contain !important;
  background:#000;
  display:block !important;
}
@media (max-width:520px){
  .pw-post-media.pw-media-1 img{ max-height:420px; }
}

/* ADDON_3058B_PHASE1_POSTS_APP_SHELL_UI_SAFE */
:root{
  --pw-app-max: 720px;
  --pw-app-border: rgba(15,23,42,.08);
  --pw-app-card: rgba(255,255,255,.90);
  --pw-app-soft: #f8fafc;
  --pw-app-text: #0f172a;
  --pw-app-muted: #64748b;
  --pw-app-shadow: 0 10px 30px rgba(2,6,23,.08);
  --pw-app-shadow-sm: 0 6px 18px rgba(2,6,23,.05);
}
html,body{
  overscroll-behavior-y:contain;
  -webkit-tap-highlight-color:transparent;
}
body.pw-posts-app-page,
body.pw-posts-body{
  background:
    radial-gradient(circle at top, rgba(59,130,246,.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 42%, #eef3f8 100%);
}
.pw-posts-app-shell{
  width:100%;
  min-height:100vh;
  padding-bottom:96px;
}
.pw-posts-top.pw-posts-top--app{
  position:sticky;
  top:0;
  z-index:40;
  padding:calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background:linear-gradient(180deg, rgba(248,251,255,.96) 0%, rgba(248,251,255,.84) 100%);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(15,23,42,.06);
}
.pw-posts-top-inner{
  max-width:var(--pw-app-max);
  margin:0 auto;
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:center;
  gap:10px;
}
.pw-posts-topbtn{
  width:44px;
  height:44px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:20px;
  color:#0f172a;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:var(--pw-app-shadow-sm);
}
.pw-posts-topbtn--primary{
  background:linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border-color:rgba(37,99,235,.16);
  color:#1d4ed8;
}
.pw-posts-top-title-wrap{
  min-width:0;
  text-align:center;
}
.pw-posts-top-title{
  margin:0;
  font-size:18px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.02em;
  color:#0f172a;
}
.pw-posts-top-subtitle{
  margin-top:3px;
  font-size:11px;
  line-height:1.2;
  font-weight:600;
  color:#64748b;
}
.pw-posts-app-main{
  max-width:var(--pw-app-max);
  margin:0 auto;
  padding:12px 12px 0;
}
.pw-posts-screen-head,
.pw-profile-posts-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:4px 2px 12px;
}
.pw-posts-screen-title,
.pw-profile-posts-title{
  font-size:18px;
  line-height:1.15;
  font-weight:800;
  color:#0f172a;
  letter-spacing:-.02em;
}
.pw-posts-screen-note,
.pw-profile-posts-note{
  font-size:12px;
  line-height:1.35;
  color:#64748b;
}
.pw-compose-card.pw-compose-card--phase1{
  max-width:100%;
  margin:0 auto 14px !important;
  padding:0 !important;
  border-radius:22px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 100%) !important;
  border:1px solid var(--pw-app-border) !important;
  box-shadow:var(--pw-app-shadow) !important;
  overflow:hidden;
}
.pw-compose-shell{ padding:14px; }
.pw-compose-row textarea#pwPostText{
  width:100%;
  min-height:90px;
  resize:vertical;
  border:1px solid rgba(148,163,184,.22);
  background:linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
  border-radius:16px;
  padding:14px;
  font-size:15px;
  line-height:1.5;
  color:#0f172a;
  box-sizing:border-box;
  outline:none;
}
.pw-compose-row textarea#pwPostText:focus{
  border-color:rgba(37,99,235,.26);
  box-shadow:0 0 0 4px rgba(37,99,235,.08);
}
.pw-compose-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.16);
}
.pw-compose-actions .pw-btn,
.pw-compose-actions .pw-icon-btn{
  min-height:42px;
  border-radius:999px;
}
.pw-compose-actions .pw-icon-btn{
  min-width:42px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
}
.pw-compose-actions .pw-btn{
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
  color:#0f172a;
  font-weight:700;
  padding:10px 16px;
}
.pw-compose-actions .pw-btn.pw-primary{
  margin-left:auto;
  background:linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:0 10px 22px rgba(37,99,235,.22);
}
.pw-poll-box,
.pw-upload-preview,
.pw-upload-progress{ margin-top:12px; }
.pw-poll-box{
  background:#f8fbff;
  border:1px solid rgba(15,23,42,.06);
  border-radius:16px;
  padding:12px;
}
.pw-posts-feed-wrap,
.pw-profile-posts-feed-wrap{
  width:100%;
}
#pwPostsFeed .pw-post-card,
#pwProfilePostsFeed .pw-post-card,
.pw-post-card{
  width:100% !important;
  max-width:100% !important;
  margin:0 auto 14px !important;
  border-radius:20px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 100%) !important;
  border:1px solid rgba(15,23,42,.08) !important;
  box-shadow:var(--pw-app-shadow-sm) !important;
  overflow:hidden;
}
.pw-post-head,
.pw-post-header{
  padding:14px 14px 8px;
}
.pw-post-text{
  padding-left:14px;
  padding-right:14px;
  font-size:15px;
  line-height:1.58;
  color:#0f172a;
}
.pw-actions{
  display:grid !important;
  grid-template-columns:repeat(4,1fr);
  gap:8px !important;
  padding:10px 12px 12px !important;
}
button.pw-action,
.pw-action{
  min-height:42px;
  border-radius:999px;
  background:#f8fafc !important;
  border:1px solid rgba(15,23,42,.08) !important;
  color:#0f172a !important;
  font-weight:700;
}
.pw-comments{
  padding:0 12px 12px;
}
.pw-comment-inp{
  flex:1;
  min-height:42px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
  padding:0 14px;
  outline:none;
}
.pw-comment-inp:focus{
  border-color:rgba(37,99,235,.22);
  box-shadow:0 0 0 4px rgba(37,99,235,.08);
}
.pw-posts-more{
  max-width:100%;
  margin:6px auto 0;
  padding:12px 14px 18px;
  text-align:center;
  color:#64748b;
  font-weight:700;
}
.pw-profile-posts-shell.pw-profile-posts-shell--phase1{
  max-width:var(--pw-app-max);
  margin:10px auto 0;
  padding:0 10px;
}
.tabs-bar + .pw-profile-posts-shell{ margin-top:14px; }

@media (max-width:720px){
  .pw-posts-app-main{ padding-left:10px; padding-right:10px; }
  .pw-posts-top.pw-posts-top--app{ padding-left:10px; padding-right:10px; }
  .pw-posts-top-title,
  .pw-posts-screen-title,
  .pw-profile-posts-title{ font-size:17px; }
  .pw-compose-shell{ padding:12px; }
  .pw-post-text{ font-size:14px; }
  .pw-actions{ gap:6px !important; padding-left:10px !important; padding-right:10px !important; }
}
@media (max-width:520px){
  .pw-posts-top-inner{ grid-template-columns:42px 1fr 42px; gap:8px; }
  .pw-posts-topbtn{
    width:42px; height:42px; border-radius:13px; font-size:18px;
  }
  .pw-posts-top-subtitle{ font-size:10px; }
  .pw-compose-actions .pw-btn,
  .pw-compose-actions .pw-icon-btn{ min-height:40px; }
  .pw-compose-actions .pw-btn.pw-primary{
    width:100%;
    margin-left:0;
    justify-content:center;
  }
}
/* /ADDON_3058B_PHASE1_POSTS_APP_SHELL_UI_SAFE */

/* ADDON_3058C_POSTS_PHASE1_COLOR_REVERT_THEME_SAFE */
/* Revert 3058b hardcoded palette to inherited OEEOO theme-compatible colors */

body.pw-posts-app-page,
body.pw-posts-body{
  background: var(--page-bg, var(--bg, inherit)) !important;
  color: inherit !important;
}

.pw-posts-top.pw-posts-top--app{
  background: color-mix(in srgb, var(--card-bg, #ffffff) 88%, transparent) !important;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,.10)) !important;
}

.pw-posts-topbtn{
  color: inherit !important;
  background: var(--card-bg-soft, var(--card-bg, rgba(255,255,255,.06))) !important;
  border-color: var(--border-color, rgba(255,255,255,.10)) !important;
  box-shadow: none !important;
}

.pw-posts-topbtn--primary{
  background: var(--card-bg-soft, var(--card-bg, rgba(255,255,255,.06))) !important;
  color: inherit !important;
  border-color: var(--border-color, rgba(255,255,255,.10)) !important;
}

.pw-posts-top-title,
.pw-posts-screen-title,
.pw-profile-posts-title,
.pw-username{
  color: inherit !important;
}

.pw-posts-top-subtitle,
.pw-posts-screen-note,
.pw-profile-posts-note,
.pw-time,
.pw-posts-more{
  color: var(--muted-text, var(--text-muted, inherit)) !important;
  opacity: .9;
}

.pw-compose-card.pw-compose-card--phase1,
#pwPostsFeed .pw-post-card,
#pwProfilePostsFeed .pw-post-card,
.pw-post-card{
  background: var(--card-bg, inherit) !important;
  border-color: var(--border-color, rgba(255,255,255,.10)) !important;
  box-shadow: var(--card-shadow, none) !important;
}

.pw-compose-row textarea#pwPostText{
  color: inherit !important;
  background: var(--input-bg, var(--card-bg-soft, rgba(255,255,255,.04))) !important;
  border-color: var(--border-color, rgba(255,255,255,.10)) !important;
  box-shadow: none !important;
}

.pw-compose-row textarea#pwPostText::placeholder{
  color: var(--muted-text, var(--text-muted, inherit)) !important;
  opacity: .9;
}

.pw-compose-row textarea#pwPostText:focus,
.pw-comment-inp:focus{
  border-color: var(--accent-color, var(--brand-color, currentColor)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color, currentColor) 18%, transparent) !important;
}

.pw-compose-actions{
  border-top-color: var(--border-color, rgba(255,255,255,.10)) !important;
}

.pw-compose-actions .pw-icon-btn,
.pw-compose-actions .pw-btn,
button.pw-action,
.pw-action,
.pw-comment-inp{
  color: inherit !important;
  background: var(--card-bg-soft, rgba(255,255,255,.04)) !important;
  border-color: var(--border-color, rgba(255,255,255,.10)) !important;
  box-shadow: none !important;
}

.pw-compose-actions .pw-btn.pw-primary,
.pw-action.pw-primary{
  background: var(--accent-color, var(--brand-color, inherit)) !important;
  color: var(--accent-contrast, #fff) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.pw-poll-box{
  background: var(--card-bg-soft, rgba(255,255,255,.04)) !important;
  border-color: var(--border-color, rgba(255,255,255,.10)) !important;
}

.pw-post-text{
  color: inherit !important;
}

.pw-actions{
  background: transparent !important;
}

.pw-profile-posts-shell.pw-profile-posts-shell--phase1{
  color: inherit !important;
}
/* /ADDON_3058C_POSTS_PHASE1_COLOR_REVERT_THEME_SAFE */

/* ADDON_3058D_POSTS_EXACT_BRAND_PALETTE_SAFE */

:root{
  --pw-oeeoo-bg: #02040a;
  --pw-oeeoo-bg-2: #040816;
  --pw-oeeoo-card: #05112a;
  --pw-oeeoo-card-2: #07162f;
  --pw-oeeoo-border: #183056;
  --pw-oeeoo-border-soft: rgba(24,48,86,.72);
  --pw-oeeoo-text: #f5f7fb;
  --pw-oeeoo-muted: #b9c4d6;
  --pw-oeeoo-accent: #c4004b;
  --pw-oeeoo-accent-2: #e1005a;
  --pw-oeeoo-accent-text: #ffffff;
  --pw-oeeoo-shadow: 0 0 0 1px rgba(24,48,86,.18);
}

html,
body,
body.pw-posts-body,
body.pw-posts-app-page{
  background: linear-gradient(180deg, var(--pw-oeeoo-bg) 0%, #010309 100%) !important;
  color: var(--pw-oeeoo-text) !important;
}

.pw-posts-app-shell{
  background: transparent !important;
}

.pw-posts-top.pw-posts-top--app{
  background: rgba(2,4,10,.92) !important;
  border-bottom: 1px solid var(--pw-oeeoo-border-soft) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pw-posts-topbtn{
  background: #071226 !important;
  color: var(--pw-oeeoo-text) !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
  box-shadow: none !important;
}

.pw-posts-topbtn--primary{
  background: #071226 !important;
  color: var(--pw-oeeoo-text) !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
}

.pw-posts-top-title,
.pw-posts-screen-title,
.pw-profile-posts-title,
.pw-username,
.pw-post-text,
.pw-counts,
.pw-action,
button.pw-action{
  color: var(--pw-oeeoo-text) !important;
}

.pw-posts-top-subtitle,
.pw-posts-screen-note,
.pw-profile-posts-note,
.pw-time,
.pw-posts-more{
  color: var(--pw-oeeoo-muted) !important;
}

.pw-posts-app-main{
  background: transparent !important;
}

.pw-compose-card.pw-compose-card--phase1,
#pwPostsFeed .pw-post-card,
#pwProfilePostsFeed .pw-post-card,
.pw-post-card{
  background: linear-gradient(180deg, var(--pw-oeeoo-card) 0%, var(--pw-oeeoo-card-2) 100%) !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
  box-shadow: var(--pw-oeeoo-shadow) !important;
}

.pw-compose-shell,
.pw-post-head,
.pw-post-header,
.pw-comments{
  background: transparent !important;
}

.pw-compose-row textarea#pwPostText{
  background: #061327 !important;
  color: var(--pw-oeeoo-text) !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
  box-shadow: none !important;
}

.pw-compose-row textarea#pwPostText::placeholder{
  color: #97a8c4 !important;
  opacity: 1 !important;
}

.pw-compose-row textarea#pwPostText:focus,
.pw-comment-inp:focus{
  border-color: #294b7e !important;
  box-shadow: 0 0 0 3px rgba(41,75,126,.18) !important;
}

.pw-compose-actions{
  border-top: 1px solid rgba(24,48,86,.55) !important;
}

.pw-compose-actions .pw-icon-btn,
.pw-compose-actions .pw-btn,
button.pw-action,
.pw-action,
.pw-comment-inp{
  background: #08152b !important;
  color: var(--pw-oeeoo-text) !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
  box-shadow: none !important;
}

.pw-compose-actions .pw-btn:hover,
.pw-compose-actions .pw-icon-btn:hover,
button.pw-action:hover,
.pw-action:hover{
  background: #0a1933 !important;
}

.pw-compose-actions .pw-btn.pw-primary,
.pw-action.pw-primary{
  background: linear-gradient(180deg, var(--pw-oeeoo-accent) 0%, var(--pw-oeeoo-accent-2) 100%) !important;
  color: var(--pw-oeeoo-accent-text) !important;
  border: 1px solid #ff2d78 !important;
  box-shadow: none !important;
}

.pw-poll-box{
  background: #061327 !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
}

.pw-poll-box input,
.pw-poll-box textarea,
.pw-poll-box select{
  background: #071226 !important;
  color: var(--pw-oeeoo-text) !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
}

.pw-upload-preview > *{
  border-color: var(--pw-oeeoo-border) !important;
}

.pw-upload-progress{
  background: #061327 !important;
  border: 1px solid var(--pw-oeeoo-border) !important;
}

.pw-upload-bar{
  background: linear-gradient(90deg, #1e4b87 0%, #2a65b8 100%) !important;
}

.pw-post-media,
.pw-post-media img,
.pw-post-media video,
.pw-post-media canvas{
  background: #000000 !important;
}

.pw-actions{
  background: transparent !important;
}

.pw-comment-inp{
  color: var(--pw-oeeoo-text) !important;
}

.pw-comment-inp::placeholder{
  color: #97a8c4 !important;
  opacity: 1 !important;
}

.pw-profile-posts-shell.pw-profile-posts-shell--phase1{
  background: transparent !important;
  color: var(--pw-oeeoo-text) !important;
}

.pw-post-card a,
.pw-posts-app-shell a{
  color: var(--pw-oeeoo-text) !important;
}

.pw-post-card hr,
.pw-posts-app-shell hr{
  border-color: rgba(24,48,86,.5) !important;
}

@media (max-width:720px){
  .pw-compose-card.pw-compose-card--phase1,
  #pwPostsFeed .pw-post-card,
  #pwProfilePostsFeed .pw-post-card,
  .pw-post-card{
    border-radius: 18px !important;
  }
}

/* /ADDON_3058D_POSTS_EXACT_BRAND_PALETTE_SAFE */

/* ADDON_3058E_POSTS_DARK_PALETTE_FORCE_EXACT_SAFE */

/* exact dark palette */
html body.pw-posts-body,
html body.pw-posts-body.pw-posts-app-page{
  background: #02040a !important;
  color: #f5f7fb !important;
}

html body.pw-posts-body .pw-posts-app-shell,
html body.pw-posts-body.pw-posts-app-page .pw-posts-app-shell{
  background: #02040a !important;
  color: #f5f7fb !important;
}

html body.pw-posts-body .pw-posts-app-main,
html body.pw-posts-body.pw-posts-app-page .pw-posts-app-main{
  background: transparent !important;
  color: #f5f7fb !important;
}

/* header */
html body.pw-posts-body .pw-posts-top.pw-posts-top--app,
html body.pw-posts-body.pw-posts-app-page .pw-posts-top.pw-posts-top--app{
  background: rgba(2,4,10,.96) !important;
  border-bottom: 1px solid #183056 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html body.pw-posts-body .pw-posts-topbtn,
html body.pw-posts-body.pw-posts-app-page .pw-posts-topbtn{
  background: #071226 !important;
  color: #ffffff !important;
  border: 1px solid #183056 !important;
  box-shadow: none !important;
}

html body.pw-posts-body .pw-posts-topbtn--primary,
html body.pw-posts-body.pw-posts-app-page .pw-posts-topbtn--primary{
  background: #071226 !important;
  color: #ffffff !important;
  border: 1px solid #183056 !important;
}

/* headings/text */
html body.pw-posts-body .pw-posts-top-title,
html body.pw-posts-body .pw-posts-screen-title,
html body.pw-posts-body .pw-profile-posts-title,
html body.pw-posts-body .pw-username,
html body.pw-posts-body .pw-post-text,
html body.pw-posts-body .pw-counts,
html body.pw-posts-body .pw-comment,
html body.pw-posts-body .pw-comments,
html body.pw-posts-body.pw-posts-app-page .pw-posts-top-title,
html body.pw-posts-body.pw-posts-app-page .pw-posts-screen-title,
html body.pw-posts-body.pw-posts-app-page .pw-profile-posts-title,
html body.pw-posts-body.pw-posts-app-page .pw-username,
html body.pw-posts-body.pw-posts-app-page .pw-post-text,
html body.pw-posts-body.pw-posts-app-page .pw-counts,
html body.pw-posts-body.pw-posts-app-page .pw-comment,
html body.pw-posts-body.pw-posts-app-page .pw-comments{
  color: #f5f7fb !important;
}

html body.pw-posts-body .pw-posts-top-subtitle,
html body.pw-posts-body .pw-posts-screen-note,
html body.pw-posts-body .pw-profile-posts-note,
html body.pw-posts-body .pw-time,
html body.pw-posts-body .pw-posts-more,
html body.pw-posts-body.pw-posts-app-page .pw-posts-top-subtitle,
html body.pw-posts-body.pw-posts-app-page .pw-posts-screen-note,
html body.pw-posts-body.pw-posts-app-page .pw-profile-posts-note,
html body.pw-posts-body.pw-posts-app-page .pw-time,
html body.pw-posts-body.pw-posts-app-page .pw-posts-more{
  color: #b9c4d6 !important;
}

/* composer + cards */
html body.pw-posts-body .pw-posts-compose,
html body.pw-posts-body .pw-compose-card.pw-compose-card--phase1,
html body.pw-posts-body .pw-post-card,
html body.pw-posts-body #pwPostsFeed .pw-post-card,
html body.pw-posts-body #pwProfilePostsFeed .pw-post-card,
html body.pw-posts-body.pw-posts-app-page .pw-posts-compose,
html body.pw-posts-body.pw-posts-app-page .pw-compose-card.pw-compose-card--phase1,
html body.pw-posts-body.pw-posts-app-page .pw-post-card,
html body.pw-posts-body.pw-posts-app-page #pwPostsFeed .pw-post-card,
html body.pw-posts-body.pw-posts-app-page #pwProfilePostsFeed .pw-post-card{
  background: linear-gradient(180deg, #05112a 0%, #07162f 100%) !important;
  border: 1px solid #183056 !important;
  color: #f5f7fb !important;
  box-shadow: none !important;
}

/* textarea */
html body.pw-posts-body textarea#pwPostText,
html body.pw-posts-body.pw-posts-app-page textarea#pwPostText{
  background: #061327 !important;
  color: #ffffff !important;
  border: 1px solid #183056 !important;
  box-shadow: none !important;
}

html body.pw-posts-body textarea#pwPostText::placeholder,
html body.pw-posts-body.pw-posts-app-page textarea#pwPostText::placeholder{
  color: #97a8c4 !important;
  opacity: 1 !important;
}

html body.pw-posts-body textarea#pwPostText:focus,
html body.pw-posts-body .pw-comment-inp:focus,
html body.pw-posts-body.pw-posts-app-page textarea#pwPostText:focus,
html body.pw-posts-body.pw-posts-app-page .pw-comment-inp:focus{
  border-color: #294b7e !important;
  box-shadow: 0 0 0 3px rgba(41,75,126,.18) !important;
}

/* poll/upload boxes */
html body.pw-posts-body .pw-poll-box,
html body.pw-posts-body .pw-upload-progress,
html body.pw-posts-body.pw-posts-app-page .pw-poll-box,
html body.pw-posts-body.pw-posts-app-page .pw-upload-progress{
  background: #061327 !important;
  border: 1px solid #183056 !important;
  color: #f5f7fb !important;
}

html body.pw-posts-body .pw-poll-box input,
html body.pw-posts-body .pw-poll-box textarea,
html body.pw-posts-body .pw-poll-box select,
html body.pw-posts-body.pw-posts-app-page .pw-poll-box input,
html body.pw-posts-body.pw-posts-app-page .pw-poll-box textarea,
html body.pw-posts-body.pw-posts-app-page .pw-poll-box select{
  background: #071226 !important;
  color: #ffffff !important;
  border: 1px solid #183056 !important;
}

/* buttons */
html body.pw-posts-body .pw-compose-actions,
html body.pw-posts-body.pw-posts-app-page .pw-compose-actions{
  border-top: 1px solid rgba(24,48,86,.55) !important;
}

html body.pw-posts-body .pw-compose-actions .pw-icon-btn,
html body.pw-posts-body .pw-compose-actions .pw-btn,
html body.pw-posts-body .pw-action,
html body.pw-posts-body button.pw-action,
html body.pw-posts-body .pw-comment-inp,
html body.pw-posts-body.pw-posts-app-page .pw-compose-actions .pw-icon-btn,
html body.pw-posts-body.pw-posts-app-page .pw-compose-actions .pw-btn,
html body.pw-posts-body.pw-posts-app-page .pw-action,
html body.pw-posts-body.pw-posts-app-page button.pw-action,
html body.pw-posts-body.pw-posts-app-page .pw-comment-inp{
  background: #08152b !important;
  color: #ffffff !important;
  border: 1px solid #183056 !important;
  box-shadow: none !important;
}

html body.pw-posts-body .pw-compose-actions .pw-btn:hover,
html body.pw-posts-body .pw-compose-actions .pw-icon-btn:hover,
html body.pw-posts-body .pw-action:hover,
html body.pw-posts-body button.pw-action:hover,
html body.pw-posts-body.pw-posts-app-page .pw-compose-actions .pw-btn:hover,
html body.pw-posts-body.pw-posts-app-page .pw-compose-actions .pw-icon-btn:hover,
html body.pw-posts-body.pw-posts-app-page .pw-action:hover,
html body.pw-posts-body.pw-posts-app-page button.pw-action:hover{
  background: #0a1933 !important;
}

html body.pw-posts-body .pw-compose-actions .pw-btn.pw-primary,
html body.pw-posts-body .pw-action.pw-primary,
html body.pw-posts-body.pw-posts-app-page .pw-compose-actions .pw-btn.pw-primary,
html body.pw-posts-body.pw-posts-app-page .pw-action.pw-primary{
  background: linear-gradient(180deg, #c4004b 0%, #e1005a 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ff2d78 !important;
  box-shadow: none !important;
}

/* media */
html body.pw-posts-body .pw-post-media,
html body.pw-posts-body .pw-post-media img,
html body.pw-posts-body .pw-post-media video,
html body.pw-posts-body .pw-post-media canvas,
html body.pw-posts-body.pw-posts-app-page .pw-post-media,
html body.pw-posts-body.pw-posts-app-page .pw-post-media img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media video,
html body.pw-posts-body.pw-posts-app-page .pw-post-media canvas{
  background: #000000 !important;
}

/* links/hr */
html body.pw-posts-body .pw-post-card a,
html body.pw-posts-body .pw-posts-app-shell a,
html body.pw-posts-body.pw-posts-app-page .pw-post-card a,
html body.pw-posts-body.pw-posts-app-page .pw-posts-app-shell a{
  color: #ffffff !important;
}

html body.pw-posts-body .pw-post-card hr,
html body.pw-posts-body .pw-posts-app-shell hr,
html body.pw-posts-body.pw-posts-app-page .pw-post-card hr,
html body.pw-posts-body.pw-posts-app-page .pw-posts-app-shell hr{
  border-color: rgba(24,48,86,.55) !important;
}

/* prevent white inherited wrappers */
html body.pw-posts-body .pw-posts-feed-wrap,
html body.pw-posts-body .pw-profile-posts-feed-wrap,
html body.pw-posts-body #pwPostsFeed,
html body.pw-posts-body #pwProfilePostsFeed,
html body.pw-posts-body.pw-posts-app-page .pw-posts-feed-wrap,
html body.pw-posts-body.pw-posts-app-page .pw-profile-posts-feed-wrap,
html body.pw-posts-body.pw-posts-app-page #pwPostsFeed,
html body.pw-posts-body.pw-posts-app-page #pwProfilePostsFeed{
  background: transparent !important;
  color: #f5f7fb !important;
}

/* /ADDON_3058E_POSTS_DARK_PALETTE_FORCE_EXACT_SAFE */


/* ADDON_4006_POSTS_MEDIA_GRID_FILE */

/* ADDON_4006_POSTS_MEDIA_GRID_FIT_ADVANCED_SAFE */
html body.pw-posts-body .pw-post-media[class*="pw-media-"],
html body.pw-posts-body.pw-posts-app-page .pw-post-media[class*="pw-media-"],
html body #pwProfilePostsFeed .pw-post-media[class*="pw-media-"],
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media[class*="pw-media-"]{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  border-radius:16px !important;
  margin-top:4px !important;
  box-sizing:border-box !important;
}

/* 1 image: natural responsive fit, no side black gutters */
html body.pw-posts-body .pw-post-media.pw-media-1,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-1,
html body #pwProfilePostsFeed .pw-post-media.pw-media-1,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-1{
  display:block !important;
  background:transparent !important;
  aspect-ratio:auto !important;
  min-height:0 !important;
  max-height:none !important;
}
html body.pw-posts-body .pw-post-media.pw-media-1 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-1 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-1 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-1 img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  object-fit:cover !important;
  margin:0 !important;
  background:transparent !important;
  border-radius:16px !important;
}

/* base multi-grid */
html body.pw-posts-body .pw-post-media.pw-media-2,
html body.pw-posts-body .pw-post-media.pw-media-3,
html body.pw-posts-body .pw-post-media.pw-media-4,
html body.pw-posts-body .pw-post-media.pw-media-5,
html body.pw-posts-body .pw-post-media.pw-media-5plus,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-2,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-3,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-4,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5plus,
html body #pwProfilePostsFeed .pw-post-media.pw-media-2,
html body #pwProfilePostsFeed .pw-post-media.pw-media-3,
html body #pwProfilePostsFeed .pw-post-media.pw-media-4,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5plus,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-2,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-3,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-4,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5plus{
  display:grid !important;
  gap:6px !important;
  background:transparent !important;
  aspect-ratio:auto !important;
  min-height:0 !important;
  max-height:none !important;
  align-items:stretch !important;
}

html body.pw-posts-body .pw-post-media.pw-media-2 img,
html body.pw-posts-body .pw-post-media.pw-media-3 img,
html body.pw-posts-body .pw-post-media.pw-media-4 img,
html body.pw-posts-body .pw-post-media.pw-media-5 img,
html body.pw-posts-body .pw-post-media.pw-media-5plus img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-2 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-3 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-4 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5plus img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-2 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-3 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-4 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5plus img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-2 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-3 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-4 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5plus img{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  object-fit:cover !important;
  display:block !important;
  margin:0 !important;
  background:transparent !important;
  border-radius:12px !important;
}

/* 2 */
html body.pw-posts-body .pw-post-media.pw-media-2,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-2,
html body #pwProfilePostsFeed .pw-post-media.pw-media-2,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-2{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
html body.pw-posts-body .pw-post-media.pw-media-2 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-2 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-2 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-2 img{
  aspect-ratio:1 / 1 !important;
}

/* 3 */
html body.pw-posts-body .pw-post-media.pw-media-3,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-3,
html body #pwProfilePostsFeed .pw-post-media.pw-media-3,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-3{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
html body.pw-posts-body .pw-post-media.pw-media-3 img:first-child,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-3 img:first-child,
html body #pwProfilePostsFeed .pw-post-media.pw-media-3 img:first-child,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-3 img:first-child{
  grid-column:1 / -1 !important;
  aspect-ratio:16 / 10 !important;
}
html body.pw-posts-body .pw-post-media.pw-media-3 img:not(:first-child),
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-3 img:not(:first-child),
html body #pwProfilePostsFeed .pw-post-media.pw-media-3 img:not(:first-child),
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-3 img:not(:first-child){
  aspect-ratio:1 / 1 !important;
}

/* 4 */
html body.pw-posts-body .pw-post-media.pw-media-4,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-4,
html body #pwProfilePostsFeed .pw-post-media.pw-media-4,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-4{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
html body.pw-posts-body .pw-post-media.pw-media-4 img,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-4 img,
html body #pwProfilePostsFeed .pw-post-media.pw-media-4 img,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-4 img{
  aspect-ratio:1 / 1 !important;
}

/* 5 and 5+ */
html body.pw-posts-body .pw-post-media.pw-media-5,
html body.pw-posts-body .pw-post-media.pw-media-5plus,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5plus,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5plus,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5plus{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
html body.pw-posts-body .pw-post-media.pw-media-5 img:first-child,
html body.pw-posts-body .pw-post-media.pw-media-5plus img:first-child,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5 img:first-child,
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5plus img:first-child,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5 img:first-child,
html body #pwProfilePostsFeed .pw-post-media.pw-media-5plus img:first-child,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5 img:first-child,
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5plus img:first-child{
  grid-column:1 / -1 !important;
  aspect-ratio:16 / 9 !important;
}
html body.pw-posts-body .pw-post-media.pw-media-5 img:not(:first-child),
html body.pw-posts-body .pw-post-media.pw-media-5plus img:not(:first-child),
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5 img:not(:first-child),
html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5plus img:not(:first-child),
html body #pwProfilePostsFeed .pw-post-media.pw-media-5 img:not(:first-child),
html body #pwProfilePostsFeed .pw-post-media.pw-media-5plus img:not(:first-child),
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5 img:not(:first-child),
html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5plus img:not(:first-child){
  aspect-ratio:1 / 1 !important;
}

@media (max-width:640px){
  html body.pw-posts-body .pw-post-media.pw-media-2,
  html body.pw-posts-body .pw-post-media.pw-media-3,
  html body.pw-posts-body .pw-post-media.pw-media-4,
  html body.pw-posts-body .pw-post-media.pw-media-5,
  html body.pw-posts-body .pw-post-media.pw-media-5plus,
  html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-2,
  html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-3,
  html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-4,
  html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5,
  html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-5plus,
  html body #pwProfilePostsFeed .pw-post-media.pw-media-2,
  html body #pwProfilePostsFeed .pw-post-media.pw-media-3,
  html body #pwProfilePostsFeed .pw-post-media.pw-media-4,
  html body #pwProfilePostsFeed .pw-post-media.pw-media-5,
  html body #pwProfilePostsFeed .pw-post-media.pw-media-5plus,
  html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-2,
  html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-3,
  html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-4,
  html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5,
  html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-5plus{
    gap:4px !important;
    border-radius:14px !important;
  }
  html body.pw-posts-body .pw-post-media.pw-media-1 img,
  html body.pw-posts-body.pw-posts-app-page .pw-post-media.pw-media-1 img,
  html body #pwProfilePostsFeed .pw-post-media.pw-media-1 img,
  html body .pw-profile-posts-shell #pwProfilePostsFeed .pw-post-media.pw-media-1 img{
    border-radius:14px !important;
  }
}
