:root{--ink:#17191c;--muted:#777d84;--line:#e7e9ec;--blue:#2878e8;--paper:#fff;--bg:#fafafa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}.brand{font:italic 700 32px Georgia,serif;letter-spacing:-1.5px}.brand span{color:#dd3b82}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1120px)/2),24px)}.search input{width:235px;border:0;background:#f1f2f4;border-radius:9px;padding:11px 14px}.top-actions{display:flex;align-items:center;gap:22px;font-size:26px}.mini-avatar,.avatar{border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#fd8c42,#d62f8b,#7a4fe0);color:white;font-weight:700}.mini-avatar{height:31px;width:31px;font-size:13px}.layout{max-width:1120px;margin:28px auto;display:grid;grid-template-columns:210px minmax(420px,610px) 260px;gap:28px;align-items:start}.leftnav{position:sticky;top:88px;display:grid;gap:8px}.navitem{display:flex;align-items:center;gap:16px;padding:12px 15px;border-radius:9px;font-size:15px}.navitem:hover,.navitem.active{background:#eff2f6}.navitem b{font-size:23px;width:25px;text-align:center}.leftnav form{margin:0}.navbutton{border:0;background:none;width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}.feed{min-width:0}.storybar,.create-card,.post{background:#fff;border:1px solid var(--line);border-radius:12px}.storybar{display:flex;gap:16px;overflow:auto;padding:16px;margin-bottom:18px}.story{min-width:58px;display:grid;justify-items:center;gap:5px;font-size:11px;color:#40444b;overflow:hidden}.story i{height:51px;width:51px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal;font-size:18px;font-weight:700;background:linear-gradient(white,white) padding-box,linear-gradient(135deg,#ffb23f,#ed315f,#8a39dc) border-box;border:3px solid transparent}.create-card{padding:15px;margin-bottom:18px}.create-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.create-heading .mini-avatar{height:35px;width:35px}.create-card textarea{width:100%;height:62px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:11px;font:inherit}.upload-row{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.filepick{color:#3674d8;cursor:pointer}.filepick input{display:none}.primary{background:#2878e8;color:#fff;border:0;border-radius:8px;padding:9px 17px;font-weight:700;cursor:pointer}.post{overflow:hidden;margin-bottom:20px}.post-head{height:58px;display:flex;align-items:center;gap:10px;padding:0 14px}.avatar{width:35px;height:35px;font-size:15px}.avatar.large{width:42px;height:42px}.post-head time{font-size:11px;color:var(--muted)}.dots{margin-left:auto;font-size:21px;letter-spacing:2px}.post-media{display:block;width:100%;max-height:760px;object-fit:contain;background:#111}.post-actions{display:flex;align-items:center;gap:15px;padding:10px 14px 2px;font-size:23px}.post-actions form{margin:0}.post-actions button{border:0;background:none;font:inherit;cursor:pointer;padding:0}.liked{color:#e33c68!important}.bookmark{margin-left:auto}.likes{font-weight:700;padding:0 14px 4px}.caption{padding:0 14px;margin:0 0 8px;overflow-wrap:anywhere}.comment-placeholder{border-top:1px solid #f0f1f2;color:#a0a4aa;padding:11px 14px}.rightbar{position:sticky;top:92px;padding-top:7px}.profile-row{display:flex;align-items:center;gap:12px;margin-bottom:18px}.profile-row strong,.profile-row small{display:block}.profile-row small{font-size:12px;color:var(--muted);margin-top:2px}.suggest-head{display:flex;justify-content:space-between;color:var(--muted);font-weight:600;margin:26px 0 16px}.suggest-head span{color:var(--ink);font-size:12px}.suggest{margin:0 0 13px}.suggest .avatar{height:33px;width:33px}.footer-links{font-size:11px;color:#a0a4aa;margin-top:30px}.rightbar>small{font-size:11px;color:#a0a4aa}.empty{text-align:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:60px 20px}.empty-icon{font-size:48px;color:#c3c9d2}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(140deg,#fff 20%,#fff6fa 58%,#f4f2ff)}.auth-card{width:min(820px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 18px 60px #18223714}.auth-card>.brand,.auth-card>.muted{text-align:center;display:block}.auth-card>.muted{color:var(--muted);margin-top:6px}.auth-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:28px}.auth-columns form{display:grid;gap:13px}.auth-columns h2{font-size:17px;margin:0 0 3px}.auth-columns label{display:grid;gap:6px;color:#525a64;font-size:12px}.auth-columns input{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;font:inherit}.fine{text-align:center;color:#8b9097;font-size:11px;margin:26px 0 0}.notice{padding:11px 13px;border-radius:8px;margin:10px 0 15px}.notice.error{background:#fff0f1;color:#a82036}.notice.info{background:#edf6ff;color:#245a96}@media(max-width:1050px){.layout{grid-template-columns:170px minmax(0,610px);max-width:820px;padding:0 14px}.rightbar{display:none}}@media(max-width:650px){.topbar{height:56px;padding:0 16px}.topbar .brand{font-size:27px}.search{display:none}.top-actions{gap:15px}.layout{display:block;margin:0 auto;padding:0}.leftnav{position:fixed;z-index:8;left:0;right:0;top:auto;bottom:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:5px}.navitem{padding:8px 12px}.navitem span{display:none}.navitem b{font-size:22px}.leftnav form{display:flex}.feed{padding-bottom:60px}.storybar,.create-card,.post{border-left:0;border-right:0;border-radius:0}.storybar{margin-bottom:10px}.post{margin-bottom:10px}.auth-card{padding:25px 20px}.auth-columns{grid-template-columns:1fr;gap:24px}}

/* Desktop feed proportions based on the supplied Instagram reference */
@media(min-width:1051px){.layout{max-width:1240px;grid-template-columns:220px minmax(400px,470px) 285px;gap:42px;justify-content:center}.feed{width:100%;max-width:470px}.post-media{max-height:640px}.leftnav{top:88px}.rightbar{padding-top:8px}}
.feed-title{font-size:19px;margin:0 0 14px;padding:2px 0}.navitem b{font-weight:500}.search input:focus{outline:1px solid #c7ccd2;background:#fff}

.suggest-empty{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 14px}.feed-title{color:var(--ink)}

/* Keep the Instagram-style navigation near the left edge. */
@media(min-width:1051px){.layout{margin:28px auto 28px max(24px,calc((100vw - 1280px)/2));justify-content:start}}
/* New post uploads open only from the Create button. */
.create-modal{display:none}
.create-modal.is-open{display:block;position:fixed;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 70px #0004;border-radius:14px}
body.modal-open:after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:29}
.modal-close{position:absolute;right:12px;top:9px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#555}
.create-modal .create-heading{padding-right:35px}
@media(max-width:650px){.create-modal.is-open{left:50%;top:50%;border:1px solid var(--line);border-radius:14px}.layout{margin:0 auto}}

/* Desktop layout closer to Instagram: icon rail, centered feed and suggestions. */
@media(min-width:1051px){
  .layout{width:calc(100% - 32px);max-width:1240px;margin:28px auto;grid-template-columns:72px 280px minmax(420px,470px) 285px;gap:25px;justify-content:start;align-items:start}
  .leftnav{grid-column:1;position:sticky;top:82px;justify-items:center;gap:12px}
  .leftnav .navitem{width:52px;height:52px;justify-content:center;gap:0;padding:0;border-radius:10px}
  .leftnav .navitem span{display:none}
  .leftnav .navitem b{width:auto;font-size:25px}
  .leftnav form{width:52px}
  .leftnav .navbutton{justify-content:center}
  .feed{grid-column:3;width:100%;max-width:470px}
  .rightbar{grid-column:4;padding-top:8px}
  .create-modal.is-open{left:50%;top:50%}
}

/* Reveal the rail labels when the pointer hovers over an icon (desktop). */
@media(min-width:1051px){
  .leftnav .navitem{position:relative;overflow:visible}
  .leftnav .navitem span{display:block;position:absolute;left:calc(100% + 12px);top:50%;transform:translate(-4px,-50%);z-index:40;padding:9px 13px;border:1px solid #e7e9ec;border-radius:9px;background:#fff;color:#17191c;box-shadow:0 5px 18px rgba(0,0,0,.14);font-size:14px;line-height:1.2;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,transform .12s ease}
  .leftnav .navitem:hover span,.leftnav .navitem:focus-visible span{opacity:1;visibility:visible;transform:translate(0,-50%)}
}

/* Immersive vertical Reels viewer */
.reels-layout{align-items:center;min-height:calc(100vh - 92px)}
.reels-layout .rightbar{display:none}
.reels-feed{grid-column:2 / 5!important;width:100%!important;max-width:none!important;min-width:0;position:relative}
.reels-heading{text-align:center;margin:0 0 8px}
.reels-stage{height:calc(100vh - 128px);min-height:430px;max-height:850px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;display:grid;justify-items:center;gap:14px;padding:0 60px 8px}
.reels-stage::-webkit-scrollbar{display:none}
.reel-slide{position:relative;isolation:isolate;width:min(100%,440px);height:calc(100vh - 142px);min-height:420px;max-height:830px;aspect-ratio:9/16;overflow:visible;scroll-snap-align:start;background:#101114;border-radius:10px;color:#fff;box-shadow:0 4px 22px #0002}
.reel-video{display:block;width:100%;height:100%;object-fit:cover;background:#101114;border-radius:10px;cursor:pointer}
.reel-shade{pointer-events:none;position:absolute;inset:35% 0 0;border-radius:0 0 10px 10px;background:linear-gradient(transparent,rgba(0,0,0,.78));z-index:1}
.reel-caption{position:absolute;z-index:2;left:18px;right:16px;bottom:19px;text-shadow:0 1px 3px #0009;overflow-wrap:anywhere}
.reel-caption p{margin:9px 0 0;max-height:5.6em;overflow:auto}
.reel-author{display:flex;align-items:center;gap:9px}
.reel-author .avatar{flex:none;border:1px solid #fff}
.reel-time{font-size:12px;color:#eee}
.reel-actions{position:absolute;z-index:3;left:calc(100% + 13px);bottom:24px;display:grid;justify-items:center;gap:17px;color:#25272b;text-shadow:none}
.reel-actions form{display:grid;justify-items:center;gap:1px;margin:0}
.reel-actions small{font-size:11px;color:#50545b}
.reel-action{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;padding:0;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.reel-action:hover{background:#0000000c}
.reel-actions .liked{color:#e33c68!important}
.reel-sound{position:absolute;right:14px;bottom:16px;z-index:4;width:38px;height:38px;border:0;border-radius:50%;background:#0008;color:#fff;cursor:pointer}
.reel-navigation{position:fixed;right:max(24px,calc((100vw - 1320px)/2));top:50%;transform:translateY(-50%);z-index:4;display:grid;gap:12px}
.reel-navigation button{width:42px;height:42px;border:1px solid #dfe2e6;border-radius:50%;background:#fff;color:#272a30;font-size:22px;cursor:pointer;box-shadow:0 2px 10px #0001}
.reel-navigation button:hover{background:#f1f3f5}
.upload-help{margin:-3px 0 12px;color:#737983;font-size:13px}
@media(max-width:1050px){.reels-layout{display:block;min-height:auto;padding:0 14px}.reels-feed{width:100%;padding-bottom:20px}.reels-stage{height:calc(100vh - 150px);padding:0 48px 8px}.reel-slide{height:calc(100vh - 160px);min-height:360px}.reel-actions{left:auto;right:8px;bottom:70px;color:#fff;text-shadow:0 1px 5px #000}.reel-actions small{color:#fff}.reel-navigation{right:8px}.reel-navigation button{width:36px;height:36px}}
@media(max-width:650px){.reels-layout{padding:0}.reels-heading{display:none}.reels-stage{height:calc(100dvh - 115px);min-height:400px;max-height:none;padding:0;gap:0}.reel-slide{width:100%;height:calc(100dvh - 115px);min-height:400px;max-height:none;aspect-ratio:auto;border-radius:0;box-shadow:none}.reel-video{border-radius:0}.reel-shade{border-radius:0}.reel-navigation{right:6px;top:47%;gap:6px}.reel-navigation button{width:32px;height:32px;background:#fff9}.upload-row{gap:10px}.filepick{font-size:12px}}
@media(prefers-reduced-motion:reduce){.reels-stage{scroll-behavior:auto}}

/* Profile and profile-photo upload */
.avatar img,.mini-avatar img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}
.avatar-link{overflow:hidden}
.profile-feed .profile-page-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:0 0 18px}
.profile-page-main{display:flex;align-items:center;gap:18px;padding:8px 0 20px;border-bottom:1px solid var(--line)}
.profile-photo-large{width:104px;height:104px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#fd8c42,#d62f8b,#7a4fe0);color:white;font-size:40px;font-weight:700}
.profile-photo-large img{width:100%;height:100%;object-fit:cover}
.profile-page-main h1{font-size:23px;margin:0 0 5px;overflow-wrap:anywhere}
.profile-page-main p{color:var(--muted);margin:0}
.avatar-upload-form{display:grid;justify-items:start;gap:11px;padding:20px 0}
.avatar-upload-form label{font-weight:700}
.avatar-upload-form input[type=file]{max-width:100%;font:inherit}
.avatar-upload-form small{color:var(--muted)}
.profile-posts-title{font-size:14px;text-transform:uppercase;letter-spacing:.08em;text-align:center;margin:8px 0 0;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:650px){.profile-feed{padding:12px 10px 76px}.profile-feed .profile-page-card{border-radius:12px}.profile-photo-large{width:82px;height:82px;font-size:32px}.profile-page-main h1{font-size:20px}}

/* Profile area spacing and non-oval profile photo */
@media(min-width:1051px){.rightbar{transform:translateX(38px)}}
.rightbar .avatar.large{width:60px;height:60px;min-width:60px;aspect-ratio:1/1;flex:none;border-radius:15px;overflow:hidden}
.rightbar .avatar.large img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.profile-photo-large{width:112px;height:112px;min-width:112px;aspect-ratio:1/1;border-radius:18px;overflow:hidden}
.profile-photo-large img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:15px}

/* Fine tune desktop alignment and keep feed videos visible in a portrait frame. */
@media(min-width:1051px){.rightbar{transform:translateX(14px)}}
.post video.post-media{width:100%;height:min(76vh,720px);max-height:none;aspect-ratio:9/16;object-fit:contain;background:#111}
@media(max-width:650px){.post video.post-media{height:min(72vh,760px);max-height:none;aspect-ratio:9/16}}

/* Match the reference spacing: wider feed, profile rail closer to the center. */
@media(min-width:1051px){
  .layout{grid-template-columns:72px 150px minmax(500px,550px) 260px;gap:22px}
  .feed{max-width:550px}
  .rightbar{transform:none}
}
/* Use rounded-square user photos throughout the interface, at a smaller profile size. */
.avatar,.mini-avatar,.avatar img,.mini-avatar img{border-radius:10px}
.rightbar .avatar.large{width:48px;height:48px;min-width:48px;aspect-ratio:1/1;border-radius:11px}
.rightbar .avatar.large img{border-radius:9px}
.profile-photo-large{width:82px;height:82px;min-width:82px;aspect-ratio:1/1;border-radius:13px}
.profile-photo-large img{border-radius:11px}
.post video.post-media{height:min(84vh,820px)}
@media(max-width:650px){.post video.post-media{height:min(72vh,760px)}}

/* Corrected placement: profile/suggestions rail farther right; larger square post avatar. */
@media(min-width:1051px){.rightbar{transform:translateX(90px)}}
.post-head .avatar{width:46px;height:46px;min-width:46px;aspect-ratio:1/1;flex:none;border-radius:10px;overflow:hidden}
.post-head .avatar img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:8px}

/* Reels overlay avatar: fixed square so it cannot collapse beside a long name. */
.reel-author .reel-avatar{box-sizing:border-box;display:grid;place-items:center;width:48px;height:48px;min-width:48px;max-width:48px;flex:0 0 48px;aspect-ratio:1/1;border-radius:11px;overflow:hidden}
.reel-author .reel-avatar img{display:block;width:100%;height:100%;min-width:100%;object-fit:cover;aspect-ratio:1/1;border-radius:9px}
.reel-author strong{min-width:0;overflow-wrap:anywhere}

/* Push the entire account/suggestions column farther toward the right edge. */
@media(min-width:1051px){.rightbar{transform:translateX(150px)}}

/* Seek line on Reels videos */
.reel-progress{--played:0%;position:absolute;z-index:6;left:10px;bottom:5px;width:calc(100% - 20px);height:18px;margin:0;padding:0;background:transparent;appearance:none;-webkit-appearance:none;cursor:pointer;touch-action:pan-x}
.reel-progress::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(to right,#fff 0%,#fff var(--played),rgba(255,255,255,.55) var(--played),rgba(255,255,255,.55) 100%)}
.reel-progress::-webkit-slider-thumb{-webkit-appearance:none;width:10px;height:10px;margin-top:-3.5px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0008}
.reel-progress::-moz-range-track{height:3px;border-radius:4px;background:rgba(255,255,255,.55)}
.reel-progress::-moz-range-progress{height:3px;border-radius:4px;background:#fff}
.reel-progress::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0008}
.reel-sound{bottom:32px}
.reel-caption{bottom:34px}

/* Slightly smaller admin/user photos in the profile rail and Reel overlay. */
.rightbar .avatar.large{width:40px;height:40px;min-width:40px;max-width:40px;flex:0 0 40px;border-radius:9px}
.rightbar .avatar.large img{border-radius:7px}
.reel-author .reel-avatar{width:40px;height:40px;min-width:40px;max-width:40px;flex:0 0 40px;border-radius:9px}
.reel-author .reel-avatar img{border-radius:7px}
.post-head .avatar{width:40px;height:40px;min-width:40px;max-width:40px;flex:0 0 40px;border-radius:9px}
.post-head .avatar img{border-radius:7px}

/* Reels overlay: caption at lower left, creator at lower right. */
.reel-caption{left:16px;right:112px;bottom:22px;max-height:30%;overflow:auto}
.reel-caption p{margin:0;font-size:14px;line-height:1.4;white-space:pre-wrap}
.reel-caption .reel-title-fallback{font-weight:600}
.reel-profile-bottom{position:absolute;z-index:3;right:14px;bottom:24px;width:92px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;text-shadow:0 1px 4px #000b;font-size:12px;overflow-wrap:anywhere}
.reel-profile-bottom .reel-avatar{width:42px;height:42px;min-width:42px;flex:0 0 42px;border:2px solid #fff;border-radius:11px;overflow:hidden}
.reel-profile-bottom .reel-avatar img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.reel-profile-bottom strong{max-width:100%;line-height:1.2}
@media(max-width:1050px){.reel-profile-bottom{right:10px;bottom:82px}.reel-caption{right:108px;bottom:24px}}
@media(max-width:650px){.reel-profile-bottom{right:10px;bottom:62px;width:72px;font-size:11px}.reel-profile-bottom .reel-avatar{width:38px;height:38px;min-width:38px;flex-basis:38px}.reel-caption{left:12px;right:88px;bottom:20px;font-size:13px}}
@media(max-width:1050px){.reel-actions{bottom:150px}.reel-sound{top:14px;bottom:auto}}
@media(min-width:1051px){.reel-sound{top:14px;bottom:auto}}

/* Plasser profil og innhold samlet nederst til venstre, som i Reels-referansen. */
.reel-caption{left:16px;right:58px;bottom:22px;max-height:34%;overflow:auto}
.reel-caption .reel-author{display:flex;align-items:center;gap:9px}
.reel-caption .reel-author .reel-avatar{width:40px;height:40px;min-width:40px;max-width:40px;flex:0 0 40px;border:1px solid #fff;border-radius:10px;overflow:hidden}
.reel-caption .reel-author .reel-avatar img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.reel-caption .reel-author strong{min-width:0;overflow-wrap:anywhere}
.reel-caption .reel-time{font-size:12px;color:#eee}
.reel-caption p{margin:8px 0 0;white-space:pre-wrap}
.reel-profile-bottom{display:none}
@media(max-width:650px){.reel-caption{left:12px;right:52px;bottom:20px;max-height:35%}}

/* Desktop Reels: creator details outside the left edge; profile chip at bottom right. */
@media(min-width:1051px){
 .reel-caption{left:auto;right:calc(100% + 22px);bottom:24px;width:220px;max-height:36%;overflow:auto;color:#26282c;text-shadow:none}
 .reel-caption .reel-author{justify-content:flex-start}
 .reel-caption .reel-author .reel-avatar{width:32px;height:32px;min-width:32px;max-width:32px;flex:0 0 32px;border:0}
 .reel-caption .reel-author .reel-avatar img{border-radius:8px}
 .reel-caption .reel-time{color:#777d84}
 .reel-profile-bottom{display:grid;position:absolute;z-index:4;left:calc(100% + 13px);right:auto;bottom:4px;width:42px;height:42px;place-items:center}
 .reel-profile-bottom .reel-avatar{width:36px;height:36px;min-width:36px;max-width:36px;flex:0 0 36px;border-radius:9px;overflow:hidden;border:1px solid #ddd}
 .reel-profile-bottom .reel-avatar img{width:100%;height:100%;object-fit:cover;border-radius:8px}
 .reel-profile-bottom strong{display:none}
 .reel-actions{bottom:58px}
 .reel-sound{top:auto;bottom:16px}
}
@media(max-width:1050px){.reel-profile-bottom{display:none}}

/* Follow label next to the creator name in the Reels details. */
.reel-follow{display:inline-block;margin-left:7px;color:#2878e8;font-size:12px;font-weight:700;white-space:nowrap}

/* Keep only the brand in the top bar; search and profile live in the side rail. */
.topbar{justify-content:flex-start}
.nav-search-wrap{position:relative}
.nav-search-form{display:none}
.nav-search-wrap.is-open .nav-search-form{display:flex;position:absolute;left:64px;top:0;z-index:50;gap:8px;align-items:center;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 22px #0002}
.nav-search-form input{width:205px;border:0;background:#f1f2f4;border-radius:8px;padding:10px 12px;font:inherit}
.nav-search-form input:focus{outline:1px solid #c7ccd2;background:#fff}
.nav-avatar{display:grid!important;place-items:center;width:25px;height:25px;min-width:25px;overflow:hidden;border-radius:8px;background:linear-gradient(135deg,#fd8c42,#d62f8b,#7a4fe0);color:#fff;font-size:13px!important}
.nav-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.reel-follow{display:inline-block!important;margin-left:9px;color:#2878e8!important;font-size:12px;font-weight:700;white-space:nowrap}
.reel-caption .reel-author{flex-wrap:nowrap;overflow:visible}
.reel-caption .reel-author strong{white-space:nowrap}
.reel-profile-bottom a{display:grid;width:42px;height:42px;place-items:center}
@media(max-width:1050px){.nav-search-wrap.is-open .nav-search-form{left:0;top:auto;bottom:58px}.nav-search-form input{width:min(205px,52vw)}}

/* Instagram-like left icon rail and Follow controls in suggestion rows. */
@media(min-width:1051px){
 .leftnav{position:fixed;left:14px;top:84px;width:66px;z-index:9;gap:12px}
 .leftnav .navitem{width:58px;height:58px;color:#17191c;background:transparent}
 .leftnav .navitem:hover,.leftnav .navitem:focus-visible{background:#f1f2f3}
 .leftnav .navitem b{font-size:30px;font-weight:600;color:#17191c}
 .leftnav .nav-avatar{width:31px;height:31px;min-width:31px;font-size:15px!important}
 .leftnav form{width:58px}
 .leftnav .nav-search-wrap{width:58px}
}
.suggest{gap:10px;align-items:center}
.suggest-user{min-width:0;flex:1}
.suggest-user strong{display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.suggest-follow{border:0;background:transparent;color:#2878e8;font:inherit;font-size:12px;font-weight:700;padding:6px 2px;cursor:pointer;white-space:nowrap}
.suggest-follow:hover{color:#1755a8}
@media(max-width:1050px){.suggest-follow{font-size:12px}}

/* Keep the left-rail profile photo fully visible inside its menu button. */
.leftnav .navitem .nav-avatar{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important;padding:0!important;overflow:hidden!important;border-radius:9px!important;font-size:14px!important;line-height:1!important}
.leftnav .navitem .nav-avatar img{display:block!important;width:100%!important;height:100%!important;min-width:100%!important;object-fit:cover!important;border-radius:inherit!important}
.suggest-follow-form,.reel-follow-form{margin:0;display:inline-flex}
.suggest-follow{border:0;background:transparent;color:#2878e8;font:inherit;font-size:12px;font-weight:700;padding:6px 2px;cursor:pointer;white-space:nowrap}
.suggest-follow:hover,.reel-follow:hover{text-decoration:underline}
.reel-follow{border:0;background:transparent;font-family:inherit;cursor:pointer;padding:0}
@media(min-width:1051px){.leftnav .navitem .nav-avatar{width:34px!important;height:34px!important;flex-basis:34px!important}}
