/* ═══════════════════════════════════════════
   HOW IT WORKS (homepage)
   Steps on the left, a sticky stage on the right with the real
   TalentSheets screens: Find creators, the Chrome extension and the
   Google Sheet. The screens are drawn in HTML so they stay sharp and
   can change with the example. js/workflow.js plays them; without it
   each screen shows its finished state.
   ═══════════════════════════════════════════ */

main > section.wf {
  position: relative;
  padding: var(--space-4xl) 0;
  content-visibility: visible;
  contain-intrinsic-size: none;
  overflow-x: clip;
}

.wf__anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.wf__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ─────────────────────────────────── */
.wf__header {
  max-width: 780px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.wf__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
  margin: 0 0 var(--space-md);
}

.wf__title em {
  font-style: normal;
  color: var(--color-blue);
}

.wf__lead {
  max-width: 660px;
  margin: 0 auto var(--space-lg);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.wf__stage-foot { display: contents; }
.wf__caption { display: none; }
.wf__progress { display: none; }

.wf__where {
  margin: 0;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--color-text-secondary);
}

.wf__where b { color: var(--color-text); font-variant-numeric: tabular-nums; }

.wf__dots { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }

.wf__dots button {
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: width 0.3s ease;
}

.wf__dots button::before {
  content: "";
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #dfe3ec;
  transition: background-color 0.3s ease;
}

.wf__dots button:hover::before { background: #b9c9f5; }
.wf__dots li:nth-child(2),
.wf__dots li:nth-child(3) { margin-right: 6px; }
.wf__dots .is-done button::before { background: #9db5f5; }
.wf__dots .is-on button { width: 34px; }
.wf__dots .is-on button::before { background: var(--color-blue); }
.wf__dots button:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; border-radius: 4px; }

.wf__cases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.wf__cases-label {
  margin-right: 0.25rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.wf__case {
  padding: 0.6rem 1rem;
  font: 600 0.9rem/1 var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-light-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wf__case:hover { border-color: #b9c9f5; }

.wf__case[aria-pressed="true"] {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.wf__case:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

/* ── Layout: below 1024px each step sits above its own screen ── */
.wf__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.wf__steps,
.wf__stage,
.wf__screens { display: contents; }

.wf__cases { order: 0; }
.wf__step[data-wf-step="0"] { order: 1; }
.wf-scene[data-wf-scene="0"] { order: 2; }
.wf__step[data-wf-step="1"] { order: 3; }
.wf-scene[data-wf-scene="1"] { order: 4; }
.wf__step[data-wf-step="2"] { order: 5; }
.wf-scene[data-wf-scene="2"] { order: 6; }
.wf__step[data-wf-step="3"] { order: 7; }
.wf-scene[data-wf-scene="3"] { order: 8; }
.wf__step[data-wf-step="4"] { order: 9; }
.wf-scene[data-wf-scene="4"] { order: 10; }
.wf__step[data-wf-step="5"] { order: 11; }
.wf-scene[data-wf-scene="5"] { order: 12; }
.wf__step[data-wf-step="6"] { order: 13; }
.wf-scene[data-wf-scene="6"] { order: 14; }
.wf__note { order: 15; }
.wf__step:not([data-wf-step="0"]) { margin-top: var(--space-xl); }

.wf__step { max-width: 34rem; }

.wf__chapter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.wf__chapter span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-text);
  font-size: 0.78rem;
  color: #fff;
}

.wf__eyebrow--tab span {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px 6px 0 0;
  background: #e1e9f7;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #0b57d0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.wf--live .wf__step:not(.is-active) .wf__eyebrow--tab span { background: #eef0f3; color: #5f6368; }

.wf__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.wf__step-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: balance;
}

.wf__step-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.wf__step-text strong {
  font-weight: 600;
  color: var(--color-text);
}

.wf-scene {
  --h: 220;
  margin: 0;
}

.wf__note {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-mid-gray);
}

/* The page is zoomed, so js/workflow.js sets --wf-vh to the visible
   height in CSS pixels; 100vh is the fallback. */
.wf { --wf-vh: 100vh; }

@media (min-width: 1024px) {
  /* Steps and the stage share one cell, and the layout changes by chapter:
     1 text left and screen right; 2 the screen takes the full width;
     3 the sheet slides left and the campaign steps line up on the right. */
  .wf__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .wf__steps,
  .wf__stage { grid-area: 1 / 1; }

  .wf__steps {
    display: block;
    padding: calc(var(--wf-vh) * 0.06) 0 calc(var(--wf-vh) * 0.14);
  }

  .wf__step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36%;
    min-height: calc(var(--wf-vh) * 0.72);
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-light-gray);
    transition: opacity 0.45s ease, border-color 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .wf__step[data-wf-step] { margin-top: 0; }

  .wf--live .wf__step:not(.is-active) { opacity: 0.35; transform: translateY(12px); }
  .wf--live .wf__step.is-active { border-left-color: var(--color-blue); }

  /* Chapter 2: a longer stretch of scroll; its words are shown in the stage instead */
  .wf--live .wf__step[data-layout="wide"] {
    width: 100%;
    min-height: calc(var(--wf-vh) * 0.95);
    border-left-color: transparent;
    opacity: 0;
    pointer-events: none;
  }

  /* Chapter 3: the steps sit on the right, closer together, as a list of tabs */
  .wf--live .wf__step[data-layout="left"] {
    margin-left: 64%;
    min-height: calc(var(--wf-vh) * 0.5);
  }

  /* Sticks centred in the space below the nav, and moves with the chapter */
  .wf__stage {
    --wf-stage-h: min(660px, calc(var(--wf-vh) - var(--nav-height) - 3rem));
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-self: start;
    position: sticky;
    top: max(calc(var(--nav-height) + 1.5rem), calc((var(--wf-vh) - var(--wf-stage-h) + var(--nav-height)) / 2));
    width: 58%;
    height: var(--wf-stage-h);
    margin-left: 42%;
    transition: margin-left 0.9s cubic-bezier(0.65, 0, 0.35, 1), width 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .wf--live[data-layout="wide"] .wf__stage { width: 100%; margin-left: 0; }
  .wf--live[data-layout="left"] .wf__stage { margin-left: 0; }
  .wf--live[data-layout="wide"] .wf__cases { justify-content: center; }

  .wf__caption { display: none; }

  .wf--live[data-layout="wide"] .wf__caption {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    animation: wf-rise 0.6s 0.25s ease both;
  }

  .wf__caption .wf__chapter { justify-content: center; }
  .wf__caption .wf__step-title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 0.4rem; }
  .wf__caption .wf__step-text { font-size: 1rem; }
  .wf__caption .wf__eyebrow { display: none; }

  .wf__stage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .wf__stage-foot .wf__note { text-align: right; }

  .wf__cases { justify-content: flex-start; }

  .wf__progress {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  /* A soft glow behind the screen, in one of the sheet's header colours for each step */
  .wf__screens::before {
    content: "";
    position: absolute;
    inset: 10% 4% -6%;
    z-index: -1;
    border-radius: 50%;
    background-color: #c9d8fb;
    filter: blur(70px);
    opacity: 0.75;
    transition: background-color 0.8s ease;
  }

  .wf[data-step="1"] .wf__screens::before { background-color: #ffd9b3; }
  .wf[data-step="2"] .wf__screens::before { background-color: #c6e8d0; }
  .wf[data-step="3"] .wf__screens::before { background-color: #ffe0b0; }
  .wf[data-step="4"] .wf__screens::before { background-color: #f6e6a6; }
  .wf[data-step="5"] .wf__screens::before { background-color: #cfe8c4; }
  .wf[data-step="6"] .wf__screens::before { background-color: #cddcfa; }

  .wf__screens {
    display: block;
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .wf-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
  }

  .wf-scene.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
  }

  .wf-scene .wf-win { height: 100%; }
}

/* ── Window chrome ──────────────────────────── */
.wf-win {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(32, 33, 36, 0.28), 0 8px 20px rgba(32, 33, 36, 0.06);
  overflow: hidden;
}

.wf-win__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 38px;
  padding: 0 0.9rem;
  background: #f1f3f4;
  border-bottom: 1px solid #e3e7ef;
}

.wf-win__dots { display: flex; gap: 6px; }
.wf-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dadce0; }
.wf-win__dots i:nth-child(1) { background: #f28b82; }
.wf-win__dots i:nth-child(2) { background: #fdd663; }
.wf-win__dots i:nth-child(3) { background: #81c995; }

.wf-win__url {
  flex: 1;
  min-width: 0;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border-radius: 12px;
  background: #fff;
  font: 500 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-win__ext {
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #d2e3fc;
}

/* Creator initials, tinted per creator (--h is the hue) */
.wf-av {
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: hsl(var(--h) 75% 90%);
  color: hsl(var(--h) 55% 32%);
  font: 700 12px/1 var(--font-family);
  letter-spacing: 0.02em;
}

/* ── Scene 1: Find creators ─────────────────── */
.wf-find {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.1rem 0.9rem;
  background: #f7f8fb;
  font-family: var(--font-family);
  container-type: inline-size;
}

/* Too narrow for three cards: fade the one that runs off the edge */
@container (max-width: 650px) {
  .wf-find__grid { mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); }
}

.wf-find__toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem 0.42rem 0.5rem;
  border: 1.5px solid #9db5f5;
  border-radius: 999px;
  background: #eef4ff;
  font: 600 12px/1 var(--font-family);
  color: #1e3a8a;
}

.wf-chip::before,
.wf-card.is-picked .wf-card__tick {
  background: #3f66d4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.wf-chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.wf-seg {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: #eceff5;
  font: 600 11.5px/1 var(--font-family);
  color: #6b7280;
}

.wf-seg span { padding: 0.38rem 0.7rem; border-radius: 999px; }
.wf-seg .is-on { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.wf-find__query { display: flex; gap: 0.5rem; }

.wf-find__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border: 1.5px solid #9db5f5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 3px #e3ebfd;
  font: 500 14px/1 var(--font-family);
  color: #111827;
}

.wf-find__typed { white-space: nowrap; overflow: hidden; }

.wf-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.1rem;
  border-radius: 10px;
  background: var(--color-blue);
  color: #fff;
  font: 600 13px/1 var(--font-family);
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}

.wf-find__filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.wf-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 28px;
  padding: 0 0.6rem;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #fff;
  font: 600 11.5px/1 var(--font-family);
  color: #111827;
}

.wf-field b { font-weight: 500; color: #6b7280; }

.wf-field::after,
.wf-find__sheet::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 0.1rem 0.2rem 0.1rem;
  border-right: 1.5px solid #9aa0a6;
  border-bottom: 1.5px solid #9aa0a6;
  transform: rotate(45deg);
}

.wf-find__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(196px, 1fr);
  align-content: start;
  gap: 0.6rem;
  margin: 0.1rem 0 0;
  padding: 2px;
  list-style: none;
  overflow: hidden;
}

.wf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wf-card.is-picked { border-color: #9db5f5; box-shadow: 0 0 0 2px #dbe5fd; }

.wf-card__tick {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c4cad6;
  border-radius: 4px;
  background: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}

.wf-card.is-picked .wf-card__tick { border-color: #3f66d4; }

.wf-card__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding-right: 1.4rem;
}

.wf-card__who { min-width: 0; }

.wf-card__name,
.wf-card__handle {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-card__name { font: 700 13px/1.25 var(--font-family); color: #111827; }
.wf-card__handle { font: 500 11px/1.3 var(--font-family); color: #6b7280; }

.wf-card__stats {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1rem;
  margin: 0;
}

.wf-card__stats div { min-width: 0; }

.wf-card__stats dt {
  font: 600 9.5px/1.2 var(--font-family);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.wf-card__stats dd {
  margin: 0.15rem 0 0;
  font: 700 12.5px/1.2 var(--font-family);
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.wf-badge {
  align-self: flex-start;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: #fff4e0;
  font: 600 10.5px/1 var(--font-family);
  color: #9a5b00;
}

.wf-posts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0 0;
  border-top: 1px solid #f0f2f6;
  list-style: none;
}

.wf-posts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wf-post__thumb {
  display: block;
  object-fit: cover;
  flex: none;
  width: 30px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(160deg, hsl(calc(var(--h) + var(--t) * 30) 65% 72%), hsl(calc(var(--h) + var(--t) * 30 + 35) 50% 40%));
}

.wf-posts--wide .wf-post__thumb { width: 48px; height: 27px; }

.wf-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.wf-card__look {
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  background: var(--color-blue);
  font: 600 11.5px/1 var(--font-family);
  color: #fff;
  white-space: nowrap;
}

.wf-card__look small { font-size: inherit; font-weight: 500; opacity: 0.85; }

.wf-post__text { min-width: 0; font: 11px/1.35 var(--font-family); }
.wf-post__text b { display: block; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }
.wf-post__text span { display: block; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wf-find__bar {
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.25);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wf-find__count { font: 700 13px/1 var(--font-family); font-variant-numeric: tabular-nums; }

.wf-find__sheet {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  height: 32px;
  padding: 0 0.7rem;
  border-radius: 8px;
  background: #fff;
  font: 500 12px/1 var(--font-family);
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
}

.wf-find__bar .wf-btn { height: 32px; padding: 0 0.9rem; font-size: 12px; }

.wf-find__status {
  grid-column: 1 / -1;
  margin: 0;
  font: 500 11.5px/1.35 var(--font-family);
  color: #a7f3d0;
  transition: opacity 0.3s ease;
}

.wf-find__status u { color: #c7d7fe; text-underline-offset: 2px; }

/* ── Scene 2: the Chrome extension ──────────── */
.wf-browse {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wf-profile {
  max-width: 58%;
  padding: 1.4rem 1.4rem 0;
}

.wf-profile__head { display: flex; align-items: center; gap: 1rem; }

.wf-av--xl { width: 76px; height: 76px; font-size: 22px; }

.wf-profile__name { margin: 0; font-size: 18px; font-weight: 700; color: #161823; }
.wf-profile__handle { margin: 0.1rem 0 0.4rem; font-size: 13px; color: #555; }
.wf-profile__counts { margin: 0 0 0.55rem; font-size: 12.5px; color: #555; white-space: nowrap; }
.wf-profile__counts b { margin-right: 0.15rem; color: #161823; }
.wf-profile__counts b + b,
.wf-profile__counts b:last-child { margin-left: 0.6rem; }

.wf-profile__follow {
  display: inline-block;
  padding: 0.4rem 1.6rem;
  border-radius: 4px;
  background: #161823;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.wf-profile__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 1.2rem;
}

.wf-profile__grid span {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  padding: 0.35rem;
  border-radius: 4px;
  overflow: hidden;
  background: #1f2430;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.wf-profile__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-profile__grid b {
  position: relative;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.wf-profile__grid b::before { content: "\25B7"; margin-right: 0.25rem; }

.wf-ext {
  position: absolute;
  top: 8px;
  right: 10px;
  bottom: 10px;
  width: min(300px, 80%);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #f8f9fa;
  box-shadow: 0 18px 40px -10px rgba(32, 33, 36, 0.35), 0 0 0 1px rgba(32, 33, 36, 0.08);
  overflow: hidden;
  color: #202124;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wf-ext__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: #1a73e8;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wf-ext__head img { border-radius: 50%; background: #fff; }

.wf-ext__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.wf-ext__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.7rem;
  overflow: hidden;
  /* On short screens the panel runs out of room: fade it like a scrolling list */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5rem), transparent);
}

.wf-ext__detect {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fff;
}

.wf-ext__detect svg { opacity: 0.35; }
.wf-ext__detect svg.is-on { opacity: 1; }

.wf-ext__browsing { margin-left: auto; font-size: 11.5px; font-weight: 500; color: #5f6368; }

.wf-ext__card {
  position: relative;
  padding: 0.8rem;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wf-ext__profile { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }

.wf-av--sq { width: 48px; height: 48px; border-radius: 12px; font-size: 15px; }

.wf-ext__who { min-width: 0; }
.wf-ext__name { margin: 0; font-size: 13.5px; font-weight: 700; }
.wf-ext__handle { margin: 0; font-size: 11.5px; color: #9aa0a6; }
.wf-ext__badges { display: flex; gap: 0.3rem; margin: 0.25rem 0 0; }

.wf-ext__badge,
.wf-ext__genre {
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wf-ext__badge { background: #f0f0f0; color: #202124; }
.wf-ext__genre { background: #e6f4ea; color: #137333; }
.wf-ext__count { margin: 0.25rem 0 0; font-size: 10.5px; color: #9aa0a6; }

.wf-ext__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid #f0f0f0;
}

.wf-ext__stats > div { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }

.wf-ext__stats b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wf-ext__lbl {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.wf-ext__stats .is-blue { color: #1a73e8; }
.wf-ext__stats .is-amber { color: #e8a100; }
.wf-ext__stats .is-green { color: #34a853; }

.wf-ext__band { display: flex; align-items: flex-end; gap: 0.5rem; }
.wf-ext__tier { display: flex; flex-direction: column; }
.wf-ext__stats .wf-ext__tier b { font-size: 11.5px; }
.wf-ext__stats .wf-ext__tier b.is-green { font-size: 13.5px; }

.wf-ext__tier i {
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.wf-ext__ai {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e8f0fe;
  border-radius: 12px;
  background: #f6f9ff;
  transition: opacity 0.3s ease;
}

.wf-ext__ai-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.3rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a73e8;
}

.wf-ext__ai-text { margin: 0; font-size: 11.5px; line-height: 1.45; color: #3c4043; }

.wf-ext__loading {
  display: none;
  position: absolute;
  inset: 70px 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0 0 12px 12px;
  background: #fff;
  font-size: 11.5px;
  color: #5f6368;
}

.wf-ext__dots { display: flex; gap: 4px; }

.wf-ext__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a73e8;
  animation: wf-dot 1s ease-in-out infinite;
}

.wf-ext__dots i:nth-child(2) { animation-delay: 0.15s; }
.wf-ext__dots i:nth-child(3) { animation-delay: 0.3s; }

.wf-ext__foot {
  position: relative;
  flex: none;
  padding: 0.6rem 0.7rem 0.7rem;
  background: #f8f9fa;
}

.wf-ext__add {
  display: block;
  height: 38px;
  border-radius: 8px;
  background: #188038;
  font-size: 13px;
  font-weight: 600;
  line-height: 38px;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.25s ease, transform 0.12s ease;
}

.wf-ext__add-idle { display: none; }

.wf-ext__list {
  display: none;
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: calc(100% - 0.2rem);
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.wf-ext__list-head { margin: 0 0 0.3rem; padding: 0.2rem 0.4rem; font-size: 11.5px; font-weight: 600; }

.wf-ext__sheet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.2s ease;
}

.wf-ext__sheet::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid #1a73e8;
  border-radius: 2px;
  background:
    linear-gradient(#1a73e8, #1a73e8) 0 3px / 100% 1.5px no-repeat,
    linear-gradient(#1a73e8, #1a73e8) 3px 0 / 1.5px 100% no-repeat;
}

/* ── Scene 3: Google Sheets ─────────────────── */
.wf-gs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #202124;
}

.wf-gs__top { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem 0.3rem; }
.wf-gs__icon { flex: none; }
.wf-gs__title { margin: 0; font-size: 15px; }

.wf-gs__menu {
  display: flex;
  gap: 0.7rem;
  margin: 0.15rem 0 0;
  font-size: 11.5px;
  color: #444746;
  white-space: nowrap;
  overflow: hidden;
}

.wf-gs__share {
  flex: none;
  margin-left: auto;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #c2e7ff;
  font-size: 12px;
  font-weight: 500;
  color: #001d35;
}

.wf-gs__tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0.7rem 0.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #edf2fa;
  overflow: hidden;
}

.wf-gs__tools i { flex: none; width: 14px; height: 9px; border-radius: 2px; background: #c4c7c5; }
.wf-gs__tools b { flex: none; width: 1px; height: 14px; background: #c4c7c5; }

.wf-gs__fx {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem;
  border-bottom: 1px solid #e1e3e1;
  font-size: 11.5px;
  white-space: nowrap;
}

.wf-gs__ref { width: 44px; color: #444746; }
.wf-gs__fx-sign { padding-left: 0.6rem; border-left: 1px solid #e1e3e1; font-style: italic; color: #9aa0a6; }

.wf-gs__view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.wf-gs__view::-webkit-scrollbar { display: none; }

.wf-gs__grid {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 11px;
}

.wf-gs__grid th,
.wf-gs__grid td {
  height: 30px;
  padding: 0 6px;
  border-right: 1px solid #e1e3e1;
  border-bottom: 1px solid #e1e3e1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.wf-gs__grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 20px;
  background: #f8f9fa;
  font-size: 10.5px;
  font-weight: 400;
  color: #5f6368;
}

.wf-gs__grid thead th:first-child { left: 0; z-index: 3; }

.wf-gs__grid tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f8f9fa;
  font-size: 10.5px;
  font-weight: 400;
  color: #5f6368;
}

.wf-gs__hdr td {
  height: 38px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  color: #fff;
}

.wf-gs__hdr .g1 { background: #ff9900; }
.wf-gs__hdr .g2 { background: #f1c232; }
.wf-gs__hdr .g3 { background: #6aa84f; }
.wf-gs__hdr .g4 { background: #6d9eeb; }

.wf-gs__row td { height: 32px; }
.wf-gs__url { color: #1155cc; text-decoration: underline; }
.wf-gs__grid .wf-gs__sel { box-shadow: inset 0 0 0 2px #1a73e8; }

.wf-av--xs { width: 22px; height: 22px; margin: 0 auto; font-size: 8.5px; }

.wf-gs__tabs {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.6rem 0;
  border-top: 1px solid #e1e3e1;
  background: #f8f9fa;
  font-size: 11.5px;
  color: #444746;
  white-space: nowrap;
  overflow: hidden;
}

.wf-gs__tabs span { padding: 0.4rem 0.75rem; border-radius: 6px 6px 0 0; }
.wf-gs__tabs .wf-gs__plus { padding: 0.4rem 0.5rem; font-size: 14px; line-height: 1; }
.wf-gs__tabs .is-on { background: #e1e9f7; font-weight: 700; color: #0b57d0; }

/* ── Playing: js/workflow.js adds .wf-play, then each stage's class ── */
.wf-scene.wf-play .wf-find__typed::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: #111827;
  animation: wf-caret 1s steps(1) infinite;
}

.wf-scene.is-searching .wf-find__go { transform: scale(0.94); background: #4a72dc; }

.wf-scene.wf-play .wf-card { opacity: 0; transform: translateY(10px); }

.wf-scene.wf-play.at-results .wf-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease calc(var(--i) * 110ms), transform 0.4s ease calc(var(--i) * 110ms), border-color 0.2s, box-shadow 0.2s;
}

.wf-scene.wf-play .wf-find__bar { opacity: 0; transform: translateY(12px); }
.wf-scene.wf-play.at-bar .wf-find__bar { opacity: 1; transform: none; }
.wf-scene.wf-play:not(.at-added) .wf-find__status { opacity: 0; }

.wf-scene.wf-play .wf-ext { opacity: 0; transform: translateY(-10px); }
.wf-scene.wf-play.at-panel .wf-ext { opacity: 1; transform: none; }
.wf-scene.wf-play.at-panel:not(.at-stats) .wf-ext__loading { display: flex; }
.wf-scene.wf-play:not(.at-stats) .wf-ext__ai { opacity: 0; }
.wf-scene.wf-play:not(.at-added) .wf-ext__add { background: #1a73e8; }
.wf-scene.wf-play:not(.at-added) .wf-ext__add-idle { display: inline; }
.wf-scene.wf-play:not(.at-added) .wf-ext__add-done { display: none; }
.wf-scene.wf-play.at-press:not(.at-list) .wf-ext__add { transform: scale(0.96); }
.wf-scene.wf-play.at-list:not(.at-added) .wf-ext__list { display: block; animation: wf-rise 0.25s ease both; }
.wf-scene.wf-play.at-pick .wf-ext__sheet--pick { background: #e8f0fe; }

.wf-scene[data-wf-tab="data"].wf-play .wf-gs__row { opacity: 0; }
.wf-scene[data-wf-tab="data"].wf-play .wf-gs__row.is-in { opacity: 1; }
.wf-scene[data-wf-tab="data"].wf-play .wf-gs__row.is-in td { animation: wf-flash 1.4s ease-out; }
.wf-gs__grid td.wf-gs__flash { animation: wf-flash 1.4s ease-out; }

@keyframes wf-caret { 50% { opacity: 0; } }
@keyframes wf-dot { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: none; } }
@keyframes wf-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wf-flash { from { background-color: #d7f5e3; } to { background-color: #fff; } }

/* ── Phones and tablets ─────────────────────── */
@media (max-width: 1023px) {
  .wf__step { max-width: 40rem; }
  .wf-scene--browse .wf-win { height: 470px; }
  .wf-scene--sheet .wf-gs__view { max-height: 300px; }
}

@media (max-width: 600px) {
  .wf-find { padding: 0.85rem 0.85rem 0.8rem; }
  .wf-seg { margin-left: 0; }
  .wf-find__grid { grid-auto-columns: 210px; }
  .wf-find__bar { grid-template-columns: auto minmax(0, 1fr); }
  .wf-find__bar .wf-btn { grid-column: 1 / -1; }
  /* The panel sits under the profile instead of over it */
  .wf-scene--browse .wf-win { height: auto; }
  .wf-profile { max-width: none; padding: 1rem 1rem 0; }
  .wf-profile__grid { display: none; }
  .wf-ext { position: relative; inset: auto; width: auto; margin: -0.4rem 10px 10px; }
  .wf-ext__body { mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-scene,
  .wf__stage,
  .wf__step,
  .wf-card,
  .wf-find__bar,
  .wf-ext { transition: none !important; }
  .wf-ext__dots i { animation: none; }
}

/* ── Photos, and the other tabs ─────────────── */
.wf-av img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tabs other than Data keep Talent Name in view as they scroll, like a frozen column */
.wf-gs__grid--frozen thead th:nth-child(2),
.wf-gs__grid--frozen tbody td:first-of-type {
  position: sticky;
  left: 34px;
  z-index: 1;
  border-right: 3px solid #c4c7c5;
}

.wf-gs__grid--frozen thead th:nth-child(2) { z-index: 3; }
.wf-gs__grid--frozen tbody td:first-of-type { background: #fff; text-align: left; font-weight: 500; border-bottom: 0; box-shadow: inset 0 -1px 0 #e1e3e1; }
.wf-gs__hdr td:empty { background: #fff; }
.wf-gs__grid--frozen .wf-gs__hdr td:first-of-type { background: #ff9900; text-align: center; font-weight: 700; }

.wf-gs__strong { font-weight: 700; }
.wf-gs__up { color: #137333; font-weight: 700; }
.wf-gs__down { color: #c5221f; font-weight: 700; }
.wf-gs__link { color: #1155cc; }

/* The Legal tab's status colours, as the add-on sets them */
.wf-gs__legal--draft { background: #f1f3f4; }
.wf-gs__legal--sent { background: #d2e3fc; }
.wf-gs__legal--negotiating { background: #fbbc04; }
.wf-gs__legal--signed { background: #ceead6; }

/* ── /data-access: the extension and the row it adds, side by side (no animation) ── */
.da-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
}

.da-visual__pane {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  margin: 0;
}

.da-visual__pane .wf-win { height: 470px; }

.da-visual__caption {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.da-visual__caption b {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-blue);
  font-size: 0.8rem;
  color: #fff;
}

.da-visual__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 3.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-blue);
}

.wf-gs__row--new td { background: #e6f4ea; }

/* Room for the profile beside the open extension */
.da-visual__pane .wf-profile { max-width: 42%; padding: 1.1rem 1rem 0; }
.da-visual__pane .wf-profile__head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.da-visual__pane .wf-profile__counts { white-space: normal; }
.da-visual__pane .wf-profile__grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) {
  .da-visual { grid-template-columns: minmax(0, 1fr); }
  .da-visual__arrow { padding-bottom: 0; }
  .da-visual__arrow svg { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .da-visual__pane .wf-win { height: auto; }
  .da-visual__pane .wf-gs__view { max-height: 300px; }
}
