:root{color-scheme:dark;--bg:#0c1013;--text:#f5f5f5;--muted:#a8a8a8;--blue:#6ea2ff;--line:#262a2e}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:12px}body{min-height:100vh}.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:72px;display:flex;flex-direction:column;align-items:center;padding:27px 0 22px;background:var(--bg)}.ig-mark{width:24px;height:24px;color:#f5f5f5;margin-bottom:35px}.ig-mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}.sidebar nav,.side-bottom{width:100%;display:flex;flex-direction:column;align-items:center;gap:20px}.nav{width:48px;height:40px;display:grid;place-items:center;background:none;border:0;color:#f5f5f5;position:relative;cursor:pointer;padding:0}.nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav:hover{opacity:.7}.nav.active svg{stroke-width:2.8}.nav.profile-nav img{width:19px;height:19px;object-fit:cover;border-radius:50%}.badge-nav i,.message-icon i{position:absolute;top:1px;right:7px;background:#ff3040;color:white;border-radius:50%;font-size:9px;font-style:normal;width:15px;height:15px;display:grid;place-items:center;border:1px solid var(--bg)}.side-bottom{margin-top:auto;gap:14px}.layout{margin-left:72px;min-height:100vh;display:grid;grid-template-columns:460px 320px;column-gap:76px;max-width:1000px;padding:17px 0 50px 72px;align-items:start}.feed-column{width:460px;min-width:0}.stories{height:94px;width:470px;display:flex;align-items:flex-start;gap:13px;position:relative;overflow:hidden;margin-bottom:12px}.story{width:67px;flex:0 0 67px;padding:0;border:0;background:none;color:var(--text);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px}.story-ring{width:67px;height:67px;border-radius:50%;padding:2.5px;background:conic-gradient(#ffb900,#ff3040,#d300c5,#ff3040,#ffb900)}.story-ring img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid var(--bg)}.story small{font-size:10px;max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-next{position:absolute;right:2px;top:28px;width:23px;height:23px;border:0;border-radius:50%;background:#f5f5f5;color:#333;font-size:22px;line-height:18px;cursor:pointer}.posts{width:360px;margin-left:54px}.post{width:360px;margin:0 0 24px}.post-head{height:39px;display:flex;align-items:center;gap:8px;padding:0 7px;margin-bottom:0}.post-avatar{width:30px;height:30px;border-radius:50%;padding:2px;border:1.5px solid #ff3040;object-fit:cover}.post-user{display:flex;align-items:center;gap:4px;flex-wrap:wrap;line-height:13px;min-width:0}.post-user b{font-size:11px;font-weight:650}.post-user span{color:var(--muted);font-size:11px}.post-user small{flex-basis:100%;font-size:9px;margin-top:-3px}.dots{margin-left:auto;border:0;background:none;color:#eee;letter-spacing:2px;font-size:13px;cursor:pointer}.media-wrap{width:360px;position:relative;overflow:hidden;border-radius:4px;background:#15191c}.post-media{width:360px;height:auto;aspect-ratio:361/453;display:block;object-fit:cover}.media-next{position:absolute;right:9px;top:48%;width:22px;height:22px;border:0;border-radius:50%;background:#e6e8e2;color:#1c2922;font-size:22px;line-height:17px;cursor:pointer}.carousel-dots{height:19px;display:flex;justify-content:center;align-items:center;gap:4px}.carousel-dots i{width:4px;height:4px;border-radius:50%;background:#686d71}.carousel-dots i.selected{background:#667bff}.post-actions{height:36px;display:flex;align-items:center;gap:8px;padding:0 7px}.post-actions button{width:24px;height:26px;border:0;padding:0;background:none;color:#f5f5f5;cursor:pointer;display:grid;place-items:center}.post-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.post-actions button.liked svg{fill:#ff3040;stroke:#ff3040}.post-actions .like-count{font-size:10px;margin-left:-7px;margin-right:1px}.post-actions .save{margin-left:auto}.caption{font-size:10px;line-height:1.45;margin:4px 7px 0}.caption b{font-weight:700;margin-right:3px}.caption span{color:#aaa}.translation{margin:5px 7px;color:#eee;font-size:9px;font-weight:600}.right-panel{width:320px;padding-top:10px;margin-left:0}.account{height:47px;display:flex;align-items:center;gap:10px;margin-bottom:17px}.account img{width:34px;height:34px;border-radius:50%;object-fit:cover}.account b{font-size:10px}.account button,.suggest-title button,.suggestion button{margin-left:auto;background:none;border:0;color:#6ea2ff;font-size:10px;font-weight:650;cursor:pointer}.suggest-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}.suggest-title b{font-size:11px}.suggest-title button{color:#eee}.suggestions{display:flex;flex-direction:column;gap:11px}.suggestion{display:flex;align-items:center;gap:9px;min-height:35px}.suggestion img{width:34px;height:34px;border-radius:50%;object-fit:cover}.suggestion div{min-width:0;display:flex;flex-direction:column;gap:3px}.suggestion b{font-size:11px;white-space:nowrap}.suggestion small{font-size:9px;color:#a8a8a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:195px}.suggestion button{padding:5px 0}.right-panel footer{font-size:9px;line-height:1.8;color:#a8a8a8;margin-top:29px}.loading{height:120px;display:grid;place-items:center}.loading span{width:20px;height:20px;border:2px dotted #4c5054;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.messages-pill{position:fixed;z-index:30;right:24px;bottom:24px;width:194px;height:44px;border-radius:24px;background:#202428;border:1px solid #30353a;box-shadow:0 3px 15px #0005;display:flex;align-items:center;gap:10px;padding:0 12px;cursor:pointer}.messages-pill b{font-size:12px}.messages-pill img{width:20px;height:20px;border-radius:50%;object-fit:cover;margin-left:auto}.message-icon{position:relative;font-size:17px}.message-icon i{top:-6px;right:-7px}.mobile-head{display:none}.toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#303438;color:white;padding:10px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1}.modal{position:fixed;inset:0;z-index:80;background:#000b;display:none;place-items:center;padding:20px}.modal.open{display:grid}.modal-card{position:relative;background:#171b1f;border:1px solid #33383d;border-radius:14px;padding:24px;width:min(430px,94vw);max-height:85vh;overflow:auto}.modal-close{position:absolute;right:12px;top:7px;border:0;background:none;color:white;font-size:25px;cursor:pointer}.modal h3{margin:0 0 18px}.modal input,.modal textarea{width:100%;background:#24292e;border:1px solid #3c4248;border-radius:8px;color:white;padding:10px;margin:6px 0 12px}.modal button.primary{background:#405de6;border:0;color:white;border-radius:8px;padding:9px 16px;cursor:pointer}.story-view{position:fixed;inset:0;z-index:90;background:#000e;display:grid;place-items:center}.story-view img{height:min(80vh,740px);max-width:90vw;border-radius:12px}.story-view button{position:absolute;right:25px;top:20px;background:none;border:0;color:white;font-size:32px}
@media(max-width:1150px){.layout{grid-template-columns:460px 280px;column-gap:35px;padding-left:40px}.right-panel{width:280px}.posts{margin-left:100px}.stories{width:460px}}
@media(max-width:980px){.layout{grid-template-columns:minmax(360px,460px);justify-content:center;padding-left:0;margin-left:72px}.right-panel{display:none}.feed-column{width:min(460px,calc(100vw - 100px))}.stories{width:100%}.posts{margin-left:auto;margin-right:auto}}
@media(max-width:650px){.sidebar{inset:auto 0 0;width:100%;height:54px;padding:0;background:#0c1013;border-top:1px solid #262a2e}.ig-mark,.side-bottom{display:none}.sidebar nav{height:100%;flex-direction:row;justify-content:space-around;gap:0}.nav{height:50px;width:18%;}.nav svg{width:23px;height:23px}.layout{display:block;margin:0;padding:0 0 75px;min-height:100vh}.feed-column{width:100%}.mobile-head{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #22272b}.mobile-head button{background:none;border:0;color:white;font-size:26px}.wordmark{font-family:Georgia,serif;font-size:25px;font-style:italic}.stories{height:93px;width:100%;padding:11px 12px 0;gap:12px;margin:0 0 6px}.story{width:64px;flex-basis:64px}.story-ring{width:61px;height:61px}.story-next{right:8px;top:28px}.posts{width:100%;margin:0}.post{width:100%;margin-bottom:16px}.post-head{padding:0 12px;height:42px}.media-wrap,.post-media{width:100%;border-radius:0}.post-media{aspect-ratio:1/1;object-fit:cover}.post-actions{padding:0 12px}.caption,.translation{margin-left:12px;margin-right:12px}.carousel-dots{height:16px}.right-panel{display:none}.messages-pill{right:12px;bottom:65px;width:48px;height:48px;justify-content:center;padding:0;border-radius:50%}.messages-pill b,.messages-pill>img{display:none}.message-icon{font-size:20px}.message-icon i{right:-10px}.loading{height:75px}}

/* WordPress login and registration screens */
.ic-auth-page{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#fff;min-height:100vh;padding:36px 20px;color:#262626}.ic-auth-layout{display:flex;align-items:center;justify-content:center;gap:32px;max-width:850px;margin:0 auto}.ic-auth-visual{width:420px;height:590px;position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#fff 15%,#f5f5f5 100%)}.ic-phone-frame{width:250px;height:500px;border:8px solid #222;border-radius:36px;background:#fff;box-shadow:0 12px 40px #0002;padding:22px 12px;position:relative;overflow:hidden}.ic-phone-top{position:absolute;top:0;left:50%;transform:translateX(-50%);width:100px;height:16px;background:#222;border-radius:0 0 12px 12px}.ic-phone-brand{font-family:Georgia,serif;font-style:italic;text-align:center;font-size:20px;margin:18px 0}.ic-phone-photo{height:100px;border-radius:8px;margin:12px 0;background:linear-gradient(135deg,#f6c,#f90)}.ic-photo-two{background:linear-gradient(135deg,#85d,#f8a)}.ic-photo-three{background:linear-gradient(135deg,#5ac,#dc8)}.ic-phone-bottom{display:flex;justify-content:space-around;margin-top:15px}.ic-phone-bottom i{width:14px;height:14px;border:2px solid #333;border-radius:50%}.ic-auth-visual-copy{position:absolute;bottom:12px;font-size:13px;color:#8e8e8e;text-align:center}.ic-auth-column{width:350px}.ic-auth-card,.ic-auth-switch{border:1px solid #dbdbdb;padding:30px 38px;text-align:center}.ic-auth-wordmark{font-family:Georgia,"Times New Roman",serif;font-size:42px;font-style:italic;letter-spacing:-2px;margin:4px 0 28px;color:#111}.ic-auth-tagline{font-size:16px;line-height:1.35;color:#8e8e8e;font-weight:600;margin:-10px 0 20px}.ic-auth-form{display:grid;gap:7px}.ic-auth-field{display:block;text-align:left;background:#fafafa;border:1px solid #dbdbdb;border-radius:3px;padding:7px 8px}.ic-auth-field span{display:none}.ic-auth-field input{border:0;outline:0;background:transparent;width:100%;font-size:12px;padding:3px 0}.ic-auth-submit{border:0;border-radius:8px;background:#4a5df9;color:#fff;font-weight:600;padding:8px;margin-top:8px;cursor:pointer}.ic-auth-or{display:flex;align-items:center;gap:16px;color:#8e8e8e;font-size:12px;font-weight:600;margin:14px 0}.ic-auth-or span{height:1px;background:#dbdbdb;flex:1}.ic-auth-remember{display:flex;align-items:center;gap:8px;font-size:12px;color:#555;text-align:left}.ic-auth-forgot{font-size:12px;color:#00376b;text-decoration:none;margin-top:10px}.ic-auth-legal{font-size:11px;line-height:1.5;color:#8e8e8e}.ic-auth-legal a{color:#00376b;text-decoration:none;font-weight:600}.ic-auth-switch{padding:22px 12px;margin-top:10px;font-size:14px}.ic-auth-switch a{color:#0095f6;font-weight:600;text-decoration:none}.ic-auth-apps{text-align:center;font-size:13px}.ic-auth-apps>div{display:inline-flex;flex-direction:column;background:#111;color:#fff;border-radius:6px;padding:6px 12px;margin:0 3px}.ic-auth-apps span{font-size:8px}.ic-auth-apps b{font-size:13px}.ic-auth-error{background:#fff0f0;color:#c00;padding:9px;margin-bottom:10px;font-size:12px}.ic-auth-footer{width:100%;text-align:center;color:#8e8e8e;font-size:11px;line-height:2;margin:35px auto 0}
@media(max-width:1200px){.ic-shell{grid-template-columns:72px minmax(390px,630px) 290px;gap:24px;padding:0 20px}.ic-sidebar{padding-right:10px}.ic-brand{font-size:0;margin-left:8px;height:32px}.ic-brand:after{content:"◎";font:32px Arial}.ic-sidebar button span,.ic-side-user>span{display:none}.ic-sidebar button{justify-content:center;padding:12px 8px}.ic-side-user{justify-content:center;padding:10px 0}.ic-side-user .ic-avatar{width:30px;height:30px}}
@media(max-width:900px){.ic-shell{grid-template-columns:72px minmax(0,1fr);gap:20px;max-width:760px}.ic-right{display:none}.ic-main{padding-top:20px}}
@media(max-width:650px){.ic-shell{display:block;padding:0 0 55px}.ic-sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:52px;border-right:0;border-top:1px solid #dbdbdb;padding:0;background:#fff}.ic-brand,.ic-side-user,.ic-side-bottom{display:none}.ic-sidebar nav{display:flex;justify-content:space-around;align-items:center;height:100%;gap:0}.ic-sidebar button{min-height:48px;padding:8px 10px;border-radius:0}.ic-sidebar button b{font-size:23px}.ic-sidebar button span{display:none}.ic-main{padding:0 0 20px}.ic-mobile-head{height:52px;border-bottom:1px solid #dbdbdb;display:flex;align-items:center;justify-content:space-between;padding:0 15px}.ic-mobile-head b{font-family:Georgia,serif;font-size:25px;font-style:italic}.ic-stories{padding:12px 12px 18px;border-bottom:1px solid #efefef;margin-bottom:0}.ic-feed{max-width:100%}.ic-post{border-bottom:1px solid #dbdbdb;padding:0 0 14px;margin-bottom:12px}.ic-post-head{padding:6px 12px}.ic-media{border-left:0;border-right:0}.ic-actions,.ic-count,.ic-caption,.ic-post>.ic-muted,.ic-comment{margin-left:12px;margin-right:12px}.ic-profile-head{gap:20px;padding:24px 15px}.ic-profile-head>.ic-avatar{width:85px;height:85px}.ic-grid{gap:2px}.ic-create-panel{margin:20px 12px;padding:18px}.ic-chat{grid-template-columns:1fr}.ic-chat>section:first-child{border-right:0;border-bottom:1px solid #eee}.ic-auth-visual{display:none}.ic-auth-page{padding:20px 0}.ic-auth-layout{width:100%;max-width:350px}.ic-auth-column{width:100%}.ic-auth-card{border:0;padding:25px 28px}.ic-auth-switch{border-left:0;border-right:0}.ic-auth-footer{padding:0 18px;margin-top:28px}}
.ic-story{border:0;background:transparent;padding:0;font-family:inherit}


/* v2.3 responsive refinements */
@media (min-width: 651px) and (max-width: 1100px) {
  .layout { grid-template-columns:minmax(390px, 630px); max-width:760px; margin-left:72px; padding:18px 22px 50px; }
  .feed-column { width:100%; }
  .stories { width:100%; }
  .posts { width:min(100%, 470px); margin:0 auto; }
  .post,.media-wrap,.post-media { width:100%; }
  .right-panel { display:none; }
}
@media (max-width: 650px) {
  html,body { width:100%; overflow-x:hidden; background:#000; }
  .mobile-head { display:flex; position:sticky; top:0; z-index:30; height:50px; background:#000; border-bottom:1px solid #262626; }
  .mobile-head .wordmark { font-family:Georgia,"Times New Roman",serif; font-size:25px; font-style:italic; letter-spacing:-1px; }
  .mobile-head button { font-size:27px; line-height:1; }
  .sidebar { height:52px; background:#000; border-top:1px solid #262626; padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .sidebar nav { display:flex; flex-direction:row; justify-content:space-around; align-items:center; gap:0; }
  .sidebar nav .nav { display:none; width:20%; height:50px; }
  .sidebar nav .nav[data-nav="Home"],
  .sidebar nav .nav[data-nav="Reels"],
  .sidebar nav .nav[data-nav="Messages"],
  .sidebar nav .nav[data-nav="Create"],
  .sidebar nav .nav[data-nav="Profile"] { display:grid; }
  .sidebar nav .nav svg { width:25px; height:25px; }
  .sidebar nav .nav.profile-nav img { width:25px; height:25px; }
  .layout { display:block; width:100%; max-width:none; min-height:100vh; margin:0; padding:0 0 calc(62px + env(safe-area-inset-bottom)); }
  .feed-column { width:100%; }
  .stories { height:98px; width:100%; padding:12px 12px 8px; gap:12px; margin:0; border-bottom:1px solid #262626; overflow-x:auto; scrollbar-width:none; }
  .stories::-webkit-scrollbar { display:none; }
  .story { width:66px; flex:0 0 66px; gap:5px; }
  .story-ring { width:62px; height:62px; }
  .story small { max-width:64px; font-size:11px; }
  .story-next { display:none; }
  .posts { width:100%; margin:0; }
  .post { width:100%; margin:0 0 13px; padding-bottom:12px; border-bottom:1px solid #262626; }
  .post-head { height:48px; padding:0 12px; gap:9px; }
  .post-avatar { width:33px; height:33px; }
  .post-user b { font-size:12px; }
  .post-user span { font-size:12px; }
  .media-wrap { width:100%; border-radius:0; }
  .post-media { width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; }
  .post-actions { height:42px; padding:0 12px; gap:11px; }
  .post-actions button { width:25px; height:30px; }
  .post-actions svg { width:24px; height:24px; }
  .post-actions .like-count { font-size:12px; margin-left:-9px; }
  .caption { font-size:12px; line-height:1.4; margin:2px 12px 0; }
  .translation { margin:5px 12px; font-size:11px; }
  .carousel-dots { height:15px; }
  .right-panel { display:none!important; }
  .messages-pill { display:none; }
  .loading { height:48px; }
  .modal { padding:0; align-items:flex-end; }
  .modal-card { width:100%; max-width:none; max-height:88vh; border-radius:18px 18px 0 0; padding:22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .story-view { padding:0; }
  .story-view img,.story-view video { max-width:100vw; max-height:100dvh; object-fit:contain; }
}
@media (max-width: 380px) {
  .story { width:60px; flex-basis:60px; }
  .story-ring { width:56px; height:56px; }
  .post-actions { gap:8px; }
}
