*{box-sizing:border-box}
:root{
  --green:#00A651;
  --green-dark:#007A3D;
  --bg:#eef2f6;
  --text:#17212b;
  --muted:#667085;
  --border:#d8e1ea;
  --card:#fff;
  --bubble:#f5f7fb;
  --blue:#1877f2;
  --violet:#7360f2;
}
body{margin:0;font-family:'Segoe UI',system-ui,sans-serif;background:linear-gradient(180deg,#e9eef5 0%,#f8fafc 100%);color:var(--text);overflow-x:hidden}
.page{max-width:760px;margin:0 auto;padding:16px 12px 48px}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-16px -12px 14px;padding:12px;background:rgba(248,250,252,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(216,225,234,.82)}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand img{width:44px;height:44px;border-radius:999px;border:2px solid #fff;box-shadow:0 6px 18px rgba(15,23,42,.12)}
.brand h1{font-size:19px;line-height:1;margin:0}
.brand p{font-size:12px;font-weight:800;color:var(--muted);margin:4px 0 0;letter-spacing:0}
.top-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.icon-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 11px;border-radius:999px;background:#fff;color:var(--green-dark);border:1px solid var(--border);font-size:12px;font-weight:900;text-decoration:none;box-shadow:0 8px 18px rgba(15,23,42,.05)}
.hidden{display:none!important}
.publish-link{background:linear-gradient(135deg,var(--green),var(--green-dark));border-color:var(--green);color:#fff;box-shadow:0 10px 24px rgba(0,166,81,.2)}
.floating-publish-link{position:fixed;right:16px;bottom:16px;z-index:2500;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border-radius:999px;background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;text-decoration:none;font-size:13px;font-weight:950;box-shadow:0 16px 38px rgba(0,166,81,.32);border:1px solid rgba(255,255,255,.35)}
.hero{position:relative;overflow:hidden;border:1px solid #d9e3ee;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f8fbff 58%,#eef7f0 100%);padding:16px 16px 15px;box-shadow:0 14px 32px rgba(15,23,42,.07);margin-bottom:12px}
.hero::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--blue),var(--violet),var(--green))}
.hero h2{font-size:21px;line-height:1.16;margin:4px 0 7px}
.hero p{margin:0;color:var(--muted);line-height:1.48;font-size:14px}
.group-strip{display:flex;align-items:center;gap:9px;margin-top:13px;padding:10px 11px;border-radius:14px;background:#fff;border:1px solid rgba(216,225,234,.85)}
.group-strip span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#eef7f0}
.group-strip strong{font-size:13px}
.group-strip small{display:block;color:var(--muted);font-weight:700;margin-top:1px}
.search-wrap{margin:0 0 10px}
.search-input{width:100%;min-height:44px;border:1px solid var(--border);border-radius:999px;background:#fff;padding:0 15px;font:inherit;font-size:14px;font-weight:700;color:var(--text);box-shadow:0 8px 18px rgba(15,23,42,.04);outline:none}
.search-input:focus{border-color:#9ed3b2;box-shadow:0 0 0 3px rgba(0,166,81,.12)}
.filters{display:flex;gap:8px;overflow:auto;padding:2px 0 12px;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.filter-btn{border:1px solid var(--border);background:#fff;color:var(--text);border-radius:999px;padding:9px 12px;font-size:13px;font-weight:900;white-space:nowrap;cursor:pointer;box-shadow:0 7px 16px rgba(15,23,42,.04)}
.filter-btn.active{background:#17212b;border-color:#17212b;color:#fff}
.feed{display:flex;flex-direction:column;gap:13px}
.feed-section-title{margin:4px 2px -2px;color:#334155;font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.post{background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:0 12px 28px rgba(15,23,42,.07);overflow:hidden}
.post.unread{border-color:#9ed3b2;box-shadow:0 14px 34px rgba(0,166,81,.12)}
.post-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px 9px}
.post-author{display:flex;align-items:center;gap:10px;min-width:0}
.post-avatar{width:42px;height:42px;border-radius:999px;object-fit:cover;border:2px solid #fff;box-shadow:0 6px 14px rgba(15,23,42,.12);flex-shrink:0}
.post-author strong{display:block;font-size:14px;line-height:1.15}
.post-author small{display:flex;align-items:center;gap:5px;margin-top:3px;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}
.post-kebab{width:32px;height:32px;border:none;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:18px;font-weight:900;line-height:1;flex-shrink:0}
.post-content{padding:0 14px 12px}
.post-badges{display:flex;gap:7px;flex-wrap:wrap;margin:2px 0 9px}
.tag,.pin,.new-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;line-height:1}
.tag{background:#eef2ff;color:#3730a3;text-transform:uppercase}
.pin{background:#fff7d6;color:#925f00}
.new-badge{background:#dcfce7;color:#166534}
.post h3{margin:0 0 8px;font-size:18px;line-height:1.28}
.message-bubble{position:relative;margin:0;padding:12px 13px;border-radius:4px 16px 16px 16px;background:var(--bubble);border:1px solid #e4e9f0;color:#203038;line-height:1.55;white-space:pre-wrap}
.post-text{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.post-img-wrap{margin:11px -14px 0;background:#eef2f6;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.post-img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;background:#eef7f0}
.media-count{display:inline-flex;margin:9px 0 0;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:900}
.post-img-empty{display:none}
.post-meta-line{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0;color:var(--muted);font-size:12px;font-weight:800}
.post-meta-line span{display:inline-flex;align-items:center;gap:5px}
.post-footer{border-top:1px solid #edf1f5;padding:8px 10px 10px}
.post-reaction-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px;color:var(--muted);font-size:12px;font-weight:800;padding:0 4px 7px}
.reaction-icons{display:inline-flex;align-items:center;gap:4px}
.reaction-icons span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:#f1f5f9}
.reactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.reaction-btn,.open-btn,.share-mini-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:none;background:#f8fafc;color:#334155;border-radius:10px;min-height:38px;padding:0 10px;font-weight:900;cursor:pointer}
.reaction-btn.active{background:#e8f5ee;color:var(--green-dark)}
.reaction-btn strong{font-size:12px}
.post-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.open-btn{background:#ecfdf3;color:var(--green-dark)}
.share-mini-btn{background:#eef2ff;color:#3730a3}
.meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px;color:var(--muted);font-size:12px;font-weight:800}
.detail-overlay{position:fixed;inset:0;z-index:3000;background:#eef2f6;display:none;overflow-y:auto;overflow-x:hidden}
.detail-overlay.open{display:block}
.detail-page{max-width:760px;margin:0 auto;padding:0 12px 44px;overflow-x:hidden}
.detail-head{position:sticky;top:0;z-index:2;background:rgba(248,250,252,.95);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid rgba(216,225,234,.82)}
.detail-close{border:1px solid var(--border);background:#fff;color:var(--green-dark);border-radius:999px;padding:10px 13px;font-weight:900;cursor:pointer}
.detail-card{margin-top:12px;background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.08)}
.detail-card .post-head{padding:14px 14px 9px}
.detail-body{padding:0 14px 14px}
.detail-img{display:block;width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain;margin:12px 0 0;background:#eef7f0;border-radius:14px}
.detail-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}
.detail-gallery-img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;background:#eef7f0;border-radius:14px;border:1px solid #edf1f5}
.detail-videos{display:grid;gap:10px;margin-top:12px}
.detail-video{width:100%;max-height:620px;background:#0f172a;border-radius:14px}
.detail-docs{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.detail-title{font-size:24px;line-height:1.18;margin:0 0 10px}
.detail-text{white-space:pre-wrap;line-height:1.68;font-size:16px;color:#203038}
.detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.action-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;padding:0 15px;border:1px solid var(--border);background:#fff;color:var(--green-dark);font-weight:900;text-decoration:none}
.action-btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.empty{padding:22px;border:1.5px dashed var(--border);border-radius:18px;background:#fff;color:var(--muted);text-align:center}
.error{padding:16px;border:1.5px solid #fecaca;border-radius:16px;background:#fef2f2;color:#991b1b}
@media(max-width:640px){
  .page{padding:12px 9px 34px}
  .topbar{align-items:flex-start;margin:-12px -9px 12px;padding:10px 9px}
  .brand h1{font-size:18px}
  .hero{padding:15px;border-radius:16px}
  .hero h2{font-size:20px}
  .top-actions{gap:5px}
  .icon-link{min-height:34px;padding:0 9px}
  .post{border-radius:16px}
  .post-head{padding:12px 12px 8px}
  .post-content{padding:0 12px 11px}
  .post h3{font-size:17px}
  .post-img-wrap{margin-left:-12px;margin-right:-12px}
  .reactions{gap:6px}
  .reaction-btn,.open-btn,.share-mini-btn{min-height:36px;font-size:13px}
  .detail-title{font-size:22px}
  .detail-page{padding-left:9px;padding-right:9px}
}
