.ios-device[data-route="instagram"] { --system-bg:#fff; --system-fg:#141416; }
.ios-device[data-route="instagram"] .ios-content { overflow:hidden; }
.ig-app { --ig-text:#151517; --ig-muted:#67676d; --ig-line:#e7e7ea; --ig-blue:#3069bf; display:flex; flex-direction:column; height:100%; min-height:0; background:#fff; color:var(--ig-text); font:15px/1.38 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.ig-app *, .ig-app *::before,.ig-app *::after { box-sizing:border-box; }
.ig-app a { color:inherit; text-decoration:none; }
.ig-app a:focus-visible,.ig-app button:focus-visible,.ig-app summary:focus-visible { outline:3px solid #534adb; outline-offset:-2px; }
.ig-app svg { width:24px; height:24px; vertical-align:middle; }
.ig-top { display:flex; align-items:center; gap:8px; padding:5px 14px; min-height:48px; background:#fff; border-bottom:1px solid var(--ig-line); flex:none; }
.ig-top h1 { margin:0; padding:0; flex:1; font:700 18px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:inherit; letter-spacing:normal; }
.ig-top h1.ig-wordmark { font:italic bold 28px/1.2 Georgia,serif; letter-spacing:-1.3px; }
.ig-icon { width:40px; height:40px; display:inline-grid; place-items:center; }
.ig-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.ig-bottom { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border-top:1px solid var(--ig-line); flex:none; }
.ig-bottom a { display:grid; place-items:center; height:45px; color:#333338; }
.ig-bottom a.selected svg { stroke-width:2.6; }
.ig-bottom .ig-avatar { width:26px; height:26px; }
.ig-bottom .selected .ig-avatar { outline:2px solid #252528; outline-offset:2px; }
.ig-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; background:#ececee; display:block; flex:none; }
.ig-avatar.ig-large { height:76px; width:76px; }
.ig-kicker,.ig-secname { display:block; font-size:12px; color:var(--ig-muted); font-weight:600; margin:12px 12px 0; }
.ig-highlights { display:flex; gap:8px; overflow-x:auto; padding:6px 11px 11px; border-bottom:1px solid var(--ig-line); scrollbar-width:none; }
.ig-highlight { display:grid; justify-items:center; align-content:start; width:65px; flex:none; font-size:12px; color:#34343b; text-align:center; gap:3px; }
.ig-highlight i { display:block; background:linear-gradient(35deg,#ffbc57,#df5478,#9146be); border-radius:50%; padding:2px; }
.ig-highlight .ig-avatar { width:54px; height:54px; border:2px solid white; }
.ig-byline { display:flex; align-items:center; gap:9px; min-height:52px; padding:8px 12px; overflow-wrap:anywhere; }
.ig-byline span { min-width:0; }
.ig-byline b { display:block; font-weight:680; }
.ig-app small:not(.ig-kicker) { display:block; color:var(--ig-muted); font-size:12px; }
.ig-post { display:block; border-bottom:1px solid var(--ig-line); padding:0 0 11px; margin:0; color:inherit; background:white; }
.ig-photo-wrap { background:#eee; }
.ig-photo-wrap a { display:block; }
.ig-post-photo { display:block; width:100%; aspect-ratio:5/4; object-fit:cover; }
.ig-post-photo.ig-full-photo { aspect-ratio:auto; max-height:68svh; object-fit:contain; }
.ig-post p { margin:7px 13px; font-size:15px; }
.ig-post p b { margin-right:3px; }
.ig-file { display:flex; justify-content:space-between; align-items:center; gap:8px; border:1px solid #e3e3e8; background:#f6f6f8; color:#292934; border-radius:10px; font-family:inherit; font-size:14px; font-weight:600; line-height:1.35; text-align:left; min-height:42px; margin:8px 0; padding:9px 12px; }
.ig-file span { flex:none; font-size:20px; color:#74747d; }
.ig-post > .ig-file,.ig-post > .ig-voice,.ig-post blockquote { margin-left:12px; margin-right:12px; }
.ig-reaction { display:inline-flex; align-items:center; gap:4px; min-height:35px; padding:4px 11px; margin:8px 12px 0; border-radius:18px; background:#f0f0f4; touch-action:manipulation; user-select:none; -webkit-touch-callout:none; }
.ig-profile { padding:14px 12px 0; }
.ig-profile > p { margin:1px 0 10px; white-space:normal; }
.ig-user-top { display:flex; align-items:center; gap:8px; justify-content:space-between; margin-bottom:10px; }
.ig-user-top > a,.ig-user-top > div { text-align:center; padding:4px 0; }
.ig-user-top b { display:block; font-size:18px; }
.ig-user-top .ig-rel { margin-left:auto; }
.ig-rel,.ig-pill { display:inline-flex; gap:4px; align-items:center; font-size:13px; font-weight:650; background:#f0f0f3; padding:6px 12px; border-radius:6px; }
.ig-rel svg,.ig-top > svg { width:16px; height:16px; }
.ig-profile .ig-secname { margin-left:0; }
.ig-profile .ig-highlights { padding-left:0; border-bottom:0; }
.ig-grid-heading { border-top:1px solid var(--ig-line); text-align:center; padding:8px; }
.ig-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; margin:0 -12px; }
.ig-grid a,.ig-grid img { width:100%; display:block; }
.ig-grid img { aspect-ratio:3/4; object-fit:cover; }
.ig-list .ig-byline { border-bottom:1px solid #f0f0f3; padding:10px 14px; }
.ig-chat,.ig-archive { padding:10px 13px 22px; overflow-wrap:anywhere; }
.ig-chat > .ig-byline { padding-left:0; }
.ig-date,.ig-app .ig-date { margin:14px 0 9px; text-align:center; font-size:12px; color:var(--ig-muted); }
.ig-bubble { width:fit-content; max-width:87%; margin:4px auto 4px 0; background:#f0f0f3; border-radius:19px; padding:9px 13px; }
.ig-bubble.ig-own { margin-left:auto; margin-right:0; background:#5452d8; color:#fff; }
.ig-archive h2 { font-size:21px; margin:14px 0; letter-spacing:normal; }
.ig-app blockquote { border-left:3px solid #9d99cd; background:#f5f5f8; border-radius:3px; padding:10px 13px; margin:10px 0; }
.ig-poll { list-style:none; margin:0; padding:0; }
.ig-poll li { display:flex; align-items:center; justify-content:space-between; gap:10px; border-radius:7px; background:#ededf2; padding:10px 9px; margin:5px 0; }
.ig-poll li:first-child { background:#e1dbff; }
.ig-tabs { display:flex; justify-content:space-between; padding:9px; border-bottom:1px solid var(--ig-line); }
.ig-tabs a { text-decoration:underline; }
.ig-inline-photo { width:min(100%,260px); display:block; max-height:270px; object-fit:cover; border-radius:12px; }
.ig-block { background:#eff0f5; border:1px solid #d5d7db; border-radius:14px; padding:15px; }
.ig-voice { margin:9px 0; padding:10px 12px; border-radius:15px; background:#f0f0f5; }
.ig-voice b { display:block; font-size:13px; }
.ig-voice audio { display:block; width:100%; height:38px; margin:4px 0; }
.ig-voice summary { cursor:pointer; color:#59536b; padding:4px 0; font-size:13px; }
.ig-voice details p { margin:4px 0; font-size:14px; }
.ig-empty { color:var(--ig-muted); text-align:center; padding:18px; }
.ig-story { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-start; min-height:100%; background:#25262b var(--ig-scene) center/cover; color:white; padding:9px; overflow:hidden; }
.ig-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(to bottom,#101018b0,transparent 35%,#0a0b139c); }
.ig-story header { z-index:1; display:flex; align-items:center; justify-content:space-between; }
.ig-story .ig-byline { padding-left:2px; }
.ig-story .ig-byline small { color:white; }
.ig-story-close { display:grid; place-items:center; min-width:44px; height:44px; font-size:25px; }
.ig-progress { display:flex; gap:3px; height:3px; }
.ig-progress i { height:100%; flex:1; background:#ffffff66; border-radius:3px; }
.ig-progress i.on { background:white; }
.ig-story-hit { position:absolute; inset:75px 0 25%; display:flex; justify-content:space-between; align-items:stretch; }
.ig-story-hit a { width:35%; display:flex; align-items:center; justify-content:center; color:white; font-size:26px; text-shadow:0 1px 5px #333; }
.ig-story-copy { align-self:center; position:relative; pointer-events:none; margin:auto 18px 16px; background:white; color:#161619; font-weight:800; font-size:clamp(19px,5vw,27px); text-align:center; padding:6px 12px; line-height:1.26; border-radius:7px; transform:rotate(-2deg); }
.ig-sticker { align-self:center; position:relative; border-radius:30px; padding:9px 17px; background:#fff; color:#4a247b !important; font-weight:700; margin:8px 0 8%; text-align:center; }
.ig-reel { position:relative; min-height:240px; height:100%; background:#121216; color:white; display:flex; flex-direction:column; }
.ig-reel video { width:100%; min-height:130px; flex:1; background:#111; object-fit:contain; }
.ig-reel-info { padding:3px 12px 6px; }
.ig-reel-info p { margin:3px 0; font-size:12px; }
.ig-reel-info .ig-file { background:#323239; border:0; color:#fff; }
@media (max-width:365px) { .ig-avatar.ig-large { width:58px; height:58px; } .ig-user-top { gap:4px; } .ig-user-top small { font-size:11px; } }
.ig-photo-wrap{position:relative}.ig-film-tag{position:absolute;right:10px;bottom:10px;background:#161616c9;color:#fff;border-radius:5px;padding:3px 7px;font-size:12px}.ig-post-film{display:block;aspect-ratio:9/16;height:min(94vw,48dvh);max-height:70dvh;width:100%;background:#191919;object-fit:contain}.ig-historique{margin:0 14px;color:var(--ig-muted)}.ig-historique summary{padding:10px 0;cursor:pointer}.ig-historique[open]{padding-bottom:8px}.ig-chat [data-ig-message]:focus{outline:2px solid #584bb9;outline-offset:2px;border-radius:8px}
