/* Feed Studio — exact Instagram profile look, reusable (designer, client review, demo, home preview).
   Everything is scoped under .ig so it never touches the page around it. Phone layout is a container query, so the same
   markup becomes the phone layout whenever its frame is narrow (designer "Phone" view, or a real phone). */
.ig{--bg:#fff;--fg:#000;--mut:#737373;--line:#dbdbdb;--soft:#f0f2f5;--softh:#e4e6ea;--link:#00376b;--blue:#0095f6;--panel:#fff;--hl:#d3d6da;
  container-type:inline-size;background:var(--bg);color:var(--fg);font:400 14px/18px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-align:left;letter-spacing:0}
.ig[data-theme=dark]{--bg:#0c1014;--fg:#f5f5f5;--mut:#a8a8a8;--line:#262a2f;--soft:#25292e;--softh:#32373d;--link:#708dff;--panel:#16191d;--hl:#363a40}
.ig *{box-sizing:border-box}
.ig button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.ig a{color:inherit;text-decoration:none}
.ig img,.ig video{display:block;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.ig svg.i{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ig svg.f{fill:currentColor;stroke:none}
.ig .igw{padding:40px 20px 0}
.ig .igtop{max-width:679px;margin:0 auto}
.ig .igcol{max-width:935px;margin:0 auto}
.ig .mtop{display:none}
/* 1Club strip: says plainly this is a preview, not Instagram */
.ig .pvbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;background:var(--soft);border-bottom:1px solid var(--line);font-size:12px;line-height:16px}
.ig .pvb{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.ig .pvb .lg{height:18px;width:auto;display:block}
.ig .pvb .lg.d,.ig[data-theme=dark] .pvb .lg.l{display:none}
.ig[data-theme=dark] .pvb .lg.d{display:block}
.ig .pvb b{font-weight:600}
.ig .pvt{color:var(--mut);text-align:right}
.ig .foot .disc{max-width:520px;margin:6px auto 0;padding:0 16px;line-height:17px}

/* header */
.ig header.pf{display:grid;grid-template-columns:158px 1fr;gap:0 25px;min-height:190px;margin-left:-2px}
.ig .avw{position:relative;padding-top:24px}
.ig .ring{display:block;border-radius:50%;padding:3px;background:linear-gradient(45deg,#f9ce34,#ee2a7b 55%,#6228d7);width:max-content}
.ig .ring.none{background:transparent}
.ig .ring>span{display:block;border-radius:50%;padding:2px;background:var(--bg)}
.ig .ring img,.ig .ring .ph0{border-radius:50%;width:148px;height:148px;object-fit:cover;background:var(--soft)}
.ig .ph0{display:grid;place-items:center;color:var(--mut)}
.ig .tr1{display:flex;align-items:center;gap:10px;min-height:30px;margin-bottom:9px}
.ig .un{font-size:24px;line-height:30px;font-weight:700;margin:0;letter-spacing:-.1px}
.ig .ver{width:20px;height:20px;color:var(--blue);flex:none}
.ig .nm{opacity:.82;margin-bottom:12px;min-height:18px}
.ig .stats{display:flex;gap:16px;margin:0 0 19px;padding:0;list-style:none}
.ig .stats b{font-weight:600}
.ig .cat{color:var(--mut)}
.ig .bio{white-space:pre-line;overflow-wrap:anywhere;line-height:18.5px}
.ig .lnk{font-weight:600;display:inline-flex;align-items:center;gap:6px;margin-top:4.5px;color:var(--fg);overflow-wrap:anywhere}
.ig .lnk svg{width:14px;height:14px;flex:none;color:var(--mut)}
.ig .btns{display:grid;grid-template-columns:328fr 342fr;gap:9px;margin-top:28px}
.ig .btn{height:43px;border-radius:10px;font-weight:600;background:var(--soft);transition:background .15s}
.ig .btn:hover{background:var(--softh)}

/* highlights */
.ig .hls{display:flex;gap:13.5px;padding:0 0 0 16px;margin:48px 0 35px;overflow-x:auto;scrollbar-width:none}
.ig .hls::-webkit-scrollbar{display:none}
.ig .hl{width:83px;flex:none;text-align:center;font-size:12px;font-weight:600;line-height:16px}
.ig .hl i{display:block;width:83px;height:83px;border-radius:50%;padding:3px;border:2px solid var(--hl);margin-bottom:8px;background:var(--bg)}
.ig .hl img,.ig .hl .ph0{width:100%;height:100%;border-radius:50%;object-fit:cover;background:var(--soft)}
.ig .hl span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ig .hl.add i{display:grid;place-items:center;color:var(--mut)}
.ig .nohl{height:35px}

/* tabs */
.ig .tabs{display:flex;justify-content:center}
.ig .tab{flex:0 1 197px;height:44.5px;display:grid;place-items:center;color:var(--mut);position:relative;padding-bottom:4px}
.ig .tab svg{width:24px;height:24px}
.ig .tab.on{color:var(--fg)}
.ig .tab.on::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:64px;height:2px;background:var(--fg)}

/* grid */
.ig .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5px;border-radius:7px 7px 0 0;overflow:hidden;margin-top:2px}
.ig .t{position:relative;display:block;width:100%;aspect-ratio:3/4;overflow:hidden;background:var(--soft)}
.ig .grid.reels .t{aspect-ratio:9/16}
.ig .t img,.ig .t video{width:100%;height:100%;object-fit:cover}
.ig .t .bd{position:absolute;right:8px;top:8px;color:#fff;filter:drop-shadow(0 0 3px rgba(0,0,0,.45))}
.ig .t .bd svg{width:20px;height:20px}
.ig .t .pinned{position:absolute;right:8px;top:8px;color:#fff;filter:drop-shadow(0 0 3px rgba(0,0,0,.45))}
.ig .t .pinned svg{width:18px;height:18px}
.ig .t .st{position:absolute;left:6px;bottom:6px;font:600 10px/1 -apple-system,Segoe UI,sans-serif;padding:4px 6px;border-radius:5px;background:rgba(0,0,0,.6);color:#fff;letter-spacing:.02em}
.ig .t .st.waiting{background:#7c5cff}.ig .t .st.approved{background:#11a36a}.ig .t .st.scheduled{background:#0a84ff}.ig .t .st.failed{background:#e5484d}.ig .t .st.posted{background:#333}
.ig .t .cmt{position:absolute;left:6px;top:6px;font:600 10px/1 -apple-system,sans-serif;padding:4px 6px;border-radius:5px;background:#fff;color:#000}
.ig .t .noimg{position:absolute;inset:0;display:grid;place-items:center;color:var(--mut);font-size:12px;padding:10px;text-align:center}
.ig .t::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.2);opacity:0;transition:opacity .12s;pointer-events:none}
@media(hover:hover){.ig .t:hover::after{opacity:1}}
.ig .t.drag{opacity:.35}
.ig .t.over{outline:3px solid var(--blue);outline-offset:-3px}
.ig .t.add{display:grid;place-items:center;color:var(--mut);border:1px dashed var(--line);background:var(--bg);text-align:center;font-size:12px;font-weight:600}
.ig .t.add svg{width:28px;height:28px;margin:0 auto 6px}
.ig .empty{padding:60px 20px;text-align:center}
.ig .empty h2{font-size:28px;line-height:34px;font-weight:800;margin:0 0 10px}
.ig .empty p{margin:0;color:var(--mut)}
.ig .foot{padding:40px 0 30px;text-align:center;color:var(--mut);font-size:12px}

/* phone layout: whenever the frame is narrow */
/* wide screens: 4 across, like the full-page viewer */
@container (min-width:1100px){
  .ig .igcol{max-width:1161px}
  .ig .grid{grid-template-columns:repeat(4,1fr)}
}
@container (max-width:735px){
  .ig .igw{padding:0}
  .ig .mtop{display:flex;position:sticky;top:33px;z-index:2;height:44px;align-items:center;justify-content:center;gap:4px;padding:0 12px;background:var(--bg);border-bottom:1px solid var(--line);font-size:16px;font-weight:600}
  .ig .mtop .ver{width:18px;height:18px}
  .ig header.pf{grid-template-columns:auto 1fr;gap:0 24px;padding:14px 16px 0;min-height:0;align-items:center;margin-left:0}
  .ig .avw{padding:0}
  .ig .ring{padding:2px}.ig .ring>span{padding:2px}
  .ig .ring img,.ig .ring .ph0{width:77px;height:77px}
  .ig .info{display:contents}
  .ig .tr1{display:none}
  .ig .nm{grid-column:1/3;grid-row:2;margin:12px 0 0;font-weight:600;opacity:1;min-height:0}
  .ig .stats{grid-column:2;grid-row:1;margin:0;gap:0;justify-content:space-around;text-align:center}
  .ig .stats b{display:block;font-size:16px}
  .ig .about{grid-column:1/3;grid-row:3;margin-top:2px}
  .ig .btns{margin:14px 16px 0;gap:6px;grid-template-columns:1fr 1fr}
  .ig .btn{height:32px;border-radius:8px}
  .ig .hls{padding:0 16px;gap:16px;margin:16px 0 8px}
  .ig .hl{width:64px}
  .ig .hl i{width:64px;height:64px;padding:2px;border-width:1px;margin-bottom:6px}
  .ig .nohl{height:14px}
  .ig .tabs{border-bottom:1px solid var(--line)}
  .ig .tab{flex:1;height:44px;padding:0}
  .ig .tab.on::after{width:100%;height:1px}
  .ig .grid{border-radius:0;margin-top:0}
  .ig .t .bd{right:5px;top:5px}.ig .t .bd svg{width:16px;height:16px}
}
