/* The integrations pages' own parts: /integracijos and a channel's own page
   (templates/public/integrations.html, channel_page.html, _intg_parts.html,
   _channel_scenes.html; behaviour js/integrations.js). Owner, 2026-12-02:
   mock-up https://claude.ai/artifact/NweNMoZgQTGWbTJ7zdpuCD.

   Everything shared (tokens, .wrap, .sec, .h1-.h3, .lead, .btn, .tag, .frame,
   .winbar, .mark, .checks, .band) is site.css; nothing here redefines it.
   Every class of this file starts with `ig-`.

   The rule from motion.css holds: the served markup is the FINISHED picture.
   A piece is hidden or moved only under `.motion` plus a class the script
   sets (`ig-on` on a picture it plays, `ig-live` while a part is on screen,
   `is-pinned` on the story), and an endless animation only under `ig-live`.
   Every grid column is minmax(0, …), so a line that cannot wrap never sets
   the width of a phone's page. */

/* ── small shared pieces ── */
.ig-faint { color: var(--faint); }
.mark.ig-xs { width: 28px; height: 19px; border-radius: 5px; padding: 2px 3px; }
.ig-mark { overflow: hidden; }
.ig-mark img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.ig-pmark { background: var(--blue-tint); border-color: var(--blue-pale); }
.ig-pmark svg { height: 17px; width: auto; }

/* flow chips: what travels, and which way */
.ig-fls { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-fl { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.ig-fl .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.ig-fl.fl-in .ic { color: var(--green); }
.ig-fl.fl-out .ic { color: var(--blue); }
.ig-fl.fl-both .ic { color: var(--orange); }

/* a small app card, an order row, a list */
.ig-mini { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; text-align: left; overflow: hidden; }
.ig-mini-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ig-mini-head .tag { margin-left: auto; }
.ig-ord { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.ig-ord:last-child { border-bottom: 0; }
.ig-ord-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ig-ord-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-ord-main small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-ord-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; font-variant-numeric: tabular-nums; }
.ig-ord-end b { font-weight: 600; white-space: nowrap; }
.ig-ord .tag { font-size: 11px; padding: 1px 8px 1px 7px; }
.ig-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

/* a picture: a small live piece of the app */
.ig-pic { margin: 0; box-shadow: var(--shadow); }
.ig-sc { font-size: 13.5px; line-height: 1.45; text-align: left; }
.ig-pad { padding: 16px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.ig-sc .winbar .tag { margin-left: auto; font-size: 11.5px; padding: 1px 9px 1px 7px; }
.ig-sc .winbar .tag .ic { width: 12px; height: 12px; }
.ig-sc .winbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ig-sc .winbar .tag { flex: none; }
.ig-bigrow { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ig-bigrow > b { font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-bigrow > b em { font-style: normal; font-size: .5em; letter-spacing: -.02em; color: var(--faint); }
.ig-bigrow > span { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.ig-bigrow small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ig-job { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: var(--card); }
.ig-job.start { background: var(--blue-tint); border-color: var(--blue-pale); }
.ig-jic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); flex: none; }
.ig-jic .ic { width: 16px; height: 16px; }
.ig-jic.ink { background: var(--ink); color: var(--on-ink); }
.ig-jic.blue { background: var(--blue-pale); color: var(--blue); }
.ig-jmain { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ig-jmain small { font-size: 11.5px; color: var(--muted); }
.ig-jmain b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-okrow { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--green-tint); font-weight: 600; font-size: 13.5px; }
.ig-okrow .ic { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; flex: none; }
.ig-okrow.big { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.015em; padding: 12px 14px; }
.ig-hist { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ig-hist .ic { width: 14px; height: 14px; flex: none; }
.ig-hist.warn { padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--text); flex-wrap: wrap; }
.ig-hist .dot { flex: none; }
.ig-hist .btn { height: 28px; padding: 0 11px; font-size: 12.5px; gap: 5px; margin-left: auto; }
.ig-hist .btn .ic { width: 13px; height: 13px; color: var(--blue); }
.ig-cc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--panel); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; flex: none; white-space: nowrap; }
.ig-cc .dot { transition: background-color .3s; }
.ig-cc.lit .dot { background: var(--green); }
.ig-tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: transparent; flex: none; transition: background-color .3s, color .3s, border-color .3s; }
.ig-tick .ic { width: 12px; height: 12px; stroke-width: 3; }
.ig-tick.lit { background: var(--green); border-color: var(--green); color: #fff; }

/* ── the pictures' player (js/integrations.js) ──
   A picture walks through its steps while it is looked at. `ig-on` is on a
   picture the script plays; without it every piece is in its finished place. */
[data-ig-at] { transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.motion .ig-on [data-ig-at]:not(.on) { opacity: 0; transform: translateY(8px); }
/* The value a picture starts from (an old price, a waiting badge) exists for
   the loop only: served, the finished value stands in its place. */
[data-ig-until]:not(.on) { display: none !important; }
.motion .ig-on [data-ig-from]:not(.on) { display: none !important; }
.motion .ig-on [data-ig-from].on { animation: ig-from-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes ig-from-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ig-tap { position: relative; display: inline-flex; }
/* The pointer is a person's click: decoration, shown only while it presses. */
.ig-ptr { position: absolute; right: -4px; bottom: -15px; width: 22px; height: 22px; opacity: 0; transform: translate(20px, 18px); transition: transform .65s cubic-bezier(.3, .7, .2, 1), opacity .3s; pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.motion .ig-on .ig-ptr.show { opacity: 1; transform: none; }
[data-ig-press] { transition: transform .14s, background-color .18s; }
.motion .ig-on [data-ig-press].press { transform: scale(.93); }

/* ══ the overview: /integracijos ══ */
.ig-hero-top { padding-bottom: 0; }
.ig-hero-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.page-hero-in.solo .ig-hero-cta { justify-content: center; }
.ig-hub-wrap { position: relative; padding-bottom: clamp(44px, 6vw, 84px); }

/* the switchboard: every channel wired to the system, the system to the couriers */
.ig-hub { position: relative; margin: clamp(40px, 5.5vw, 68px) auto 0; max-width: 1060px; }
.ig-hub .frame { box-shadow: var(--shadow); }
.ig-hub-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: clamp(14px, 2.4vw, 26px); background: var(--card); }
.ig-hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.ig-hub-svg path { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .3s; }
.ig-hub-svg .ig-w.on { stroke: var(--faint); }
/* The travelling dots are built by the script and run only while the
   switchboard is on screen. */
.ig-hub-svg .ig-d { display: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .01 100; }
.ig-hub-svg .ig-d.d-in { stroke: var(--green); }
.ig-hub-svg .ig-d.d-out, .ig-hub-svg .ig-d.d-lab { stroke: var(--blue); }
.motion .ig-live .ig-hub-svg .ig-d.on { display: block; animation: ig-dot-in 1.8s linear infinite backwards; }
.motion .ig-live .ig-hub-svg .ig-d.d-out.on { animation-name: ig-dot-out; animation-delay: .9s; }
.motion .ig-live .ig-hub-svg .ig-d.d-lab.on { animation-delay: .45s; }
@keyframes ig-dot-in { 0% { stroke-dashoffset: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes ig-dot-out { 0% { stroke-dashoffset: -100; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ig-hub-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ig-hub-bot { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 540px; }
.ig-hub-n { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; cursor: default; transition: border-color .25s, background-color .25s, box-shadow .25s; }
button.ig-hub-n { cursor: pointer; font: inherit; color: inherit; }
.ig-hub-n .mark { width: 64px; height: 40px; padding: 6px 8px; border-radius: 10px; }
.ig-hub-n .mark.sq { width: 40px; }
.ig-hub-n small { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
button.ig-hub-n:hover { border-color: var(--line-2); }
button.ig-hub-n:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ig-hub-n[aria-pressed="true"], .ig-hub-n.on { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 1px var(--blue); }
.ig-hub-n[aria-pressed="true"] small, .ig-hub-n.on small { color: var(--text); }
.ig-hub-gap { height: clamp(46px, 6.4vw, 76px); }
.ig-hub-core { position: relative; z-index: 1; width: min(100%, 460px); }
.ig-hub-core .ig-mini-head .mark { width: 30px; height: 26px; padding: 4px; }
/* One sample order at a time: the panels share a cell, so picking a channel
   never moves the page. What each channel does is in the cards below. */
.ig-hub-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.ig-hub-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; transition: opacity .35s; }
.ig-hub-panel:not(.on) { opacity: 0; visibility: hidden; }
.ig-hub-panel .ig-ord { border-bottom: 1px solid var(--line); }
.ig-hub-panel .ig-fls { padding: 11px 14px 13px; }
.motion .ig-live .ig-hub-panel.on .ig-ord { animation: ig-ord-in .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes ig-ord-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.ig-hub-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.ig-hub-legend span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 760px) {
  .ig-hub-top { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ig-hub-bot { gap: 6px; }
  .ig-hub-n { padding: 9px 2px 7px; gap: 5px; border-radius: 12px; }
  .ig-hub-n small { font-size: 10.5px; }
  .ig-hub-n .mark { width: 40px; height: 27px; padding: 4px 5px; }
  .ig-hub-n .mark.sq { width: 27px; }
  .ig-hub-legend .ig-faint { flex-basis: 100%; justify-content: center; text-align: center; }
}

/* sales channels: two joined grids */
.ig-anchor { scroll-margin-top: 96px; }
.ig-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.ig-legend .ig-fl { padding: 5px 13px 5px 9px; font-size: 13px; }
.ig-grp { display: flex; align-items: center; gap: 10px; margin: clamp(40px, 5vw, 60px) 0 16px; }
.ig-grp h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.012em; }
.ig-grp i { flex: 1; height: 1px; background: var(--line); }
.ig-chans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ig-chc { position: relative; background: var(--card); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 96px; }
.ig-chc header { display: flex; align-items: center; gap: 13px; }
.ig-chc header > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ig-chc header small { font-size: 13px; color: var(--muted); }
.ig-chc .mark { width: 58px; height: 38px; border-radius: 10px; padding: 6px 8px; }
.ig-chc .mark.sq { width: 38px; }
.ig-chc > p { font-size: 14.5px; color: var(--muted); }
.ig-chc .checks { gap: 8px; }
.ig-chc .checks li { font-size: 14px; }
.ig-chc .link { margin-top: auto; align-self: flex-start; font-size: 14px; }
.ig-chc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ig-chc:hover::after, .ig-chc:focus-within::after { transform: scaleX(1); }
.ig-chc.ask { background-color: var(--soft); justify-content: center; background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.6px); background-size: 24px 24px; }
.ig-chc.ask > * { position: relative; }
.ig-chc.ask .ig-jic { background: var(--card); border: 1px solid var(--line); }
.ig-chc.ask .link { margin-top: 0; }
.ig-chc.ask::after { content: none; }
@media (max-width: 980px) { .ig-chans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ig-chans.n3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ig-chans { grid-template-columns: minmax(0, 1fr); } .ig-chans.n3 > :last-child { grid-column: auto; } }

/* couriers: the list beside a label being printed */
.ig-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .ig-duo { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 76px; } }
.ig-duo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.sec-soft .ig-pic { background: var(--panel); }
.ig-rows { width: 100%; margin-top: 14px; border-top: 1px solid var(--line); }
.ig-rows li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ig-rows .mark { margin-top: 3px; width: 58px; height: 36px; }
.ig-rows li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ig-rows b { font-weight: 600; }
.ig-rows small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.ig-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ig-pick-n { display: grid; place-items: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.ig-pick-n .mark { max-width: 100%; }
.ig-pick-n.lit { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 1px var(--blue); }
.ig-field { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-weight: 500; }
.ig-field .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ig-slip-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ig-slip-row .btn .ic { width: 15px; height: 15px; }
.ig-slip { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: var(--card); }
.ig-slip-top { display: flex; align-items: center; gap: 10px; }
.ig-slip-top > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ig-slip-top b { font-weight: 600; }
.ig-slip-top small { font-size: 11.5px; color: var(--muted); }
.ig-barcode { display: block; height: 42px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 9px, var(--text) 9px 12px, transparent 12px 14px, var(--text) 14px 15px, transparent 15px 17px); }
.ig-barcode.short { height: 26px; }
.ig-trk { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* your own AI assistant, and more */
.ig-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin: 44px auto 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.ig-trio > div { padding: 26px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); min-width: 0; }
.ig-trio > div:last-child { border-right: 0; }
.ig-trio .ig-jic { margin-bottom: 6px; }
.ig-trio p { font-size: 14.5px; color: var(--muted); }
.ig-after { text-align: center; margin-top: 30px; }
@media (max-width: 820px) { .ig-trio { grid-template-columns: minmax(0, 1fr); } .ig-trio > div { border-right: 0; border-bottom: 1px solid var(--line); } .ig-trio > div:last-child { border-bottom: 0; } }
.ig-sec-tight { padding-top: 0; }
.ig-probs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.ig-prob { padding: 26px 24px 6px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ig-prob + .ig-prob { padding-left: 24px; border-left: 1px solid var(--line); }
.ig-prob .ig-jic { margin-bottom: 4px; }
.ig-prob p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .ig-probs { grid-template-columns: minmax(0, 1fr); } .ig-prob, .ig-prob + .ig-prob { padding: 22px 0 6px; border-left: 0; } .ig-prob + .ig-prob { border-top: 1px solid var(--line); } }

/* ══ a channel's own page ══ */
.ig-ch-hero .page-hero-in { padding-top: clamp(28px, 4vw, 60px); }
@media (min-width: 1024px) { .ig-ch-hero .page-hero-in.duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.ig-ch-hero .h1 { font-size: clamp(2.05rem, 4vw, 3.25rem); margin-top: 18px; }
.ig-ch-hero .lead { margin-top: 18px; max-width: 600px; font-size: clamp(1rem, 1.25vw, 1.1rem); }
.ig-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.ig-crumbs a { border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.ig-crumbs a:hover { color: var(--text); border-color: var(--ink); }
.ig-crumbs i { font-style: normal; color: var(--faint); }
.ig-crumbs span { color: var(--text); font-weight: 500; }
.ig-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.ig-points li { display: inline-flex; align-items: center; gap: 7px; }
.ig-points .ic { width: 15px; height: 15px; color: var(--green); stroke-width: 2.4; }

/* in short */
.ig-facts-sec { padding-top: clamp(4px, 1.5vw, 16px); }
.ig-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
.ig-facts > div { display: flex; gap: 13px; align-items: center; padding: 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.ig-facts > div:last-child { border-right: 0; }
.ig-facts dl, .ig-facts dt, .ig-facts dd { margin: 0; }
.ig-facts .ig-fact { display: flex; flex-direction: column-reverse; min-width: 0; }
.ig-facts dd { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
.ig-facts dt { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) {
  .ig-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ig-facts > div { flex-direction: column; align-items: flex-start; padding: 16px; }
  .ig-facts > div:nth-child(2n) { border-right: 0; }
  .ig-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* on this page */
.ig-subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 30; margin-top: clamp(28px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-block: 1px solid var(--line); transition: opacity .25s, visibility .25s; }
.ig-subnav.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.ig-subnav-in { position: relative; display: flex; align-items: center; gap: 4px; height: 50px; overflow-x: auto; scrollbar-width: none; }
.ig-subnav-in::-webkit-scrollbar { display: none; }
.ig-subnav-in > span { font-size: 13px; color: var(--muted); margin-right: 8px; white-space: nowrap; }
.ig-subnav a { padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.ig-subnav a:hover { color: var(--text); background: var(--panel); }
.ig-subnav a.on { background: var(--ink); color: var(--on-ink); }
@media (max-width: 639px) { .ig-subnav { top: calc(env(safe-area-inset-top, 0px) + 58px); } .ig-subnav-in { height: 46px; } }

/* one question at a time: the picture stays, the answers scroll */
.ig-story-sec { padding-top: clamp(28px, 4vw, 56px); }
.ig-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ig-step-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; scroll-margin-top: 132px; }
.ig-step-head .h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); }
.ig-step-head .lead { font-size: 1.05rem; }
.ig-step-more { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-bottom: 40px; min-width: 0; }
.ig-step-more .checks li { font-size: 14.5px; }
.ig-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.ig-kicker b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel); font-family: var(--display); font-size: 13px; font-variant-numeric: tabular-nums; }
.ig-scene { min-width: 0; }
@media (min-width: 1000px) {
  /* Without the script: each picture beside its own answer. */
  .ig-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 76px; row-gap: 0; }
  .ig-story .ig-scene { grid-column: 1; grid-row: calc(var(--r) * 2 - 1) / span 2; align-self: center; }
  .ig-story .ig-step-head { grid-column: 2; grid-row: calc(var(--r) * 2 - 1); padding-top: 11vh; transition: opacity .3s; }
  .ig-story .ig-step-more { grid-column: 2; grid-row: calc(var(--r) * 2); padding-top: 22px; padding-bottom: 11vh; transition: opacity .3s; }
  /* With it: the pictures share one place that stays while the text scrolls. */
  .ig-story.is-pinned .ig-scene { grid-row: 1 / span var(--n); align-self: start; position: sticky; top: max(140px, calc(50vh - 235px)); transition: opacity .45s, transform .45s; }
  .ig-story.is-pinned .ig-scene:not(.on) { opacity: 0; transform: translateY(14px) scale(.985); pointer-events: none; }
  .ig-story.is-pinned .ig-step-head:not(.on), .ig-story.is-pinned .ig-step-more:not(.on) { opacity: .36; }
}
@media (max-width: 999px) {
  .ig-story .ig-step-head { padding-top: 36px; border-top: 1px solid var(--line); }
  .ig-story .ig-step-head:first-child { padding-top: 0; border-top: 0; }
  .ig-story .ig-scene { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ── the pictures' parts ── */
.ig-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ig-form.one { grid-template-columns: minmax(0, 1fr); }
.ig-fld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
.ig-fld small { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-inp { display: flex; align-items: center; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); min-width: 0; font-variant-numeric: tabular-nums; }
.ig-inp b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-inp i { display: block; height: 8px; width: 55%; border-radius: 4px; background: var(--line-2); }
.ig-inp.amt { width: 84px; justify-content: flex-end; flex: none; }
.ig-inp.amt b { font-weight: 600; }
.ig-mk4 { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.ig-maphead, .ig-maprow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.15fr); align-items: center; gap: 8px; }
.ig-maphead { padding: 0 11px; margin-bottom: -5px; }
.ig-maphead small { font-size: 12px; color: var(--muted); }
.ig-maphead small:last-child { grid-column: 3; }
.ig-maps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ig-maprow { padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ig-maprow .ig-cc { justify-self: start; height: auto; min-height: 26px; padding-block: 3px; max-width: 100%; font-size: 12.5px; font-weight: 600; letter-spacing: 0; white-space: normal; text-align: left; justify-content: flex-start; }
.ig-maprow .ig-wire .ic { width: 15px; height: 15px; color: var(--faint); }
.ig-maprow .tag { justify-self: start; min-width: 0; max-width: 100%; white-space: normal; text-align: left; }
.ig-maprow.skip { border-style: dashed; }
.ig-maprow.skip .ig-cc, .ig-maprow.skip .tag { color: var(--muted); }
.ig-prodrow { display: flex; align-items: center; gap: 10px; }
.ig-prodrow .ig-jmain small { min-height: 1.45em; }
.ig-mk-list li { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ig-mk-list li:last-child { border-bottom: 0; }
.ig-mk-list li > b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-mk-list li > small { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.ig-mk-list li.noted { flex-wrap: wrap; }
.ig-mk-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-fan { display: block; width: 2px; height: 14px; margin: -12px 0 -12px 28px; background: var(--line-2); }
.ig-deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ig-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; background: var(--card); }
.ig-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ig-card-top small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.ig-lines i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.ig-lines i:last-child { width: 62%; }
.ig-segs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.ig-segs i { display: block; height: 6px; border-radius: 3px; background: var(--orange); transition: background-color .4s; }
.ig-segs i.lit { background: var(--green); }
.ig-reqs { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ig-reqs li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ig-reqs li:last-child { border-bottom: 0; }
.ig-reqs li > span:nth-child(2) { flex: 1; min-width: 0; }
.ig-req-end { display: flex; align-items: center; gap: 8px; }
.ig-reqs .ig-tick:not(.lit) { border-color: var(--orange); background: var(--orange-tint); }
.ig-pbars { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ig-pbars::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: var(--mark); border-left: 1.5px dashed var(--orange); }
.ig-pbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: baseline; }
.ig-pbar small { font-size: 12.5px; color: var(--muted); grid-column: 1; grid-row: 1; }
.ig-pbar b { font-weight: 600; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1; position: relative; z-index: 1; background: var(--card); padding-left: 8px; border-radius: 4px; white-space: nowrap; }
.ig-rail { grid-column: 1 / -1; grid-row: 2; display: block; height: 12px; border-radius: 6px; background: var(--panel); overflow: hidden; }
.ig-rail i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--line-2); transition: width .9s cubic-bezier(.3, .7, .2, 1); }
.ig-pbar.win .ig-rail i { background: var(--ink); }
.ig-pbar.you .ig-rail i { background: var(--blue); width: var(--w0); }
.ig-pbar.you.lit .ig-rail i { width: var(--w); }
.ig-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-pairs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 7vw, 64px); }
.ig-pair-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ig-pair-svg path { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease; }
.motion .ig-on .ig-pair-svg path[data-ig-at]:not(.on) { stroke-dashoffset: 1; opacity: 1; transform: none; }
.ig-pair-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
.ig-pair-col > small { font-size: 12px; color: var(--muted); }
.ig-pair-n { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ig-pair-n b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-pair-n small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-pair-n .ig-tick { position: absolute; top: -7px; right: -7px; }

/* a channel beside the system: what travels between them (the bridge hero) */
.ig-ends { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 8px; }
.ig-end { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-width: 0; }
.ig-end b { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-end.sys { background: var(--blue-tint); border-color: var(--blue-pale); }
.ig-ends > .ic { width: 16px; height: 16px; color: var(--faint); justify-self: center; }
.ig-lanes li { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ig-lanes li:last-child { border-bottom: 0; }
.ig-lanes li > b { flex: 1; min-width: 0; font-weight: 500; }
.ig-lanes .ic { width: 15px; height: 15px; stroke-width: 2.4; flex: none; }
.ig-lanes .fl-in .ic, .ig-lanes li.fl-in > .ic { color: var(--green); }
.ig-lanes li.fl-out > .ic { color: var(--blue); }
.ig-lanes li.fl-both > .ic { color: var(--orange); }
.ig-lanes small { font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 420px) { .ig-lanes small { display: none; } }

/* many markets over one list (Amazon's hero) */
.ig-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ig-grid5 .ig-cc { min-width: 0; height: 30px; }
.ig-leg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ig-leg .ig-fl { white-space: normal; justify-self: start; }

/* one save, several values (packet) and a listing built from a product (offer) */
.ig-offer { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: var(--card); }
.ig-thumbs { display: flex; gap: 6px; }
.ig-thumbs i { display: block; width: 38px; height: 38px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.ig-offer-t { display: flex; flex-direction: column; min-width: 0; }
.ig-offer-t small { font-size: 11.5px; color: var(--muted); }
.ig-offer-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-offer-end { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ig-offer-end b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-safety { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }

/* two barcodes compared (ean) */
.ig-ean { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; background: var(--card); }
.ig-ean small { font-size: 11.5px; color: var(--muted); }
.ig-ean b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ig-code mark { background: none; color: inherit; border-radius: 4px; padding: 1px 2px; transition: background-color .3s, color .3s; }
.ig-code mark.lit { background: var(--orange-tint); color: var(--orange); font-weight: 700; }

/* a linked listing keeps its own stock until a person decides (hold) */
.ig-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ig-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; background: var(--card); }
.ig-tile small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-tile b { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ig-tile.sm b { font-size: 1.25rem; }
.ig-tile em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ig-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .ig-four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the feed file (feed) and a history (log) */
.ig-xml { border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; overflow: hidden; }
.ig-xml span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-xml .in1 { padding-left: 16px; }
.ig-log li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ig-log li:last-child { border-bottom: 0; }
.ig-log small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ig-log b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* one product with variants, here and there (variants) */
.ig-opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ig-opts > small { font-size: 12px; color: var(--muted); margin-right: 2px; }
.ig-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.ig-price b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.ig-price s { color: var(--faint); font-size: 12.5px; }

/* there and back again (roundtrip) */
.ig-trip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.ig-trip .ig-job { z-index: 1; }
.ig-trip .ig-fan { height: 16px; margin: 0 0 0 28px; }
.ig-trip .ig-jmain b { white-space: normal; }

/* already selling there? */
.ig-midcta .frame-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: clamp(22px, 3vw, 34px); }
@media (min-width: 860px) { .ig-midcta .frame-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; } }
.ig-midcta .mark { width: 66px; height: 44px; border-radius: 11px; padding: 7px 9px; }
.ig-midcta .mark.sq { width: 44px; }
.ig-midcta p { margin-top: 5px; font-size: 15px; color: var(--muted); }
.ig-midcta .btn { justify-self: start; }

/* what it does not do */
.ig-lim-sec { scroll-margin-top: 110px; }
.ig-lim { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) { .ig-lim { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 76px; align-items: start; } }
.ig-lim-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.ig-lim-copy .link { margin-top: 10px; }
.ig-lim-list { border-top: 1px solid var(--line); }
.ig-lim-list li { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ig-no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); flex: none; margin-top: 1px; }
.ig-no .ic { width: 13px; height: 13px; stroke-width: 2.6; }

/* phones */
@media (max-width: 560px) { .ig-bigrow { flex-wrap: wrap; gap: 4px 12px; } .ig-bigrow > b { font-size: 2.8rem; } }
@media (max-width: 380px) { .ig-pad { padding: 12px; } .ig-form { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .ig-story .ig-scene, .ig-story .ig-step-head, .ig-story .ig-step-more, .ig-hub-panel, .ig-rail i, .ig-chc::after { transition: none; }
}

/* ---------- Small fits found in the browser ---------- */
.head + .ig-legend { margin-top: 22px; }
.ig-sc .tag .ic { width: 12px; height: 12px; }
.ig-pmark.ig-xs svg { height: 12px; }
.ig-ends > .ic.ig-turn { transform: rotate(90deg); }
.ig-hist .ig-tap { margin-left: auto; }
.ig-job > .ic { flex: none; width: 16px; height: 16px; color: var(--faint); }
.ig-job > .ic.ig-in { color: var(--green); }
.ig-job > .ic.ig-out { color: var(--blue); }
.ig-jmain > span { font-size: 13.5px; line-height: 1.45; }
@media (max-width: 520px) { .ig-pairs.ig-vars { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
