:root{
    --bg:#edf2f7;
    --panel:#ffffff;
    --line:#d8e1ea;
    --text:#14171a;
    --muted:#657786;
    --blue:#3b5998;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:Verdana,sans-serif;
}

.hidden{
    display:none !important;
}

button{
    border:none;
    background:var(--blue);
    color:white;
    padding:12px;
    border-radius:6px;
    cursor:pointer;
}

button:hover{
    opacity:.95;
}

input,
textarea{
    width:100%;
    padding:12px;
    border:1px solid #bcccdc;
    border-radius:6px;
    margin-bottom:12px;
    font-family:inherit;
}

textarea{
    resize:vertical;
    min-height:120px;
}

.loginPage{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.loginHeader{
    background:linear-gradient(#4f78b5,#3b5f97);
    color:white;
    padding:18px 40px;
    font-size:42px;
    font-weight:bold;
}

.loginMain{
    flex:1;
    display:grid;
    grid-template-columns:1fr 420px;
    gap:60px;
    align-items:center;
    max-width:1200px;
    margin:auto;
    width:100%;
    padding:50px;
}

.loginLeft h1{
    font-size:48px;
    margin-bottom:20px;
}

.loginLeft p{
    color:#556270;
    line-height:1.8;
    font-size:18px;
}

.card,
.compose,
.post,
.profileCard{
    background:white;
    border:1px solid var(--line);
    border-radius:8px;
}

.card,
.compose,
.post{
    padding:20px;
}

.switchButtons{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.topbar{
    background:linear-gradient(var(--blue),#2f4e85);
    color:white;
    padding:16px 24px;
    font-size:28px;
    font-weight:bold;
}

.layout{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:20px;
    max-width:1200px;
    margin:20px auto;
    padding:0 20px;
}

.profileCard{
    overflow:hidden;
}

.banner{
    height:120px;
    background-color:var(--blue);
    background-size:cover;
    background-position:center;
}

.profileContent{
    padding:18px;
    margin-top:-45px;
}

.avatar{
    width:90px;
    height:90px;
    border-radius:8px;
    object-fit:cover;
    border:4px solid white;
    background:#ddd;
}

.username{
    margin-top:10px;
    font-size:22px;
    font-weight:bold;
}

.bio{
    margin-top:10px;
    color:var(--muted);
    line-height:1.6;
}

.sidebarButton{
    width:100%;
    margin-top:14px;
}

.feed{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:24px;
}

.postTop{
    display:flex;
    gap:12px;
    margin-bottom:12px;
}

.smallAvatar{
    width:50px;
    height:50px;
    border-radius:6px;
    object-fit:cover;
    background:#ddd;
}

.postTitle{
    font-size:24px;
    margin-bottom:10px;
}

.postContent{
    line-height:1.8;
    white-space:pre-wrap;
}

.postImage{
    width:100%;
    margin-top:14px;
    border-radius:8px;
}

.composerButtons{
    display:flex;
    gap:10px;
    margin-bottom:12px;
}

.composerButtons button{
    width:auto;
}

.embedBox{
    margin-top:16px;
    overflow:hidden;
    border-radius:8px;
}

.embedBox iframe{
    width:100%;
    min-height:400px;
    border:none;
}

.sectionTitle{
    margin:20px 0;
    font-size:28px;
}

.profileHeader{
    font-size:30px;
    margin-bottom:20px;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:flex;
    align-items:center;
    justify-content:center;
}

.modalCard{
    width:400px;
    max-width:90%;
}

.cancelButton{
    margin-top:10px;
    background:#777;
}

pre{
    background:#111;
    color:#00ff88;
    padding:14px;
    border-radius:8px;
    overflow:auto;
    margin-top:14px;
}

@media(max-width:900px){

    .layout,
    .loginMain{
        grid-template-columns:1fr;
    }
}