/* Creator tools: Tag products (1.1) and the New reel share step (1.2). Dark, flat, full-screen pages. */
.ig .creator-page { left: 0; top: 0; width: 402px; height: 874px; }
.ig .creator-page > * { flex-shrink: 0; }
.ig .creator-page > .grow { flex: 1 1 0; }
.ig .creator-statusbar { position: relative; height: 54px; }
.ig .creator-pad { padding: 0 16px; }
.ig .c-blue { color: var(--ig-blue); }

/* type that only these screens use (Paper sets no tracking on them) */
.ig .creator-nav-title { font: 600 16px/20px var(--ig-text); }
.ig .creator-strong { font: 600 14px/18px var(--ig-text); }
.ig .creator-headline { font: 600 15px/20px var(--ig-text); }
.ig .creator-label { font: 400 15px/20px var(--ig-text); }
.ig .creator-caption { font: 400 15px/21px var(--ig-text); }
.ig .creator-link { font: 600 13px/17px var(--ig-text); color: var(--ig-blue); }

/* nav row */
.ig .creator-nav { height: 44px; padding: 0 16px; justify-content: space-between; }
.ig .creator-nav-side { width: 56px; }
.ig .creator-nav-side.end { justify-content: flex-end; }

/* footer pinned to the bottom */
.ig .creator-footer { padding: 0 16px 34px; }

/* 1.1 A: Reel header, search, tabs, results */
.ig .creator-reelhead { gap: 12px; padding: 12px 16px 16px; }
.ig .creator-search { height: 38px; gap: 8px; padding: 0 12px; border-radius: 10px; background: #26292E; }
.ig .creator-input { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 15px/18px var(--ig-text); }
.ig .creator-clear { width: 16px; height: 16px; border-radius: 8px; background: var(--ig-muted); display: grid; place-items: center; flex-shrink: 0; }
.ig .creator-tabs { align-items: stretch; padding: 14px 16px 0; border-bottom: 1px solid #FFFFFF1A; }
.ig .creator-tab { justify-content: center; padding-bottom: 10px; font: 600 14px/17px var(--ig-text); color: var(--ig-muted); }
.ig .creator-tab.on { padding-bottom: 9px; border-bottom: 1px solid #fff; color: #fff; }
.ig .creator-results-head { justify-content: space-between; padding: 14px 16px 4px; }

/* product line: search result or AI match */
.ig .creator-product { gap: 12px; padding: 6px 16px; }
.ig .creator-product-text { gap: 2px; }
.ig .creator-seller { display: inline-flex; align-items: center; gap: 3px; vertical-align: top; }   /* a verified seller's name and its check */
.ig .creator-product.match .creator-product-text { gap: 3px; }
.ig .creator-product.match { padding: 10px 16px; }
.ig .creator-product.match.first { padding-top: 16px; }
.ig .creator-tagbtn { width: 64px; height: 32px; border-radius: 8px; background: #FFFFFF1F; display: grid; place-items: center; font: 600 14px/17px var(--ig-text); flex-shrink: 0; }
.ig .creator-confirm { width: 26px; height: 26px; border-radius: 13px; background: var(--ig-blue); display: grid; place-items: center; flex-shrink: 0; }
.ig .creator-note { gap: 5px; padding-top: 2px; font: 600 12px/15px var(--ig-text); }
.ig .creator-off .ph, .ig .creator-off .creator-strong { opacity: .55; }   /* a pasted item that can't be tagged as it is */
.ig .creator-affiliate { padding: 4px 16px 6px; }
.ig .creator-affiliate-icon { width: 48px; height: 48px; border-radius: 8px; background: #26292E; display: grid; place-items: center; flex-shrink: 0; }
.ig .creator-alt-head { gap: 2px; padding: 14px 16px 0; border-top: 1px solid #FFFFFF1A; margin-top: 10px; }
.ig .creator-badge { width: 22px; height: 22px; border-radius: 11px; background: #fff; color: #0B0B0B; display: grid; place-items: center; font: 700 12px/14px var(--ig-text); flex-shrink: 0; }

/* 1.1 B: the headline, the two frames, add another */
.ig .creator-aihead { align-items: flex-start; gap: 10px; padding: 10px 16px 14px; }
.ig .creator-frame { position: relative; overflow: clip; }
.ig .creator-point { box-shadow: 0 0 0 4px #FFFFFF59, 0 2px 8px #00000080; }
.ig .creator-time { left: 8px; top: 8px; padding: 3px 7px; border-radius: 8px; background: #000000A6; font: 600 12px/15px var(--ig-text); }
.ig .creator-addmore { gap: 12px; padding: 12px 16px; border-top: 1px solid #FFFFFF1A; }

/* 1.1 B, adding one by hand: the paused frame, the tap, the scrubber */
.ig .creator-scrub { gap: 12px; padding-top: 6px; }
.ig .creator-ask { translate: -50% 0; padding: 7px 10px; border-radius: 6px; background: #000000CC; font: 600 13px/16px var(--ig-text); white-space: nowrap; }
.ig .creator-ask::before { content: ''; position: absolute; left: 50%; top: -6px; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #000000CC; }
.ig .creator-strip { position: relative; height: 78px; margin: 6px 16px 0; }
.ig .creator-mini { width: 16px; height: 16px; border-radius: 8px; font: 700 10px/12px var(--ig-text); }
.ig .creator-playhead { width: 4px; height: 66px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px #00000040, 0 2px 6px #00000080; }

/* 1.0: a code field under each tagged product */
.ig .creator-codehead { gap: 4px; padding: 10px 16px 6px; }
.ig .creator-code { gap: 6px; padding: 2px 16px 8px 50px; }
.ig .creator-code-tick { width: 18px; height: 18px; border-radius: 9px; background: #58C322; display: grid; place-items: center; flex-shrink: 0; }
.ig .creator-code-ok { font: 600 12px/15px var(--ig-text); color: #58C322; }

/* 1.2: caption block and settings rows */
.ig .creator-summary { align-items: flex-start; gap: 14px; padding: 12px 16px 18px; border-bottom: 1px solid #FFFFFF1A; }
.ig .creator-cover { left: 0; bottom: 0; width: 76px; padding: 5px 0; background: #00000099; text-align: center; }
.ig .creator-setting { height: 54px; gap: 14px; padding: 0 16px; }
.ig .creator-setting.tall { height: auto; align-items: flex-start; padding: 12px 16px; }
.ig .creator-setting-icon { width: 24px; justify-content: center; flex-shrink: 0; }
.ig .creator-earn { font: 600 13px/17px var(--ig-text); color: #58C322; }
.ig .creator-group { padding-top: 6px; border-top: 1px solid #FFFFFF1A; }
.ig .creator-toggle { position: relative; width: 46px; height: 28px; border-radius: 14px; background: #FFFFFF2E; flex-shrink: 0; }
.ig .creator-toggle i { position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 12px; background: #fff; }
.ig .creator-toggle.on { background: #34C759; }
.ig .creator-toggle.on i { translate: 18px 0; }

/* taps */
/* press feedback: rows light up, small controls dim */
.device .scr:not(.out) .ig :is(.creator-setting, .creator-row, .creator-addmore) { transition: background-color .2s; }
.device .scr:not(.out) .ig :is(.creator-setting, .creator-row, .creator-addmore):active { background: #FFFFFF14; transition: none; }
/* .creator-point eases back on its own .2s opacity transition (below) */
.device .scr:not(.out) .ig :is(.creator-tagbtn, .creator-confirm, .creator-link, .creator-tab, .creator-clear, .creator-ask, .creator-mini, .creator-nav-side, .creator-coverpick, .creator-summary > .ph) { transition: opacity .12s; }
.device .scr:not(.out) .ig :is(.creator-tagbtn, .creator-confirm, .creator-link, .creator-tab, .creator-clear, .creator-point, .creator-ask, .creator-mini, .creator-nav-side, .creator-coverpick, .creator-summary > .ph):active { opacity: .6; transition: none; }
.device .scr:not(.out) .ig .creator-strip { touch-action: none; }   /* a drag scrubs */
.ig:has(> .ig-over) .creator-statusbar { z-index: 16; }   /* the status bar stays over a sheet's dim */

/* switches slide */
.ig .creator-toggle { transition: background-color .25s; }
.ig .creator-toggle i { transition: translate .3s cubic-bezier(.23, 1, .32, 1); }

/* an Add button switched on: a blue tick at its right end */
.ig .creator-tagbtn.on { background: none; place-items: center end; }
.ig .creator-tagdot { width: 26px; height: 26px; border-radius: 13px; background: var(--ig-blue); display: grid; place-items: center; }
/* a match left out: an empty ring, its row and its point on the frame dimmed */
.ig .creator-confirm.off { background: none; box-shadow: inset 0 0 0 1.5px #FFFFFF59; }
.ig .creator-product > :is(.ph, .creator-product-text, .creator-badge), .ig .creator-point { transition: opacity .2s; }
.ig .creator-skipped > :is(.ph, .creator-product-text, .creator-badge), .ig .creator-point.off { opacity: .45; }
.ig .ig-btn.primary.off { opacity: .4; }   /* nothing picked */
.ig .creator-empty { padding: 14px 16px; }   /* no results, or a link being looked up */

/* fields that take typing */
.ig :is(input.creator-input, textarea.creator-captionedit) {
  margin: 0; padding: 0; border: 0; outline: 0; background: none; color: #fff; caret-color: var(--ig-blue); user-select: text; -webkit-user-select: text;
}
.ig input.creator-input { width: 0; height: 22px; }
.ig textarea.creator-captionedit { width: 100%; height: 118px; resize: none; }
.ig :is(input.creator-input, textarea.creator-captionedit)::placeholder { color: var(--ig-muted); opacity: 1; }
.ig .creator-code-ok.wait { color: var(--ig-muted); }   /* being checked with the seller */

/* B-2: the paused video under the points; a point away from its moment hides */
.ig .creator-scrubvideo { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.ig .creator-frame .gone { opacity: 0; visibility: hidden; }
.ig .creator-ask.done { display: flex; align-items: center; gap: 4px; }

/* sheets: a title, rows of choices with a radio, the cover picker */
.ig .creator-sheet { padding-bottom: 34px; }
.ig .creator-sheet-title { padding: 2px 16px 10px; text-align: center; font: 600 16px/20px var(--ig-text); }
.ig .creator-row { gap: 12px; min-height: 56px; padding: 0 16px; }
.ig .creator-radio { width: 24px; height: 24px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #FFFFFF59; display: grid; place-items: center; flex-shrink: 0; }
.ig .creator-radio.on { background: var(--ig-blue); box-shadow: none; }
.ig .creator-covers { gap: 10px; justify-content: center; padding: 4px 16px 0; }
.ig .creator-coverpick.on { box-shadow: 0 0 0 2px var(--ig-sheet), 0 0 0 4px #fff; }
