/* AV LNCH — "Formularz Edity" TikTok brief v2 visual system (2026-07-23 redesign).
   Port of D:\av-lnch\.tmp_design_ttform\design.html + DESIGN-SPEC.md onto the real
   TikTok brief branch of realizacja.html. Namespace: fe-* (per INTEGRATION-CONSTRAINTS.md §0).
   Color/base tokens (--ice/--flame/--bg/--surface/--text/--line/--font-*) already live in
   tokens.css (sitewide) — this file only adds the TT-specific rails/cards/popups/animations
   layered on top of realizacja.css's existing .field/.chip/.dropzone/.pack-card/.adv-options
   primitives. Scoped implicitly to the TikTok branch: every selector below only ever matches
   markup that exists on that branch (the Spotify branch never renders fe-* classes). */

@keyframes fe-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fe-pop { 0% { opacity: 0; transform: scale(.55); } 60% { opacity: 1; transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes fe-rise { 0% { opacity: 0; transform: translateY(34px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fe-blur { 0% { opacity: 0; filter: blur(13px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes fe-bounce { 0% { opacity: 0; transform: translateY(-36px); } 55% { opacity: 1; transform: translateY(8px); } 80% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes fe-pan { 0% { transform: scale(1.15) translate(2%, 1%); } 100% { transform: scale(1.3) translate(-3%, -4%); } }

/* ───────── layout ───────── */
.fe-form-wide { max-width: 1120px; }

/* sekcja 01 — okienko dźwięku jako pionowy kafel (celowo węższy i wyższy niż
   pełnowymiarowy .dropzone; proporcje zbliżone do kwadratu — Domi 2026-07-24) */
#tt-audio-zone {
  max-width: 400px;
  min-height: 300px;
  justify-content: center;
  padding: 32px 26px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  #tt-audio-zone { min-height: 240px; }
}

/* sekcja 01 — nagłówek i podtytuł wyśrodkowane nad kaflem, a chipsy źródła
   (Plik MP3/WAV · TikTok · Spotify · YouTube) jako pionowa kolumna PO LEWEJ
   stronie boxa uploadu / panelu linku; cała para wyśrodkowana w formularzu
   (kafel 400 px przyklejony do lewej zostawiał pustą prawą połowę) — Domi 2026-07-25 */
.fe-audio-field .fe-section-head { justify-content: center; }
.fe-audio-field > .field-sublabel { text-align: center; }

.fe-audio-pick {
  display: grid;
  grid-template-columns: max-content 400px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 14px;
}
.fe-audio-pick > .chip-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.fe-audio-pick .chip { justify-content: center; }
.fe-audio-panes { min-width: 0; }
.fe-audio-pick .tt-source-pane { margin-top: 0; }
.fe-audio-pick .field-helper { text-align: center; }
/* w wąskiej (400 px) kolumnie input + przycisk nie mieszczą się obok siebie */
@media (min-width: 761px) {
  .fe-audio-pick .tt-fetch-row { flex-direction: column; }
}

@media (max-width: 760px) {
  .fe-audio-pick {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .fe-audio-pick > .chip-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

.fe-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.fe-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--flame); letter-spacing: .14em; }
.fe-h2 { font-size: 19px; font-weight: 600; margin: 0; color: var(--text); }

/* ───────── step pills ───────── */
.fe-steps {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 34px;
  font-family: var(--font-mono); font-size: 11px;
}
.fe-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .4);
  background: rgba(125, 211, 252, .08);
  color: var(--ice);
}
.fe-step b { font-weight: 700; }

/* ───────── horizontal rail ───────── */
.fe-rail-wrap { position: relative; }
@media (min-width: 641px) { .fe-rail-wrap { padding: 0 40px; } }
.fe-rail {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 6px;
  -webkit-overflow-scrolling: touch;
}
.fe-rail::-webkit-scrollbar { height: 9px; }
.fe-rail::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, .45); border-radius: 99px; border: 2px solid var(--bg); }
.fe-rail::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, .7); }
.fe-rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 99px; }
.fe-rail-btn {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%);
  z-index: 6;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--flame);
  background: var(--flame);
  color: #18120a;
  font-size: 20px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(251, 146, 60, .35);
  cursor: pointer;
}
.fe-rail-btn:hover { background: var(--flame-1); }
.fe-rail-btn-left { left: 2px; }
.fe-rail-btn-right { right: 2px; }
@media (max-width: 640px) { .fe-rail-btn { display: none; } }

/* ───────── cards (clip + hook rails share this shell) ───────── */
.fe-card {
  position: relative;
  flex: 0 0 190px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 160ms var(--e-out), border-color 160ms var(--e-out);
}
@media (min-width: 641px) { .fe-card { flex-basis: 200px; } }
.fe-card:has(.pack-input:checked),
.fe-card:has(.hookpack-input:checked),
.fe-card:has(.hook-none-input:checked) {
  box-shadow: 0 0 0 2px var(--ice), 0 0 0 5px var(--ice-glow);
  border-color: var(--ice);
}
.fe-card-hit { display: block; cursor: pointer; }
.fe-card-hit:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.fe-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  display: block;
  background: var(--surface-2);
  overflow: hidden;
}
.fe-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-card-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .78));
  pointer-events: none;
}
.fe-card-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .85);
  background: rgba(2, 4, 9, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 3px 7px;
}
.fe-card-flag {
  position: absolute; top: 34px; left: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .05em;
  color: rgba(255, 255, 255, .92);
  background: rgba(2, 4, 9, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 3px 7px;
}
.fe-card-foot {
  position: absolute; left: 10px; right: 10px; bottom: 50px; z-index: 2;
  display: flex; flex-direction: column; gap: 7px;
}
.fe-card-name { color: #fff; font-weight: 800; font-size: 16px; line-height: 1.05; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.fe-card-count-label { color: var(--ice-hi); font-size: 10.5px; font-family: var(--font-mono); }
.fe-card-preview-btn {
  position: relative; z-index: 3;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(2, 4, 9, .55);
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: .04em;
  backdrop-filter: blur(3px);
  cursor: pointer;
  width: 100%;
}
.fe-card-preview-btn:hover { background: rgba(2, 4, 9, .85); border-color: var(--ice); }
.fe-card-preview-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* create tile ("Stwórz własną paczkę") — wrapper is a plain <div>; the actual affordance is
   the nested reset <button> (a <button> cannot contain another <button>, so the clear-badge
   below is a sibling, not nested). */
.fe-card-create {
  display: block;
  width: 100%;
  border: 1.5px dashed rgba(125, 211, 252, .4);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  border-radius: 16px;
}
.fe-card-create:hover { border-color: var(--ice); }
.fe-card-create.is-selected { border-color: var(--ice); background: rgba(125, 211, 252, .07); }
.fe-card-create-btn {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}
.fe-card-create-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 9 / 16;
  padding: 14px;
  text-align: center;
}
.fe-plus {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(125, 211, 252, .12);
  border: 1px solid rgba(125, 211, 252, .3);
  color: var(--ice);
  font-size: 24px; font-weight: 300;
}
.fe-card-create-title { font-size: 12.5px; font-weight: 600; color: var(--ice); line-height: 1.3; }
.fe-card-create-sub { font-size: 11px; color: var(--text-3); }
.fe-card-create-check {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ice);
  color: #062236;
  display: none; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  cursor: pointer;
  transition: transform 120ms var(--e-out), background 120ms var(--e-out);
}
.fe-card-create.is-selected .fe-card-create-check { display: flex; }
.fe-card-create-check:hover { transform: scale(1.14); background: var(--ice-hi); }
.fe-card-create-check:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; transform: scale(1.14); }

/* hook card media — a blurred still from a real edit imitating the finished look (gradient
   stays as the loading fallback under the img until it decodes). */
.fe-hook-media { position: relative; overflow: hidden; background: linear-gradient(158deg, hsl(210 40% 26%), hsl(210 45% 11%)); }
.fe-hook-blur-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(.85);
  transform: scale(1.15);
}
/* pre-blurred loop clip — no CSS blur here (baked in at generation time); fades in over the
   poster img once it's playing (bootHookCardVideos in tt-brief.js). */
.fe-hook-blur-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms var(--e-out);
}
.fe-hook-blur-video.is-playing { opacity: 1; }
.fe-hook-blur-caption {
  position: absolute; left: 8%; right: 8%; top: 52%; z-index: 1;
  text-align: center;
  font-weight: 800; color: #fff; font-size: 15px; line-height: 1.1;
  filter: blur(4px); opacity: .85;
  pointer-events: none;
}
.fe-hook-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 58px;
  padding: 6px 12px;
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff;
  font-size: 14px; font-weight: 800; line-height: 1.25;
  text-align: center; overflow: hidden;
}
/* the KSYWKA/MOMENT flag sits under the (taller) bar; the no-bar card keeps it at the top */
.fe-card-hook .fe-card-flag { top: 66px; }
.fe-card-hook.is-none .fe-card-flag { top: 10px; }
.fe-card-hook.is-none .fe-card-media::after {
  content: ""; position: absolute; inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(10, 12, 18, .28);
}

/* POST/draft/noscript carrier sections - creation lives in the popups, so these stay
   in the DOM but invisible for JS users (the <noscript> block re-reveals them). */
.fe-popup-carrier { display: none; }

/* ───────── picker summary (removable chips — kept per INTEGRATION-CONSTRAINTS §5b) ───────── */
.fe-picker-summary-wrap { margin-top: 14px; }

/* ───────── allocation panel ───────── */
.fe-alloc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.fe-alloc-equalize {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ice);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}
.fe-alloc-equalize:hover { border-color: var(--ice); }
.fe-alloc-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: 46px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
}
.fe-alloc-row:first-child { border-top: 0; }
.fe-alloc-name { flex: 1 1 130px; min-width: 0; font-size: 13px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-alloc-slider { flex: 1 1 auto; min-width: 130px; height: 22px; accent-color: var(--ice); }
.fe-alloc-readout { flex: 0 0 auto; width: 92px; text-align: right; font-family: var(--font-mono); font-size: 13px; }
.fe-alloc-pct { color: var(--ice); font-weight: 700; }
.fe-alloc-count { color: var(--text-3); }
.adv-options.fe-alloc .adv-row-input[name] { display: none; } /* posts proportion_<id>; UI shows the slider + readout instead */

/* ───────── lyric phone preview (section 02) ───────── */
.fe-lyrics-grid { --fe-phone-w: 250px; display: flex; justify-content: center; align-items: stretch; gap: 18px; }
.fe-lyrics-input { position: relative; width: var(--fe-phone-w); flex: 0 0 auto; min-height: 0; }
.fe-lyrics-input .textarea { height: 100%; min-height: 0; box-sizing: border-box; }
.fe-lyric-preview-col { width: var(--fe-phone-w); flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.fe-lyric-phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #12141b;
}
.fe-lyric-phone-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 26%, rgba(255, 104, 52, .5), transparent 24%),
    radial-gradient(circle at 26% 72%, rgba(64, 160, 188, .42), transparent 32%),
    linear-gradient(150deg, #2b3040, #14161d 60%, #2a201c);
  filter: blur(10px);
  transform: scale(1.25);
  animation: fe-pan 9s ease-in-out infinite alternate;
}
.fe-lyric-phone-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .42)); }
.fe-lyric-caption-wrap {
  position: absolute; left: 0; right: 0; top: 52%; transform: translateY(-50%);
  display: grid; place-items: center; padding: 0 8px;
}
.fe-lyric-caption {
  display: inline-block; max-width: 92%; text-align: center;
  animation: fe-rise .55s var(--e-out) both;
}
.fe-lyric-phone-scene {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px; color: rgba(255, 255, 255, .75);
}
.fe-lyric-meta { display: flex; align-items: center; justify-content: space-between; }
.fe-lyric-style-label { font-family: var(--font-mono); font-size: 10px; color: var(--ice); letter-spacing: .06em; text-transform: uppercase; }
.fe-lyric-dots { display: flex; gap: 4px; }
.fe-lyric-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.fe-lyric-dot.is-active { background: var(--ice); }

@media (max-width: 640px) {
  .fe-lyrics-grid { flex-direction: column; align-items: center; }
  .fe-lyric-preview-col { width: 100%; max-width: 230px; margin: 0 auto; }
  .fe-lyrics-input { width: min(100%, 230px); margin: 0 auto; }
}

/* Real production caption style approximations (see LYRIC-STYLES.md §3) — 6-style rotation. */
.fe-lyric-caption--sad {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 500;
  font-size: 23px; line-height: 1.15; letter-spacing: -0.01em;
  color: #f5e8ec;
  text-shadow: 0 0 14px rgba(232, 197, 208, .85), 0 0 30px rgba(232, 197, 208, .35);
}
.fe-lyric-caption--minimal {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 900; font-size: 28px; line-height: .9; letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #f4e300;
  text-shadow: 0 0 10px rgba(255, 255, 255, .45), 0 0 26px rgba(255, 255, 255, .25);
}
.fe-lyric-caption--classic {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400; font-size: 22px; line-height: 1.04; letter-spacing: normal;
  color: #fff;
}
.fe-lyric-caption--brat {
  font-family: "Geist", Arial, sans-serif;
  font-weight: 300; font-size: 26px; line-height: 1.0; letter-spacing: -0.03em;
  text-transform: lowercase;
  color: #fff;
  transform: scaleX(0.85);
  transform-origin: center;
}
.fe-lyric-caption--y2k {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 900; font-style: italic; font-size: 26px; letter-spacing: -0.03em;
  text-transform: lowercase;
  color: #eaf6ff;
  -webkit-text-stroke: 1.5px #002850;
  text-shadow: 0 2px 0 #001530, 0 5px 12px rgba(0, 40, 80, .55), 0 -2px 8px rgba(255, 255, 255, .85);
}
.fe-lyric-caption--glitch {
  font-family: "Geist Mono", "Courier New", monospace;
  font-weight: 500; font-size: 24px; letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 0 0 #ff0066, -2px 0 0 #00ff9f, 0 0 20px rgba(255, 255, 255, .3);
}

/* ───────── shared popup shell (clipPreview / hookList / hookBuilder / clipUpload) ───────── */
.fe-popup {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  height: auto;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .26);
  border-radius: 20px;
  color: var(--text);
  background: #0b0d12;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .035) inset;
}
/* The native <dialog> must stay UA-hidden until showModal() sets [open] — an unconditional
   `display` on .fe-popup would beat the UA `dialog:not([open]){display:none}` default (author
   styles always win over UA styles) and leave the closed dialog rendered in normal flow. */
.fe-popup:not([open]) { display: none; }
.fe-popup[open] { display: flex; flex-direction: column; animation: fe-fade .18s var(--e-out) both; }
.fe-popup::backdrop { background: rgba(2, 4, 9, .78); backdrop-filter: blur(6px); }
.fe-popup-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: rgba(13, 16, 23, .94);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.fe-popup-head > div { flex: 1; min-width: 0; }
.fe-popup-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--ice); font-weight: 500; }
.fe-popup-title { margin: 3px 0 0; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.fe-popup-close {
  flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.fe-popup-close:hover { border-color: var(--ice); color: var(--ice); }
.fe-popup-body { overflow: auto; padding: 22px; min-height: 0; flex: 1; }
.fe-popup-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(13, 16, 23, .9);
  flex: 0 0 auto;
}
.fe-popup-foot-text { font-size: 12px; color: var(--text-2); }
.fe-popup-done {
  height: 42px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  background: var(--flame); color: #18120a;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.fe-popup-done:hover { background: var(--flame-1); }
@media (max-width: 640px) {
  .fe-popup {
    width: 100%; height: 100dvh; max-height: 100dvh;
    border-radius: 0; margin: 0;
  }
}

/* clip preview popup body */
.fe-clip-preview-desc { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.fe-clip-preview-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
@media (max-width: 640px) { .fe-clip-preview-grid { grid-template-columns: 1fr; } }
.fe-clip-loop {
  position: relative;
  aspect-ratio: 9 / 16; max-width: 220px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}
.fe-clip-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fe-pan 9s ease-in-out infinite alternate; }
.fe-clip-loop-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6)); }
.fe-clip-loop-tag { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 9px; color: #fff; background: rgba(2, 4, 9, .7); border-radius: 999px; padding: 4px 9px; letter-spacing: .06em; z-index: 2; }
.fe-clip-loop-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center; color: #fff; font-size: 20px;
  backdrop-filter: blur(3px); z-index: 2;
}
.fe-clip-loop-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; color: rgba(255, 255, 255, .75); font-family: var(--font-mono); font-size: 9px; z-index: 2; }
.fe-clip-raw-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--text-3); margin-bottom: 10px; }
.fe-clip-raw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; }
.fe-clip-raw-tile { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.fe-clip-raw-tile img, .fe-clip-raw-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-clip-raw-tile span { position: absolute; bottom: 6px; left: 7px; font-family: var(--font-mono); font-size: 8px; color: rgba(255, 255, 255, .7); }
.fe-clip-raw-more { margin: 14px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* hook list popup body */
.fe-hook-list-desc { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.fe-hook-list { display: flex; flex-direction: column; gap: 8px; }
.fe-hook-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fe-hook-list-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); flex: 0 0 30px; }
.fe-hook-list-text { font-size: 14px; color: var(--text); }
.fe-hook-list-more { margin: 14px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* hook builder popup body (assist tools; the real `hooks` textarea lives inline on the page) */
.fe-hookb-batch {
  margin-bottom: 20px; padding: 16px;
  border: 1px solid rgba(125, 211, 252, .3); border-radius: 14px;
  background: radial-gradient(90% 120% at 0 0, rgba(125, 211, 252, .12), transparent 60%), rgba(8, 19, 29, .5);
}
.fe-hookb-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--ice); font-weight: 500; margin-bottom: 8px; }
.fe-hookb-eyebrow.is-muted { color: var(--text-3); }
.fe-hookb-copy { margin: 0 0 8px; font-size: 12.5px; color: var(--text-2); }
.fe-hookb-rows-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fe-hookb-rows-head .fe-hookb-eyebrow { margin-bottom: 0; }
.fe-hookb-addrow-btn {
  font-family: var(--font-mono); font-size: 11px; color: var(--ice);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 11px; cursor: pointer;
}
.fe-hookb-addrow-btn:hover { border-color: var(--ice); }
.fe-hookb-rows { display: flex; flex-direction: column; gap: 7px; }
.fe-hookb-row { display: flex; align-items: center; gap: 8px; }
.fe-hookb-row-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); flex: 0 0 22px; }
.fe-hookb-row-input {
  flex: 1; min-width: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 13.5px; outline: none;
}
.fe-hookb-row-input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px var(--ice-glow); }
.fe-hookb-row-del {
  flex: 0 0 40px; width: 40px; height: 40px;
  border-radius: 9px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-2); font-size: 18px; cursor: pointer;
}
.fe-hookb-row-del:hover { border-color: var(--st-blocked, #f87171); color: var(--st-blocked, #f87171); }
.fe-hookb-empty { padding: 22px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-3); font-size: 13px; margin: 0; }
.fe-hookb-add-btn {
  margin-top: 10px; height: 40px; padding: 0 16px;
  border-radius: 9px; border: 1px solid transparent;
  background: var(--ice); color: #062236;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.fe-hookb-add-btn:hover { background: var(--ice-hi); }
.fe-hookb-import-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.fe-hookb-import-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-1);
  font-size: 12.5px; cursor: pointer;
}
.fe-hookb-import-btn:hover { border-color: var(--ice); color: var(--ice); }
.fe-hookb-import-btn .fe-arrow { color: var(--ice); }
.fe-hookb-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.fe-hookb-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* hook picker (single-hook add-from-pack view, opened from hookBuilder's "ZACIĄGNIJ Z PACZKI
   AV-LNCH" chips — default is single-add with dedup, "Dodaj wszystkie" is explicit) */
.fe-hookpicker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.fe-hookpicker-back {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
.fe-hookpicker-back:hover { border-color: var(--ice); color: var(--ice); }
.fe-hookpicker-addall {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #062236;
  background: var(--ice); border: 1px solid transparent; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
}
.fe-hookpicker-addall:hover { background: var(--ice-hi); }
.fe-hookpicker-list { display: flex; flex-direction: column; gap: 7px; }
.fe-hookpicker-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface);
}
.fe-hookpicker-row-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); flex: 0 0 22px; }
.fe-hookpicker-row-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.fe-hookpicker-add {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--ice);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.fe-hookpicker-add:hover:not(:disabled) { border-color: var(--ice); background: rgba(125, 211, 252, .12); }
.fe-hookpicker-add.is-added,
.fe-hookpicker-add:disabled { color: var(--text-3); border-color: var(--line-2); background: transparent; cursor: default; }

/* custom clip pack (lives inside the clipUpload popup body) */
.fe-clipupload-intro { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.fe-clipupload-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
