/* Content-first social layout. This is the final shared visual layer. */
:root{--bg:#101010;--surface:#161616;--surface2:#202020;--hover:#292929;--line:#303030;--text:#f2f2f2;--muted:#929292;--silver:#c4c4c4}
[data-theme=light]{--bg:#fff;--surface:#fff;--surface2:#f5f5f5;--hover:#ededed;--line:#e5e5e5;--text:#171717;--muted:#777;--silver:#666}
body,body:not(.admin-view){background:var(--bg);font-size:14px;letter-spacing:-.2px}
body .brand,body .mobile-brand{gap:0;color:var(--text);letter-spacing:-1.7px;font-family:Manrope,-apple-system,BlinkMacSystemFont,sans-serif;font-weight:800}
body .brand{font-size:30px}body .mobile-brand,body .mobile-brand-name{font-size:27px;font-weight:800;letter-spacing:-1.5px}body .brand-dot,body .mobile-brand-name>span{color:inherit}
body .panel,body:not(.admin-view) .panel,body.admin-view .panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:none}
body .primary,body:not(.admin-view) .primary{background:var(--text);border:1px solid var(--text);color:var(--bg);box-shadow:none}
body .secondary,body .small-button{background:var(--surface2);border:1px solid transparent;box-shadow:none;color:var(--text)}
body .primary,body .secondary,body .small-button{border-radius:8px;font-weight:600}
body .icon-button{border:0;background:transparent;box-shadow:none}body .icon-button:hover,body .secondary:hover{background:var(--hover)}
body .field input,body .field textarea,body .field select{box-shadow:none;border:1px solid var(--line);background:var(--surface2)}
body :focus-visible{outline:2px solid var(--muted);outline-offset:3px}
body:not(.admin-view) .sidebar{background:var(--bg);border-right:1px solid var(--line)}
body:not(.admin-view) .topbar,body.admin-view .topbar{background:var(--bg);border-bottom:1px solid var(--line);box-shadow:none}
body:not(.admin-view) .nav-link{font-size:14px;min-height:46px}
body:not(.admin-view) .nav-link.active{background:var(--surface2);border-color:transparent;box-shadow:none;font-weight:700}
body:not(.admin-view) .columns{padding-top:28px;gap:48px}
body:not(.admin-view) .feed-heading{padding:0 0 12px;border:0}body:not(.admin-view) .feed-heading h1{font-size:22px;letter-spacing:-.7px}
.feed-search{border:1px solid var(--line);border-radius:10px;background:var(--surface2);margin-bottom:14px}
.feed-search>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;color:var(--muted);cursor:pointer;list-style:none;font-size:13px}
.feed-search>summary svg{width:18px;height:18px}.feed-search>summary::-webkit-details-marker{display:none}
body:not(.admin-view) .feed-search .discovery-search{margin:0;padding:14px;border:0;border-top:1px solid var(--line);border-radius:0 0 10px 10px;background:var(--bg)}
.feed-compose{display:flex;align-items:center;gap:12px;padding:2px 0 16px;margin:0 0 14px;border-bottom:1px solid var(--line)}
.feed-compose .avatar{width:38px;height:38px}.feed-compose>button:first-of-type{flex:1;min-width:0;background:none;border:0;color:var(--muted);font-size:14px;text-align:left;min-height:44px;padding:8px 0}.feed-compose>.icon-button{color:var(--text)}
body:not(.admin-view) .nearby-panel{padding:10px 12px!important;border:1px solid var(--line);border-radius:10px!important;background:transparent;margin:0 0 12px;box-shadow:none}
body:not(.admin-view) .nearby-summary>svg{background:none;border:0;padding:0;width:20px;height:20px;border-radius:0}
.people-discovery{border-bottom:1px solid var(--line);margin:0 0 8px}.people-discovery>summary{padding:9px 0 13px;font-size:12px;color:var(--muted);cursor:pointer}.people-discovery .people-section{margin:0;padding:4px 0 12px;border:0;background:none}.people-discovery .people-section h3{display:none}
body .community-shortcuts{gap:16px;margin:0;padding:0 0 16px;border:0}body .community-shortcuts a{border:0;border-radius:0;background:none;padding:0;font-size:11px;color:var(--muted);min-height:24px}body .community-shortcuts a:first-child{color:var(--text)}
.feed-stories:has(>.feed-story-add:only-child){padding:0;margin:0 0 16px;border:0}.feed-stories>.feed-story-add:only-child{display:flex;align-items:center;gap:8px;width:auto;padding:0;background:none;border:0}.feed-stories>.feed-story-add:only-child>span{width:30px;height:30px;font-size:20px;border:1px solid var(--line);border-radius:50%;background:var(--surface2);padding:0}.feed-stories>.feed-story-add:only-child>small{margin:0;max-width:none;font-size:11px}
body:not(.admin-view) .tabs,.profile-sections{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:8px 0 20px;padding:0;gap:24px}
body:not(.admin-view) .tabs .tab,.profile-sections>button,.profile-sections>a{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;padding:12px 0;min-height:44px;font-size:12px}
body:not(.admin-view) .tabs .tab.active,.profile-sections>button[aria-pressed=true]{border-bottom-color:var(--text);color:var(--text);background:none;box-shadow:none}
body:not(.admin-view) .feed-post{padding:0 0 18px;margin:0 0 24px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;overflow:hidden}
body:not(.admin-view) .feed-post .post-head{padding:0 0 12px;gap:11px}body:not(.admin-view) .post-head .avatar{width:38px;height:38px;box-shadow:none}
body:not(.admin-view) .post-head .user-meta p{font-size:11px;line-height:1.6}body:not(.admin-view) .post-head .icon-button{background:none;border:0;box-shadow:none}
body:not(.admin-view) .feed-post .post-gallery{margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
body:not(.admin-view) .feed-post .post-actions{border:0;margin:0;padding:8px 0 0;gap:18px}body:not(.admin-view) .feed-post .post-actions button{min-height:40px;padding:4px 0;font-size:12px}
body:not(.admin-view) .text-post>.post-body{font-size:15px;line-height:1.7;padding:2px 0 10px}body:not(.admin-view) .photo-caption{line-height:1.65;padding-top:4px}
body:not(.admin-view) .inline-comments{border-top:1px solid var(--line);background:none;margin:14px 0 0;padding:16px 0 0}.thread-content{min-width:0}body .thread-form textarea{background:var(--surface2);border:1px solid var(--line);border-radius:10px}
body:not(.admin-view) .profile-hero{border:0;border-radius:0;background:none;box-shadow:none;margin:0 0 22px;overflow:visible}
body .profile-details{padding:12px 0 20px;grid-template-columns:96px minmax(0,1fr);gap:14px 28px}
body .profile-avatar{width:96px!important;height:96px!important;margin:0!important;border:1px solid var(--line);outline:0;box-shadow:none}
body .profile-name h2{font-size:23px;letter-spacing:-.7px}body .profile-name p{font-size:13px;margin-top:4px}
body .profile-stats{grid-column:2;grid-row:2;background:none;border:0;border-radius:0;gap:28px;padding:0;justify-content:flex-start}
body .profile-stats>a,body .profile-stats>div{flex:none;gap:4px;border:0;padding:0;align-items:flex-start}body .profile-stats strong{font-size:18px}body .profile-stats span{font-size:12px}
body .profile-bio{margin:6px 0 0;font-size:14px}.profile-main-actions{border:0;padding-top:4px;gap:8px}body .profile-main-actions>.secondary{flex:none;min-width:150px}
body .profile-links{border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:18px 0;gap:18px}
body:not(.admin-view) .rightbar{opacity:1}.rail-account,.rail-section,.rail-vehicle,.rail-verified{background:none;border:0;border-radius:0;box-shadow:none;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--line)}
.rail-section .rail-link{padding:10px 0}.rail-section .rail-link>svg:first-child{padding:0;background:none;border:0;width:20px;height:20px;border-radius:0}.rail-verified{background:none;margin-top:20px}.rail-account{flex-wrap:wrap;gap:10px}
body .notification-inbox{border:1px solid var(--line);border-radius:12px;box-shadow:none}.notification-group h3{background:none;border-bottom:1px solid var(--line);font-size:12px}.notification-row.unread{background:var(--surface2);box-shadow:none}body .notification-tabs button{border-radius:8px}
body .conversation-row{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;margin:0}
body .community-tile{border:1px solid var(--line);background:var(--surface);box-shadow:none}body .community-tile>svg{background:none;border:0;padding:0;width:24px!important;height:24px!important}
body dialog{border:1px solid var(--line);box-shadow:0 24px 100px #0005}body .empty{background:none;border:0;padding:36px 20px}
body.admin-view .kpi,body.admin-view .admin-table-panel,body.admin-view .admin-save-panel{border:1px solid var(--line);box-shadow:none;background:var(--surface);border-radius:10px}body.admin-view .admin-table th{background:var(--surface2)}body.admin-view .admin-table tbody tr:hover{background:var(--surface2)}
@media(min-width:1181px){body:not(.admin-view) .columns{grid-template-columns:minmax(0,580px) 250px}}
@media(max-width:700px){
 body:not(.admin-view) .columns{padding-top:16px;padding-left:16px!important;padding-right:16px!important}
 body:not(.admin-view) .feed-post{margin:0 -16px 20px;padding:0 16px 16px}
 body:not(.admin-view) .feed-post .post-gallery{margin:0 -16px;border-left:0;border-right:0;border-radius:0}
 body:not(.admin-view) .tabs{margin-left:0;margin-right:0;padding:0;gap:24px}
 body .profile-details{grid-template-columns:76px minmax(0,1fr);gap:12px 20px;padding:8px 0 12px}body .profile-avatar{width:76px!important;height:76px!important}body .profile-name h2{font-size:19px}body .profile-stats{gap:20px}body .profile-stats strong{font-size:17px}body .profile-stats span{font-size:11px}
 body .profile-main-actions>.secondary{flex:1;min-width:0;font-size:12px}.profile-sections{gap:16px}.profile-sections>button,.profile-sections>a{font-size:11px}
 body:not(.admin-view) .mobile-nav{background:var(--bg);border-top:1px solid var(--line);box-shadow:none}body:not(.admin-view) .mobile-nav .nav-link.active{background:none;border-color:transparent;box-shadow:none}body:not(.admin-view) .mobile-nav .nav-create{background:var(--text);color:var(--bg);border:0;border-radius:10px;width:36px;height:36px;flex-basis:36px;box-shadow:none}
 body .primary,body .secondary,body .icon-button{min-height:44px}.notification-inbox{margin-left:0;margin-right:0}.notification-row{padding:14px 12px}
}
[data-theme=light] body:not(.admin-view) .nav-link.active{background:var(--surface2);border-color:transparent;box-shadow:none}
[data-theme=light] .rail-vehicle{background:none}
@media(max-width:700px){[data-theme=light] body:not(.admin-view) .mobile-nav .nav-link.active{background:none}}
