*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f0f2f5;color:#111}
a{text-decoration:none;color:inherit}
.container{max-width:1100px;margin:0 auto;padding:16px}
.topbar{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e6e9f5}
.topbar-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;gap:12px}
.brand{font-weight:800;letter-spacing:.3px}
.topbar-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.navlink{padding:8px 10px;border-radius:10px;background:#f5f6fa;border:1px solid #e6e9f5;font-weight:600}
.navlink:hover{filter:brightness(.98)}
.navlink.danger{background:#fff0f0;border-color:#ffd6d6}
.card{background:#fff;border:1px solid #e6e9f5;border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.card.pad{padding:14px}
.grid{display:grid;grid-template-columns:340px 1fr;gap:14px}
@media (max-width:920px){.grid{grid-template-columns:1fr}}
.input,textarea,select{width:100%;padding:10px 12px;border-radius:12px;border:1px solid #d9def1;background:#fff;font-size:14px}
textarea{min-height:90px;resize:vertical}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px solid #d9def1;background:#111;color:#fff;font-weight:700;cursor:pointer}
.btn.secondary{background:#fff;color:#111}
.btn:disabled{opacity:.6;cursor:not-allowed}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.muted{color:#667085;font-size:13px}
.post{padding:14px}
.post-head{display:flex;gap:10px;align-items:center;justify-content:space-between}
.avatar{width:40px;height:40px;border-radius:999px;object-fit:cover;background:#eef}
.avatar.sm{width:32px;height:32px}
.post-body{margin:10px 0 12px;white-space:pre-wrap;word-break:break-word}
.post-media{width:100%;border-radius:14px;border:1px solid #e6e9f5;max-height:520px;object-fit:contain;background:#fafbff}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.pill{padding:8px 10px;border-radius:999px;border:1px solid #e6e9f5;background:#f7f8ff;font-weight:700;font-size:13px;cursor:pointer}
.pill:hover{filter:brightness(.98)}
.comment{display:flex;gap:10px;margin-top:10px}
.comment-body{background:#f5f6fa;border:1px solid #e6e9f5;border-radius:12px;padding:10px 12px;width:100%}
.hr{height:1px;background:#eef1fb;margin:12px 0}
.footer{padding:18px 0;color:#667085}
.footer-inner{max-width:1100px;margin:0 auto;padding:0 16px}
.chat-wrap{display:grid;grid-template-columns:320px 1fr;gap:14px}
@media (max-width:900px){.chat-wrap{grid-template-columns:1fr}}
.chat-list{max-height:70vh;overflow:auto}
.chat-box{display:flex;flex-direction:column;min-height:70vh}
.chat-messages{flex:1;overflow:auto;padding:10px;border-radius:14px;border:1px solid #e6e9f5;background:#fafbff}
.bubble{max-width:70%;padding:10px 12px;border-radius:14px;border:1px solid #e6e9f5;background:#fff;margin:8px 0;white-space:pre-wrap;word-break:break-word}
.bubble.me{margin-left:auto;background:#111;color:#fff;border-color:#111}
.chat-input{display:flex;gap:10px;margin-top:10px}
