*{box-sizing:border-box}body{margin:0;background:#0b1220;color:#e8edf7;font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.topbar{height:64px;padding:0 max(18px,calc((100% - 980px)/2));display:flex;align-items:center;justify-content:space-between;background:#111c2e;border-bottom:1px solid #26334a;position:sticky;top:0;z-index:5}.brand{font-size:22px;font-weight:850;letter-spacing:1px;color:#8eb8ff}.top-actions,.row{display:flex;align-items:center;gap:10px}.layout{max-width:760px;margin:28px auto;padding:0 16px;min-height:calc(100vh - 120px)}.login-card{max-width:420px;margin:10vh auto;background:#131f33;border:1px solid #2b3b56;border-radius:20px;padding:32px;text-align:center}.brand-mark{width:56px;height:56px;border-radius:17px;background:#3275e8;display:grid;place-items:center;font-size:28px;font-weight:900;margin:0 auto 12px}.card{background:#131f33;border:1px solid #2b3b56;border-radius:16px;padding:18px;margin-bottom:16px}h1,h2{margin:0 0 12px}h1{font-size:25px}h2{font-size:18px}p{margin:8px 0}.muted{color:#9baac2}.small{font-size:12px}button{border:0;border-radius:10px;padding:10px 15px;font-weight:700;cursor:pointer;color:#fff}.primary{background:#3478ed}.primary:hover{background:#2867d5}.secondary{background:#293951}.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:18px}.tab{background:#17243a;color:#b8c6dc;flex:1;min-width:75px}.tab.active{background:#3478ed;color:white}textarea,input{background:#0c1728;border:1px solid #354660;border-radius:10px;padding:11px;color:#edf3ff;width:100%;font:inherit}textarea{min-height:100px;resize:vertical;margin-bottom:10px}.row input{flex:1;min-width:0}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:12px}.post-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#34445f}.post-media{max-width:100%;max-height:480px;border-radius:12px;display:block;margin:12px auto}.post-actions{display:flex;gap:8px;margin-top:12px}.post-actions button{background:#243550}.error{color:#ff9292;min-height:18px}.hidden{display:none!important}.tabs+.page{margin-top:0}.chat-layout{display:grid;grid-template-columns: minmax(130px, .8fr) minmax(0,1.5fr);gap:12px}.chat-panel{min-height:360px;display:flex;flex-direction:column}.messages{flex:1;overflow:auto;max-height:350px;padding:12px 0;display:flex;flex-direction:column;gap:8px}.bubble{padding:9px 12px;border-radius:12px;background:#243550;max-width:85%;align-self:flex-start;overflow-wrap:anywhere}.bubble.mine{background:#245db4;align-self:flex-end}.list-item{padding:11px;background:#1a2941;border-radius:10px;cursor:pointer}.list-item:hover{background:#223653}.profile-line{padding:8px 0;border-bottom:1px solid #293a54;overflow-wrap:anywhere}footer{text-align:center;color:#71819b;padding:20px;font-size:12px}@media(max-width:560px){.layout{margin:16px auto}.chat-layout{grid-template-columns:1fr}.chat-panel{min-height:300px}.topbar{padding:0 14px}.tabs{position:sticky;top:64px;background:#0b1220;padding:8px 0;z-index:4}}