*{box-sizing:border-box}
html{scroll-behavior:smooth}
:root{--red:#701322;--red-2:#8d2035;--soft:#f8eef0;--text:#17171a;--muted:#77777f;--line:#e8e8ec;--bg:#f6f6f8}
body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);padding-bottom:86px}
a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}
.icon{width:21px;height:21px;display:block;flex:none}
.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 28px;position:sticky;top:0;z-index:40}
.brand{font-size:19px;font-weight:900;display:flex;align-items:center;gap:9px;letter-spacing:-.5px;white-space:nowrap}
.brand-mark{width:32px;height:32px;border-radius:10px;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:900}
.search{height:42px;display:flex;align-items:center;background:#f3f3f5;border:1px solid transparent;border-radius:12px;max-width:600px;flex:1;margin:auto}
.search:focus-within{background:#fff;border-color:#d8d8dc}.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0 12px}.search button{border:0;background:transparent;padding:0 12px;cursor:pointer}
.top-actions{display:flex;align-items:center;gap:8px}.top-user{display:flex;align-items:center;padding:3px}.mini-avatar,.avatar,.nav-avatar{border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:800;overflow:hidden}.mini-avatar{width:35px;height:35px}.avatar{width:44px;height:44px}.avatar.small{width:34px;height:34px;font-size:12px}.avatar img,.mini-avatar img,.nav-avatar img{width:100%;height:100%;object-fit:cover}
.btn{border:0;border-radius:11px;padding:10px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-primary{background:var(--red);color:#fff}.btn-primary:hover{background:#5e101e}.btn-light{background:#fff;color:var(--red)}.btn-outline{border:1px solid var(--red);background:#fff;color:var(--red)}.btn-lg{padding:13px 20px}
.site-shell{width:100%}.content{width:min(1040px,calc(100% - 40px));margin:0 auto;padding:28px 0 20px}
.bottom-nav{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:60;width:min(720px,calc(100% - 28px));height:66px;background:rgba(255,255,255,.97);border:1px solid #dedee3;border-radius:20px;box-shadow:0 12px 38px rgba(20,20,25,.12);display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:5px}
.nav-item{position:relative;min-width:0;height:56px;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#777;font-size:10px;font-weight:700}.nav-item:hover{background:#f7f1f2;color:var(--red)}.nav-item .icon{width:21px;height:21px}.nav-item .nav-avatar{width:22px;height:22px;font-size:9px}.nav-count{position:absolute;top:4px;right:calc(50% - 20px);min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:var(--red);color:#fff;border:2px solid #fff;font-size:9px;line-height:13px;text-align:center}.nav-count.hidden{display:none}
.hero{background:linear-gradient(120deg,#5f0d1b,#8c1a2e);color:#fff;border-radius:20px;padding:34px 38px;display:flex;justify-content:space-between;align-items:center;min-height:225px;overflow:hidden;box-shadow:0 14px 40px rgba(112,19,34,.12)}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;opacity:.75;margin-bottom:9px}.hero h1{font-size:38px;line-height:1.08;margin:0 0 12px;letter-spacing:-1.4px}.hero p{opacity:.88;max-width:560px;margin:0 0 22px}.hero-orb{width:135px;height:135px;border-radius:50%;border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;font-size:64px;font-weight:900;margin-right:15px}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 13px}.section-head h1,.section-head h2,h1,h2{margin:0}.section-head h2{font-size:19px}.grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.question-list .q{display:grid;grid-template-columns:44px minmax(0,1fr) 20px;gap:13px;padding:17px;border-bottom:1px solid #eee;align-items:center}.question-list .q:last-child{border-bottom:0}.question-list .q:hover{background:#fafafa}.q-title{font-weight:750;margin-bottom:5px;line-height:1.35}.meta{font-size:12px;color:#888}.q-arrow{font-size:24px;color:#aaa}.side-card h3{margin:0;padding:17px;font-size:15px}.side-card .item{display:flex;justify-content:space-between;padding:13px 17px;border-top:1px solid #eee;font-size:13px}.side-card small{color:#999}
.form-card{max-width:700px;margin:20px auto;padding:28px}.form-group{margin-bottom:17px}.form-group label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}.input,.textarea,.select{width:100%;border:1px solid #dcdce1;border-radius:11px;padding:11px 13px;outline:0;background:#fff}.input:focus,.textarea:focus,.select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(112,19,34,.08)}.textarea{min-height:140px;resize:vertical}.alert{background:#fbecef;color:#791526;padding:12px 14px;border-radius:11px;margin-bottom:15px}.success{background:#edf8f0;color:#216b39}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.username-input{display:flex;align-items:center}.username-input>span{height:44px;padding:11px 0 11px 13px;border:1px solid #dcdce1;border-right:0;border-radius:11px 0 0 11px;color:#8a8a91;background:#fff}.username-input .input{border-radius:0 11px 11px 0}.field-help,.optional{font-size:11px;color:#999;display:block;margin-top:6px}.center{text-align:center}.text-primary{color:var(--red);font-weight:700}
.auth{max-width:560px}.auth-brand{justify-content:center;margin-bottom:24px}.auth h1{font-size:28px}.ajax-form-message{min-height:0;margin:10px 0}.error-message{padding:11px 13px;border-radius:10px;font-size:13px;font-weight:700;background:#fbecef;color:#8b1830}.auth-submit:disabled{opacity:.65;cursor:wait}
.post{padding:25px}.post-author{display:flex;gap:11px;align-items:center}.post h1{font-size:29px;line-height:1.2;margin:20px 0 14px}.post-body,.answer-body{line-height:1.75;white-space:normal;overflow-wrap:anywhere}.post-actions{border-top:1px solid #eee;margin-top:22px;padding-top:14px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#777;font-size:13px}.post-actions>a,.post-actions>span{display:inline-flex;align-items:center;gap:5px}.action-btn{border:1px solid transparent;background:#f5f5f7;cursor:pointer;color:#666;border-radius:10px;padding:8px 11px;display:inline-flex;align-items:center;gap:6px;transition:.15s}.action-btn:hover{background:#eeeef1}.ajax-like.liked{background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 5px 14px rgba(112,19,34,.16)}.ajax-like.liked:hover{background:var(--red-2)}.ajax-like:disabled{opacity:.7}.ajax-like .icon{width:18px;height:18px}.compose{padding:18px;margin-top:15px}.compose .textarea{min-height:90px;margin-bottom:10px}.answers .answer{padding:20px;border-bottom:1px solid #eee}.answers .answer:last-child{border-bottom:0}.comments .comment{padding:15px 18px;border-bottom:1px solid #eee;display:flex;gap:8px;flex-direction:column}.comments .comment small{color:#999}.comment-form{display:flex;gap:8px;padding:15px;border-top:1px solid #eee}.message-layout{display:grid;grid-template-columns:260px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:15px;min-height:580px;overflow:hidden}.conversation-list{border-right:1px solid #eee}.conversation{display:flex;gap:10px;padding:15px;border-bottom:1px solid #eee}.chat{display:flex;flex-direction:column}.chat-messages{flex:1;padding:20px}.bubble{max-width:72%;padding:10px 14px;border-radius:15px;background:#f1f1f3;margin:7px 0;overflow-wrap:anywhere}.bubble.mine{margin-left:auto;background:var(--red);color:#fff}.chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #eee}
.profile-page{width:min(820px,100%);margin:0 auto}.profile-box{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.profile-cover{height:155px;background:linear-gradient(120deg,#5f0d1b,#9b2136)}.profile-info{padding:0 28px 28px}.profile-head{display:flex;align-items:flex-end;gap:16px}.profile-head .avatar-profile{width:86px;height:86px;border:5px solid #fff;margin-top:-43px;font-size:25px}.profile-head-main{padding-bottom:5px;min-width:0}.profile-name-row{display:flex;align-items:center;gap:8px}.profile-name-row h1{font-size:27px;line-height:1.2}.profile-username{color:#777;font-size:14px;margin-top:3px}.profile-bio{line-height:1.6;margin:19px 0 12px}.profile-details{display:flex;gap:8px;flex-wrap:wrap}.profile-details span{background:#f6f6f8;border:1px solid #e9e9ed;padding:7px 10px;border-radius:999px;font-size:12px;color:#666}.profile-actions{margin-top:18px}.profile-stats{display:flex;justify-content:center;gap:80px;margin-top:25px;padding-top:18px;border-top:1px solid #eee}.profile-stats div{text-align:center;display:flex;flex-direction:column;gap:3px}.profile-stats span{font-size:12px;color:#888}.profile-posts{margin-bottom:20px}
.profile-edit-page{width:min(700px,100%);margin:0 auto}.edit-profile-card,.password-card{max-width:none}.profile-edit-avatar{display:flex;justify-content:center;margin:12px 0 20px}.avatar-large{width:96px;height:96px;font-size:29px}.locked-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.locked-fields label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}.locked-fields .input{background:#f5f5f6;color:#888}.password-card{margin-top:16px}.danger-zone{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #eee;margin-top:25px;padding-top:20px}.danger-zone p{margin:4px 0 0;color:#888;font-size:13px}
.tabs{display:flex;gap:22px;margin-bottom:13px}.tabs a{padding:9px 0;color:#777}.tabs .active{color:var(--red);font-weight:800;border-bottom:2px solid var(--red)}
.footer{width:min(1040px,calc(100% - 40px));margin:auto;padding:24px 0;color:#888;font-size:12px;display:flex;gap:14px;flex-wrap:wrap}.footer strong{color:#444}.empty{text-align:center;padding:52px 20px;color:#888}.toast{position:fixed;top:82px;left:50%;transform:translateX(-50%);z-index:100;padding:11px 15px;border-radius:11px;box-shadow:0 12px 30px rgba(0,0,0,.12);background:#fff;border:1px solid #e6e6e8;font-size:13px;font-weight:700}.toast-success{color:#216b39}.toast-error{color:#8b1830}.toast-hide{opacity:0;transform:translate(-50%,-8px);transition:.25s}

.anonymous-toggle{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 13px;background:#f8f8fa;border:1px solid #e9e9ed;border-radius:11px;margin:-3px 0 14px;font-size:13px;font-weight:700}.anonymous-toggle input{width:17px;height:17px}.anonymous-toggle small{width:100%;padding-left:25px;color:#888;font-size:11px;font-weight:500}.report-link{color:#8b1830!important}.nav-create .icon{width:22px;height:22px}.nav-create{color:var(--red)}

/* Instagram/in-app browsers can expose an 828px layout viewport on phones.
   Treat touch-sized layouts as mobile so the navigation never wraps. */
@media (max-width:900px){
  body{padding-bottom:82px;overflow-x:hidden}
  .topbar{height:62px;padding:0 14px;gap:10px}
  .brand{font-size:0}
  .brand-mark{width:32px;height:32px}
  .search{display:none}
  .top-actions{margin-left:auto}
  .top-user{display:flex}
  .top-actions .btn{padding:9px 11px;font-size:12px}
  .content{width:calc(100% - 24px);padding:17px 0}
  .grid{grid-template-columns:1fr}
  .side-card{display:none}
  .hero{padding:27px 22px;min-height:200px}
  .hero h1{font-size:29px}
  .hero-orb{width:95px;height:95px;font-size:43px;margin-right:0}
  .message-layout{grid-template-columns:1fr;min-height:520px}
  .conversation-list{display:none}
  .footer{width:calc(100% - 24px);padding:20px 0 15px}
  .bottom-nav{position:fixed;left:0;bottom:0;transform:none;width:100%;height:70px;border-radius:0;border-left:0;border-right:0;border-bottom:0;background:rgba(255,255,255,.98);box-shadow:0 -6px 24px rgba(20,20,25,.10);display:flex;align-items:stretch;justify-content:stretch;padding:4px 3px calc(4px + env(safe-area-inset-bottom));gap:0}
  .nav-item{position:relative;flex:1 1 0;width:0;min-width:0;height:60px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#777;font-size:8px;font-weight:700;line-height:1.1;overflow:hidden}
  .nav-item span{display:block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .nav-item .icon{width:20px;height:20px}
  .nav-item .nav-avatar{width:20px;height:20px;font-size:8px}
  .nav-count{top:2px;right:calc(50% - 16px);min-width:15px;height:15px;font-size:8px;line-height:11px}
  .profile-page{width:100%}
  .profile-info{padding:0 18px 22px}
  .profile-cover{height:125px}
  .profile-head{gap:11px}
  .profile-head .avatar-profile{width:72px;height:72px;margin-top:-36px;font-size:22px}
  .profile-name-row h1{font-size:21px}
  .profile-stats{gap:55px}
  .post{padding:19px}
  .post h1{font-size:24px}
  .post-actions{gap:7px}
  .form-card{padding:21px}
  .profile-edit-page{width:100%}
}
@media (max-width:900px) and (min-width:501px){
  .top-actions .btn-outline{display:none}
  .bottom-nav .nav-item{font-size:9px}
}
@media (max-width:500px){
  .top-actions .btn-outline{display:none}
  .top-actions .btn-primary{padding:8px 10px}
  .form-row,.locked-fields{grid-template-columns:1fr}
  .hero-orb{display:none}
  .question-list .q{grid-template-columns:38px minmax(0,1fr) 14px;gap:10px;padding:14px}
  .question-list .q .avatar{width:38px;height:38px}
  .profile-stats{gap:30px}
  .profile-name-row h1{font-size:20px}
  .profile-details span{font-size:11px}
  .danger-zone{align-items:flex-start;flex-direction:column}
  .post-actions .action-btn{padding:8px 10px}
  .nav-item{font-size:8px}
  .nav-item .icon{width:19px;height:19px}
}


/* V4: clean text-forum / Ekşi Sözlük inspired layout */
.mobile-search{display:none;color:var(--text);align-items:center;justify-content:center;width:40px;height:40px}
.home-intro{padding:38px 0 22px}
.home-intro .eyebrow{color:var(--red);font-size:12px;letter-spacing:2px;margin-bottom:8px}
.home-intro h1{font-size:42px;letter-spacing:-1.5px;margin:0 0 10px}
.home-intro p{font-size:19px;color:#555;margin:0}
.home-section-head{margin:18px 0 8px}
.home-section-head h2{font-size:23px}
.text-feed{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.feed-post{padding:20px 22px 15px;border-bottom:1px solid var(--line);transition:background .15s}
.feed-post:last-child{border-bottom:0}
.feed-post:hover{background:#fcfcfc}
.feed-meta{display:flex;align-items:center;gap:7px;color:#999;font-size:12px;margin-bottom:9px;flex-wrap:wrap}
.feed-meta a{font-weight:800;color:#555}
.feed-category{margin-left:4px;color:var(--red);font-weight:700}
.feed-title{display:block;font-size:19px;line-height:1.35;font-weight:800;margin-bottom:7px}
.feed-body{display:block;color:#444;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.feed-actions{display:flex;align-items:center;gap:20px;margin-top:13px;color:#777;font-size:13px}
.feed-actions a,.feed-actions .like-static{display:inline-flex;align-items:center;gap:6px}
.feed-actions .icon{width:18px;height:18px}
.feed-actions a:hover{color:var(--red)}
.like-static{color:#777}
.empty-feed{padding:70px 20px;text-align:center;color:#8b8b91;display:flex;flex-direction:column;gap:6px;font-size:15px}
.empty-feed b{font-size:19px;color:#666}

.profile-simple{width:min(680px,100%);margin:28px auto 35px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:46px 30px 42px;text-align:center;box-shadow:0 10px 35px rgba(30,20,25,.05)}
.profile-avatar-wrap{display:flex;justify-content:center;margin-bottom:18px}
.profile-simple .avatar-profile{width:112px;height:112px;font-size:34px;border:5px solid var(--soft)}
.profile-simple h1{font-size:31px;letter-spacing:-.8px;margin:0 0 9px}
.profile-simple .profile-bio{font-size:16px;color:#666;margin:0 auto 18px;line-height:1.55}
.profile-academic{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:25px}
.profile-academic span{padding:9px 14px;border-radius:999px;background:#faf7f8;border:1px solid #eadfe2;color:#555;font-size:13px;font-weight:700}
.profile-edit-btn{min-width:190px;padding:12px 22px;border-radius:13px}

@media(max-width:900px){
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom));}
  .topbar{height:64px;padding:0 16px;border-bottom:1px solid var(--line);position:sticky;top:0}
  .brand-word{display:none}
  .brand-mark{width:36px;height:36px;border-radius:11px;font-size:18px}
  .search-desktop{display:none}
  .mobile-search{display:flex}
  .top-actions{margin-left:auto;gap:6px}
  .top-actions .btn{font-size:13px;padding:9px 12px;border-radius:11px}
  .content{width:calc(100% - 24px);padding:0 0 22px}
  .home-intro{padding:27px 4px 18px}
  .home-intro h1{font-size:34px}
  .home-intro p{font-size:16px}
  .home-section-head{margin:12px 4px 9px}
  .home-section-head h2{font-size:20px}
  .text-feed{border-radius:14px}
  .feed-post{padding:17px 15px 14px}
  .feed-title{font-size:17px}
  .feed-body{font-size:14px;line-height:1.55}
  .feed-actions{margin-top:11px;gap:18px}
  .profile-simple{width:100%;margin:22px 0 26px;padding:42px 18px 36px;border-radius:18px}
  .profile-simple .avatar-profile{width:100px;height:100px;font-size:31px}
  .profile-simple h1{font-size:28px}
  .profile-simple .profile-bio{font-size:15px}
  .profile-academic{gap:7px;margin-bottom:22px}
  .profile-academic span{font-size:12px;padding:8px 12px}
  .bottom-nav{left:0;bottom:0;transform:none;width:100%;height:70px;min-height:70px;padding:4px 2px calc(4px + env(safe-area-inset-bottom));display:flex;gap:0;justify-content:space-between;align-items:stretch;border:0;border-top:1px solid #dedee3;border-radius:0;background:rgba(255,255,255,.98);box-shadow:0 -5px 20px rgba(20,20,25,.08)}
  .nav-item{flex:1 1 16.666%;width:16.666%;min-width:0;max-width:16.666%;height:62px;padding:0 1px;border-radius:9px;gap:3px;font-size:7.5px;line-height:1;overflow:hidden}
  .nav-item .icon{width:19px;height:19px;flex:0 0 19px}
  .nav-item span{width:100%;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:clip;font-weight:700;letter-spacing:-.15px}
  .nav-count{top:1px;right:calc(50% - 15px);min-width:14px;height:14px;font-size:7px;line-height:10px}
  .footer{width:calc(100% - 28px);padding:20px 0 18px;justify-content:center;text-align:center;gap:8px}
}
@media(max-width:380px){
  .nav-item{font-size:6.8px}
  .nav-item .icon{width:18px;height:18px;flex-basis:18px}
  .top-actions .btn{padding-left:9px;padding-right:9px}
}


/* V6 corrections: homepage compose + authenticated navigation + clean profile */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;width:100%;height:74px;z-index:9999;display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:space-around;margin:0;padding:5px 4px calc(5px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(0,0,0,.07)}
.bottom-nav .nav-item{position:relative;flex:1 1 0;width:auto;min-width:0;max-width:none;height:64px;padding:2px 1px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#242428;font-size:11px;font-weight:700;line-height:1.05;overflow:hidden;text-align:center}
.bottom-nav .nav-item .icon{width:22px;height:22px;flex:0 0 22px}
.bottom-nav .nav-item span{display:block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bottom-nav .nav-count{display:inline-flex;align-items:center;justify-content:center;position:static;vertical-align:middle;min-width:14px;height:14px;padding:0 4px;margin-left:2px;border-radius:999px;background:var(--red);color:#fff;font-size:8px;line-height:14px}
body{padding-bottom:86px}
.home-compose{display:flex;align-items:center;gap:13px;width:100%;margin:10px 0 28px;padding:15px 16px;background:#fff;border:1px solid #eadfe2;border-radius:16px;box-shadow:0 5px 18px rgba(30,20,25,.04);color:var(--text)}
.home-compose:hover{border-color:#d9bfc5}
.home-compose .compose-plus{width:38px;height:38px;border-radius:12px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:25px;line-height:1;flex:0 0 38px}
.home-compose strong{display:block;font-size:15px;margin-bottom:3px}.home-compose small{display:block;color:#85858c;font-size:12px}.compose-arrow{margin-left:auto;color:var(--red);font-size:22px}.home-compose-guest{opacity:.96}
.profile-clean{width:min(560px,100%);margin:42px auto 50px;text-align:center;padding:20px 18px 30px}
.profile-clean-avatar{display:flex;justify-content:center;margin-bottom:18px}.profile-clean .avatar-profile{width:104px;height:104px;font-size:34px;border:4px solid var(--soft);box-shadow:0 5px 18px rgba(112,19,34,.08)}
.profile-clean h1{margin:0 0 9px;font-size:31px;letter-spacing:-1px;line-height:1.1}.profile-clean-bio{margin:0 auto 18px;color:#666;font-size:16px;line-height:1.5}.profile-clean-academic{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-bottom:25px}.profile-clean-academic span{padding:9px 14px;border-radius:999px;background:#fff;border:1px solid #e8dadd;color:#5d5d62;font-size:13px;font-weight:700}.profile-clean-edit{min-width:190px;padding:12px 22px;border-radius:13px}
@media(max-width:900px){.bottom-nav{height:72px}.bottom-nav .nav-item{height:62px;font-size:10px}.bottom-nav .nav-item .icon{width:22px;height:22px;flex-basis:22px}.content{width:calc(100% - 32px)}.home-intro{padding:30px 2px 18px}.home-compose{margin:8px 0 24px}.profile-clean{margin:34px auto 34px;padding-top:10px}.profile-clean .avatar-profile{width:96px;height:96px;font-size:31px}.profile-clean h1{font-size:29px}}
@media(max-width:500px){.bottom-nav{padding-left:7px;padding-right:7px}.bottom-nav .nav-item{font-size:9px}.bottom-nav .nav-item .icon{width:21px;height:21px;flex-basis:21px}.home-intro h1{font-size:34px}.home-intro p{font-size:16px}.profile-clean{width:100%;margin-top:28px}.profile-clean-academic span{font-size:12px;padding:8px 12px}}

/* V7 — professional messaging + live notification counters */
.bottom-nav .nav-with-badge .nav-count{position:absolute;top:4px;right:calc(50% - 25px);margin:0;min-width:17px;height:17px;padding:0 5px;border:2px solid #fff;font-size:9px;line-height:13px;box-shadow:0 2px 7px rgba(112,19,34,.2)}
.bottom-nav .nav-count.hidden{display:none}
.live-toast{position:fixed;top:84px;right:18px;z-index:10050;display:flex;align-items:center;gap:10px;max-width:320px;padding:12px 15px;border-radius:14px;background:#fff;border:1px solid #eadadd;box-shadow:0 14px 40px rgba(25,20,25,.16);transform:translateY(-12px);opacity:0;pointer-events:none;transition:.22s ease}
.live-toast.show{transform:translateY(0);opacity:1}.live-toast .live-dot{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px #f7e7ea;flex:0 0 auto}.live-toast strong{display:block;font-size:13px;color:var(--red)}.live-toast small{display:block;margin-top:2px;color:#777;font-size:11px}
.chat-page{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:650px;display:flex;flex-direction:column;box-shadow:0 8px 28px rgba(20,20,25,.04)}
.chat-top{height:72px;display:flex;align-items:center;gap:11px;padding:12px 18px;border-bottom:1px solid var(--line)}.back-link{font-size:27px;color:#666;margin-right:3px}.chat-top .avatar{width:42px;height:42px}.chat-messages{flex:1;min-height:450px;padding:22px;overflow:auto;background:#fcfcfd;display:flex;flex-direction:column}.bubble{position:relative;max-width:min(72%,520px);padding:11px 13px 18px;border-radius:16px;background:#f0f0f3;margin:6px 0;color:var(--text);line-height:1.5}.bubble.mine{background:var(--red);color:#fff}.bubble time{position:absolute;right:10px;bottom:4px;font-size:9px;opacity:.62}.empty-chat{text-align:center;margin:auto;color:#777;line-height:1.6}.empty-chat span{font-size:12px;color:#999}.chat-form{display:flex;gap:9px;padding:13px;border-top:1px solid var(--line);background:#fff}.chat-form .input{height:44px}.chat-form .btn{width:46px;padding:0}.message-inbox{overflow:hidden}.conversation-modern{position:relative;align-items:center;min-height:78px;padding:15px 18px;transition:.15s;background:#fff}.conversation-modern:hover{background:#faf7f8}.conversation-copy{min-width:0;flex:1}.conversation-copy .meta{margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inbox-count{min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:10px}.notification-list{overflow:hidden}.notification-row{display:flex;gap:12px;padding:17px 18px;border-bottom:1px solid #eee;align-items:flex-start}.notification-row:last-child{border-bottom:0}.notification-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f8e8eb;color:var(--red);font-size:10px;flex:0 0 auto}
@media(max-width:600px){.live-toast{left:14px;right:14px;top:76px;max-width:none}.chat-page{margin-left:-2px;margin-right:-2px;border-radius:15px;min-height:calc(100vh - 180px)}.chat-messages{min-height:calc(100vh - 330px);padding:16px}.bubble{max-width:86%}.chat-top{padding:11px 13px}.bottom-nav .nav-with-badge .nav-count{right:calc(50% - 23px);top:3px}}


/* V8 — final mobile/desktop layout and realtime UX */
body{padding-bottom:0;background:#f7f7f9}
.topbar{min-height:68px}
.content{padding-bottom:34px}
.bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;height:76px!important;min-height:76px!important;margin:0!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:space-between!important;gap:0!important;background:rgba(255,255,255,.98)!important;border:0!important;border-top:1px solid #e1e1e5!important;border-radius:0!important;box-shadow:0 -8px 24px rgba(25,20,25,.08)!important;z-index:9999!important}
.bottom-nav .nav-item{position:relative!important;flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;height:64px!important;padding:4px 2px!important;border-radius:12px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;color:#34343a!important;font-size:10px!important;font-weight:700!important;line-height:1.1!important;overflow:visible!important;text-align:center!important}
.bottom-nav .nav-item.active{color:var(--red)!important;background:#fbf3f5!important}
.bottom-nav .nav-item .icon{width:22px!important;height:22px!important;flex:0 0 22px!important}
.bottom-nav .nav-item span{display:block!important;white-space:nowrap!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important}
.bottom-nav .nav-count,.bottom-nav .nav-with-badge .nav-count{position:absolute!important;top:1px!important;right:calc(50% - 25px)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;height:18px!important;padding:0 5px!important;margin:0!important;border:2px solid #fff!important;border-radius:999px!important;background:#c51d3b!important;color:#fff!important;font-size:9px!important;line-height:14px!important;font-weight:800!important;box-shadow:0 2px 7px rgba(112,19,34,.2)!important}
.bottom-nav .nav-count.hidden{display:none!important}
body{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
.home-intro{padding-top:28px}
.home-compose{border:1px solid #eadfe2!important;box-shadow:0 4px 16px rgba(30,20,25,.04)!important}
.text-feed{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.feed-post{background:#fff}
.profile-clean{width:min(560px,100%);margin:34px auto 42px;padding:36px 22px 40px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 34px rgba(30,20,25,.05);text-align:center}
.profile-clean-avatar{margin-bottom:18px}
.profile-clean .avatar-profile{width:108px;height:108px;font-size:35px;border:4px solid var(--soft);box-shadow:0 6px 18px rgba(112,19,34,.09)}
.profile-clean h1{font-size:32px;line-height:1.1;margin:0 0 8px;letter-spacing:-1px}
.profile-student{color:#6d6d73;font-size:16px;margin-bottom:12px}
.profile-academic-line{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;color:#242428;font-size:15px;font-weight:700}
.profile-academic-line .dot{color:#a2a2a7}
.profile-clean-bio{max-width:450px;margin:15px auto 22px;color:#777;line-height:1.55;font-size:14px}
.profile-clean-edit{margin-top:24px;min-width:190px;padding:13px 22px;border-radius:13px}
.chat-page{margin-bottom:0}
.chat-messages{scroll-behavior:smooth}
.bubble{white-space:pre-wrap}
@media(max-width:700px){
 body{background:#f7f7f9}
 .topbar{height:64px;padding:0 16px}
 .content{width:calc(100% - 24px);padding-top:0}
 .profile-clean{margin:24px 0 30px;padding:32px 18px 34px;border-radius:18px}
 .profile-clean .avatar-profile{width:96px;height:96px;font-size:31px}
 .profile-clean h1{font-size:29px}
 .profile-student{font-size:15px}
 .profile-academic-line{font-size:14px}
 .bottom-nav{height:74px!important;min-height:74px!important;padding-left:5px!important;padding-right:5px!important}
 .bottom-nav .nav-item{height:62px!important;font-size:9px!important}
 .bottom-nav .nav-item .icon{width:21px!important;height:21px!important;flex-basis:21px!important}
 .bottom-nav .nav-count,.bottom-nav .nav-with-badge .nav-count{right:calc(50% - 22px)!important;top:2px!important}
 .footer{padding-bottom:20px}
}
@media(max-width:390px){
 .bottom-nav .nav-item{font-size:8.5px!important}
 .bottom-nav .nav-item .icon{width:20px!important;height:20px!important;flex-basis:20px!important}
}


/* V9 — verified identity + polished profile banner */
.username-with-badge{display:inline-flex;align-items:center;gap:5px;min-width:0;vertical-align:middle}
.username-with-badge>a{display:inline;color:inherit;text-decoration:none}
.verified-badge{display:inline-grid;place-items:center;width:16px;height:16px;flex:0 0 16px;border-radius:50%;background:var(--red);color:#fff;font-size:10px;font-weight:900;line-height:1;box-shadow:0 1px 3px rgba(112,19,34,.18)}
.anonymous-label{font-weight:800;color:#6d6d73}
.feed-meta .username-with-badge{font-weight:800;color:#555}
.profile-clean{padding:0!important;overflow:hidden!important;position:relative}
.profile-banner{height:190px;position:relative;overflow:hidden;background:linear-gradient(135deg,#5f0b1d 0%,#7b1025 45%,#a52b43 100%);color:#fff;text-align:left}
.profile-banner:before{content:"";position:absolute;inset:-45% -15% auto auto;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.09);box-shadow:-80px 100px 0 rgba(255,255,255,.035)}
.profile-banner:after{content:"";position:absolute;left:-8%;right:-8%;bottom:-75px;height:130px;border-radius:50% 50% 0 0/100% 100% 0 0;background:#fff;opacity:.98}
.profile-banner-brand{position:absolute;left:28px;top:25px;font-size:13px;letter-spacing:3px;font-weight:900;opacity:.96}
.profile-banner-sub{position:absolute;left:28px;top:49px;font-size:11px;letter-spacing:.2px;opacity:.68}
.banner-orb{position:absolute;border:1px solid rgba(255,255,255,.2);border-radius:50%}.banner-orb-1{width:90px;height:90px;right:45px;top:26px}.banner-orb-2{width:145px;height:145px;right:-45px;top:4px}.banner-line{position:absolute;width:170px;height:1px;right:65px;top:105px;background:rgba(255,255,255,.22);transform:rotate(-24deg);transform-origin:center}
.profile-clean-inner{position:relative;margin-top:-48px;z-index:2;padding:0 22px 34px}
.profile-clean-avatar{margin:0 0 12px;display:flex;justify-content:center}.profile-clean .avatar-profile{width:104px;height:104px;font-size:34px;border:5px solid #fff;box-shadow:0 8px 24px rgba(60,10,25,.16)}
.profile-clean h1{margin:0 0 8px;font-size:25px;letter-spacing:-.55px;line-height:1.15}.profile-clean h1 .username-with-badge{justify-content:center}.profile-clean h1 .verified-badge{width:17px;height:17px;flex-basis:17px;font-size:10px}
.profile-academic-line{font-size:14px}.profile-clean-bio{max-width:430px;margin:14px auto 20px;font-size:14px}.profile-clean-edit{margin-top:20px}
@media(max-width:700px){.profile-banner{height:172px}.profile-banner-brand{left:22px;top:22px;font-size:12px}.profile-banner-sub{left:22px;top:45px}.profile-clean-inner{margin-top:-43px;padding:0 17px 31px}.profile-clean .avatar-profile{width:94px;height:94px;font-size:30px}.profile-clean h1{font-size:23px}.profile-academic-line{font-size:13px}.verified-badge{width:15px;height:15px;flex-basis:15px;font-size:9px}.profile-clean h1 .verified-badge{width:16px;height:16px;flex-basis:16px}}


/* V10 — polished verified badge, persistent AJAX likes and redesigned profile */
.username-with-badge{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap}
.verified-badge{display:inline-grid;place-items:center;width:17px;height:17px;flex:0 0 17px;border-radius:50%;background:#b71936;color:#fff;box-shadow:0 1px 4px rgba(112,19,34,.22);vertical-align:middle}
.verified-badge svg{width:11px;height:11px;display:block;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.profile-clean{width:min(620px,100%);margin:30px auto 42px;padding:0!important;background:#fff;border:1px solid #e5e5e9;border-radius:26px;box-shadow:0 18px 50px rgba(35,20,25,.08);overflow:hidden!important;text-align:center;position:relative}
.profile-banner{height:188px;position:relative;overflow:hidden;background:linear-gradient(135deg,#57091b 0%,#741025 46%,#a72d48 100%);color:#fff;text-align:left}
.profile-banner:before{content:"";position:absolute;width:320px;height:320px;right:-110px;top:-180px;border-radius:50%;border:1px solid rgba(255,255,255,.2);box-shadow:0 0 0 32px rgba(255,255,255,.035),0 0 0 66px rgba(255,255,255,.025)}
.profile-banner:after{content:"O";position:absolute;right:24px;bottom:-60px;font-size:230px;line-height:1;font-weight:900;color:rgba(255,255,255,.07);letter-spacing:-25px}
.profile-banner-brand{position:absolute;left:27px;top:25px;font-size:14px;letter-spacing:4px;font-weight:900;z-index:2}
.profile-banner-sub{position:absolute;left:27px;top:52px;font-size:12px;letter-spacing:.15px;opacity:.78;z-index:2}
.banner-orb{position:absolute;border:1px solid rgba(255,255,255,.17);border-radius:50%;z-index:1}.banner-orb-1{width:82px;height:82px;right:76px;top:28px}.banner-orb-2{width:132px;height:132px;right:-38px;top:10px}.banner-line{position:absolute;width:180px;height:1px;right:42px;top:108px;background:rgba(255,255,255,.18);transform:rotate(-25deg);z-index:1}
.profile-clean-inner{position:relative;margin-top:-54px;z-index:3;padding:0 24px 34px}
.profile-clean-avatar{display:flex;justify-content:center;margin:0 0 13px}
.profile-clean .avatar-profile{width:108px;height:108px;font-size:35px;border:6px solid #fff;box-shadow:0 10px 28px rgba(55,10,24,.2)}
.profile-clean h1{margin:0 0 9px;font-size:24px;line-height:1.15;letter-spacing:-.45px;font-weight:800}
.profile-clean h1 .username-with-badge{justify-content:center}
.profile-clean h1 .verified-badge{width:19px;height:19px;flex-basis:19px}.profile-clean h1 .verified-badge svg{width:12px;height:12px}
.profile-academic-line{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;color:#29292d;font-size:14px;font-weight:700}.profile-academic-line .dot{color:#a5a5aa}
.profile-clean-bio{max-width:450px;margin:13px auto 0;color:#777;line-height:1.5;font-size:14px}
.profile-clean-edit{margin-top:20px;min-width:220px;padding:13px 22px;border-radius:14px}
.like-static{border:0;background:transparent;color:#777;cursor:pointer;padding:2px 3px;display:inline-flex;align-items:center;gap:6px;font:inherit}.like-static .icon{width:20px;height:20px;transition:transform .16s ease,fill .16s ease}.like-static:hover .icon{transform:scale(1.06)}
.like-static.liked{color:#c51d3b;background:transparent;box-shadow:none}.like-static.liked .icon{fill:currentColor;stroke:currentColor}.like-static:disabled{opacity:.65;cursor:wait}
.q{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}.q-main{display:grid;grid-template-columns:44px minmax(0,1fr);gap:13px;align-items:center;padding:17px}.q-side{display:flex;align-items:center;gap:7px;padding-right:12px}.q-side .q-arrow{padding:8px;color:#aaa}.question-list .q:hover{background:#fafafa}.question-list .q{border-bottom:1px solid #eee}.question-list .q:last-child{border-bottom:0}
.feed-actions .like-static{font-size:inherit}.feed-actions .like-static .icon{width:19px;height:19px}
.action-btn.ajax-like{transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}.action-btn.ajax-like:active{transform:scale(.97)}
.action-btn.ajax-like.liked{background:#fff0f2;color:#c51d3b;border-color:#f0cbd2;box-shadow:none}.action-btn.ajax-like.liked .icon{fill:currentColor;stroke:currentColor}
@media(max-width:700px){
 .profile-clean{margin:22px 0 34px;border-radius:22px}.profile-banner{height:174px}.profile-banner-brand{left:21px;top:22px;font-size:12px}.profile-banner-sub{left:21px;top:46px;font-size:11px}.profile-clean-inner{margin-top:-48px;padding:0 17px 30px}.profile-clean .avatar-profile{width:96px;height:96px;font-size:31px;border-width:5px}.profile-clean h1{font-size:22px}.profile-academic-line{font-size:13px}.profile-clean-edit{min-width:210px}.q-main{padding:15px 9px 15px 14px;grid-template-columns:42px minmax(0,1fr);gap:11px}.q-side{padding-right:9px;gap:3px}.q-side .like-static{font-size:11px}.q-side .q-arrow{font-size:22px;padding:6px}.verified-badge{width:16px;height:16px;flex-basis:16px}.verified-badge svg{width:10px;height:10px}
}


/* V11 — clean interaction layout, verified identity and profile publications */
.feed-author-row{display:flex;align-items:center;gap:12px;margin-bottom:13px;min-width:0}
.feed-avatar-link{flex:0 0 auto;display:block}
.feed-avatar{width:40px;height:40px;font-size:14px}
.feed-author-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.feed-meta-author{margin:0;gap:7px;min-width:0;display:flex;align-items:center;flex-wrap:wrap}
.feed-author-bio{display:block;color:#888;font-size:11px;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feed-submeta{display:flex;align-items:center;gap:6px;color:#999;font-size:11px;line-height:1.2}
.feed-submeta span:first-child{color:var(--red);font-weight:700}
.feed-actions{gap:28px!important;margin-top:16px!important;padding-top:2px}
.feed-actions a,.feed-actions .like-static{min-width:34px;justify-content:flex-start}
.feed-comment-action{color:#777}
.like-static,.action-btn.ajax-like{border:0!important;background:transparent!important;box-shadow:none!important;color:#777!important;border-radius:0!important;padding:3px 2px!important}
.like-static .icon,.action-btn.ajax-like .icon{width:21px!important;height:21px!important;transition:transform .16s ease,fill .16s ease,stroke .16s ease}
.like-static.liked,.action-btn.ajax-like.liked{color:#c51d3b!important;background:transparent!important;border-color:transparent!important}
.like-static.liked .icon,.action-btn.ajax-like.liked .icon{fill:currentColor!important;stroke:currentColor!important}
.like-static:active .icon,.action-btn.ajax-like:active .icon{transform:scale(.9)}
.post-actions{gap:28px!important;align-items:center!important}
.post-actions .post-action-comment,.post-actions .ajax-like,.post-actions .post-view-count{margin:0}
.post-actions .post-action-comment,.post-actions .ajax-like{display:inline-flex;align-items:center;gap:7px;color:#777}
.post-actions .post-action-comment:hover{color:var(--red)}
.post-actions .ajax-like{font-size:13px}
.post-actions .report-link{margin-left:auto}
.q-main{min-width:0}
.q-copy{min-width:0}
.q-author-line{display:flex;align-items:center;gap:6px;margin-top:1px;font-size:12px;color:#555}
.q-bio{font-size:11px;color:#8b8b92;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}
.q-submeta{margin-top:3px}
.q-side{gap:18px!important}
.q-side .like-static{min-width:34px}
.profile-posts-section{margin:0 auto 42px;width:min(620px,100%)}
.profile-posts-head{display:flex;align-items:end;justify-content:space-between;margin:0 2px 12px}
.profile-posts-eyebrow{display:block;font-size:10px;letter-spacing:2px;color:#9a5361;font-weight:900;margin-bottom:4px}
.profile-posts-head h2{font-size:24px;letter-spacing:-.5px}
.profile-posts-count{min-width:30px;height:30px;padding:0 9px;border-radius:999px;background:#f7edef;color:var(--red);display:grid;place-items:center;font-weight:800;font-size:12px}
.profile-posts-list{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.profile-post-card{padding:19px 20px;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;gap:18px}
.profile-post-card:last-child{border-bottom:0}
.profile-post-main{display:block;min-width:0;flex:1}
.profile-post-title{font-size:17px;font-weight:800;line-height:1.35;margin-bottom:6px}
.profile-post-body{font-size:13px;color:#555;line-height:1.5;overflow-wrap:anywhere}
.profile-post-meta{display:flex;gap:6px;align-items:center;color:#999;font-size:11px;margin-top:9px}
.profile-post-meta span:first-child{color:var(--red);font-weight:700}
.profile-post-actions{display:flex;align-items:center;gap:22px;flex:0 0 auto}
.profile-post-actions a,.profile-post-actions button{display:inline-flex;align-items:center;gap:6px;color:#777;font-size:12px}
.profile-post-actions .icon{width:18px;height:18px}
.profile-posts-empty{padding:42px 20px;text-align:center;color:#777;display:flex;flex-direction:column;gap:5px}
.profile-posts-empty span{font-size:12px;color:#999}
@media(max-width:700px){
 .feed-avatar{width:38px;height:38px}
 .feed-author-bio{max-width:210px}
 .feed-actions{gap:30px!important}
 .post-actions{gap:24px!important;flex-wrap:wrap}
 .post-actions .report-link{margin-left:0}
 .q-side{gap:14px!important}
 .profile-posts-section{width:100%;margin-top:0}
 .profile-post-card{padding:17px 15px;gap:12px;align-items:center}
 .profile-post-title{font-size:16px}
 .profile-post-actions{gap:16px}
}

/* V12 — separated like/comment controls: like first, comment second */
.feed-actions,
.profile-post-actions,
.post-social-actions{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:14px!important;
}

.feed-actions{
  margin-top:18px!important;
  padding-top:0!important;
}

.feed-actions .like-static,
.feed-actions .feed-comment-action,
.profile-post-actions .like-static,
.profile-post-actions > a,
.post-social-actions .ajax-like,
.post-social-actions .post-action-comment{
  margin:0!important;
  min-width:0!important;
  width:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  padding:2px 0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#777!important;
  text-decoration:none!important;
}

.feed-actions .like-static.liked,
.profile-post-actions .like-static.liked,
.post-social-actions .ajax-like.liked{
  color:#c51d3b!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.feed-actions .like-static.liked .icon,
.profile-post-actions .like-static.liked .icon,
.post-social-actions .ajax-like.liked .icon{
  fill:currentColor!important;
  stroke:currentColor!important;
}

.feed-actions .icon,
.profile-post-actions .icon,
.post-social-actions .icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
}

.post-actions{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:18px!important;
}

.post-social-actions{
  width:100%;
  gap:16px!important;
}

.post-actions .post-view-count,
.post-actions > a:not(.report-link){
  margin:0!important;
}

.post-actions .report-link{
  margin-left:0!important;
}

/* Never let the active heart paint a button-shaped background. */
.ajax-like,
.like-static,
.ajax-like:hover,
.like-static:hover,
.ajax-like:focus,
.like-static:focus,
.ajax-like.liked,
.like-static.liked{
  -webkit-appearance:none!important;
  appearance:none!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  outline:none;
}

@media(max-width:700px){
  .feed-actions{gap:13px!important}
  .post-social-actions{gap:15px!important}
  .post-actions{gap:17px!important}
}

/* V13 — horizontal interaction row + owner post menu */
.feed-actions,
.profile-post-actions,
.post-social-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:32px!important;
}
.feed-actions{margin-top:18px!important;padding-top:0!important}
.feed-actions .like-static,
.feed-actions .feed-comment-action,
.profile-post-actions .like-static,
.profile-post-actions > a,
.post-social-actions .ajax-like,
.post-social-actions .post-action-comment{
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:3px 0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#777!important;
  text-decoration:none!important;
  white-space:nowrap;
}
.feed-actions .like-static.liked,
.profile-post-actions .like-static.liked,
.post-social-actions .ajax-like.liked{color:#c51d3b!important}
.feed-actions .like-static.liked .icon,
.profile-post-actions .like-static.liked .icon,
.post-social-actions .ajax-like.liked .icon{fill:currentColor!important;stroke:currentColor!important}
.feed-actions .icon,
.profile-post-actions .icon,
.post-social-actions .icon{width:22px!important;height:22px!important;flex:0 0 22px!important}
.post-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:18px!important}
.post-social-actions{width:auto!important;gap:34px!important}
.post-author{position:relative;display:flex;align-items:center;gap:12px}
.post-author-copy{min-width:0;flex:1}
.post-manage{position:relative;flex:0 0 auto;margin-left:auto;align-self:flex-start}
.post-manage-trigger{width:38px;height:38px;border:0;background:transparent;border-radius:12px;color:#777;display:grid;place-items:center;cursor:pointer}
.post-manage-trigger:hover,.post-manage.open .post-manage-trigger{background:#f7edef;color:var(--red)}
.post-manage-trigger .icon{width:22px!important;height:22px!important}
.post-manage-menu{display:none;position:absolute;right:0;top:43px;width:205px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 14px 35px rgba(24,10,15,.14);z-index:30}
.post-manage.open .post-manage-menu{display:block}
.post-manage-menu a,.post-manage-menu button{width:100%;border:0;background:transparent;text-decoration:none;color:#333;display:flex;align-items:center;gap:10px;padding:11px 10px;border-radius:10px;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.post-manage-menu a:hover,.post-manage-menu button:hover{background:#faf1f3;color:var(--red)}
.post-manage-menu .icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
.post-manage-menu form{margin:0}
.post-manage-menu form button{color:#b31734}
.edit-post-page{max-width:620px;margin:0 auto 50px}
.edit-post-form{padding:24px;display:flex;flex-direction:column;gap:18px}
.edit-post-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:800;color:#333}
.edit-post-form textarea.input{resize:vertical;min-height:150px;line-height:1.5}
.edit-post-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:4px}
@media(max-width:700px){
  .feed-actions,.profile-post-actions{gap:28px!important}
  .post-social-actions{gap:30px!important}
  .post-manage-menu{right:-2px;width:195px}
  .edit-post-form{padding:18px}
  .edit-post-actions{justify-content:stretch}
  .edit-post-actions .btn{flex:1;text-align:center}
}

/* V14 FINAL — interaction row, avatar fallback and reliable owner menu */
.feed-actions,
.profile-post-actions,
.post-social-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  column-gap:38px!important;
  row-gap:0!important;
}

.feed-actions > *,
.profile-post-actions > *,
.post-social-actions > *{
  flex:0 0 auto!important;
}

.feed-actions .like-static,
.feed-actions .feed-comment-action,
.profile-post-actions .like-static,
.profile-post-actions > a,
.post-social-actions .ajax-like,
.post-social-actions .post-action-comment{
  width:auto!important;
  min-width:46px!important;
  margin:0!important;
  padding:3px 0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#777!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer;
}

.feed-actions .like-static.liked,
.profile-post-actions .like-static.liked,
.post-social-actions .ajax-like.liked{
  color:#c51d3b!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.feed-actions .like-static .icon,
.profile-post-actions .like-static .icon,
.post-social-actions .ajax-like .icon,
.feed-actions .feed-comment-action .icon,
.profile-post-actions > a .icon,
.post-social-actions .post-action-comment .icon{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
}

.feed-actions .like-static.liked .icon,
.profile-post-actions .like-static.liked .icon,
.post-social-actions .ajax-like.liked .icon{
  fill:currentColor!important;
  stroke:currentColor!important;
}

/* Never paint a rectangular background behind the heart. */
.ajax-like,
.ajax-like:hover,
.ajax-like:focus,
.ajax-like:active,
.ajax-like.liked,
.like-static,
.like-static:hover,
.like-static:focus,
.like-static:active,
.like-static.liked{
  -webkit-appearance:none!important;
  appearance:none!important;
  outline:none!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

/* Avatar image failures fall back to the user's initial instead of a broken-image icon. */
.avatar-image{position:relative}
.avatar-image .avatar-fallback-letter{display:none;width:100%;height:100%;place-items:center;color:#fff;font:inherit;font-weight:800}
.avatar-image img{position:relative;z-index:1}

/* Keep the three-dot menu above feed cards and make its controls tappable on mobile Safari. */
.feed-author-row,
.post-author{position:relative;z-index:5;overflow:visible!important}
.post-manage{position:relative;z-index:100;pointer-events:auto!important}
.post-manage-trigger{position:relative;z-index:101;pointer-events:auto!important;touch-action:manipulation}
.post-manage-menu{z-index:1000!important;pointer-events:auto!important;overflow:visible!important}
.post-manage-menu a,
.post-manage-menu button{pointer-events:auto!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.post-manage-menu form{display:block!important;pointer-events:auto!important}

@media(max-width:700px){
  .feed-actions,
  .profile-post-actions,
  .post-social-actions{column-gap:34px!important}
}

/* V15 — owner menu is always top-right and usable on mobile */
.feed-post,
.profile-post-card,
.card.post{
  position:relative!important;
  overflow:visible!important;
}

.text-feed,
.profile-posts-list{
  overflow:visible!important;
}

.feed-author-row{
  position:relative!important;
  padding-right:48px!important;
  z-index:6!important;
}

.profile-post-main{
  padding-right:52px!important;
}

.post-author{
  position:relative!important;
  padding-right:48px!important;
  z-index:6!important;
}

.feed-post > .post-manage,
.profile-post-card > .post-manage,
.card.post .post-author > .post-manage{
  position:absolute!important;
  top:13px!important;
  right:13px!important;
  margin:0!important;
  align-self:auto!important;
  z-index:100!important;
}

.post-manage-trigger{
  width:42px!important;
  height:42px!important;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:#f8f0f2!important;
  color:var(--red)!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  touch-action:manipulation!important;
  pointer-events:auto!important;
}

.post-manage-trigger:active,
.post-manage.open .post-manage-trigger,
.post-manage:focus-within .post-manage-trigger{
  background:#f2e4e7!important;
  color:var(--red)!important;
}

.post-manage-menu,
.post-manage.open .post-manage-menu,
.post-manage:focus-within .post-manage-menu{
  position:absolute!important;
  top:46px!important;
  right:0!important;
  width:210px!important;
  min-width:210px!important;
  padding:7px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:15px!important;
  box-shadow:0 16px 40px rgba(24,10,15,.18)!important;
  z-index:10000!important;
  pointer-events:auto!important;
}

.post-manage-menu{display:none!important}
.post-manage.open .post-manage-menu,
.post-manage:focus-within .post-manage-menu{display:block!important}

.post-manage-menu a,
.post-manage-menu button{
  position:relative!important;
  z-index:10001!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}

@media(max-width:700px){
  .feed-author-row{padding-right:50px!important}
  .profile-post-main{padding-right:54px!important}
  .post-author{padding-right:50px!important}
  .feed-post > .post-manage,
  .profile-post-card > .post-manage,
  .card.post .post-author > .post-manage{top:12px!important;right:10px!important}
  .post-manage-trigger{width:40px!important;height:40px!important}
  .post-manage-menu{width:210px!important;min-width:210px!important}
}


/* V15.1 — same top-right owner control on Discover cards */
.question-list .q{
  position:relative!important;
  overflow:visible!important;
}
.question-list .q-main{
  padding-right:58px!important;
}
.question-list .q > .q-side{
  padding-right:12px!important;
}
.question-list .q > .post-manage{
  position:absolute!important;
  top:11px!important;
  right:10px!important;
  margin:0!important;
  z-index:100!important;
}
@media(max-width:700px){
  .question-list .q-main{padding-right:55px!important}
  .question-list .q > .post-manage{top:9px!important;right:8px!important}
}


/* V16 — definitive owner post menu
   - plain three dots, no red/pink button background
   - always top-right of the post card
   - same placement on Home, Discover, Profile and Post Detail
   - menu remains tappable on mobile */
.feed-post,
.profile-post-card,
.question-list .q,
.card.post{
  position:relative!important;
  overflow:visible!important;
}

.feed-post > .post-manage,
.profile-post-card > .post-manage,
.question-list .q > .post-manage,
.card.post .post-author > .post-manage{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  margin:0!important;
  z-index:200!important;
}

.post-manage{
  position:absolute!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
  pointer-events:auto!important;
}

.post-manage-trigger,
.post-manage-trigger:hover,
.post-manage-trigger:focus,
.post-manage-trigger:active,
.post-manage.open .post-manage-trigger,
.post-manage:focus-within .post-manage-trigger{
  width:34px!important;
  height:34px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  outline:none!important;
  border-radius:0!important;
  background:transparent!important;
  color:#666!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}

.post-manage-trigger .icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  color:currentColor!important;
  display:block!important;
}

.post-manage-menu{
  display:none!important;
  position:absolute!important;
  top:36px!important;
  right:0!important;
  width:210px!important;
  min-width:210px!important;
  padding:7px!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:0 14px 35px rgba(24,10,15,.14)!important;
  z-index:10000!important;
  pointer-events:auto!important;
}

.post-manage.open .post-manage-menu{
  display:block!important;
}

.post-manage-menu a,
.post-manage-menu button{
  width:100%!important;
  min-height:42px!important;
  box-sizing:border-box!important;
  border:0!important;
  background:transparent!important;
  color:#333!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 11px!important;
  border-radius:10px!important;
  text-decoration:none!important;
  font:inherit!important;
  font-size:13px!important;
  text-align:left!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}

.post-manage-menu a:hover,
.post-manage-menu button:hover{
  background:#f7f7f8!important;
  color:#333!important;
}

.post-manage-menu form{
  display:block!important;
  margin:0!important;
  padding:0!important;
}

.post-manage-menu .icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:currentColor!important;
}

.feed-author-row,
.post-author{
  overflow:visible!important;
}

.feed-author-row{
  padding-right:46px!important;
}

.profile-post-main{
  padding-right:48px!important;
}

.post-author{
  padding-right:46px!important;
}

.question-list .q-main{
  padding-right:52px!important;
}

.question-list .q-side{
  position:relative!important;
  z-index:1!important;
}

@media(max-width:700px){
  .feed-post > .post-manage,
  .profile-post-card > .post-manage,
  .question-list .q > .post-manage,
  .card.post .post-author > .post-manage{
    top:10px!important;
    right:9px!important;
  }

  .post-manage,
  .post-manage-trigger{
    width:34px!important;
    height:34px!important;
  }

  .post-manage-menu{
    top:36px!important;
    right:0!important;
    width:210px!important;
    min-width:210px!important;
  }

  .feed-author-row{
    padding-right:44px!important;
  }

  .profile-post-main{
    padding-right:45px!important;
  }

  .post-author{
    padding-right:44px!important;
  }

  .question-list .q-main{
    padding-right:48px!important;
  }

  /* Keep interaction controls in one horizontal row with clear spacing. */
  .feed-actions,
  .profile-post-actions,
  .post-social-actions{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    column-gap:34px!important;
    row-gap:0!important;
  }
}


/* V16.1 FINAL — owner post menu: one DOM position + one visual position everywhere.
   The control is a plain three-dot button in the card's top-right corner.
   The menu is anchored to that same corner and never participates in the post layout. */
.feed-post,
.profile-post-card,
.question-list .q,
.card.post{
  position:relative!important;
  overflow:visible!important;
}

.feed-post > .post-manage,
.profile-post-card > .post-manage,
.question-list .q > .post-manage,
.card.post > .post-manage{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  left:auto!important;
  bottom:auto!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  z-index:500!important;
  transform:none!important;
}

.post-manage-trigger,
.post-manage-trigger:hover,
.post-manage-trigger:focus,
.post-manage-trigger:active,
.post-manage.open .post-manage-trigger,
.post-manage:focus-within .post-manage-trigger{
  width:34px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#666!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}

.post-manage-trigger .icon{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  display:block!important;
  flex:0 0 22px!important;
  color:currentColor!important;
}

.post-manage-menu,
.post-manage.open .post-manage-menu,
.post-manage:focus-within .post-manage-menu{
  position:absolute!important;
  top:40px!important;
  right:0!important;
  left:auto!important;
  bottom:auto!important;
  width:210px!important;
  min-width:210px!important;
  max-width:calc(100vw - 32px)!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:7px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:0 14px 35px rgba(24,10,15,.14)!important;
  z-index:10000!important;
  transform:none!important;
  pointer-events:auto!important;
}

.post-manage-menu{display:none!important}
.post-manage.open .post-manage-menu,
.post-manage:focus-within .post-manage-menu{display:block!important}

/* Reserve only the header space needed for the dots; the body/actions stay normal. */
.feed-author-row,
.post-author{padding-right:48px!important;overflow:visible!important}
.profile-post-main,
.question-list .q-main{padding-right:52px!important}

/* Keep like/comment controls horizontal with a clear, consistent gap. */
.feed-actions,
.profile-post-actions,
.post-social-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  column-gap:38px!important;
  row-gap:0!important;
}
.feed-actions > *,
.profile-post-actions > *,
.post-social-actions > *{flex:0 0 auto!important}

@media(max-width:700px){
  .feed-post > .post-manage,
  .profile-post-card > .post-manage,
  .question-list .q > .post-manage,
  .card.post > .post-manage{
    top:10px!important;
    right:10px!important;
  }
  .post-manage,
  .post-manage-trigger{width:34px!important;height:34px!important}
  .post-manage-menu,
  .post-manage.open .post-manage-menu,
  .post-manage:focus-within .post-manage-menu{
    top:40px!important;
    right:0!important;
    width:210px!important;
    min-width:210px!important;
    max-width:calc(100vw - 32px)!important;
  }
  .feed-author-row,
  .post-author{padding-right:48px!important}
  .profile-post-main,
  .question-list .q-main{padding-right:50px!important}
}

/* V16.2 — final post menu visibility fix
   Keep the owner three-dot control in the card's top-right corner.
   Let the menu escape the feed/list card so both actions are fully readable. */
.text-feed,
.question-list,
.profile-posts-list{
  overflow:visible!important;
}

.feed-post,
.profile-post-card,
.question-list .q,
.card.post{
  position:relative!important;
  overflow:visible!important;
}

.feed-post > .post-manage,
.profile-post-card > .post-manage,
.question-list .q > .post-manage,
.card.post > .post-manage{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  left:auto!important;
  bottom:auto!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  z-index:999!important;
  transform:none!important;
}

.post-manage-trigger,
.post-manage-trigger:hover,
.post-manage-trigger:focus,
.post-manage-trigger:active,
.post-manage.open .post-manage-trigger{
  width:34px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  color:#666!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}

.post-manage-trigger .icon{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  display:block!important;
  flex:0 0 22px!important;
  color:currentColor!important;
}

.post-manage-menu,
.post-manage.open .post-manage-menu,
.post-manage:focus-within .post-manage-menu{
  position:absolute!important;
  top:40px!important;
  right:0!important;
  left:auto!important;
  bottom:auto!important;
  width:210px!important;
  min-width:210px!important;
  max-width:calc(100vw - 32px)!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:7px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:0 14px 35px rgba(24,10,15,.14)!important;
  z-index:100000!important;
  transform:none!important;
  pointer-events:auto!important;
}

.post-manage-menu{display:none!important}
.post-manage.open .post-manage-menu,
.post-manage:focus-within .post-manage-menu{display:block!important}

.post-manage-menu a,
.post-manage-menu button{
  width:100%!important;
  min-height:44px!important;
  box-sizing:border-box!important;
  border:0!important;
  background:transparent!important;
  color:#333!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 11px!important;
  border-radius:10px!important;
  text-decoration:none!important;
  font:inherit!important;
  font-size:14px!important;
  text-align:left!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}

.post-manage-menu a:hover,
.post-manage-menu button:hover{
  background:#f7f7f8!important;
  color:#333!important;
}

.post-manage-menu form{
  display:block!important;
  margin:0!important;
  padding:0!important;
}

.post-manage-menu .icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:currentColor!important;
}

@media(max-width:700px){
  .feed-post > .post-manage,
  .profile-post-card > .post-manage,
  .question-list .q > .post-manage,
  .card.post > .post-manage{
    top:8px!important;
    right:8px!important;
  }

  .post-manage,
  .post-manage-trigger{
    width:34px!important;
    height:34px!important;
  }

  .post-manage-menu,
  .post-manage.open .post-manage-menu,
  .post-manage:focus-within .post-manage-menu{
    top:40px!important;
    right:0!important;
    width:210px!important;
    min-width:210px!important;
    max-width:calc(100vw - 24px)!important;
  }
}


/* V17 — Professional messaging UI
   Dedicated rules intentionally placed last so legacy message styles cannot distort the layout. */
.messages-page-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  margin:30px 0 18px;
}
.messages-page-head .eyebrow{margin-bottom:8px}
.messages-page-head h1{font-size:42px;line-height:1.05;letter-spacing:-1.5px}
.messages-page-head p{margin:8px 0 0;color:#85858d;font-size:13px}
.messages-total{
  padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;
  color:#777;font-size:12px;font-weight:800;white-space:nowrap;
}
.message-inbox.card{
  display:block!important;background:#fff!important;border:1px solid #e5e5ea!important;
  border-radius:20px!important;overflow:hidden!important;box-shadow:0 8px 28px rgba(20,20,25,.04);
}
.message-inbox .conversation.conversation-modern{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  position:relative!important;width:100%!important;min-height:92px!important;height:auto!important;
  margin:0!important;padding:15px 20px!important;gap:14px!important;
  border:0!important;border-bottom:1px solid #eeeeF1!important;border-radius:0!important;
  background:#fff!important;box-sizing:border-box!important;
}
.message-inbox .conversation.conversation-modern:last-of-type{border-bottom:0!important}
.message-inbox .conversation.conversation-modern:hover{background:#fbf8f9!important}
.conversation-avatar{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center}
.conversation-avatar .avatar{width:48px;height:48px;font-size:15px}
.conversation-copy{
  display:block!important;min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;
}
.conversation-name{display:flex;align-items:center;min-width:0;line-height:1.25}
.conversation-name .username-with-badge{font-size:15px;font-weight:850;display:inline-flex;align-items:center;min-width:0}
.conversation-name .username-with-badge>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-preview{
  display:block!important;margin-top:5px!important;max-width:100%!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#888!important;font-size:13px!important;line-height:1.35!important;
}
.conversation.is-unread .conversation-preview{color:#4f4f55;font-weight:650}
.conversation-side{
  flex:0 0 auto!important;min-width:52px;display:flex;flex-direction:column;
  align-items:flex-end;justify-content:center;gap:8px;align-self:stretch;
}
.conversation-time{font-size:11px;color:#9a9aa1;white-space:nowrap}
.conversation.is-unread .conversation-time{color:var(--red);font-weight:800}
.inbox-count{
  min-width:22px!important;height:22px!important;padding:0 6px!important;
  border-radius:999px!important;background:var(--red)!important;color:#fff!important;
  display:grid!important;place-items:center!important;font-size:10px!important;
  line-height:1!important;font-weight:850;
}
.messages-empty{
  min-height:300px;padding:46px 28px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;color:#555;
}
.messages-empty-icon{
  width:58px;height:58px;border-radius:18px;background:var(--soft);color:var(--red);
  display:grid;place-items:center;margin-bottom:16px;
}
.messages-empty-icon .icon{width:28px;height:28px}
.messages-empty strong{font-size:17px;color:#222}
.messages-empty span{max-width:360px;margin-top:7px;color:#999;font-size:12px;line-height:1.55}

/* Chat */
.chat-page{
  background:#fff!important;border:1px solid #e4e4e9!important;border-radius:20px!important;
  overflow:hidden!important;min-height:calc(100vh - 150px)!important;height:calc(100vh - 150px)!important;
  display:flex!important;flex-direction:column!important;box-shadow:0 8px 28px rgba(20,20,25,.04)!important;
}
.chat-top{
  height:76px!important;min-height:76px!important;display:flex!important;align-items:center!important;
  gap:12px!important;padding:12px 18px!important;border-bottom:1px solid #ececf0!important;
  background:#fff!important;
}
.back-link{
  width:38px!important;height:38px!important;margin:0 2px 0 0!important;border-radius:12px!important;
  display:grid!important;place-items:center!important;color:#555!important;font-size:0!important;
  background:#f6f6f8!important;
}
.back-link .icon{width:19px;height:19px}
.chat-user{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.chat-user .avatar{width:44px;height:44px;flex:0 0 44px}
.chat-user-copy{display:flex;flex-direction:column;min-width:0}
.chat-user-name .username-with-badge{display:inline-flex;align-items:center;font-weight:850;font-size:14px}
.chat-user-status{margin-top:3px;font-size:11px;color:#999}
.chat-profile-link{
  width:38px;height:38px;border-radius:12px;background:#f6f6f8;color:#666;
  display:grid;place-items:center;flex:0 0 38px;
}
.chat-profile-link .icon{width:19px;height:19px}
.chat-messages{
  flex:1!important;min-height:0!important;height:auto!important;padding:24px!important;
  overflow:auto!important;background:#fafafc!important;display:flex!important;flex-direction:column!important;
  gap:2px!important;
}
.bubble{
  position:relative!important;max-width:min(72%,520px)!important;width:max-content!important;
  padding:10px 13px 19px!important;border-radius:17px!important;background:#ededf1!important;
  margin:3px 0!important;color:var(--text)!important;line-height:1.45!important;
  overflow-wrap:anywhere!important;box-shadow:0 1px 1px rgba(0,0,0,.02);
}
.bubble.mine{
  align-self:flex-end!important;margin-left:auto!important;background:var(--red)!important;color:#fff!important;
  border-bottom-right-radius:5px!important;
}
.bubble:not(.mine){align-self:flex-start;border-bottom-left-radius:5px!important}
.bubble time{
  position:absolute!important;right:10px!important;bottom:4px!important;font-size:9px!important;
  opacity:.58!important;line-height:1!important;
}
.empty-chat{
  margin:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;color:#555!important;line-height:1.5!important;
}
.empty-chat-avatar{margin-bottom:12px}
.empty-chat-avatar .avatar{width:58px;height:58px;font-size:18px}
.empty-chat strong{font-size:15px;color:#333}
.empty-chat span{font-size:12px;color:#999;margin-top:4px}
.chat-form{
  display:flex!important;align-items:center!important;gap:9px!important;padding:12px 14px!important;
  border-top:1px solid #e9e9ed!important;background:#fff!important;
}
.chat-input-wrap{flex:1;min-width:0}
.chat-form .input{
  width:100%!important;height:44px!important;border-radius:14px!important;background:#f5f5f7!important;
  border:1px solid transparent!important;padding:0 14px!important;
}
.chat-form .input:focus{
  background:#fff!important;border-color:#d7c0c5!important;
  box-shadow:0 0 0 3px rgba(112,19,34,.07)!important;
}
.chat-form .chat-send{
  width:44px!important;height:44px!important;padding:0!important;border-radius:13px!important;
  flex:0 0 44px!important;
}
@media(max-width:600px){
  .messages-page-head{margin:22px 0 14px;align-items:flex-start}
  .messages-page-head h1{font-size:34px}
  .messages-page-head p{font-size:12px;max-width:270px}
  .messages-total{display:none}
  .message-inbox.card{border-radius:17px!important}
  .message-inbox .conversation.conversation-modern{
    min-height:78px!important;padding:13px 14px!important;gap:12px!important;
  }
  .conversation-avatar,.conversation-avatar .avatar{width:46px;height:46px;flex-basis:46px}
  .conversation-name .username-with-badge{font-size:14px}
  .conversation-preview{font-size:12px!important}
  .conversation-side{min-width:46px}
  .conversation-time{font-size:10px}
  .chat-page{
    margin:0 -1px!important;border-radius:16px!important;
    min-height:calc(100vh - 155px)!important;height:calc(100vh - 155px)!important;
  }
  .chat-top{height:68px!important;min-height:68px!important;padding:10px 12px!important}
  .chat-messages{padding:16px 13px!important}
  .bubble{max-width:86%!important;font-size:14px}
  .chat-form{padding:10px!important}
}



/* V18 — Dedicated chat route + compact inbox
   The conversation list must never stretch like a full-height card.
   The bottom navigation is intentionally absent while a conversation is open. */

.messages-route .message-inbox{
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
.messages-route .message-inbox > .conversation-modern{
  flex:0 0 auto!important;
  align-self:stretch!important;
  min-height:78px!important;
  height:78px!important;
  max-height:78px!important;
  box-sizing:border-box!important;
}
.messages-route .message-inbox > .messages-empty{
  flex:0 0 auto!important;
  min-height:260px!important;
}
.messages-route .conversation-modern > *{
  min-height:0!important;
  height:auto!important;
}
.messages-route .conversation-avatar{
  flex:0 0 48px!important;
  width:48px!important;
  height:48px!important;
}
.messages-route .conversation-copy{
  align-self:center!important;
  height:auto!important;
}
.messages-route .conversation-side{
  height:100%!important;
  align-self:stretch!important;
}

.chat-route{
  padding-bottom:0!important;
}
.chat-route .bottom-nav{
  display:none!important;
}
.chat-route .site-shell{
  width:100%!important;
}
.chat-route .content{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
}
.chat-route .chat-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  min-height:calc(100dvh - 68px)!important;
  height:calc(100dvh - 68px)!important;
}
.chat-route .chat-top{
  flex:0 0 76px!important;
}
.chat-route .chat-messages{
  flex:1 1 auto!important;
  min-height:0!important;
}
.chat-route .chat-form{
  flex:0 0 auto!important;
  padding-bottom:calc(12px + env(safe-area-inset-bottom))!important;
}

@media(max-width:900px){
  .messages-route .message-inbox > .conversation-modern{
    min-height:76px!important;
    height:76px!important;
    max-height:76px!important;
    padding:12px 14px!important;
  }
  .messages-route .conversation-avatar,
  .messages-route .conversation-avatar .avatar{
    width:46px!important;
    height:46px!important;
    flex-basis:46px!important;
  }

  .chat-route .chat-page{
    min-height:calc(100dvh - 64px)!important;
    height:calc(100dvh - 64px)!important;
  }
  .chat-route .chat-top{
    height:68px!important;
    min-height:68px!important;
    flex-basis:68px!important;
  }
  .chat-route .chat-messages{
    padding:16px 13px!important;
  }
  .chat-route .chat-form{
    padding:10px 10px calc(10px + env(safe-area-inset-bottom))!important;
  }
}

/* Never allow legacy navigation rules to reappear on an open chat. */
body.chat-route .bottom-nav,
body.chat-route nav.bottom-nav{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* V19 — Simplified conversation header: only back, avatar, username + verification. */
body.chat-route .chat-user-status,
body.chat-route .chat-profile-link {
  display:none!important;
}
body.chat-route .chat-user-copy {
  justify-content:center!important;
}
body.chat-route .chat-user-name .username-with-badge {
  font-size:16px!important;
  line-height:1.2!important;
}


/* V20 — Definitive compact inbox layout.
   Conversation rows are explicit grid rows so no legacy flex/card rule can
   turn a single conversation into a tall, vertically-spread card. */
.messages-route .message-inbox{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  border:1px solid #e5e5ea!important;
  border-radius:20px!important;
  overflow:hidden!important;
  box-shadow:0 8px 28px rgba(20,20,25,.04)!important;
}
.messages-route .message-inbox > .conversation-modern{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  column-gap:13px!important;
  row-gap:3px!important;
  align-items:center!important;
  align-content:center!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:14px 16px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-bottom:1px solid #eeeeF1!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
}
.messages-route .message-inbox > .conversation-modern:last-of-type{border-bottom:0!important}
.messages-route .conversation-modern .conversation-avatar{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  flex:none!important;
  align-self:center!important;
}
.messages-route .conversation-modern .conversation-avatar .avatar{
  width:48px!important;
  height:48px!important;
}
.messages-route .conversation-modern .conversation-copy{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  align-self:center!important;
  justify-self:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.messages-route .conversation-modern .conversation-name{
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  line-height:1.25!important;
}
.messages-route .conversation-modern .conversation-name .username-with-badge{
  min-width:0!important;
  max-width:100%!important;
  font-size:15px!important;
  line-height:1.25!important;
}
.messages-route .conversation-modern .conversation-preview{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:4px 0 0!important;
  padding:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  font-size:13px!important;
  line-height:1.3!important;
  color:#888!important;
}
.messages-route .conversation-modern .conversation-side{
  grid-column:3!important;
  grid-row:1 / span 2!important;
  width:auto!important;
  min-width:46px!important;
  height:auto!important;
  min-height:0!important;
  align-self:center!important;
  justify-self:end!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:5px!important;
  margin:0!important;
  padding:0!important;
}
.messages-route .conversation-modern .conversation-time{
  display:block!important;
  height:auto!important;
  margin:0!important;
  font-size:11px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
.messages-route .conversation-modern .inbox-count{
  width:auto!important;
  min-width:20px!important;
  height:20px!important;
  margin:0!important;
  padding:0 6px!important;
}
.messages-route .message-inbox > .messages-empty{
  min-height:260px!important;
  height:auto!important;
}
@media(max-width:600px){
  .messages-route .message-inbox{
    border-radius:17px!important;
  }
  .messages-route .message-inbox > .conversation-modern{
    grid-template-columns:46px minmax(0,1fr) auto!important;
    column-gap:12px!important;
    row-gap:2px!important;
    min-height:0!important;
    height:auto!important;
    padding:13px 14px!important;
  }
  .messages-route .conversation-modern .conversation-avatar,
  .messages-route .conversation-modern .conversation-avatar .avatar{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
  }
  .messages-route .conversation-modern .conversation-name .username-with-badge{
    font-size:14px!important;
  }
  .messages-route .conversation-modern .conversation-preview{
    font-size:12px!important;
  }
  .messages-route .conversation-modern .conversation-side{
    min-width:44px!important;
  }
  .messages-route .conversation-modern .conversation-time{
    font-size:10px!important;
  }
}


/* V21 — FINAL messaging layout reset.
   These unique classes intentionally isolate the inbox and chat header from
   every legacy .conversation/.chat-user rule in this stylesheet. */
body.messages-route .dm-inbox{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid #e5e5ea!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 8px 28px rgba(20,20,25,.04)!important;
}
body.messages-route .dm-row{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:13px!important;
  width:100%!important;
  min-width:0!important;
  min-height:76px!important;
  height:76px!important;
  max-height:76px!important;
  padding:12px 16px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:0!important;
  border-bottom:1px solid #eeeeF1!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
}
body.messages-route .dm-row:last-of-type{border-bottom:0!important}
body.messages-route .dm-avatar{
  grid-column:1!important;grid-row:1!important;
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:0!important;
}
body.messages-route .dm-avatar .avatar{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}
body.messages-route .dm-copy{
  grid-column:2!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  min-width:0!important;width:auto!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;align-self:center!important;
}
body.messages-route .dm-copy .conversation-name{
  display:flex!important;align-items:center!important;width:100%!important;min-width:0!important;
  height:auto!important;margin:0!important;padding:0!important;line-height:1.2!important;
}
body.messages-route .dm-copy .conversation-name .username-with-badge{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  min-width:0!important;max-width:100%!important;font-size:15px!important;line-height:1.2!important;
}
body.messages-route .dm-copy .conversation-name .username-with-badge>a{
  display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;
}
body.messages-route .dm-copy .conversation-preview{
  display:block!important;width:100%!important;max-width:100%!important;height:auto!important;
  min-height:0!important;margin:4px 0 0!important;padding:0!important;overflow:hidden!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;font-size:12px!important;
  line-height:1.25!important;color:#8b8b92!important;
}
body.messages-route .dm-side{
  grid-column:3!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  justify-content:center!important;gap:4px!important;width:auto!important;min-width:44px!important;
  height:auto!important;min-height:0!important;margin:0!important;padding:0!important;align-self:center!important;
}
body.messages-route .dm-side .conversation-time{
  display:block!important;font-size:10px!important;line-height:1.2!important;white-space:nowrap!important;
  margin:0!important;padding:0!important;color:#999!important;
}

/* Open chat: header is a compact back + avatar + username group. */
body.chat-route .chat-top-clean{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:12px!important;height:68px!important;min-height:68px!important;padding:10px 14px!important;
  background:#fff!important;border-bottom:1px solid #ececf0!important;
}
body.chat-route .chat-top-clean .back-link{
  flex:0 0 38px!important;width:38px!important;height:38px!important;margin:0!important;
}
body.chat-route .chat-user-clean{
  flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:calc(100% - 50px)!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:11px!important;margin:0!important;padding:0!important;text-align:left!important;
}
body.chat-route .chat-user-clean .avatar{
  flex:0 0 44px!important;width:44px!important;height:44px!important;
}
body.chat-route .chat-user-name-clean{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  min-width:0!important;max-width:100%!important;text-align:left!important;
}
body.chat-route .chat-user-name-clean .username-with-badge{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px!important;min-width:0!important;max-width:100%!important;font-size:16px!important;
  line-height:1.2!important;white-space:nowrap!important;
}
body.chat-route .chat-user-name-clean .username-with-badge>a{
  display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

@media(max-width:600px){
  body.messages-route .dm-row{grid-template-columns:46px minmax(0,1fr) auto!important;column-gap:12px!important;height:72px!important;min-height:72px!important;max-height:72px!important;padding:11px 13px!important}
  body.messages-route .dm-avatar,body.messages-route .dm-avatar .avatar{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
  body.messages-route .dm-copy .conversation-name .username-with-badge{font-size:14px!important}
  body.messages-route .dm-copy .conversation-preview{font-size:12px!important}
  body.chat-route .chat-top-clean{height:66px!important;min-height:66px!important;padding:9px 12px!important}
  body.chat-route .chat-user-clean .avatar{width:44px!important;height:44px!important}
}


/* =========================================================
   OKUSOCIAL V23 — MESSAGE UI HARD RESET
   Scoped exclusively to the message route. This block is
   intentionally at the END of the stylesheet and uses
   !important to beat legacy message/card rules.
   ========================================================= */

/* INBOX */
html body.messages-route #os-message-inbox-v23{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  border:1px solid #e3e3e8!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  box-shadow:0 6px 22px rgba(20,20,25,.035)!important;
}
html body.messages-route #os-message-inbox-v23 > a.os-dm-row-v23{
  display:grid!important;
  grid-template-columns:50px minmax(0,1fr) auto!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  column-gap:13px!important;
  position:relative!important;
  width:100%!important;
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
  margin:0!important;
  padding:11px 15px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #eeeeF1!important;
  border-radius:0!important;
  overflow:hidden!important;
  text-decoration:none!important;
}
html body.messages-route #os-message-inbox-v23 > a.os-dm-row-v23:last-of-type{
  border-bottom:0!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-avatar{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  margin:0!important;
  padding:0!important;
  grid-column:1!important;
  grid-row:1!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-avatar .avatar{
  width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;margin:0!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  width:auto!important;
  min-width:0!important;
  height:50px!important;
  margin:0!important;padding:0!important;
  grid-column:2!important;grid-row:1!important;
  overflow:hidden!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-name{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;height:19px!important;margin:0!important;padding:0!important;
  text-align:left!important;overflow:hidden!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-name .username-with-badge{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px!important;width:auto!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;font-size:15px!important;line-height:19px!important;
  white-space:nowrap!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-name .username-with-badge>a{
  display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-preview{
  display:block!important;width:100%!important;max-width:100%!important;height:17px!important;min-height:17px!important;
  margin:4px 0 0!important;padding:0!important;overflow:hidden!important;
  color:#888!important;font-size:12px!important;line-height:17px!important;text-align:left!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-side{
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;
  width:auto!important;min-width:42px!important;height:50px!important;margin:0!important;padding:0!important;
  grid-column:3!important;grid-row:1!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-time{
  display:block!important;margin:0!important;padding:0!important;color:#999!important;
  font-size:10px!important;line-height:14px!important;white-space:nowrap!important;
}
html body.messages-route #os-message-inbox-v23 .os-dm-count{
  display:grid!important;place-items:center!important;min-width:20px!important;height:20px!important;
  margin:4px 0 0!important;padding:0 5px!important;border-radius:999px!important;
  background:#7b1025!important;color:#fff!important;font-size:10px!important;line-height:20px!important;font-weight:800!important;
}

/* CHAT HEADER */
html body.chat-route #os-chat-page-v23{
  display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:none!important;height:calc(100dvh - 68px)!important;
  min-height:calc(100dvh - 68px)!important;margin:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-header{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:0 0 66px!important;width:100%!important;height:66px!important;min-height:66px!important;
  gap:12px!important;padding:8px 14px!important;margin:0!important;
  background:#fff!important;border-bottom:1px solid #ececf0!important;box-sizing:border-box!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-back{
  flex:0 0 38px!important;width:38px!important;height:38px!important;margin:0!important;padding:0!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-person{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:0 1 auto!important;width:auto!important;max-width:calc(100% - 50px)!important;min-width:0!important;
  gap:10px!important;margin:0!important;padding:0!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-avatar{
  flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-avatar .avatar{
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-username{
  flex:0 1 auto!important;width:auto!important;max-width:calc(100% - 54px)!important;min-width:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-username .username-with-badge{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  width:auto!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;font-size:16px!important;line-height:20px!important;white-space:nowrap!important;
}
html body.chat-route #os-chat-page-v23 .os-chat-username .username-with-badge>a{
  display:block!important;width:auto!important;max-width:100%!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages{
  flex:1 1 auto!important;min-height:0!important;height:auto!important;
}
html body.chat-route #os-chat-page-v23 .chat-form{
  flex:0 0 auto!important;margin:0!important;
  padding:10px!important;padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;
}
html body.chat-route .bottom-nav,
html body.chat-route nav.bottom-nav{
  display:none!important;visibility:hidden!important;pointer-events:none!important;height:0!important;
}
@media(max-width:600px){
  html body.messages-route #os-message-inbox-v23 > a.os-dm-row-v23{
    grid-template-columns:46px minmax(0,1fr) auto!important;
    height:72px!important;min-height:72px!important;max-height:72px!important;padding:10px 13px!important;column-gap:12px!important;
  }
  html body.messages-route #os-message-inbox-v23 .os-dm-avatar,
  html body.messages-route #os-message-inbox-v23 .os-dm-avatar .avatar{
    width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
  }
  html body.messages-route #os-message-inbox-v23 .os-dm-copy{height:46px!important}
  html body.messages-route #os-message-inbox-v23 .os-dm-side{height:46px!important;min-width:40px!important}
}

/* OKUSOCIAL FORCE MESSAGE PATCH V25 */
body.messages-route .message-inbox,body.messages-route .dm-inbox,body.messages-route #os-message-inbox-v23{display:block!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important}
body.messages-route .message-inbox > .conversation-modern,body.messages-route .dm-inbox > .dm-row,body.messages-route #os-message-inbox-v23 > .os-dm-row-v23{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;grid-template-rows:46px!important;align-items:center!important;column-gap:12px!important;width:100%!important;height:72px!important;min-height:72px!important;max-height:72px!important;margin:0!important;padding:10px 13px!important;box-sizing:border-box!important;overflow:hidden!important;border-radius:0!important;transform:none!important}
body.messages-route .conversation-avatar,body.messages-route .dm-avatar,body.messages-route .os-dm-avatar{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;margin:0!important;padding:0!important}
body.messages-route .conversation-avatar .avatar,body.messages-route .dm-avatar .avatar,body.messages-route .os-dm-avatar .avatar{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;margin:0!important}
body.messages-route .conversation-copy,body.messages-route .dm-copy,body.messages-route .os-dm-copy{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;justify-content:center!important;width:auto!important;min-width:0!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.messages-route .conversation-name,body.messages-route .conversation-copy .conversation-name,body.messages-route .dm-copy .conversation-name,body.messages-route .os-dm-name{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:19px!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;line-height:19px!important;text-align:left!important}
body.messages-route .conversation-preview,body.messages-route .dm-copy .conversation-preview,body.messages-route .os-dm-preview{display:block!important;width:100%!important;height:17px!important;min-height:17px!important;margin:4px 0 0!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;text-align:left!important;line-height:17px!important}
body.messages-route .conversation-side,body.messages-route .dm-side,body.messages-route .os-dm-side{grid-column:3!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;width:auto!important;min-width:40px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0!important}
body.messages-route .conversation-time,body.messages-route .dm-side .conversation-time,body.messages-route .os-dm-time{display:block!important;height:auto!important;margin:0!important;padding:0!important;white-space:nowrap!important;line-height:14px!important}


/* V26 HARD RESET: intentionally does not depend on body classes. */
#os-message-inbox-v23 {
  display:block !important; width:100% !important; height:auto !important; min-height:0 !important;
  margin:0 !important; padding:0 !important; overflow:hidden !important; box-sizing:border-box !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 {
  position:relative !important; display:block !important; width:100% !important;
  height:72px !important; min-height:72px !important; max-height:72px !important;
  margin:0 !important; padding:0 !important; box-sizing:border-box !important;
  overflow:hidden !important; background:#fff !important; border:0 !important; border-bottom:1px solid #eeeef1 !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-avatar {
  position:absolute !important; left:13px !important; top:13px !important;
  width:46px !important; height:46px !important; margin:0 !important; padding:0 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-avatar .avatar {
  width:46px !important; height:46px !important; min-width:46px !important; min-height:46px !important; margin:0 !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-copy {
  position:absolute !important; left:71px !important; right:65px !important; top:13px !important;
  width:auto !important; height:46px !important; min-height:46px !important; margin:0 !important; padding:0 !important;
  display:block !important; overflow:hidden !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-name {
  display:flex !important; align-items:center !important; width:100% !important; height:20px !important;
  margin:0 !important; padding:0 !important; overflow:hidden !important; line-height:20px !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-name .username-with-badge {
  display:inline-flex !important; align-items:center !important; gap:5px !important;
  margin:0 !important; padding:0 !important; max-width:100% !important; height:20px !important; line-height:20px !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-name .username-with-badge > a {
  display:block !important; margin:0 !important; padding:0 !important; width:auto !important; max-width:100% !important;
  overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; line-height:20px !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-preview {
  display:block !important; width:100% !important; height:18px !important; min-height:18px !important;
  margin:2px 0 0 !important; padding:0 !important; overflow:hidden !important; white-space:nowrap !important;
  text-overflow:ellipsis !important; line-height:18px !important; font-size:12px !important; text-align:left !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-side {
  position:absolute !important; right:13px !important; top:13px !important;
  width:45px !important; height:46px !important; margin:0 !important; padding:0 !important;
  display:flex !important; flex-direction:column !important; align-items:flex-end !important; justify-content:center !important;
}
#os-message-inbox-v23 > a.os-dm-row-v23 .os-dm-time {
  display:block !important; margin:0 !important; padding:0 !important; line-height:14px !important; font-size:10px !important; white-space:nowrap !important;
}
body.chat-route nav.bottom-nav, body.chat-route .bottom-nav { display:none !important; visibility:hidden !important; height:0 !important; pointer-events:none !important; }
@media(max-width:600px){
 #os-message-inbox-v23 > a.os-dm-row-v23 { height:72px !important; min-height:72px !important; max-height:72px !important; }
}

/* V27 */
body.chat-route nav.bottom-nav,body.chat-route .bottom-nav{display:none!important;visibility:hidden!important;height:0!important;pointer-events:none!important;}


/* V32 common author alignment: avatar left, username/tick beside it, date on the same metadata line. */
.comments .comment{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
.comments .comment .comment-author{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
.comments .comment .comment-author > .avatar{
  flex:0 0 42px!important;
  width:42px!important;height:42px!important;
  min-width:42px!important;min-height:42px!important;
  margin:0!important;
}
.comments .comment .comment-author > div{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;
  margin:0!important;
}
.comments .comment .comment-author b{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  line-height:20px!important;
}
.comments .comment .comment-author .username-with-badge{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
}
.comments .comment .comment-author small{
  display:block!important;
  margin-top:2px!important;
  line-height:16px!important;
  color:#999!important;
}

/* V33 long-press message actions */
.ok-v33-message-menu{
  position:fixed!important;z-index:100000!important;
  width:220px!important;padding:7px!important;
  background:#fff!important;border:1px solid #e2e2e6!important;
  border-radius:14px!important;box-shadow:0 14px 42px rgba(0,0,0,.18)!important;
}
.ok-v33-message-menu button{
  display:block!important;width:100%!important;padding:12px 13px!important;
  border:0!important;background:transparent!important;color:#222!important;
  border-radius:10px!important;text-align:left!important;font-size:14px!important;
}
.ok-v33-message-menu button.danger{color:#b01836!important;font-weight:750!important}
.ok-v33-message-menu button:active{background:#f3f3f5!important}


/* V34: compact outgoing bubbles; no inline three-dot control. Long-press only. */
html body.chat-route #os-chat-page-v23 .chat-messages .bubble{
  box-sizing:border-box!important;
  display:block!important;
  flex:0 0 auto!important;
  flex-grow:0!important;
  flex-shrink:0!important;
  width:fit-content!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  min-width:0!important;
  max-width:min(72%,520px)!important;
  padding:9px 12px 18px!important;
  margin:4px 0!important;
  overflow:visible!important;
  white-space:pre-wrap!important;
  line-height:1.4!important;
  align-self:flex-start!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages .bubble.mine{
  align-self:flex-end!important;
  margin-left:auto!important;
  margin-right:0!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages .bubble .bubble-body{
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages .bubble time{
  position:absolute!important;
  right:9px!important;
  bottom:4px!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  font-size:9px!important;
  line-height:10px!important;
}
html body.chat-route #os-chat-page-v23 .ok-v32-message-menu{display:none!important}

/* V35 — definitive compact chat bubbles; no message overflow/menu */
html body.chat-route #os-chat-page-v23 .chat-messages{
  align-items:stretch!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages > .bubble{
  position:relative!important;
  display:block!important;
  box-sizing:border-box!important;
  flex:none!important;
  flex-grow:0!important;
  flex-shrink:0!important;
  width:max-content!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:72%!important;
  max-height:none!important;
  padding:8px 12px 17px!important;
  margin:4px 0!important;
  overflow:visible!important;
  line-height:20px!important;
  white-space:pre-wrap!important;
  align-self:flex-start!important;
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  touch-action:manipulation!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages > .bubble.mine{
  align-self:flex-end!important;
  margin-left:auto!important;
  margin-right:0!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages > .bubble .bubble-body{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  line-height:20px!important;
  white-space:pre-wrap!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages > .bubble time{
  position:absolute!important;
  right:8px!important;
  bottom:3px!important;
  width:auto!important;
  height:10px!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  line-height:10px!important;
  font-size:9px!important;
}
html body.chat-route #os-chat-page-v23 .ok-v32-message-menu{
  display:none!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.ok-v33-message-menu{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}
@media(max-width:600px){
  html body.chat-route #os-chat-page-v23 .chat-messages > .bubble{
    max-width:78%!important;
    width:max-content!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:8px 11px 17px!important;
    line-height:20px!important;
  }
}

/* V36 — fixed message interaction: no expansion, no three-dot UI */
html body.chat-route #os-chat-page-v23 .chat-messages > .bubble{
  transform:none!important;
  transition:none!important;
  animation:none!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
  -webkit-user-select:none!important;
  user-select:none!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body.chat-route #os-chat-page-v23 .chat-messages > .bubble .bubble-body{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
html body.chat-route #os-chat-page-v23 .ok-v32-message-menu,
html body.chat-route #os-chat-page-v23 .ok-v33-message-menu{display:none!important;width:0!important;height:0!important;pointer-events:none!important;}

/* V37 — admin-managed announcements + global site footer */
.announcement-wrap{width:min(1040px,calc(100% - 40px));margin:18px auto 0}
/* Duyuru kontrolleri kartın dışına taşmasın: slider aktif kartla aynı yüksekliği taşır. */
.announcement-slider{position:relative;min-height:168px;height:auto;isolation:isolate}
.announcement-card{display:none;position:relative;min-height:168px;height:auto;box-sizing:border-box;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#5f0d1b,#8d2035);color:#fff;border:1px solid rgba(112,19,34,.12);box-shadow:0 12px 30px rgba(112,19,34,.13)}
.announcement-card.is-active{display:block}
.announcement-image{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.72}
.announcement-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(72,7,20,.96) 0%,rgba(112,19,34,.88) 52%,rgba(112,19,34,.48) 100%)}
.announcement-content{position:relative;z-index:2;padding:23px 64px 30px;max-width:760px}
.announcement-label{display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1.2px;font-weight:900;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);padding:7px 10px;border-radius:999px;margin-bottom:10px}.announcement-label .icon{width:15px;height:15px}
.announcement-content h2{font-size:23px;line-height:1.15;margin:0 0 8px;letter-spacing:-.5px}.announcement-content p{margin:0 0 9px;max-width:700px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.9)}.announcement-content small{font-size:11px;color:rgba(255,255,255,.65)}
.announcement-arrow{position:absolute!important;z-index:20!important;top:50%!important;transform:translateY(-50%)!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;border:1px solid rgba(255,255,255,.30)!important;border-radius:50%!important;background:rgba(55,5,16,.55)!important;color:#fff!important;font-size:27px!important;line-height:1!important;padding:0!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;backdrop-filter:blur(5px);cursor:pointer}.announcement-arrow:hover{background:rgba(55,5,16,.78)!important}.announcement-prev{left:14px!important}.announcement-next{right:14px!important}.announcement-dots{position:absolute!important;z-index:20!important;right:22px!important;bottom:13px!important;display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;padding:0!important}.announcement-dots button{width:8px!important;height:8px!important;min-width:8px!important;min-height:8px!important;border:0!important;padding:0!important;margin:0!important;border-radius:50%!important;background:rgba(255,255,255,.35)!important;cursor:pointer}.announcement-dots button.active{background:#fff!important;transform:scale(1.15)}
.site-footer{width:min(1040px,calc(100% - 40px));margin:38px auto 28px;padding:17px 20px;text-align:center;color:#7b1025;font-size:12px;font-weight:800;letter-spacing:.1px;background:#fff;border:1px solid var(--line);border-radius:14px}.site-footer i{font-style:normal;color:#b27a83;margin:0 6px}
.admin-page{padding:4px 0 10px}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px}.admin-head h1{font-size:32px;letter-spacing:-1px}.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.admin-form-card,.admin-list-card{padding:22px}.admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.admin-card-head h2{font-size:18px;margin:0 0 4px}.admin-textarea{min-height:145px}.admin-current-image{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fafafa;margin:-3px 0 15px}.admin-current-image img{width:86px;height:58px;object-fit:cover;border-radius:8px}.admin-current-image span{font-size:11px;color:#888}.admin-switch{display:flex;align-items:center;gap:9px;margin:4px 0 18px;font-size:13px;cursor:pointer}.admin-switch input{position:absolute;opacity:0;pointer-events:none}.admin-switch span{width:40px;height:23px;border-radius:999px;background:#ddd;position:relative;transition:.2s}.admin-switch span:after{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.2s}.admin-switch input:checked+span{background:var(--red)}.admin-switch input:checked+span:after{transform:translateX(17px)}
.admin-ann-item{display:flex;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.admin-ann-item:first-of-type{border-top:0;padding-top:0}.admin-ann-item>img,.admin-ann-noimage{width:78px;height:58px;flex:0 0 78px;border-radius:10px;object-fit:cover}.admin-ann-noimage{display:grid;place-items:center;background:var(--soft);font-size:22px}.admin-ann-copy{min-width:0;flex:1}.admin-ann-top{display:flex;align-items:center;gap:8px}.admin-ann-top strong{font-size:14px;line-height:1.25}.status-pill{font-size:9px;font-weight:900;padding:4px 7px;border-radius:999px;white-space:nowrap}.status-pill.on{background:#f6e7ea;color:var(--red)}.status-pill.off{background:#eee;color:#777}.admin-ann-copy p{font-size:12px;color:#777;margin:5px 0}.admin-ann-copy small{font-size:10px;color:#aaa}.admin-ann-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.admin-ann-actions .btn{padding:7px 9px;font-size:11px}.admin-ann-actions form{margin:0}.btn-danger{background:#fff;border:1px solid #d7a9b2;color:#8d2035}
@media(max-width:800px){.admin-grid{grid-template-columns:1fr}.announcement-wrap,.site-footer{width:calc(100% - 24px)}.announcement-card{min-height:174px}.announcement-content{padding:20px 52px 28px}.announcement-content h2{font-size:20px}.announcement-content p{font-size:13px}.admin-head{align-items:flex-start}.admin-head h1{font-size:27px}}
@media(max-width:500px){.announcement-wrap{margin-top:10px}.announcement-slider{min-height:185px}.announcement-card{border-radius:15px;min-height:185px}.announcement-overlay{background:linear-gradient(90deg,rgba(72,7,20,.97),rgba(112,19,34,.72))}.announcement-content{padding:17px 48px 28px}.announcement-content h2{font-size:19px}.announcement-content p{font-size:12.5px;line-height:1.42;max-height:72px;overflow:hidden}.announcement-dots{right:16px;bottom:13px}.site-footer{margin:25px auto 18px;padding:15px 10px;font-size:10px}.site-footer i{margin:0 3px}.admin-form-card,.admin-list-card{padding:17px}.admin-ann-item{gap:9px}.admin-ann-item>img,.admin-ann-noimage{width:66px;height:52px;flex-basis:66px}.admin-ann-top{align-items:flex-start;flex-direction:column;gap:4px}}
