/* V9 desktop Instagram layout */
.desktop-instagram{display:none}
@media (min-width:901px){
  #app{background:#fff;color:#101010}
  .topbar,#feed,.bottom-nav,.progress{display:none!important}
  .desktop-instagram{display:grid;grid-template-columns:244px minmax(560px,680px) 300px;gap:38px;max-width:1360px;margin:0 auto;height:100dvh;background:#fff}
  .ig-sidebar{position:sticky;top:0;height:100dvh;border-right:1px solid #e7e7e7;padding:28px 18px 24px;display:flex;flex-direction:column}
  .ig-brand{padding:8px 10px 34px;display:flex;align-items:center;gap:10px;font-weight:800;font-size:24px;letter-spacing:-.04em}
  .ig-brand img{width:34px;height:34px;object-fit:contain}
  .ig-menu{display:flex;flex-direction:column;gap:6px}
  .ig-menu button{display:flex;align-items:center;gap:16px;padding:13px 12px;border-radius:10px;font-size:15px;text-align:left;color:#171717}
  .ig-menu button:hover{background:#f5f5f5}
  .ig-menu button.active{font-weight:800;background:#f5f5f5}
  .ig-menu svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8}
  .ig-sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:6px}
  .ig-main{height:100dvh;overflow:auto;scrollbar-width:none;padding:28px 0 60px}
  .ig-main::-webkit-scrollbar{display:none}
  .ig-profile{border-bottom:1px solid #e8e8e8;padding:12px 0 26px;margin-bottom:22px}
  .ig-profile-head{display:grid;grid-template-columns:150px 1fr;gap:34px;align-items:start}
  .ig-avatar{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#fff}
  .ig-avatar img{width:150px;height:150px;object-fit:contain}
  .ig-profile-info{padding-top:2px}
  .ig-profile-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
  .ig-profile-row h1{font-size:22px;margin:0;font-weight:500}
  .ig-verified{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#0095f6;color:#fff;font-size:13px;font-weight:800}
  .ig-profile-actions{display:flex;gap:8px;margin-left:auto}
  .ig-profile-actions button{background:#efefef;border-radius:8px;padding:8px 15px;font-weight:700;font-size:14px}
  .ig-profile-actions .blue{background:#0095f6;color:#fff}
  .ig-stats{display:flex;gap:34px;margin:22px 0 14px;font-size:15px}
  .ig-stats b{font-weight:700}
  .ig-bio strong{display:block;font-size:14px;margin-bottom:4px}
  .ig-bio{font-size:14px;line-height:1.45;color:#262626}
  .ig-bio .blue-text{color:#0095f6;font-weight:600}
  .ig-highlights{display:flex;gap:24px;margin-top:24px}
  .ig-highlight{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px}
  .ig-highlight span{width:68px;height:68px;border-radius:50%;border:1px solid #dbdbdb;display:grid;place-items:center;overflow:hidden;background:#f5f5f5;font-size:22px}
  .ig-highlight img{width:100%;height:100%;object-fit:contain}
  .ig-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #dbdbdb;margin-top:28px}
  .ig-tabs button{height:54px;font-size:14px;font-weight:600;color:#737373;border-top:1px solid transparent;margin-top:-1px}
  .ig-tabs button.active{color:#111;border-top-color:#111}
  .ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
  .ig-grid button{aspect-ratio:1;background:#f4f4f4;position:relative;overflow:hidden}
  .ig-grid img{width:100%;height:100%;object-fit:cover;display:block}
  .ig-grid .tile{display:grid;place-items:center;color:#8aa1b5;background:linear-gradient(145deg,#eaf8ff,#dce8ff);font-weight:800;font-size:22px}
  .ig-grid .tile small{display:block;font-size:10px;margin-top:5px;letter-spacing:.1em}
  .ig-feed{display:none}
  .ig-post{border-bottom:1px solid #dbdbdb;padding-bottom:18px;margin-bottom:28px}
  .ig-post-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
  .ig-post-avatar{width:34px;height:34px;border-radius:50%;object-fit:contain;background:#fff}
  .ig-post-head strong{font-size:14px}.ig-post-head small{color:#737373}
  .ig-post-media{width:100%;aspect-ratio:1/1;overflow:hidden;background:#f3f3f3;border-radius:3px;display:grid;place-items:center}
  .ig-post-media img{width:100%;height:100%;object-fit:cover}
  .ig-post-media.video{position:relative;background:#07111e}
  .ig-post-media iframe{width:100%;height:100%;border:0}
  .ig-post-actions{display:flex;align-items:center;gap:16px;padding:10px 2px 5px}
  .ig-post-actions button{display:grid;place-items:center}.ig-post-actions svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.8}
  .ig-post-actions .save{margin-left:auto}
  .ig-post-actions .liked{color:#ed4956}.ig-post-caption{font-size:14px;line-height:1.45}.ig-post-caption b{margin-right:6px}
  .ig-post-comments{font-size:13px;color:#737373;margin-top:7px}
  .ig-right{padding-top:44px}
  .ig-account{display:flex;align-items:center;gap:12px;margin-bottom:28px}.ig-account img{width:44px;height:44px;border-radius:50%;object-fit:contain}.ig-account div{min-width:0}.ig-account strong{font-size:14px}.ig-account span{display:block;color:#737373;font-size:13px}
  .ig-right h3{font-size:14px;color:#737373;margin:0 0 18px}
  .ig-suggestion{display:flex;align-items:center;gap:10px;margin:13px 0}.ig-suggestion img{width:34px;height:34px;border-radius:50%;object-fit:contain}.ig-suggestion div{flex:1}.ig-suggestion strong{font-size:13px;display:block}.ig-suggestion small{color:#737373}.ig-suggestion button{color:#0095f6;font-weight:700;font-size:12px}
  .ig-footer{font-size:11px;color:#a0a0a0;line-height:1.6;margin-top:32px}
  .ig-modal{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:500;display:none;place-items:center;padding:30px}.ig-modal.open{display:grid}.ig-modal-card{width:min(900px,90vw);max-height:90vh;background:#fff;border-radius:14px;overflow:hidden;display:grid;grid-template-columns:1.3fr 1fr}.ig-modal-media{background:#000;min-height:500px}.ig-modal-media iframe,.ig-modal-media img{width:100%;height:100%;min-height:500px;border:0;object-fit:contain}.ig-modal-info{padding:26px;color:#111;overflow:auto}.ig-modal-close{position:absolute;right:20px;top:18px;color:#fff;font-size:32px}
}
@media(min-width:901px) and (max-width:1150px){.desktop-instagram{grid-template-columns:76px minmax(560px,680px);max-width:820px;gap:24px}.ig-sidebar{padding-left:12px;padding-right:12px}.ig-brand span,.ig-menu button span,.ig-sidebar-bottom span{display:none}.ig-brand{justify-content:center}.ig-menu button{justify-content:center}.ig-right{display:none}}

/* V25 — COI desktop: compact icon rail, editorial center feed, white canvas */
@media (min-width:901px){
  html,body{background:#fff!important;color:#161b22!important;overflow:hidden!important}
  #app{background:#fff!important;color:#161b22!important}
  .desktop-instagram{
    display:grid!important;
    grid-template-columns:76px minmax(560px,660px) 300px!important;
    gap:42px!important;
    width:min(1180px,calc(100vw - 120px))!important;
    max-width:none!important;
    height:100dvh!important;
    margin:0 auto!important;
    background:#fff!important;
  }
  .ig-sidebar{
    position:fixed!important;left:0;top:0;width:76px!important;height:100dvh!important;
    box-sizing:border-box!important;padding:20px 10px 22px!important;
    background:#fff!important;border-right:1px solid #eceff2!important;
    z-index:300!important;transition:width .26s cubic-bezier(.22,1,.36,1),box-shadow .26s ease!important;
    overflow:hidden!important;
  }
  body.desktop-menu-open .ig-sidebar,.ig-sidebar:hover{width:242px!important;box-shadow:12px 0 36px rgba(17,29,43,.10)!important}
  .ig-brand{width:100%!important;height:68px!important;padding:8px 10px!important;margin:0 0 18px!important;justify-content:flex-start!important;gap:14px!important;white-space:nowrap!important;border-radius:12px!important}
  .ig-brand img{width:50px!important;height:50px!important;flex:0 0 50px!important;object-fit:contain!important}
  .ig-brand span{font-size:22px!important;color:#14191f!important;opacity:0;transform:translateX(-6px);transition:opacity .18s ease,transform .18s ease!important}
  body.desktop-menu-open .ig-brand span,.ig-sidebar:hover .ig-brand span{opacity:1;transform:none!important}
  .ig-menu{gap:7px!important}
  .ig-menu button,.ig-sidebar-bottom button{width:100%!important;min-height:48px!important;justify-content:flex-start!important;padding:11px 14px!important;gap:16px!important;border-radius:13px!important;color:#27313c!important;background:transparent!important;font-size:14px!important;white-space:nowrap!important}
  .ig-menu button:hover,.ig-sidebar-bottom button:hover{background:#f5f7f9!important;color:#111820!important}
  .ig-menu button.active{background:#f2f5f7!important;color:#111820!important;font-weight:800!important}
  .ig-menu button span:first-child,.ig-sidebar-bottom button span:first-child{display:inline-flex!important;flex:0 0 26px!important;width:26px!important;height:26px!important;align-items:center;justify-content:center!important}
  .ig-menu button span:last-child,.ig-sidebar-bottom button span:last-child{opacity:0;transition:opacity .18s ease!important}
  body.desktop-menu-open .ig-menu button span:last-child,.ig-sidebar:hover .ig-menu button span:last-child,
  body.desktop-menu-open .ig-sidebar-bottom button span:last-child,.ig-sidebar:hover .ig-sidebar-bottom button span:last-child{opacity:1}
  .ig-menu svg,.ig-sidebar-bottom svg{width:23px!important;height:23px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important}
  .ig-sidebar-bottom{gap:5px!important}
  .ig-main{height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;padding:28px 0 90px!important;scrollbar-width:none!important;overscroll-behavior:contain!important}
  .ig-main::-webkit-scrollbar{display:none!important}
  .ig-profile{padding:14px 0 28px!important;margin-bottom:26px!important;border-bottom:1px solid #eceff2!important}
  .ig-profile-head{grid-template-columns:170px 1fr!important;gap:34px!important}
  .ig-avatar,.ig-avatar img{width:170px!important;height:170px!important}
  .ig-profile-row h1{font-size:25px!important;font-weight:700!important;letter-spacing:-.03em!important}
  .ig-profile-info{padding-top:10px!important}
  .ig-profile-actions button{background:#f2f4f6!important;color:#1b232c!important;border-radius:10px!important}
  .ig-profile-actions .blue{background:#151d27!important;color:#fff!important}
  .ig-stats{gap:30px!important;margin:24px 0 15px!important}
  .ig-bio strong{font-size:15px!important}.ig-bio{font-size:14px!important}.ig-bio .blue-text{color:#1c829c!important}
  .ig-highlights{gap:22px!important}.ig-highlight span{width:74px!important;height:74px!important;background:#fff!important;border:1px solid #dfe5ea!important}
  .ig-tabs button.active{color:#111820!important;border-top-color:#111820!important}
  .ig-feed{display:block!important}
  .ig-post{border:1px solid #e6ebef!important;border-radius:16px!important;padding:0 0 18px!important;margin:0 0 26px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 5px 20px rgba(25,39,54,.045)!important}
  .ig-post-head{padding:15px 16px 12px!important;margin:0!important}
  .ig-post-avatar{width:40px!important;height:40px!important}
  .ig-post-head strong{font-size:14px!important;color:#17202a!important}.ig-post-head small{color:#89939e!important}
  .ig-post-more{margin-left:auto!important;color:#697580!important}
  .ig-post-media{border-radius:0!important;aspect-ratio:1/1!important;background:#f5f7f8!important}
  .ig-media-hero,.ig-media-card,.ig-media-network{width:100%;height:100%}
  .ig-post-actions{padding:12px 16px 6px!important;gap:17px!important}
  .ig-post-actions button{width:28px!important;height:28px!important;padding:0!important;color:#1a222b!important}
  .ig-post-actions button svg{width:26px!important;height:26px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important}
  .ig-post-actions button.liked svg,.ig-post-actions button.saved svg{fill:currentColor!important;stroke:currentColor!important}
  .ig-post-caption,.ig-post-comments{padding-left:16px!important;padding-right:16px!important}
  .ig-post-caption{font-size:14px!important;color:#202832!important}.ig-post-comments{color:#7d8892!important;cursor:pointer!important}
  .ig-right{padding-top:38px!important}.ig-account{margin-bottom:26px!important}.ig-right h3{color:#6d7882!important}
  .ig-info-card{background:#f6f8fa!important;border:1px solid #e9edf0!important}
  .ig-right-link button,.ig-right-link a{color:#18758c!important}
  .ig-footer{color:#98a2ab!important}.ig-footer .market-credit{color:#18758c!important}
  .ig-modal-card{width:min(920px,92vw)!important}
}
@media (min-width:901px) and (max-width:1250px){
  .desktop-instagram{grid-template-columns:76px minmax(520px,650px)!important;width:min(760px,calc(100vw - 100px))!important;gap:28px!important}
  .ig-right{display:none!important}
}


/* =========================================================
   V26 — DESKTOP COI RAIL / INSTAGRAM-LIKE UX, COI IDENTITY
   ========================================================= */
@media (min-width:901px){
  html,body,#app{width:100%!important;min-width:100%!important;height:100%!important;overflow:hidden!important;background:#fff!important;color:#111820!important}

  /* The desktop is a full-page workspace, but the content remains a focused feed. */
  .desktop-instagram{
    display:grid!important;
    grid-template-columns:72px minmax(560px,680px) 300px!important;
    column-gap:34px!important;
    width:100vw!important;max-width:none!important;height:100dvh!important;
    margin:0!important;padding:0!important;background:#fff!important;
    justify-content:center!important;align-items:stretch!important;overflow:hidden!important;
  }

  /* Collapsed rail: icons are ALWAYS visible. Hovering the rail expands it over the page. */
  .ig-sidebar{
    position:fixed!important;left:0!important;top:0!important;width:72px!important;height:100dvh!important;
    z-index:1000!important;transform:none!important;transition:width .28s cubic-bezier(.22,1,.36,1),box-shadow .28s ease!important;
    padding:20px 10px 22px!important;display:flex!important;flex-direction:column!important;align-items:center!important;
    overflow:hidden!important;background:#fff!important;border-right:1px solid #e9edf1!important;
    box-shadow:2px 0 18px rgba(17,31,45,.04)!important;
  }
  .ig-sidebar:hover,.ig-sidebar:focus-within,body.desktop-menu-open .ig-sidebar{width:248px!important;align-items:stretch!important;box-shadow:14px 0 42px rgba(17,31,45,.12)!important}

  .ig-brand{
    width:52px!important;height:62px!important;margin:0 auto 24px!important;padding:4px!important;
    display:grid!important;place-items:center!important;position:relative!important;background:transparent!important;
    border-radius:14px!important;flex:0 0 auto!important;
  }
  .ig-brand-globe{display:block!important;width:44px!important;height:44px!important;object-fit:contain!important}
  .ig-brand-logo{display:none!important;width:164px!important;height:78px!important;object-fit:contain!important;object-position:left center!important}
  .ig-brand span{display:none!important}
  .ig-sidebar:hover .ig-brand,.ig-sidebar:focus-within .ig-brand,body.desktop-menu-open .ig-brand{width:100%!important;height:86px!important;justify-content:flex-start!important;margin:0 0 22px!important;padding:4px 10px!important}
  .ig-sidebar:hover .ig-brand-globe,.ig-sidebar:focus-within .ig-brand-globe,body.desktop-menu-open .ig-brand-globe{display:none!important}
  .ig-sidebar:hover .ig-brand-logo,.ig-sidebar:focus-within .ig-brand-logo,body.desktop-menu-open .ig-brand-logo{display:block!important}

  .ig-menu{width:100%!important;display:flex!important;flex-direction:column!important;gap:6px!important}
  .ig-menu button,.ig-sidebar-bottom button{
    width:52px!important;height:52px!important;min-height:52px!important;margin:0 auto!important;padding:0!important;
    display:grid!important;grid-template-columns:26px 1fr!important;align-items:center!important;justify-content:center!important;
    gap:15px!important;border-radius:14px!important;background:transparent!important;color:#202932!important;
    font-size:14px!important;white-space:nowrap!important;text-align:left!important;
  }
  .ig-menu button span:first-child,.ig-sidebar-bottom button span:first-child{width:26px!important;height:26px!important;display:grid!important;place-items:center!important;flex:0 0 26px!important}
  .ig-menu button span:last-child,.ig-sidebar-bottom button span:last-child{display:none!important;opacity:1!important}
  .ig-sidebar:hover .ig-menu button,.ig-sidebar:hover .ig-sidebar-bottom button,
  .ig-sidebar:focus-within .ig-menu button,.ig-sidebar:focus-within .ig-sidebar-bottom button,
  body.desktop-menu-open .ig-menu button,body.desktop-menu-open .ig-sidebar-bottom button{
    width:100%!important;justify-content:start!important;margin:0!important;padding:0 13px!important;
  }
  .ig-sidebar:hover .ig-menu button span:last-child,.ig-sidebar:hover .ig-sidebar-bottom button span:last-child,
  .ig-sidebar:focus-within .ig-menu button span:last-child,.ig-sidebar:focus-within .ig-sidebar-bottom button span:last-child,
  body.desktop-menu-open .ig-menu button span:last-child,body.desktop-menu-open .ig-sidebar-bottom button span:last-child{display:block!important}
  .ig-menu button:hover,.ig-sidebar-bottom button:hover{background:#f4f6f8!important;color:#111820!important}
  .ig-menu button.active{background:#f1f4f7!important;color:#111820!important;font-weight:800!important}
  .ig-menu svg,.ig-sidebar-bottom svg{width:24px!important;height:24px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important}
  .ig-sidebar-bottom{margin-top:auto!important;width:100%!important;display:flex!important;flex-direction:column!important;gap:5px!important}

  /* Focused feed in the middle, similar UX to Instagram desktop without copying its shell. */
  .ig-main{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;height:100dvh!important;
    overflow-y:auto!important;overflow-x:hidden!important;padding:24px 0 80px!important;background:#fff!important;
    scrollbar-width:none!important;scroll-behavior:smooth!important;overscroll-behavior-y:auto!important;
  }
  .ig-main::-webkit-scrollbar{display:none!important}
  .ig-profile{width:100%!important;margin:0 0 24px!important;padding:8px 0 24px!important;border-bottom:1px solid #e6eaee!important;background:#fff!important;box-shadow:none!important;border-radius:0!important}
  .ig-profile-head{grid-template-columns:132px minmax(0,1fr)!important;gap:28px!important}
  .ig-avatar,.ig-avatar img{width:132px!important;height:132px!important}
  .ig-profile-row h1{font-size:23px!important;color:#111820!important}
  .ig-bio strong{font-size:15px!important;color:#17222c!important}.ig-bio{font-size:13px!important;color:#596975!important}
  .ig-handles{display:flex!important;gap:18px!important;align-items:center!important}.ig-handles a{color:#177fa8!important}
  .ig-stats{gap:28px!important;margin:18px 0 12px!important}.ig-stats b{color:#111820!important}
  .ig-profile-actions .blue{background:#111820!important;color:#fff!important}
  .ig-highlights{gap:18px!important}.ig-highlight span{width:70px!important;height:70px!important;border-radius:20px!important;background:#f7fafc!important;border:1px solid #dbe4ea!important}
  .ig-tabs{margin-top:22px!important;border-top:1px solid #e5eaee!important}.ig-tabs button.active{color:#111820!important;border-top-color:#111820!important}
  .ig-post{width:100%!important;margin:0 0 28px!important;border:1px solid #e2e7eb!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 28px rgba(18,38,56,.055)!important;overflow:hidden!important}
  .ig-post-head{padding:14px 16px 11px!important}.ig-post-media{aspect-ratio:1/1!important}.ig-post-actions{padding:10px 16px 5px!important}
  .ig-post-actions button{width:34px!important;height:34px!important;background:transparent!important;border-radius:10px!important;color:#17212a!important}
  .ig-post-actions button:hover{background:#f4f6f8!important}.ig-post-actions svg{width:25px!important;height:25px!important;stroke-width:1.8!important}
  .ig-post-actions button.liked,.ig-post-actions button.saved{color:#0a9bcf!important}
  .ig-post-actions button.liked svg,.ig-post-actions button.saved svg{fill:currentColor!important;stroke:currentColor!important}
  .ig-post-caption{padding:0 16px!important}.ig-post-comments{margin:7px 16px 0!important;padding:0!important;color:#71808b!important}

  /* Right column: contextual COI information, not an Instagram clone. */
  .ig-right{grid-column:3!important;grid-row:1!important;width:100%!important;height:100dvh!important;overflow:auto!important;padding:38px 0 50px!important;background:#fff!important;border:0!important}
  .ig-account{padding:10px 0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .ig-info-card{background:#f7fafc!important;border:1px solid #e3eaf0!important;border-radius:18px!important}
  .ig-right-link button,.ig-right-link a{color:#176e8c!important}
  .ig-footer{border-top:1px solid #e5eaee!important;padding-top:16px!important;color:#93a0aa!important}
  .ig-footer:after{content:none!important}
  .ig-footer .market-credit{display:inline-block!important;margin-top:8px!important;color:#176e8c!important;font-weight:800!important}

  /* WhatsApp remains visible in the expanded rail and in the contextual desktop column. */
  .ig-sidebar-bottom [data-action="whatsapp"]{display:grid!important}
}

@media (min-width:901px) and (max-width:1150px){
  .desktop-instagram{grid-template-columns:72px minmax(520px,1fr)!important;column-gap:24px!important}
  .ig-right{display:none!important}
}
