/* ==========================================================================
   Instagram Discover + Instagram Campaigns  (inside the Inbox)
   Materials: translucent glass surfaces, hairline borders, inset highlights.
   Motion: springs cubic-bezier(.2,.8,.2,1), feedback on press, reduced motion safe.
   Day / Night via tokens on .ig.
   ========================================================================== */

.ig, .od-tabs, .er-panel {
  --ig-ease: cubic-bezier(.2,.8,.2,1);
  --ig-surface: rgba(255,255,255,.72);
  --ig-tile: rgba(255,255,255,.86);
  --ig-card: #fff;
  --ig-line: rgba(15,23,42,.08);
  --ig-line-strong: rgba(15,23,42,.14);
  --ig-hi: rgba(255,255,255,.9);
  --ig-txt: #0F172A;
  --ig-txt-2: #475569;
  --ig-txt-3: #94A3B8;
  --ig-teal: #0D9488;
  --ig-teal-soft: rgba(13,148,136,.1);
  --ig-pink: #8134AF;
  --ig-pink-soft: rgba(129,52,175,.1);
  --ig-amber: #D97706;
  --ig-amber-soft: rgba(217,119,6,.12);
  --ig-red: #DC2626;
  --ig-red-soft: rgba(220,38,38,.1);
  --ig-shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px -18px rgba(15,23,42,.25);
  --ig-shadow-lg: 0 2px 4px rgba(15,23,42,.06), 0 24px 56px -24px rgba(15,23,42,.35);
}
/* Discover channel tabs and Elite panels sit outside .ig but share its tokens. */
.ig {
  color: var(--ig-txt);
  font-feature-settings: "cv11", "ss01";
  padding: 4px 0 48px;
}
html.theme-night .ig, html.theme-night .od-tabs, html.theme-night .er-panel {
  --ig-surface: rgba(255,255,255,.045);
  --ig-tile: rgba(255,255,255,.06);
  --ig-card: rgba(255,255,255,.05);
  --ig-line: rgba(255,255,255,.08);
  --ig-line-strong: rgba(255,255,255,.14);
  --ig-hi: rgba(255,255,255,.08);
  --ig-txt: #F1F5F9;
  --ig-txt-2: #B6C2D1;
  --ig-txt-3: #7A8A9E;
  --ig-teal: #5EEAD4;
  --ig-teal-soft: rgba(94,234,212,.12);
  --ig-pink: #C9A2EA;
  --ig-pink-soft: rgba(201,162,234,.14);
  --ig-amber: #FBBF24;
  --ig-amber-soft: rgba(251,191,36,.14);
  --ig-red: #F87171;
  --ig-red-soft: rgba(248,113,113,.14);
  --ig-shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 36px -18px rgba(0,0,0,.6);
  --ig-shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 28px 64px -24px rgba(0,0,0,.7);
}

/* ---------- shared primitives ---------- */
.ig-glass {
  background: var(--ig-surface);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line), var(--ig-shadow);
  border-radius: 22px;
}
.ig-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ig-txt-3); }
.ig-title { font-size: 22px; font-weight: 760; letter-spacing: -.025em; line-height: 1.15; color: var(--ig-txt); margin: 0; }
.ig-sub { font-size: 13.5px; line-height: 1.5; color: var(--ig-txt-2); margin: 4px 0 0; max-width: 60ch; }
.ig-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 11px;
  font: inherit; font-size: 13px; font-weight: 640; letter-spacing: -.005em; color: var(--ig-txt); cursor: pointer; white-space: nowrap;
  background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line);
  transition: transform .14s var(--ig-ease), box-shadow .2s var(--ig-ease), background .2s, color .2s, opacity .2s; -webkit-tap-highlight-color: transparent;
}
.ig-btn svg { width: 15px; height: 15px; flex: none; }
.ig-btn:hover { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong), 0 6px 14px -10px rgba(15,23,42,.3); }
.ig-btn:active, .ig-btn.is-pressed { transform: scale(.96); }
.ig-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ig-btn:focus-visible { outline: 2px solid rgba(13,148,136,.5); outline-offset: 2px; }
.ig-btn--primary { color: #fff; background: linear-gradient(180deg, #14B0A0, #0D9488); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -10px rgba(13,148,136,.8); }
.ig-btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 24px -10px rgba(13,148,136,.9); }
.ig-btn--ig { color: #fff; background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px -10px rgba(129,52,175,.7); }
.ig-btn--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--ig-line); color: var(--ig-txt-2); }
.ig-btn--danger { color: var(--ig-red); }
.ig-btn--danger:hover { background: var(--ig-red-soft); box-shadow: inset 0 0 0 1px rgba(220,38,38,.25); }
.ig-btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.ig-btn--icon { width: 36px; padding: 0; }
.ig-btn--sm.ig-btn--icon { width: 30px; }
.ig-btn.is-busy { pointer-events: none; opacity: .7; }

.ig-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ig-field > label, .ig-label { font-size: 12px; font-weight: 650; letter-spacing: .01em; color: var(--ig-txt-2); }
.ig-input, .ig-select, .ig-textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 11px; font: inherit; font-size: 13.5px; color: var(--ig-txt);
  background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line);
  transition: box-shadow .2s var(--ig-ease); appearance: none; -webkit-appearance: none;
}
.ig-textarea { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.ig-input:focus, .ig-select:focus, .ig-textarea:focus { outline: 0; box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1.5px rgba(13,148,136,.55), 0 0 0 4px rgba(13,148,136,.12); }
.ig-input::placeholder, .ig-textarea::placeholder { color: var(--ig-txt-3); }
.ig-select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.ig-input.is-invalid, .ig-textarea.is-invalid { box-shadow: inset 0 0 0 1.5px rgba(220,38,38,.6), 0 0 0 4px rgba(220,38,38,.1); }
.ig-hint { font-size: 12px; color: var(--ig-txt-3); line-height: 1.45; }
.ig-err { font-size: 12.5px; color: var(--ig-red); line-height: 1.45; }
.ig-err[hidden] { display: none; }

.ig-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--ig-txt-2); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); cursor: pointer; white-space: nowrap;
  transition: transform .14s var(--ig-ease), background .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.ig-chip:active { transform: scale(.95); }
.ig-chip.is-on { color: var(--ig-teal); background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.35); }
.ig-chip svg { width: 13px; height: 13px; }
.ig-chip b { font-weight: 700; }

.ig-band { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 720; letter-spacing: .02em; text-transform: uppercase; }
.ig-band i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ig-band--high { color: #047857; background: rgba(16,185,129,.13); }
.ig-band--medium { color: #B45309; background: rgba(245,158,11,.14); }
.ig-band--low { color: var(--ig-txt-3); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
html.theme-night .ig-band--high { color: #6EE7B7; }
html.theme-night .ig-band--medium { color: #FCD34D; }

.ig-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--ig-txt-2); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); white-space: nowrap; }
.ig-tag svg { width: 12px; height: 12px; }
.ig-tag--signal { color: var(--ig-teal); background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.25); }
.ig-tag--pink { color: var(--ig-pink); background: var(--ig-pink-soft); box-shadow: inset 0 0 0 1px rgba(129,52,175,.22); }
.ig-tag--amber { color: var(--ig-amber); background: var(--ig-amber-soft); box-shadow: inset 0 0 0 1px rgba(217,119,6,.25); }
.ig-tag--red { color: var(--ig-red); background: var(--ig-red-soft); box-shadow: inset 0 0 0 1px rgba(220,38,38,.22); }

.ig-skel { position: relative; overflow: hidden; background: var(--ig-tile); border-radius: 10px; }
.ig-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: igShimmer 1.3s infinite; }
html.theme-night .ig-skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes igShimmer { to { transform: translateX(100%); } }

.ig-enter { animation: igIn .42s var(--ig-ease) both; }
@keyframes igIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ig-stagger > * { animation: igIn .42s var(--ig-ease) both; }
.ig-stagger > :nth-child(2) { animation-delay: .03s } .ig-stagger > :nth-child(3) { animation-delay: .06s } .ig-stagger > :nth-child(4) { animation-delay: .09s }
.ig-stagger > :nth-child(5) { animation-delay: .12s } .ig-stagger > :nth-child(6) { animation-delay: .15s } .ig-stagger > :nth-child(n+7) { animation-delay: .18s }

.ig-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-avatar--ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); z-index: -1; }

/* ======================================================================
   DISCOVER
   ====================================================================== */
.ig-disc { display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 18px; align-items: start; }
.ig-disc__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ig-disc__side { position: sticky; top: 4px; display: flex; flex-direction: column; gap: 14px; max-height: var(--ig-side-max, calc(100dvh - 180px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ig-line) transparent; padding: 0 4px 18px 0; margin-right: -4px; --ig-fade-t: 0px; --ig-fade-b: 22px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--ig-fade-t), #000 calc(100% - var(--ig-fade-b)), transparent); mask-image: linear-gradient(to bottom, transparent, #000 var(--ig-fade-t), #000 calc(100% - var(--ig-fade-b)), transparent); }
.ig-disc__side.is-scrolled { --ig-fade-t: 18px; }
.ig-disc__side.is-end { --ig-fade-b: 0px; }
.ig-disc__side::-webkit-scrollbar { width: 6px; }
.ig-disc__side::-webkit-scrollbar-thumb { background: var(--ig-line); border-radius: 999px; }
.ig-disc__side::-webkit-scrollbar-track { background: transparent; }

/* Index status strip */
/* Command bar: one surface holding index status, live metrics, search and filters */
.ig-cmd { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 14px; overflow: hidden; }
.ig-cmd::before { content: ""; position: absolute; inset: -60% -10% auto; height: 200px; pointer-events: none; background: radial-gradient(55% 100% at 12% 0%, rgba(129,52,175,.09), transparent 70%), radial-gradient(40% 90% at 85% 0%, rgba(13,148,136,.07), transparent 70%); }
html.theme-night .ig-cmd::before { background: radial-gradient(55% 100% at 12% 0%, rgba(181,126,220,.13), transparent 70%), radial-gradient(40% 90% at 85% 0%, rgba(94,234,212,.07), transparent 70%); }
.ig-cmd > * { position: relative; }
.ig-index { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.ig-index__id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; }
.ig-index__txt { min-width: 0; }
.ig-index__beacon { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px -10px rgba(129,52,175,.7); position: relative; }
.ig-index__beacon svg { width: 18px; height: 18px; }
.ig-index__beacon i { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2.5px var(--ig-card); }
.ig-index__beacon i.is-running { background: var(--ig-amber); animation: igPing 1.4s infinite; }
.ig-index__beacon i.is-off { background: var(--ig-txt-3); }
.ig-index__name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 740; letter-spacing: -.02em; line-height: 1.2; }
.ig-index__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; font-size: 12.5px; color: var(--ig-txt-3); margin-top: 3px; line-height: 1.4; }
.ig-index__meta b { font-weight: 680; color: var(--ig-txt-2); margin-right: 4px; font-variant-numeric: tabular-nums; }
.ig-index__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; margin: 0 7px; }
.ig-index__stats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ig-kpi { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ig-txt-3); white-space: nowrap; background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); }
.ig-kpi b { font-size: 13.5px; font-weight: 760; letter-spacing: -.02em; color: var(--ig-txt); font-variant-numeric: tabular-nums; }
.ig-kpi--sig { cursor: pointer; color: var(--ig-teal); background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.26); transition: transform .14s var(--ig-ease), box-shadow .25s var(--ig-ease), background .25s; -webkit-tap-highlight-color: transparent; }
.ig-kpi--sig b { color: inherit; }
.ig-kpi--sig::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(13,148,136,.16); }
.ig-kpi--sig:hover { box-shadow: inset 0 0 0 1px rgba(13,148,136,.45), 0 6px 14px -10px rgba(13,148,136,.6); }
.ig-kpi--sig:active { transform: scale(.96); }
.ig-kpi--sig.is-on { color: #fff; background: var(--ig-teal); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -10px rgba(13,148,136,.8); }
.ig-kpi--sig.is-on::before { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
html.theme-night .ig-kpi--sig.is-on { color: #042F2E; }
.ig .ig-index__run { height: 30px; border-radius: 999px; }
.ig-cmd__row { display: flex; align-items: center; gap: 8px; }
.ig-cmd__form { flex: 1 1 auto; min-width: 0; }
.ig-cmd__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.ig .ig-cmd__tools .ig-filters__sort, .ig .ig-cmd__tools .ig-btn--sm { height: 50px; border-radius: 16px; }
.ig .ig-cmd__tools .ig-filters__sort .ig-select { height: 50px; }
.ig .ig-cmd__tools .ig-btn--sm { padding: 0 14px; }
.ig-cmd__filters { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ig-cmd__div { width: 1px; height: 20px; flex: none; background: var(--ig-line-strong); margin: 0 4px; }
.ig-cmd__chips { flex: 1 1 auto; }
.ig-cmd__filters .ig-filters__reset { flex: none; margin-left: auto; }
.ig-cmd .ig-adv { margin-top: 2px; }
/* The command bar locks to the top of the scroller and the cards glide under its glass.
   It stays pinned with Advanced filters open; the filter panel scrolls inside itself instead (see .ig-adv / .od-adv caps below). */
/* Sticky bars inside the Discover and campaign scrollers ([data-stick]). top -2px sits flush on the scroller edge
   (it has 2px top padding) so no card peeks above; once the list moves under it the top corners square off */
.inbox-camp [data-stick] { position: sticky; top: -2px; z-index: 20; background: rgba(255,255,255,.86); transition: border-radius .32s var(--ig-ease), box-shadow .32s var(--ig-ease); }
html.theme-night .inbox-camp [data-stick] { background: rgba(16,30,42,.88); }
.inbox-camp [data-stick].is-stuck { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: inset 0 0 0 1px var(--ig-line), 0 18px 34px -22px rgba(15,23,42,.38); }
html.theme-night .inbox-camp [data-stick].is-stuck { box-shadow: inset 0 0 0 1px var(--ig-line), 0 20px 36px -20px rgba(0,0,0,.75); }
.inbox-camp .od-adv, .inbox-camp .ig-cmd .ig-adv { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ig-line) transparent; }
.inbox-camp .od-adv { max-height: max(200px, calc(100dvh - 430px)); }
.inbox-camp .ig-cmd .ig-adv { max-height: max(180px, calc(100dvh - 520px)); }
@media (max-width: 640px) { .inbox-camp .od-adv { max-height: max(180px, calc(100dvh - 480px)); } .inbox-camp .ig-cmd .ig-adv { max-height: none; } }
/* Instagram's bar is too tall to pin on a phone, so it scrolls away there */
@media (max-width: 640px) { .inbox-camp .ig-cmd[data-stick] { position: relative; top: 0; } }
.ig-disc .ig-cmd ~ .ig-results, .ig-disc .ig-cmd ~ .ig-search { position: relative; z-index: 1; }

/* Search bar + filters (legacy sizes kept for the saved-leads bar) */
.ig-search { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.ig-search__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ig-search__q { position: relative; flex: 1 1 240px; min-width: 0; }
.ig-search__q svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--ig-txt-3); pointer-events: none; }
.ig-search__q .ig-input { padding-left: 36px; }
.ig-search__row .ig-select { width: auto; min-width: 128px; height: 36px; font-size: 13px; }
.ig-search__chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ig-search__chips .ig-sep { width: 1px; height: 18px; background: var(--ig-line-strong); margin: 0 4px; }
.ig-search__adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding-top: 10px; border-top: 1px solid var(--ig-line); }
.ig-search__adv[hidden] { display: none; }
.ig-search__adv .ig-input, .ig-search__adv .ig-select { height: 34px; font-size: 13px; }

/* Hero search: the primary way in. One field searches the index as you type and pulls new
   handles or a hashtag into the index on Look up. */
.ig-hero { position: relative; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ig-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 180px; pointer-events: none; background: radial-gradient(60% 100% at 18% 0%, rgba(129,52,175,.10), transparent 70%), radial-gradient(40% 90% at 80% 0%, rgba(13,148,136,.08), transparent 70%); }
html.theme-night .ig-hero::before { background: radial-gradient(60% 100% at 18% 0%, rgba(181,126,220,.14), transparent 70%), radial-gradient(40% 90% at 80% 0%, rgba(94,234,212,.08), transparent 70%); }
.ig-hero__form { position: relative; display: block; }
.ig-hero__q { position: relative; display: block; min-width: 0; padding: 1.5px; border-radius: 17px; background: linear-gradient(110deg, rgba(129,52,175,.75), rgba(245,133,41,.6) 38%, rgba(13,148,136,.6) 100%); box-shadow: 0 1px 0 var(--ig-hi), 0 18px 40px -22px rgba(129,52,175,.45), 0 6px 14px -10px rgba(15,23,42,.22); transition: box-shadow .3s var(--ig-ease), transform .3s var(--ig-ease); }
.ig-hero__q:hover { box-shadow: 0 1px 0 var(--ig-hi), 0 22px 46px -22px rgba(129,52,175,.55), 0 8px 18px -10px rgba(15,23,42,.26); }
.ig-hero__q:focus-within { background: linear-gradient(110deg, #8134AF, #F58529 45%, #0D9488); box-shadow: 0 0 0 5px rgba(129,52,175,.12), 0 24px 50px -22px rgba(129,52,175,.6), 0 8px 18px -10px rgba(15,23,42,.26); }
.ig-hero__q > svg { position: absolute; left: 9px; top: 50%; width: 32px; height: 32px; padding: 8px; box-sizing: border-box; transform: translateY(-50%); color: #fff; border-radius: 11px; background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px rgba(129,52,175,.6); pointer-events: none; z-index: 1; transition: transform .3s var(--ig-ease); }
.ig-hero__q:focus-within > svg { transform: translateY(-50%) scale(1.05); }
.ig-hero__input { display: block; width: 100%; height: 50px; padding: 0 92px 0 52px; font-size: 15.5px; font-weight: 550; letter-spacing: -.005em; color: var(--ig-txt); border: 0; border-radius: 15.5px; background: var(--ig-card); box-shadow: inset 0 1px 0 var(--ig-hi); }
.ig-hero__input::placeholder { color: var(--ig-txt-3); font-weight: 500; }
.ig-hero__input:focus { outline: none; box-shadow: inset 0 1px 0 var(--ig-hi); }
.ig-hero__kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; font-family: inherit; font-size: 11.5px; font-weight: 600; line-height: 1; letter-spacing: .01em; color: var(--ig-txt-3); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line-strong), inset 0 -1px 0 var(--ig-line-strong); pointer-events: none; z-index: 1; transition: color .2s, opacity .2s; }
.ig-hero__q:focus-within .ig-hero__kbd { color: var(--ig-pink); }
html.theme-night .ig-hero__q { background: linear-gradient(110deg, rgba(181,126,220,.55), rgba(245,133,41,.35) 38%, rgba(94,234,212,.4) 100%); box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -22px rgba(181,126,220,.45), 0 6px 14px -10px rgba(0,0,0,.5); }
html.theme-night .ig-hero__q:focus-within { background: linear-gradient(110deg, #B57EDC, #F58529 45%, #5EEAD4); box-shadow: 0 0 0 5px rgba(181,126,220,.14), 0 24px 50px -22px rgba(181,126,220,.55); }
html.theme-night .ig .ig-hero__input, html.theme-night .ig .ig-hero__input:focus { background: #0f1f2b !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important; }
.ig-hero__tools { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig-hero__tools .ig-select { width: auto; min-width: 140px; height: 34px; font-size: 13px; }
.ig-hero__tools .ig-sep { width: 1px; height: 18px; background: var(--ig-line-strong); margin: 0 2px; }
.ig-hero__spacer { flex: 1; }
.ig-hero .ig-search__chips, .ig-hero .ig-search__adv { position: relative; }

/* Results */
.ig-results__bar { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 4px; min-height: 30px; margin-bottom: 14px; }
.ig-selall { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--ig-line), inset 0 1px 0 rgba(255,255,255,.9); color: var(--ig-txt-2); font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .25s var(--ig-ease), color .25s var(--ig-ease), box-shadow .25s var(--ig-ease), transform .18s var(--ig-ease); }
.ig-selall:hover { color: var(--ig-txt); box-shadow: inset 0 0 0 1px rgba(129,52,175,.35), inset 0 1px 0 rgba(255,255,255,.9); }
.ig-selall:active { transform: scale(.96); }
.ig-selall__ck { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ig-line); color: transparent; transition: background .25s var(--ig-ease), color .25s var(--ig-ease), box-shadow .25s var(--ig-ease); }
.ig-selall__ck svg { width: 10px; height: 10px; }
.ig-selall.is-on { color: var(--ig-pink); background: rgba(129,52,175,.08); box-shadow: inset 0 0 0 1px rgba(129,52,175,.28); }
.ig-selall.is-on .ig-selall__ck { background: var(--ig-pink); color: #fff; box-shadow: none; }
html.theme-night .ig-selall { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--ig-line); }
html.theme-night .ig-selall.is-on { color: #B57EDC; background: rgba(181,126,220,.12); box-shadow: inset 0 0 0 1px rgba(181,126,220,.32); }
html.theme-night .ig-selall.is-on .ig-selall__ck { background: #B57EDC; color: #10202c; }
.ig-results__count { font-size: 13px; color: var(--ig-txt-2); }
.ig-results__count b { color: var(--ig-txt); font-weight: 700; }
.ig-results__sel { display: flex; align-items: center; gap: 8px; }

/* Selection dock */
.ig-dock-wrap { position: sticky; bottom: 18px; z-index: 30; display: flex; justify-content: center; margin-top: 18px; pointer-events: none; animation: igDockIn .42s var(--ig-ease) both; }
.ig-dock-wrap.is-out { animation: igDockOut .2s ease-in both; }
@keyframes igDockIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes igDockOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.ig-dock {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(15,23,42,.08), 0 18px 44px -14px rgba(15,23,42,.32), 0 4px 12px -6px rgba(15,23,42,.14);
}
.ig-dock__count { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 6px; font-size: 12.5px; font-weight: 550; color: var(--ig-txt-2); white-space: nowrap; }
.ig-dock__count b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8134AF, #6A2793); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); font-variant-numeric: tabular-nums; }
.ig-dock__div { width: 1px; height: 20px; margin: 0 4px; background: var(--ig-line-strong); flex: none; }
.ig-dock__btn, .ig-dock__x {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ig-txt); background: transparent; white-space: nowrap;
  transition: background .2s var(--ig-ease), transform .2s var(--ig-ease), box-shadow .2s var(--ig-ease);
}
.ig-dock__btn svg, .ig-dock__x svg { width: 15px; height: 15px; flex: none; }
.ig-dock__btn:hover, .ig-dock__x:hover { background: rgba(15,23,42,.06); }
.ig-dock__btn:active, .ig-dock__x:active { transform: scale(.96); }
.ig-dock__btn--go { color: #fff; background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px -10px rgba(129,52,175,.8); margin-left: 2px; }
.ig-dock__btn--go:hover { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); filter: brightness(1.06); }
.ig-dock__x { width: 36px; padding: 0; justify-content: center; color: var(--ig-txt-2); }
html.theme-night .ig-dock { background: rgba(22,36,50,.95); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.08), 0 20px 48px -14px rgba(0,0,0,.7); }
html.theme-night .ig-dock__count b { background: linear-gradient(135deg, #B57EDC, #8134AF); }
html.theme-night .ig-dock__btn:hover, html.theme-night .ig-dock__x:hover { background: rgba(255,255,255,.08); }
@media (max-width: 640px) {
  .ig-dock-wrap { bottom: 12px; }
  .ig-dock { gap: 2px; padding: 5px; max-width: 100%; }
  .ig-dock__count { padding: 0 6px 0 4px; }
  .ig-dock__count span, .ig-dock__div { display: none; }
  .ig-dock__btn { padding: 0 11px; font-size: 12.5px; }
  .ig-dock__btn:not(.ig-dock__btn--go) span { display: none; }
  .ig-dock__btn:not(.ig-dock__btn--go) { width: 36px; padding: 0; justify-content: center; }
}
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ig-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: 20px;
  background: var(--ig-card); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line), var(--ig-shadow);
  transition: transform .2s var(--ig-ease), box-shadow .25s var(--ig-ease);
}
.ig-card:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong), var(--ig-shadow-lg); }
.ig-card.is-sel { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1.5px rgba(13,148,136,.6), var(--ig-shadow); }
.ig-card.is-dnc { opacity: .55; }
.ig-card__top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; }
.ig-card__who { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.ig-card__id { min-width: 0; flex: 1; padding-top: 1px; }
.ig-card__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-card__ver { display: inline-flex; flex: none; }
.ig-card__ver svg { width: 15px !important; height: 15px !important; }
.ig-card__name { font-size: 14.5px; font-weight: 700; letter-spacing: -.012em; line-height: 1.2; display: flex; align-items: center; gap: 5px; min-width: 0; }
.ig-card__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-card__name svg { width: 13px; height: 13px; color: #3B82F6; flex: none; }
.ig-card__handle { font-size: 12.5px; color: var(--ig-txt-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-card__handle a { color: inherit; text-decoration: none; }
.ig-card__handle a:hover { color: var(--ig-teal); }
.ig-card__brk { font-size: 12.5px; color: var(--ig-txt-2); margin-top: 3px; display: flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-card__brk svg { width: 12px; height: 12px; color: var(--ig-txt-3); flex: none; }
.ig-card__score { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; white-space: nowrap; padding-top: 1px; }
.ig-card__num { font-size: 22px; font-weight: 780; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.ig-card__num small { font-size: 11px; color: var(--ig-txt-3); font-weight: 600; letter-spacing: 0; margin-left: 1px; }
.ig-card__score .ig-band { margin-top: 5px; }
.ig-card__sel { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; border-radius: 7px; background: var(--ig-card); box-shadow: inset 0 0 0 1.5px var(--ig-line-strong); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .18s, transform .14s var(--ig-ease), background .18s; z-index: 2; }
.ig-card__sel svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .14s; }
.ig-card:hover .ig-card__sel, .ig-card.is-sel .ig-card__sel, .ig-grid.has-sel .ig-card__sel { opacity: 1; }
.ig-card.is-sel .ig-card__sel { background: var(--ig-teal); box-shadow: none; }
.ig-card.is-sel .ig-card__sel svg { opacity: 1; }
.ig-card__sel:active { transform: scale(.9); }
.ig-card__stats { display: flex; gap: 14px; }
.ig-card__stat { display: flex; flex-direction: column; gap: 1px; }
.ig-card__stat b { font-size: 13.5px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.ig-card__stat span { font-size: 10.5px; color: var(--ig-txt-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ig-card__bio { font-size: 12.5px; line-height: 1.45; color: var(--ig-txt-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ig-card__why { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 12px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-card__why span { font-size: 12px; color: var(--ig-txt-2); line-height: 1.4; display: flex; gap: 7px; align-items: flex-start; }
.ig-card__why span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ig-teal); flex: none; margin-top: 6px; }
.ig-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ig-line); }
.ig-card__flags { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.ig-card__acts { display: flex; gap: 6px; flex: none; }
.ig-card__acts .ig-btn--sm { padding: 0 10px; }

/* Side: lists + leads + lookup */
.ig-side { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.ig-side__form { display: flex; flex-direction: column; gap: 10px; }
.ig-side__form .ig-btn { align-self: flex-start; }
.ig-side__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ig-side__head h3 { margin: 0; font-size: 13.5px; font-weight: 720; letter-spacing: -.01em; }
.ig-side__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ig-side__row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ig-txt-2); background: transparent; cursor: pointer; text-align: left; transition: background .18s, color .18s, transform .14s var(--ig-ease); }
.ig-side__row:hover { background: var(--ig-tile); color: var(--ig-txt); }
.ig-side__row:active { transform: scale(.98); }
.ig-side__row.is-on { background: var(--ig-teal-soft); color: var(--ig-teal); }
.ig-side__row svg { width: 14px; height: 14px; flex: none; opacity: .75; }
.ig-side__row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-side__row b { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ig-tile); color: var(--ig-txt-3); box-shadow: inset 0 0 0 1px var(--ig-line); font-variant-numeric: tabular-nums; }
.ig-side__row.is-on b { color: var(--ig-teal); background: transparent; box-shadow: inset 0 0 0 1px rgba(13,148,136,.3); }
.ig-side__hint { margin: -4px 0 2px; padding: 0 10px; font-size: 12px; line-height: 1.45; color: var(--ig-txt-3); }
.ig-side__empty { font-size: 12.5px; color: var(--ig-txt-3); line-height: 1.5; padding: 2px 10px 4px; }
.ig-side__form { display: flex; gap: 6px; }
.ig-side__form .ig-input { height: 34px; font-size: 13px; }
.ig-side__form .ig-btn { height: 34px; }
.ig-lookup .ig-textarea { min-height: 64px; font-size: 13px; }

/* Empty / load more */
.ig-empty { text-align: center; padding: 44px 20px; }
.ig-empty__ic { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 17px; display: grid; place-items: center; color: var(--ig-pink); background: var(--ig-pink-soft); box-shadow: inset 0 0 0 1px rgba(129,52,175,.18); }
.ig-empty__ic svg { width: 24px; height: 24px; }
.ig-empty h3 { margin: 0; font-size: 16px; font-weight: 740; letter-spacing: -.02em; }
.ig-empty p { margin: 6px auto 0; max-width: 44ch; font-size: 13.5px; color: var(--ig-txt-2); line-height: 1.5; }
.ig-empty .ig-btn { margin-top: 14px; }
.ig-more { display: flex; justify-content: center; padding: 6px 0 0; }

/* Drawer (profile): a contact card. Identity rail on the left, grouped cards on the right. */
.ig-drawer-scrim { position: fixed; inset: 0; z-index: 1100; background: rgba(15,23,42,.34); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); opacity: 0; transition: opacity .3s var(--ig-ease); }
.ig-drawer-scrim.is-in { opacity: 1; }
.ig-drawer {
  --dr-bg: rgba(244,245,249,.9); --dr-group: #fff; --dr-rail: rgba(255,255,255,.78);
  --dr-wash: radial-gradient(120% 70% at 50% -10%, rgba(221,42,123,.13), rgba(129,52,175,.09) 45%, transparent 75%);
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 1101; width: min(880px, calc(100vw - 24px)); display: flex; flex-direction: column; overflow: hidden; padding: 0; margin: 0;
  border-radius: 28px; background: var(--dr-bg); -webkit-backdrop-filter: blur(40px) saturate(190%); backdrop-filter: blur(40px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line), 0 1px 2px rgba(15,23,42,.06), 0 40px 90px -30px rgba(15,23,42,.45);
  transform: translateX(calc(100% + 16px)); transition: transform .5s var(--ig-ease); will-change: transform;
  color: var(--ig-txt);
}
html.theme-night .ig-drawer { --dr-bg: rgba(16,20,30,.86); --dr-group: rgba(255,255,255,.055); --dr-rail: rgba(255,255,255,.04); --dr-wash: radial-gradient(120% 70% at 50% -10%, rgba(221,42,123,.22), rgba(129,52,175,.16) 45%, transparent 75%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.8); }
.ig-drawer:has(> .ig-drawer__rail) { display: grid; grid-template-columns: 296px minmax(0,1fr); }
.ig-drawer.is-in { transform: none; }
.ig-drawer__x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-drawer__x svg { width: 15px; height: 15px; }
body.ig-drawer-open .qi-rail,
body.ig-drawer-open .theme-toggle-btn { opacity: 0; pointer-events: none; transform: scale(.9); transition: opacity .18s ease, transform .22s var(--ig-ease); }

/* Rail: who they are, how they score, what to do. Always in view. */
.ig-drawer__rail { position: relative; min-height: 0; display: flex; flex-direction: column; gap: 14px; margin: 8px 0 8px 8px; padding: 26px 18px 16px; border-radius: 22px; background: var(--dr-wash), var(--dr-rail); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ig-drawer__rail::-webkit-scrollbar { display: none; }
.ig-drawer__rail > * { flex-shrink: 0; }
@media (min-width: 781px) and (max-height: 800px) {
  .ig-drawer__rail { gap: 10px; }
  .ig-drawer__head .ig-avatar { width: 72px; height: 72px; }
}
.ig-drawer__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.ig-drawer__head .ig-avatar { width: 88px; height: 88px; font-size: 26px; overflow: visible; background: transparent; box-shadow: none; padding: 3px; }
.ig-drawer__head .ig-avatar img { border-radius: 50%; box-shadow: 0 0 0 3px var(--dr-group); }
.ig-drawer__head .ig-avatar--ring::before { inset: 0; }
.ig-drawer__head .ig-avatar:not(:has(img)) { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); box-shadow: inset 0 0 0 3px var(--dr-group); }
.ig-drawer__id { min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ig-drawer__name { margin: 0; max-width: 100%; font-size: 21px; font-weight: 720; letter-spacing: -.022em; line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ig-drawer__name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-drawer__name i { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ig-teal); color: #fff; }
.ig-drawer__name i svg { width: 11px; height: 11px; stroke-width: 3; }
.ig-drawer__handle { font-size: 14px; font-weight: 560; letter-spacing: -.005em; }
.ig-drawer__handle a { color: var(--ig-pink); text-decoration: none; }
.ig-drawer__handle a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ig-drawer__sub { font-size: 12.5px; color: var(--ig-txt-3); font-weight: 520; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-drawer__meta { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.ig-drawer__meta:empty { display: none; }

/* Score: a dial, not a number dumped in a corner */
.ig-drawer__score { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; align-items: center; width: 100%; padding: 10px 12px; text-align: left; border-radius: 18px !important; background: var(--dr-group) !important; box-shadow: inset 0 1px 0 var(--ig-hi), 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px var(--ig-line); }
.ig-drawer__score:hover { box-shadow: inset 0 1px 0 var(--ig-hi), 0 6px 18px -10px rgba(129,52,175,.45), inset 0 0 0 1px var(--ig-line-strong); }
.ig-drawer__dial { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.ig-drawer__dial b { position: relative; font-size: 22px; font-weight: 760; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ig-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ig-ring circle { fill: none; stroke-width: 6; }
.ig-ring__track { stroke: var(--ig-line); }
.ig-ring__val { stroke-linecap: round; transition: stroke-dasharray .8s var(--ig-ease); }
.ig-drawer__scoretxt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ig-drawer__scoretxt small { font-size: 12px; color: var(--ig-txt-3); font-weight: 520; }
.ig-drawer__scoretxt em { font-style: normal; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 620; color: var(--ig-pink); }
.ig-drawer__scoretxt em svg { width: 13px; height: 13px; transition: transform .2s var(--ig-ease); }
.ig-drawer__score:hover em svg { transform: translateX(2px); }

/* Stats: four quiet figures, two by two, inside one grouped surface */
/* Score + its reasons read as one grouped card */
.ig-drawer__scorecard { border-radius: 18px; background: var(--dr-group); box-shadow: inset 0 1px 0 var(--ig-hi), 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px var(--ig-line); overflow: hidden; }
.ig-drawer__scorecard .ig-drawer__score { border-radius: 0 !important; background: transparent !important; box-shadow: none; }
.ig-drawer__scorecard .ig-drawer__score:hover { background: var(--ig-hover, rgba(129,52,175,.05)) !important; box-shadow: none; }
.ig-drawer__scorecard .ig-why { margin: 0; padding: 2px 0 4px; border-top: 1px solid var(--ig-line); }
.ig-drawer__scorecard .ig-why li { grid-template-columns: 18px minmax(0,1fr); gap: 9px; padding: 7px 14px; font-size: 12.5px; line-height: 1.35; }
.ig-drawer__scorecard .ig-why li + li::before { left: 41px; }
.ig-drawer__scorecard .ig-why li svg { width: 18px; height: 18px; padding: 3.5px; }
.ig-drawer__scorecard .ig-why li b { font-weight: 540; color: var(--ig-txt-2, var(--ig-txt)); }
.ig-drawer__scorecard .ig-why li.ig-why__rest { display: block; padding: 6px 14px 4px 41px; }
.ig-drawer__scorecard .ig-why li.ig-why__rest::before { display: none; }
.ig-why__more { appearance: none; border: 0; padding: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 620; color: var(--ig-pink); cursor: pointer; transition: opacity .15s ease, transform .2s var(--ig-ease); }
.ig-why__more:hover { opacity: .78; }
.ig-why__more:active { transform: scale(.97); }
.ig-drawer__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 18px; background: var(--dr-group); box-shadow: inset 0 1px 0 var(--ig-hi), 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px var(--ig-line); overflow: hidden; }
.ig-drawer__stats > div { padding: 11px 14px; min-width: 0; }
.ig-drawer__stats > div:nth-child(even) { box-shadow: inset 1px 0 0 var(--ig-line); }
.ig-drawer__stats > div:nth-child(n+3) { border-top: 1px solid var(--ig-line); }
.ig-drawer__stats b { display: block; font-size: 18px; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-drawer__stats span { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; color: var(--ig-txt-3); font-weight: 520; white-space: nowrap; }
.ig-drawer__stats em { font-style: normal; font-size: 11px; font-weight: 680; padding: 0 5px; border-radius: 999px; line-height: 16px; color: var(--ig-teal); background: var(--ig-teal-soft); font-variant-numeric: tabular-nums; }
.ig-drawer__stats em.is-down { color: var(--ig-red); background: var(--ig-red-soft); }

/* Actions: pinned to the foot of the rail */
.ig-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ig-drawer__acts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.ig-drawer__acts .ig-btn { justify-content: center; height: 40px; border-radius: 13px; padding: 0 10px; min-width: 0; }
.ig-drawer__acts .ig-btn:not(.ig-btn--ig) { background: var(--dr-group); box-shadow: inset 0 1px 0 var(--ig-hi), 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px var(--ig-line); }
.ig-drawer__acts .ig-btn--ig { grid-column: 1 / -1; height: 44px; font-size: 14.5px; }
.ig-drawer__acts .ig-btn:active { transform: scale(.97); }
.ig-drawer__dnc { align-self: center; border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ig-red); padding: 4px 10px; border-radius: 8px; cursor: pointer; opacity: .82; transition: opacity .18s, background .18s, transform .12s var(--ig-ease); }
.ig-drawer__dnc:hover { opacity: 1; background: var(--ig-red-soft); }
.ig-drawer__dnc:active { transform: scale(.96); }

/* Content pane: inset grouped cards */
.ig-drawer__body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 18px 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.ig-drawer:has(> .ig-drawer__rail) .ig-drawer__body { padding-top: 58px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 18px), transparent 100%); }
.ig-drawer__body > [data-ig-compose-slot]:empty { display: none; }
.ig-drawer__card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 15px; border-radius: 18px; background: var(--dr-group); box-shadow: inset 0 1px 0 var(--ig-hi), 0 1px 2px rgba(15,23,42,.05), inset 0 0 0 1px var(--ig-line); }
.ig-drawer__card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.ig-drawer__card h4 { margin: 0; font-size: 15px; font-weight: 680; letter-spacing: -.012em; color: var(--ig-txt); }
.ig-drawer__card > header > span { font-size: 12px; color: var(--ig-txt-3); font-weight: 520; font-variant-numeric: tabular-nums; }
.ig-drawer__link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 620; color: var(--ig-pink); text-decoration: none; padding: 3px 9px; border-radius: 999px; background: var(--ig-pink-soft); transition: transform .12s var(--ig-ease), filter .18s; }
.ig-drawer__link svg { width: 13px; height: 13px; }
.ig-drawer__link:hover { filter: brightness(1.05); }
.ig-drawer__link:active { transform: scale(.96); }
.ig-drawer__bio { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ig-txt-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig-drawer__quiet { margin: 0; font-size: 13px; color: var(--ig-txt-3); line-height: 1.5; }

/* Why this score: rows separated by hairlines, like a settings list */
.ig-why { margin: 0 -16px; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ig-why li { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 16px; font-size: 13.5px; line-height: 1.4; color: var(--ig-txt); position: relative; }
.ig-why li + li::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: 1px; background: var(--ig-line); }
.ig-why li svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; color: var(--ig-teal); background: var(--ig-teal-soft); stroke-width: 3; }
.ig-why li.is-neg svg { color: var(--ig-amber); background: var(--ig-amber-soft); }
.ig-why li b { font-weight: 560; }
.ig-why li small { display: block; font-size: 13px; color: var(--ig-txt-3); font-weight: 480; }
.ig-why li .ig-why__w { font-size: 12.5px; font-weight: 700; color: var(--ig-teal); font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; background: var(--ig-teal-soft); }
.ig-why li.is-neg .ig-why__w { color: var(--ig-amber); background: var(--ig-amber-soft); }

/* Keyword / area chips */
.ig-drawer__chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Followers trend: bars + two anchor labels */
.ig-trend { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; padding: 12px 14px; border-radius: 14px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-trend__k { text-align: right; }
.ig-trend__k b { display: block; font-size: 18px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ig-trend__k span { font-size: 12px; color: var(--ig-txt-3); font-weight: 520; }
.ig-spark { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.ig-spark i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--ig-teal), rgba(13,148,136,.45)); min-height: 4px; transition: transform .2s var(--ig-ease); transform-origin: bottom; }
.ig-spark i:last-child { background: linear-gradient(180deg, var(--ig-pink), rgba(129,52,175,.5)); }
.ig-spark__ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--ig-txt-3); font-variant-numeric: tabular-nums; margin-top: 6px; }

/* Message log: every DM sent from Brokerr to this profile, newest first */
.ig-msgs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ig-msg { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px 12px; border-radius: 14px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-msg.is-new { animation: igMsgIn .48s cubic-bezier(.2,.8,.2,1) both; }
@keyframes igMsgIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.ig-msg__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ig-msg__head b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 640; letter-spacing: -.008em; color: var(--ig-txt); }
.ig-msg__head b i { font-style: normal; font-weight: 520; color: var(--ig-txt-3); margin-left: 4px; }
.ig-msg__head time { margin-left: auto; flex: none; font-size: 12px; color: var(--ig-txt-3); font-variant-numeric: tabular-nums; }
.ig-msg__st { flex: none; font-size: 11px; font-weight: 680; letter-spacing: .01em; line-height: 1; padding: 4px 8px; border-radius: 999px; color: var(--ig-pink); background: var(--ig-pink-soft); }
.ig-msg__st.is-reply { color: var(--ig-teal); background: var(--ig-teal-soft); }
.ig-msg__st.is-failed { color: var(--ig-red); background: var(--ig-red-soft); }
.ig-msg__who { font-size: 12px; color: var(--ig-txt-3); font-weight: 520; }
.ig-msg__text { margin: 2px 0 0; padding: 9px 12px; max-width: 100%; align-self: flex-start; border-radius: 14px 14px 14px 5px; font-size: 13.5px; line-height: 1.5; color: var(--ig-txt); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--dr-group); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); }
.ig-msg:not(.is-in) .ig-msg__text { border-radius: 14px 14px 5px 14px; background: linear-gradient(135deg, rgba(221,42,123,.09), rgba(129,52,175,.07)); }
.ig-msg__private { margin: 0; font-size: 12.5px; color: var(--ig-txt-3); font-style: italic; }
.ig-msg__err { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--ig-red); }
.ig-msg__err svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ig-msg__open { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 5px 10px; border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 620; color: var(--ig-txt); background: var(--dr-group); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong); cursor: pointer; transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.ig-msg__open svg { width: 13px; height: 13px; color: var(--ig-pink); }
.ig-msg__open:hover { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-pink), 0 4px 12px -6px rgba(221,42,123,.4); }
.ig-msg__open:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .ig-msg.is-new { animation: none; } }

/* Signal history: timeline */
.ig-hist { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.ig-hist li { position: relative; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; padding: 6px 0 6px 18px; font-size: 13px; line-height: 1.45; color: var(--ig-txt-2); }
.ig-hist li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--ig-teal); box-shadow: 0 0 0 3px var(--ig-teal-soft); }
.ig-hist li::after { content: ""; position: absolute; left: 7px; top: 23px; bottom: -7px; width: 1px; background: var(--ig-line-strong); }
.ig-hist li:last-child::after { display: none; }
.ig-hist li time { color: var(--ig-txt-3); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.ig-hist li b { color: var(--ig-txt); font-weight: 600; }

/* Competitors followed */
.ig-drawer__comps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ig-drawer__comps small { font-size: 12px; color: var(--ig-txt-3); font-weight: 560; margin-right: 2px; }

/* Notes: a writing surface, always in view */
.ig-drawer__flags { display: flex; gap: 6px; flex-wrap: wrap; }
.ig-notes { min-height: 84px; font-size: 13.5px; }
.ig-drawer__notes { transition: box-shadow .24s var(--ig-ease); }
.ig-drawer__notes:focus-within { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px color-mix(in srgb, var(--ig-pink) 40%, transparent), 0 0 0 4px color-mix(in srgb, var(--ig-pink) 12%, transparent); }
.ig-drawer__notes > header > span { transition: color .2s; }
.ig-drawer__notes .ig-notes { min-height: 112px; resize: vertical; padding: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; font-size: 14px; line-height: 1.6; color: var(--ig-txt); }
.ig-drawer__notes .ig-notes:focus { box-shadow: none !important; }
/* Desktop: Notes absorbs spare height so the column never ends in a void */
@media (min-width: 781px) {
  .ig-drawer:has(> .ig-drawer__rail) .ig-drawer__notes { flex: 1 0 auto; }
  .ig-drawer:has(> .ig-drawer__rail) .ig-drawer__notes .ig-notes { flex: 1; resize: none; }
}
.ig-drawer__empty { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; font: inherit; text-align: left; color: inherit; cursor: pointer; background: var(--ig-pink-soft); transition: transform .14s var(--ig-ease), filter .2s; }
.ig-drawer__empty:hover { filter: brightness(1.03); }
.ig-drawer__empty:active { transform: scale(.985); }
.ig-drawer__empty > svg { width: 30px; height: 30px; flex: none; padding: 7px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.ig-drawer__empty b { display: block; font-size: 13.5px; font-weight: 640; color: var(--ig-pink); }
.ig-drawer__empty small { display: block; font-size: 12.5px; color: var(--ig-txt-2); margin-top: 1px; }

/* Quick message composer (lives inside the drawer body) */
.ig-compose { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--ig-card); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong), var(--ig-shadow); animation: igComposeIn .32s var(--ig-ease) both; }
@keyframes igComposeIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.ig-compose__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ig-compose__top h5 { margin: 0; font-size: 14px; font-weight: 720; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.ig-compose__top h5 svg { width: 15px; height: 15px; color: var(--ig-pink); }
.ig-compose__from { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ig-txt-2); }
.ig-compose__from .ig-select { height: 32px; font-size: 12.5px; width: auto; min-width: 160px; }
.ig-compose__left { font-size: 12px; color: var(--ig-txt-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-compose__left b { color: var(--ig-txt); font-weight: 680; }
.ig-compose__left.is-low b { color: var(--ig-amber); }
.ig-compose__left.is-out b { color: var(--ig-red); }
.ig-compose .ig-textarea { min-height: 112px; font-size: 14px; line-height: 1.5; }
.ig-compose__merge { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ig-txt-3); }
.ig-compose__merge .ig-chip { height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; letter-spacing: -.005em; }
.ig-mchip { gap: 6px; max-width: 100%; }
.ig-mchip:hover { color: var(--ig-txt); box-shadow: inset 0 0 0 1px var(--ig-line), 0 1px 2px rgba(15,23,42,.06); }
.ig-mchip__v { font-weight: 500; color: var(--ig-txt-3); max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ig-mchip__v::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 6px; vertical-align: -1px; background: var(--ig-line); }
.ig-mchip.is-empty { color: var(--ig-txt-3); opacity: .62; }
.ig-compose__guard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--ig-amber-soft); color: var(--ig-txt); font-size: 13px; line-height: 1.45; box-shadow: inset 0 0 0 1px rgba(217,119,6,.22); }
.ig-compose__guard svg { width: 16px; height: 16px; color: var(--ig-amber); flex: none; margin-top: 1px; }
.ig-compose__guard.is-block { background: var(--ig-red-soft); box-shadow: inset 0 0 0 1px rgba(220,38,38,.22); }
.ig-compose__guard.is-block svg { color: var(--ig-red); }
/* Live preview of the drawer DM: placeholders filled for this person */
.ig-cprev { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ig-line-strong); }
.ig-cprev__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--ig-tile); box-shadow: inset 0 -1px 0 var(--ig-line); }
.ig-cprev__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ig-txt-3); }
.ig-cprev__who { font-size: 12px; color: var(--ig-txt-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-cprev__stage { display: flex; justify-content: flex-end; padding: 14px 12px 16px; background: linear-gradient(180deg, rgba(129,52,175,.035), transparent 70%), var(--ig-card); max-height: 220px; overflow-y: auto; }
.ig-cprev__bubble { max-width: 86%; padding: 9px 14px; border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, #8134AF 0%, #5B51D8 55%, #3797F0 100%); color: #fff; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px -10px rgba(91,81,216,.55); transition: opacity .2s var(--ig-ease); }
.ig-cprev__bubble:has(.ig-cprev__empty) { background: transparent; box-shadow: inset 0 0 0 1px var(--ig-line-strong); }
.ig-cprev__empty { color: var(--ig-txt-3); font-style: italic; }
.ig-fill { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: rgba(255,255,255,.2); color: inherit; padding: 0 3px; margin: 0 -1px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.ig-fill--empty { background: rgba(251,191,36,.28); box-shadow: inset 0 0 0 1px rgba(253,230,138,.7); font-style: italic; }
.ig-fill--bad { background: rgba(248,113,113,.38); box-shadow: inset 0 0 0 1px rgba(254,202,202,.8); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ig-cprev__note { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; font-size: 12px; line-height: 1.45; background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-line); }
.ig-cprev__note:empty { display: none; }
.ig-cnote { display: flex; align-items: flex-start; gap: 7px; color: var(--ig-txt-2); }
.ig-cnote::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: currentColor; }
.ig-cnote--ok::before { background: var(--ig-teal); }
.ig-cnote--warn { color: var(--ig-amber); }
.ig-cnote--bad { color: var(--ig-red); font-weight: 600; }
.ig-compose__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ig-compose__count { font-size: 12px; color: var(--ig-txt-3); font-variant-numeric: tabular-nums; }
.ig-compose__count.is-over { color: var(--ig-red); font-weight: 650; }
.ig-compose__sent { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.22); font-size: 13.5px; }
.ig-compose__sent svg { width: 18px; height: 18px; color: var(--ig-teal); flex: none; }
.ig-compose__sent b { display: block; font-weight: 700; }
.ig-compose__sent span { color: var(--ig-txt-2); font-size: 12.5px; }

/* ======================================================================
   CAMPAIGNS (Instagram)
   ====================================================================== */
.ig-camp { display: flex; flex-direction: column; gap: 16px; }
.ig-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ig-head__lead { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ig-chans { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig-chan { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 640; color: var(--ig-txt-3); text-decoration: none; background: transparent; box-shadow: inset 0 0 0 1px var(--ig-line); transition: color .2s, background .2s, transform .14s var(--ig-ease); }
.ig-chan svg { width: 14px; height: 14px; fill: currentColor; }
.ig-chan:hover { color: var(--ig-txt); background: var(--ig-tile); }
.ig-chan:active { transform: scale(.96); }
.ig-chan.is-active { color: var(--ig-txt); background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong); }
.ig-chan.is-active svg { color: var(--ig-pink); }
.ig-chan.is-active.ig-chan--wa svg { color: #25D366; }
.ig-chan em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--ig-tile); color: var(--ig-txt-3); }
.ig-head__sub { font-size: 13px; color: var(--ig-txt-2); line-height: 1.5; margin: 0; max-width: 72ch; }
.ig-head__actions { display: flex; gap: 8px; align-items: center; }

/* Allowance meters (per connected account) */
.ig-allow { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; }
.ig-allow__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ig-allow__name { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-allow__st { font-size: 12px; color: var(--ig-txt-3); margin-top: 1px; }
.ig-allow__meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ig-meter { display: flex; flex-direction: column; gap: 5px; }
.ig-meter__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ig-txt-2); font-weight: 600; }
.ig-meter__row b { color: var(--ig-txt); font-weight: 720; font-variant-numeric: tabular-nums; }
.ig-meter__bar { height: 6px; border-radius: 999px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); overflow: hidden; }
.ig-meter__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14B0A0, #0D9488); transition: width .6s var(--ig-ease); }
.ig-meter--follow .ig-meter__bar i { background: linear-gradient(90deg, #A65BD0, #8134AF); }
.ig-meter__note { font-size: 11.5px; color: var(--ig-txt-3); }
.ig-allow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ig-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.ig-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ig-pill--ok { color: #047857; background: rgba(16,185,129,.13); }
.ig-pill--warm { color: var(--ig-amber); background: var(--ig-amber-soft); }
.ig-pill--off { color: var(--ig-txt-3); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-pill--bad { color: var(--ig-red); background: var(--ig-red-soft); }
.ig-pill--live i { animation: igPulse 1.6s infinite; }
@keyframes igPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
html.theme-night .ig-pill--ok { color: #6EE7B7; }

/* Campaign cards */
.ig-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ig-ccard {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border-radius: 20px; cursor: pointer; text-align: left; font: inherit; color: var(--ig-txt); border: 0;
  background: var(--ig-card); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line), var(--ig-shadow);
  transition: transform .2s var(--ig-ease), box-shadow .25s var(--ig-ease); -webkit-tap-highlight-color: transparent;
}
.ig-ccard:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong), var(--ig-shadow-lg); }
.ig-ccard:active { transform: scale(.985); }
.ig-ccard--live::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, #14B0A0, transparent); }
.ig-ccard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ig-ccard__name { font-size: 15px; font-weight: 720; letter-spacing: -.015em; line-height: 1.2; }
.ig-ccard__acct { font-size: 12.5px; color: var(--ig-txt-3); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.ig-ccard__acct svg { width: 12px; height: 12px; }
.ig-ccard__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ig-ccard__stats div { padding: 9px 8px; border-radius: 12px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-ccard__stats b { display: block; font-size: 17px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.ig-ccard__stats span { display: block; font-size: 10.5px; color: var(--ig-txt-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.ig-ccard__bar { height: 5px; border-radius: 999px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); overflow: hidden; }
.ig-ccard__bar i { display: block; height: 100%; background: linear-gradient(90deg, #14B0A0, #0D9488); transition: width .6s var(--ig-ease); }
.ig-ccard__foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ig-txt-3); }
.ig-ccard__pause { font-size: 12.5px; color: var(--ig-amber); display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.ig-ccard__pause svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }

/* Campaign detail HUD */
.ig-hud { position: relative; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.ig-hud--live::before { content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 2px; background: linear-gradient(90deg, transparent, #14B0A0, transparent); }
.ig-hud__bar { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 14px; align-items: center; }
.ig-hud__beacon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -12px rgba(129,52,175,.8); }
.ig-hud__beacon svg { width: 22px; height: 22px; }
.ig-hud__name { font-size: 19px; font-weight: 760; letter-spacing: -.025em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ig-hud__meta { font-size: 12.5px; color: var(--ig-txt-2); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ig-hud__meta svg { width: 13px; height: 13px; flex: none; }
.ig-hud__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--ig-txt-3); }
.ig-hud__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ig-hud__notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.ig-hud__notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.ig-hud__notice--warn { color: #92400E; background: var(--ig-amber-soft); box-shadow: inset 0 0 0 1px rgba(217,119,6,.22); }
.ig-hud__notice--bad { color: #991B1B; background: var(--ig-red-soft); box-shadow: inset 0 0 0 1px rgba(220,38,38,.2); }
.ig-hud__notice--info { color: var(--ig-txt-2); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
html.theme-night .ig-hud__notice--warn { color: #FDE68A; } html.theme-night .ig-hud__notice--bad { color: #FCA5A5; }
.ig-hud__notice .ig-btn { margin-left: auto; flex: none; }
.ig-hud__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ig-metric { padding: 12px 14px; border-radius: 15px; background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); }
.ig-metric__l { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ig-txt-3); }
.ig-metric__v { font-size: 22px; font-weight: 780; letter-spacing: -.035em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ig-metric__v small { font-size: 13px; color: var(--ig-txt-3); font-weight: 600; letter-spacing: -.01em; }
.ig-metric__h { font-size: 11.5px; color: var(--ig-txt-3); margin-top: 5px; line-height: 1.4; }
.ig-metric .ig-meter__bar { margin-top: 8px; }
.ig-steps { display: flex; flex-direction: column; gap: 8px; }
.ig-step { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 12px 14px; border-radius: 15px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-step__n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 760; color: var(--ig-teal); background: var(--ig-teal-soft); }
.ig-step--follow .ig-step__n { color: var(--ig-pink); background: var(--ig-pink-soft); }
.ig-step__k { font-size: 12.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.ig-step__k span { font-weight: 500; color: var(--ig-txt-3); }
.ig-step__v { font-size: 13px; color: var(--ig-txt-2); line-height: 1.5; margin-top: 4px; white-space: pre-wrap; }
.ig-step__v + .ig-step__v { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--ig-line); }

/* Members board */
.ig-board { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.ig-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ig-col__head { display: flex; align-items: center; gap: 7px; padding: 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ig-txt-2); }
.ig-col__head i { width: 7px; height: 7px; border-radius: 50%; background: var(--ig-txt-3); }
.ig-col--queued i { background: #94A3B8; } .ig-col--active i { background: #0D9488; } .ig-col--replied i { background: #16A34A; } .ig-col--completed i { background: #3B82F6; } .ig-col--skipped i { background: #D97706; }
.ig-col__head b { margin-left: auto; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); color: var(--ig-txt-3); font-variant-numeric: tabular-nums; }
.ig-col__body { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; background: var(--ig-surface); box-shadow: inset 0 0 0 1px var(--ig-line); min-height: 110px; max-height: 520px; overflow: auto; }
.ig-col__empty { font-size: 12px; color: var(--ig-txt-3); text-align: center; padding: 22px 8px; }
.ig-mem { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 8px 9px; border-radius: 12px; background: var(--ig-card); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-mem .ig-avatar { width: 30px; height: 30px; font-size: 11px; }
.ig-mem__n { font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-mem__s { font-size: 11px; color: var(--ig-txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.ig-mem__x { opacity: 0; }
.ig-mem:hover .ig-mem__x { opacity: 1; }

/* Modal (campaign composer, checkpoint, risk) */
.ig-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ig-ease); }
.ig-modal.is-in { opacity: 1; }
.ig-modal__card {
  width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: var(--ig-surface, #fff); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line), var(--ig-shadow-lg);
  transform: translateY(14px) scale(.98); filter: blur(3px); transition: transform .4s var(--ig-ease), filter .4s var(--ig-ease);
}
.ig-modal.is-in .ig-modal__card { transform: none; filter: none; }
.ig-modal__card--sm { max-width: 460px; }
.ig-modal__head { padding: 22px 24px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.ig-modal__head h2 { margin: 0; font-size: 19px; font-weight: 760; letter-spacing: -.025em; line-height: 1.2; }
.ig-modal__head p { margin: 5px 0 0; font-size: 13px; color: var(--ig-txt-2); line-height: 1.5; }
.ig-modal__body { flex: 1; min-height: 0; overflow: auto; padding: 8px 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.ig-modal__foot { padding: 12px 24px 18px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--ig-line); }
.ig-modal__foot .ig-err { flex: 1; min-width: 0; }
.ig-modal__foot .ig-btn:last-child { margin-left: auto; }
.ig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ig-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.ig-steps-ed { display: flex; flex-direction: column; gap: 10px; }
.ig-step-ed { padding: 12px 14px; border-radius: 16px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); display: flex; flex-direction: column; gap: 10px; }
.ig-step-ed__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig-step-ed__top .ig-step__n { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
.ig-step-ed__top .ig-select { width: auto; height: 32px; font-size: 12.5px; }
.ig-step-ed__top .ig-input { width: 64px; height: 32px; font-size: 12.5px; text-align: center; padding: 0 8px; }
.ig-step-ed__top .ig-label { white-space: nowrap; }
.ig-step-ed__top .ig-btn { margin-left: auto; }
.ig-step-ed__vars { display: flex; flex-direction: column; gap: 8px; }
.ig-var { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: start; }
.ig-var .ig-textarea { min-height: 64px; font-size: 13px; }
.ig-var__ct { font-size: 11px; color: var(--ig-txt-3); text-align: right; font-variant-numeric: tabular-nums; }
.ig-merge { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.ig-merge .ig-chip { height: 24px; font-size: 11.5px; padding: 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.ig-seg { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 11px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); }
.ig-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--ig-txt-2); background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .14s var(--ig-ease); }
.ig-seg button:active { transform: scale(.95); }
.ig-seg button.is-on { color: var(--ig-txt); background: var(--ig-card); box-shadow: 0 1px 2px rgba(15,23,42,.08), inset 0 0 0 .5px var(--ig-line); }
html.theme-night .ig-seg button.is-on { background: rgba(255,255,255,.1); }
.ig-pick { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.ig-pick__opt { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); cursor: pointer; transition: box-shadow .2s, transform .14s var(--ig-ease); }
.ig-pick__opt:active { transform: scale(.985); }
.ig-pick__opt.is-on { box-shadow: inset 0 0 0 1.5px rgba(13,148,136,.55); }
.ig-pick__radio { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ig-line-strong); display: grid; place-items: center; }
.ig-pick__opt.is-on .ig-pick__radio { box-shadow: inset 0 0 0 5.5px var(--ig-teal); }
.ig-pick__name { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-pick__meta { font-size: 12px; color: var(--ig-txt-3); margin-top: 1px; }
.ig-guard { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); font-size: 13px; line-height: 1.5; color: var(--ig-txt-2); }
.ig-guard b { color: var(--ig-txt); font-weight: 700; }
.ig-guard ul { margin: 0; padding-left: 18px; }
.ig-guard li { margin: 2px 0; }
.ig-guard[hidden] { display: none; }
.ig [hidden] { display: none !important; }

/* Risk notice */
.ig-risk { display: flex; flex-direction: column; gap: 10px; }
.ig-risk ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: r; }
.ig-risk li { position: relative; padding: 10px 12px 10px 42px; border-radius: 13px; background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line); font-size: 13px; line-height: 1.5; color: var(--ig-txt-2); counter-increment: r; }
.ig-risk li::before { content: counter(r); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 760; color: var(--ig-pink); background: var(--ig-pink-soft); }
.ig-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.25); cursor: pointer; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ig-txt); }
.ig-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ig-teal); flex: none; }

/* Seat upsell */
.ig-seat { padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; }
.ig-seat__price { text-align: right; }
.ig-seat__price b { display: block; font-size: 22px; font-weight: 780; letter-spacing: -.03em; }
.ig-seat__price span { font-size: 12px; color: var(--ig-txt-3); }

/* Checkpoint code */
.ig-code { height: 52px; font-size: 24px; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Toast inside modals */
.ig-err.is-shown { animation: igShake .4s var(--ig-ease); }
@keyframes igShake { 20% { transform: translateX(-3px) } 40% { transform: translateX(3px) } 60% { transform: translateX(-2px) } 80% { transform: translateX(2px) } }


/* ---------- Discover filters (20 Oct design round) ---------- */
.ig-filters { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; }
.ig-filters::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ig-line-strong) 12%, var(--ig-line-strong) 88%, transparent); }
.ig-filters__bar { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.ig-filters__group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ig-filters__group--grow { flex: 1 1 420px; }
.ig-filters__label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ig-txt-3); flex: none; }
.ig-filters__chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }

.ig-seg--band { padding: 3px; border-radius: 12px; }
.ig .ig-seg__btn { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; letter-spacing: -.003em; }
.ig .ig-seg__btn.is-on { color: var(--ig-txt); background: var(--ig-card); box-shadow: 0 1px 2px rgba(15,23,42,.1), 0 4px 10px -6px rgba(15,23,42,.25), inset 0 0 0 .5px var(--ig-line); }
html.theme-night .ig .ig-seg__btn.is-on { background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px -6px rgba(0,0,0,.6); }
.ig-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ig-txt-3); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.ig-dot--high { background: #10B981; }
.ig-dot--medium { background: #F59E0B; }
.ig-dot--low { background: #94A3B8; }
.ig-dot--all { background: conic-gradient(#10B981 0 33%, #F59E0B 0 66%, #94A3B8 0); }

.ig-toggle { gap: 0; padding: 0 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--ig-line-strong); color: var(--ig-txt-2); }
.ig-toggle:hover { color: var(--ig-txt); background: var(--ig-tile); }
.ig-toggle__ck { display: inline-flex; align-items: center; justify-content: center; width: 0; height: 14px; margin-right: 0; border-radius: 50%; overflow: hidden; opacity: 0; transform: scale(.4); transition: width .28s var(--ig-ease), margin .28s var(--ig-ease), opacity .2s, transform .28s var(--ig-ease); }
.ig-toggle__ck svg { width: 10px !important; height: 10px !important; stroke-width: 3; }
.ig-toggle.is-on { color: var(--ig-teal); background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.32); }
.ig-toggle.is-on .ig-toggle__ck { width: 14px; margin-right: 6px; opacity: 1; transform: none; background: var(--ig-teal); color: #fff; }
html.theme-night .ig-toggle.is-on .ig-toggle__ck { color: #042F2E; }
.ig-toggle__badge { display: inline-flex; margin-right: 6px; }
.ig-toggle__badge svg { width: 14px !important; height: 14px !important; }
.ig-chip--active { color: var(--ig-pink); background: var(--ig-pink-soft); box-shadow: inset 0 0 0 1px rgba(129,52,175,.25); }
.ig-chip--active svg { width: 12px; height: 12px; opacity: .8; }

.ig-filters__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig .ig-filters__tools .ig-btn--sm { height: 34px; padding: 0 12px; border-radius: 11px; }
.ig-filters__sort { display: inline-flex; align-items: center; gap: 0; height: 34px; padding-left: 12px; border-radius: 11px; background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); }
.ig-filters__sort > span { font-size: 12px; font-weight: 600; color: var(--ig-txt-3); }
.ig .ig-filters__sort .ig-select { height: 34px; width: auto; min-width: 0; padding-left: 6px; background-color: transparent; box-shadow: none; font-size: 13px; font-weight: 640; }
.ig .ig-filters__sort .ig-select:focus { box-shadow: none; }
html.theme-night .ig .ig-filters__sort .ig-select { background-color: transparent !important; border-color: transparent !important; box-shadow: none !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 14px !important; }
html.theme-night .ig .ig-adv__field .ig-input, html.theme-night .ig .ig-adv__field .ig-select { background-color: var(--ig-card) !important; border-color: transparent !important; }
.ig-filters__sort:focus-within { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1.5px rgba(13,148,136,.5), 0 0 0 4px rgba(13,148,136,.1); }
.ig-filters__more.is-on { color: var(--ig-teal); background: var(--ig-teal-soft); box-shadow: inset 0 0 0 1px rgba(13,148,136,.32); }
.ig-filters__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 10.5px; font-weight: 760; font-variant-numeric: tabular-nums; color: #fff; background: var(--ig-teal); }
.ig-filters__n:empty, .ig-filters__n[hidden] { display: none; }
html.theme-night .ig-filters__n { color: #042F2E; }
.ig-filters__reset { height: 34px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ig-txt-3); cursor: pointer; border-radius: 8px; transition: color .2s, transform .14s var(--ig-ease); }
.ig-filters__reset:hover { color: var(--ig-teal); }
.ig-filters__reset:active { transform: scale(.96); }

.ig-adv { padding: 16px; border-radius: 16px; background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); display: flex; flex-direction: column; gap: 16px; animation: igMat .38s var(--ig-ease) both; transform-origin: top center; }
.ig-adv[hidden] { display: none; }
@keyframes igMat { from { opacity: 0; transform: translateY(-4px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.ig-adv__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 14px; }
.ig-adv__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ig-adv__field > span { font-size: 11.5px; font-weight: 650; letter-spacing: .01em; color: var(--ig-txt-2); }
.ig .ig-adv__field .ig-input, .ig .ig-adv__field .ig-select { height: 36px; font-size: 13px; background-color: var(--ig-card); }
.ig-adv__persona { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; box-shadow: inset 0 1px 0 var(--ig-line); }


@media (max-width: 900px) { .ig-adv__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .ig-filters__bar { gap: 12px; }
  .ig-filters__group { flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; }
  .ig-filters__group--grow { flex-basis: auto; }
  .ig-seg--band { width: 100%; grid-auto-columns: 1fr; }
  .ig .ig-seg__btn { justify-content: center; padding: 0 6px; }
  .ig-filters__tools .ig-hero__spacer { display: none; }
  .ig-filters__sort { flex: 1 1 100%; }
  .ig .ig-filters__sort .ig-select { flex: 1; }
  .ig-filters__more { flex: 1; }
  .ig-adv { padding: 14px; }
  .ig-adv__grid { grid-template-columns: 1fr; }
  }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ig-disc { grid-template-columns: 1fr; }
  .ig-disc__side { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .ig-board { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .ig { padding-bottom: 32px; }
  .ig-cmd { padding: 14px 14px 12px; gap: 10px; }
  .ig-index__id { flex-basis: 100%; }
  .ig-index__stats, .ig-cmd__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .ig-index__stats::-webkit-scrollbar, .ig-cmd__chips::-webkit-scrollbar { display: none; }
  .ig-index__stats, .ig-cmd__chips { width: calc(100% + 28px); }
  .ig-cmd__row { flex-wrap: wrap; }
  .ig-cmd__form { flex-basis: 100%; }
  .ig-cmd__tools { flex: 1 1 100%; }
  .ig-cmd__tools > * { flex: 1; }
  .ig .ig-cmd__tools .ig-filters__sort, .ig .ig-cmd__tools .ig-btn--sm { height: 40px; }
  .ig .ig-cmd__tools .ig-filters__sort .ig-select { height: 40px; flex: 1; }
  .ig-cmd__filters { flex-wrap: wrap; }
  .ig-cmd__div { display: none; }
  .ig-cmd__filters .ig-seg--band { flex: 1 1 0; width: auto; min-width: 0; }
  .ig-cmd__filters .ig-filters__reset { order: 1; margin-left: 0; height: 40px; }
  .ig-cmd__filters .ig-cmd__chips { order: 2; }
  .ig-grid { grid-template-columns: minmax(0, 1fr); }
  .ig-card__sel { opacity: 1; }
  .ig-search__row .ig-select { flex: 1 1 40%; min-width: 0; }
  .ig-results__bar { flex-wrap: wrap; }
  .ig-allow { grid-template-columns: 1fr; }
  .ig-allow__side { align-items: flex-start; }
  .ig-allow__meters { grid-template-columns: 1fr; }
  .ig-cgrid { grid-template-columns: 1fr; }
  .ig-ccard__stats { grid-template-columns: repeat(2, 1fr); }
  .ig-hud__bar { grid-template-columns: auto auto minmax(0,1fr); }
  .ig-hud__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .ig-board { grid-template-columns: 1fr; }
  .ig-col__body { max-height: 280px; }
  .ig-row, .ig-row--3 { grid-template-columns: 1fr; }
  .ig-compose__top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ig-compose__top h5 { font-size: 13.5px; }
  .ig-hero { padding: 14px 14px 12px; }
  .ig-hero__form { grid-template-columns: 1fr; }
  .ig-hero__input { height: 50px; padding-right: 14px; font-size: 15px; }
  .ig-hero__kbd { display: none; }
  .ig-modal { padding: 8px; align-items: flex-end; }
  .ig-modal__card { max-height: calc(100vh - 16px); }
  .ig-seat { grid-template-columns: 1fr; }
  .ig-seat__price { text-align: left; }
  .ig-head__actions { width: 100%; }
  .ig-head__actions .ig-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ig *, .ig-drawer, .ig-drawer-scrim, .ig-modal, .ig-modal__card { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ig-enter, .ig-stagger > * { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .ig-glass, .ig-drawer, .ig-modal__card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ig-card); }
}

/* HUD beacon dot: steady when idle, breathing while the campaign runs */
.ig-hud__beacon i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: inset 0 1px 1px rgba(255,255,255,.6); transition: background .3s; }
.ig-hud__beacon i.is-running { background: #fff; animation: ig-beacon 1.8s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes ig-beacon { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .ig-hud__beacon i.is-running { animation: none; } }

/* Night: theme-night paints every [class*="-card"] as its own card, which hit
   .ig-card and all its .ig-card__* parts (a box behind each row). Keep the card
   as one surface and let its parts sit flat on it. */
html.theme-night .ig .ig-card { background-color: var(--ig-card); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line), var(--ig-shadow); }
html.theme-night .ig .ig-card:hover { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line-strong), var(--ig-shadow-lg); }
html.theme-night .ig .ig-card.is-sel { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1.5px rgba(13,148,136,.6), var(--ig-shadow); }
html.theme-night .ig .ig-card [class*="-card"] { background-color: transparent; box-shadow: none; }
html.theme-night .ig .ig-card .ig-card__sel, html.theme-night .ig .ig-card .od-card__sel { background-color: var(--ig-card); box-shadow: 0 0 0 2.5px var(--ig-card), inset 0 0 0 1.5px var(--ig-line-strong); }
html.theme-night .ig .ig-card.is-sel .ig-card__sel, html.theme-night .ig .ig-card.is-sel .od-card__sel { background-color: var(--ig-teal); box-shadow: 0 0 0 2.5px var(--ig-card); }
/* theme-night.css also forces a card fill (with !important) on anything named
   like [class*="stat"][class*="-card"], which catches .ig-card__stats. */
html.theme-night .ig .ig-card .ig-card__stats,
html.theme-night .ig .ig-card .ig-card__stat { background: transparent !important; box-shadow: none; }
.ig-card__flags { flex-wrap: nowrap; overflow: hidden; }
.ig-card__flags .ig-tag:not(.ig-tag--more) { min-width: 0; max-width: 128px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }
.ig-tag--more { flex: none; color: var(--ig-txt-3); background: transparent; box-shadow: inset 0 0 0 1px var(--ig-line-strong); cursor: default; }
.ig-card__tags { flex-wrap: nowrap; overflow: hidden; }
.ig-card__tags .ig-tag:not(.ig-tag--more) { min-width: 0; max-width: 140px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }
/* Narrow screens: one scrolling sheet, identity first, actions pinned to the bottom */
@media (max-width: 780px) {
  .ig-drawer:has(> .ig-drawer__rail) { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
  .ig-drawer__rail { overflow: visible; margin: 8px 8px 0; padding: 22px 16px 14px; flex: none; }
  .ig-drawer__head { flex-direction: row; text-align: left; align-items: center; flex-wrap: wrap; gap: 12px; padding-right: 36px; }
  .ig-drawer__head .ig-avatar { width: 64px; height: 64px; font-size: 20px; }
  .ig-drawer__id { align-items: flex-start; flex: 1; }
  .ig-drawer__name { justify-content: flex-start; font-size: 19px; }
  .ig-drawer__meta { justify-content: flex-start; width: 100%; }
  .ig-drawer__stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ig-drawer__stats > div { padding: 10px; box-shadow: inset 1px 0 0 var(--ig-line); border-top: 0 !important; }
  .ig-drawer__stats > div:first-child { box-shadow: none; }
  .ig-drawer__stats b { font-size: 16px; }
  .ig-drawer__stats span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .ig-drawer__foot { position: sticky; bottom: 0; z-index: 2; order: 9; margin: 0 -16px -14px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; background: var(--dr-bg); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
  .ig-drawer__acts { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ig-drawer__acts .ig-btn--ig { grid-column: auto; height: 40px; font-size: 13.5px; }
  .ig-drawer:has(> .ig-drawer__rail) .ig-drawer__body { overflow: visible; flex: none; padding: 12px 8px 16px; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 640px) {
  .ig-drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 90vh; border-radius: 24px; transform: translateY(calc(100% + 16px)); }
  .ig-drawer__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ig-drawer__stats > div:nth-child(3) { box-shadow: none; }
  .ig-drawer__stats > div:nth-child(n+3) { border-top: 1px solid var(--ig-line) !important; }
  .ig-drawer__acts .ig-btn svg { display: none; }
}

/* Company rail: tap a brokerage or developer to list its agents */
.ig-side--co { gap: 10px; }
.ig-side__sub { font-size: 11.5px; font-weight: 600; color: var(--ig-txt-3); font-variant-numeric: tabular-nums; }
.ig-co__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.ig .ig-co__tabs .ig-seg__btn { justify-content: center; }
.ig-co__tabs em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ig-txt-3); font-variant-numeric: tabular-nums; }
.ig-co__find { position: relative; display: block; }
.ig-co__find svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--ig-txt-3); pointer-events: none; }
.ig-co__find .ig-input { width: 100%; height: 34px; padding-left: 31px; font-size: 13px; }
.ig-co__list { max-height: 380px; overflow-y: auto; margin: 0 -4px; padding: 0 4px 2px; overscroll-behavior: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); }
.ig-side__row.ig-co__row { gap: 10px; padding: 7px 8px; }
.ig-side__row.ig-co__row[hidden] { display: none; }
.ig-side__row .ig-co__mono { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 10.5px; font-weight: 750; letter-spacing: .02em; color: var(--ig-txt-2); background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line), inset 0 1px 0 rgba(255,255,255,.5); transition: background .18s, color .18s; }
html.theme-night .ig-side__row .ig-co__mono { box-shadow: inset 0 0 0 1px var(--ig-line), inset 0 1px 0 rgba(255,255,255,.06); }
.ig-side__row.is-on .ig-co__mono { color: var(--ig-teal); background: transparent; box-shadow: inset 0 0 0 1px rgba(13,148,136,.32); }
.ig-side__row .ig-co__txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.ig-side__row .ig-co__txt span { color: inherit; }
.ig-side__row .ig-co__txt small { font-size: 11px; font-weight: 500; color: var(--ig-txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-side__row.is-on .ig-co__txt small { color: var(--ig-teal); opacity: .75; }
.ig-co__soon { flex: none; font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--ig-txt-3); opacity: .8; }
.ig-side__row.is-empty .ig-co__txt > span { color: var(--ig-txt-3); }
.ig-side__row.is-empty .ig-co__mono { opacity: .6; }
.ig-seg--mkt .ig-seg__btn { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ig-side__row.ig-co__row:active { transform: none; } }
