:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #252b3d;
  background: #eef0f5;
  --ink: #252b3d;
  --muted: #737b8e;
  --line: #e5e8ef;
  --blue: #586ce5;
  --purple: #9069e9;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .primary-button, .soft-button { cursor: pointer; }
.topbar { position: sticky; z-index: 5; top: 0; height: 68px; border-bottom: 1px solid #eceef4; background: #fffffff2; backdrop-filter: blur(14px); }
.topbar-inner { width: min(1380px, 100%); height: 100%; display: flex; align-items: center; gap: 30px; margin: auto; padding: 0 28px; }
.brand { min-width: 205px; display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(135deg, #5b70ed, #a16ce2); box-shadow: 0 6px 15px #6876e944; font-size: 21px; }
.brand-dot { color: #6876e9; }
.global-search { width: min(460px, 42vw); height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #f0f1f5; border-radius: 11px; color: #9ba0ae; background: #f7f8fa; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; font-size: 13px; }
.primary-button, .soft-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 11px; color: white; background: linear-gradient(125deg, #586ce5, #7669e5); box-shadow: 0 6px 14px #626fe528; font-size: 13px; font-weight: 700; }
.primary-button:hover { background: linear-gradient(125deg, #495fd7, #6658d5); }
.soft-button { color: #6772d8; background: #f0f1ff; box-shadow: none; }
.text-button { padding: 6px; border: 0; color: #6973da; background: none; font-size: 13px; font-weight: 700; }
.app-body { width: min(1380px, 100%); display: grid; grid-template-columns: 225px minmax(0, 1fr) 225px; gap: 25px; margin: auto; padding: 26px 28px 60px; }
.sidebar { position: sticky; top: 90px; height: calc(100vh - 110px); display: flex; flex-direction: column; padding: 10px 5px; }
.nav-caption, .eyebrow { color: #777f98; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.nav-caption { margin: 12px 10px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 11px; border-radius: 10px; color: #747b8c; font-size: 13px; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: #5d6cdd; background: white; box-shadow: 0 4px 14px #373f750d; }
.sidebar-bottom { margin-top: auto; padding: 12px 8px; color: #a0a5b2; font-size: 11px; }
.workspace { min-width: 0; }
.workspace-inner { width: min(100%, 760px); margin: auto; }
.right-rail { position: sticky; top: 92px; align-self: start; display: grid; gap: 14px; }
.rail-note, .post-card, .community-card, .profile-card, .login-card, .empty-state { border: 1px solid #eff0f5; border-radius: 15px; background: #fcfcfe; box-shadow: 0 7px 24px #28315b08; }
.rail-note { padding: 18px; color: white; background: linear-gradient(145deg, #6578e8, #8b6dde); }
.rail-note h2 { margin: 15px 0 8px; font-size: 17px; line-height: 1.35; }
.rail-note p { color: #ffffffd6; font-size: 13px; line-height: 1.55; }
.rail-link { display: inline-flex; padding: 9px 11px; border-radius: 8px; color: #646fda; background: white; font-size: 12px; font-weight: 700; }
.rail-footer { color: #a8acb8; font-size: 11px; text-align: center; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 4px 0 18px; }
.section-heading h1, .section-heading h2 { margin: 6px 0 5px; font-size: 25px; letter-spacing: -.7px; }
.section-heading p { margin: 0; color: #777f90; font-size: 14px; }
.feed-list, .community-list { display: grid; gap: 15px; }
.post-card { padding: 18px; }
.post-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-author { min-width: 0; display: flex; align-items: center; gap: 11px; }
.post-author > span:last-child { min-width: 0; display: grid; gap: 4px; }
.post-author strong { overflow: hidden; color: #252b3d; font-size: 14px; text-overflow: ellipsis; }
.post-author small, .post-date { color: #72798c; font-size: 12px; }
.post-community { padding: 6px 9px; border-radius: 9px; color: #626ed2; background: #f0f1ff; font-size: 11px; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.avatar-fallback, .community-avatar-fallback { display: grid; place-items: center; color: white; background: linear-gradient(135deg, #e9a68b, #9766a9); font-weight: 700; }
.post-text { margin: 16px 0 0; color: #42495c; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.post-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 15px; overflow: hidden; border-radius: 12px; background: #181b25; }
.post-media a, .post-media video { position: relative; min-width: 0; aspect-ratio: 1.2; display: grid; place-items: center; overflow: hidden; background: #252a37; }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; }
.video-preview span { position: absolute; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: white; background: #202436b8; }
.empty-state { padding: 44px 24px; text-align: center; }
.empty-state h2 { margin: 12px 0 8px; font-size: 20px; }
.empty-state p, .muted { color: #777f90; font-size: 14px; line-height: 1.6; }
.empty-icon { color: #707ce5; font-size: 28px; }
.community-card { overflow: hidden; }
.community-cover { width: 100%; height: 145px; display: block; object-fit: cover; background: linear-gradient(120deg, #667ce8, #a372da); }
.community-cover-default { background: linear-gradient(120deg, #667ce8, #a372da); }
.community-info { padding: 16px 18px 18px; }
.community-title-row { display: flex; align-items: center; gap: 12px; }
.community-avatar { width: 54px; height: 54px; flex: 0 0 auto; border: 3px solid white; border-radius: 15px; object-fit: cover; box-shadow: 0 3px 12px #252d4d1a; }
.community-avatar-fallback { font-size: 21px; }
.community-title-row h2 { margin: 0 0 4px; font-size: 17px; }
.community-title-row span, .community-info > small { color: #777f90; font-size: 12px; }
.community-info p { color: #596174; font-size: 14px; line-height: 1.6; }
.profile-card { overflow: hidden; padding-bottom: 17px; }
.profile-cover { width: 100%; height: 185px; display: block; object-fit: cover; background-position: center; background-size: cover; }
.profile-cover-default { background: linear-gradient(120deg, #536cdb, #a36ed9); }
.profile-details { display: flex; align-items: end; gap: 15px; margin: -38px 20px 0; }
.avatar-profile { width: 84px; height: 84px; border: 4px solid #fcfcfe; box-shadow: 0 5px 22px #252d4d24; font-size: 24px; }
.profile-details h1 { margin: 0 0 4px; font-size: 21px; }
.profile-details > div > span { color: #70788b; font-size: 13px; }
.profile-bio { margin: 14px 20px; color: #50586d; font-size: 14px; line-height: 1.6; }
.profile-stats { display: flex; gap: 24px; margin: 15px 20px 0; padding-top: 13px; border-top: 1px solid var(--line); color: #70788b; font-size: 12px; }
.profile-stats strong { color: #252b3d; }
.profile-feed-heading { margin-top: 25px; }
.profile-feed-heading h2 { margin-bottom: 0; font-size: 21px; }
.login-card { width: min(100%, 440px); margin: 35px auto; padding: 32px; }
.login-card h1 { margin: 9px 0; font-size: 25px; }
.login-card form { display: grid; }
.field-label { margin: 13px 0 7px; color: #646a7c; font-size: 13px; font-weight: 700; }
.login-card input:not([type=hidden]) { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #e2e5ed; border-radius: 10px; background: #fafbfc; }
.login-card input:focus { border-color: #8d96ec; outline: 3px solid #6575e91c; }
.login-submit { width: 100%; margin-top: 20px; }
.form-error { margin: 12px 0; padding: 11px; border-radius: 9px; color: #ae3e59; background: #fff0f3; font-size: 13px; }
@media (max-width: 1100px) { .app-body { grid-template-columns: 200px minmax(0, 1fr); } .right-rail { display: none; } }
@media (max-width: 700px) { .topbar { height: 60px; } .topbar-inner { gap: 10px; padding: 0 12px; } .brand { min-width: auto; font-size: 18px; } .brand-mark { width: 31px; height: 31px; } .global-search { flex: 1; width: auto; } .global-search input { font-size: 11px; } .app-body { display: block; padding: 16px 12px 35px; } .sidebar { position: static; height: auto; padding: 0 0 14px; } .nav-caption, .sidebar-bottom { display: none; } .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav-item { min-height: 38px; } .post-card { padding: 13px; } .profile-cover { height: 145px; } .profile-stats { gap: 14px; flex-wrap: wrap; } .topbar-actions { gap: 6px; font-size: 12px; } }
