/* influencer v4 — feature mockups stylesheet
   adapted from civitai-library/site/assets/style.css — same design family:
   dark ink surfaces, amber/cyan mono labels, card grid, chips, answer-first band */

:root {
  --ink: #101417;
  --surface: #171c20;
  --surface-raised: #20272c;
  --surface-soft: #242d32;
  --line: #39444a;
  --line-strong: #536169;
  --text: #edf2ef;
  --muted: #aebbb8;
  --faint: #7e8d8c;
  --amber: #f1b35b;
  --amber-soft: #3c3021;
  --cyan: #72d7d1;
  --green: #9ed69f;
  --red: #ff9a9a;
  --topbar-height: 56px;
  --stage-nav-height: 56px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); font: 18px/1.55 var(--sans); letter-spacing: .005em; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sprite { height: 0; overflow: hidden; position: absolute; width: 0; }
code { color: var(--cyan); font-family: var(--mono); }

.topbar { align-items: center; background: #0d1113; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: var(--topbar-height); padding: 0 clamp(18px, 4vw, 64px); }
.wordmark { align-items: center; display: inline-flex; font: 700 18px/1 var(--mono); gap: 11px; letter-spacing: .03em; }
.wordmark-mark { color: var(--amber); font-size: 22px; letter-spacing: -.18em; }
.topbar-status { color: var(--text); font: 15px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.status-dot { animation: dot-breath 2.6s ease-out infinite; background: var(--green); border-radius: 50%; display: inline-block; height: 8px; margin-right: 7px; width: 8px; }
.status-divider { border-left: 1px solid var(--line); display: inline-block; height: 15px; margin: 0 12px -3px; }

.stage-nav { background: #12171a; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.stage-nav-inner { display: flex; flex-wrap: wrap; margin: 0 auto; max-width: 1540px; padding: 0 clamp(12px, 3.7vw, 60px); }
.stage-link { align-items: center; border-bottom: 3px solid transparent; color: var(--muted); display: inline-flex; flex: 0 0 auto; font-size: 17px; gap: 8px; min-height: 56px; padding: 0 14px; transition: color .16s ease, background-color .18s ease-out, border-color .18s ease-out; }
.stage-link:hover { background: rgba(255, 255, 255, .035); }
.stage-link span { color: var(--faint); font: 14px/1 var(--mono); }
.stage-link:hover, .stage-link:focus-visible, .stage-link.is-active { color: var(--text); }
.stage-link.is-active { border-color: var(--amber); }
.stage-link.is-active span { color: var(--amber); }
.lock-glyph { color: var(--faint); display: inline-block; height: 11px; width: 11px; }
.stage-link:hover .lock-glyph, .stage-link:focus-visible .lock-glyph { color: var(--amber); }

.workbench { margin: 0 auto; max-width: 1540px; padding: 12px clamp(18px, 4vw, 64px) 72px; }
.stage-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; min-height: 82px; padding: 8px 0; }
.stage-heading { align-items: baseline; display: flex; flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.045em; line-height: 1; margin: 0; }
.stage-focus { color: var(--muted); font-size: 18px; margin: 0; }
.stage-funnel { color: var(--text); flex: 0 0 auto; font: 17px/1.3 var(--mono); }
.big-badge { border: 1px solid var(--amber); color: var(--amber); flex: 0 0 auto; font: 700 13px/1 var(--mono); letter-spacing: .14em; padding: 9px 12px; text-transform: uppercase; }

.filters { background: rgba(23, 28, 32, .97); border: 1px solid var(--line); margin: 14px 0 12px; padding: 10px 12px; position: sticky; top: var(--stage-nav-height); z-index: 8; }
.search-field { align-items: center; display: flex; gap: 16px; }
.search-field span { color: var(--amber); flex: 0 0 auto; font: 15px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.search-field input { background: var(--ink); border: 1px solid var(--line-strong); color: var(--text); font: 17px/1.2 var(--sans); min-width: 0; outline: none; padding: 10px 12px; transition: border-color .18s ease-out, box-shadow .18s ease-out; width: 100%; }
.search-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(114, 215, 209, .16); }
.search-field input::placeholder { color: var(--faint); }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.filter-chip { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer; font: 15px/1.1 var(--mono); padding: 8px 9px; transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform .1s ease-out; }
.filter-chip:active { transform: translateY(1px); }
.filter-chip b { color: var(--cyan); font-weight: 500; }
.filter-chip:hover, .filter-chip[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); color: var(--text); }
.filter-chip[aria-pressed="true"] b { color: var(--amber); }

.answer-first { background: #12171a; border: 1px solid var(--line); margin-bottom: 12px; padding: 12px 14px; }
.answer-first p { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0 7px; margin: 0; }
.answer-label { color: var(--amber); font: 700 14px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.answer-first strong { font-size: 20px; overflow-wrap: anywhere; }
.answer-why { color: var(--muted); }
.answer-link { color: var(--cyan); font: 16px/1.2 var(--mono); margin-left: auto; white-space: nowrap; }
.answer-link:hover, .answer-link:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.funnel-band { background: #12171a; border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 12px; padding: 14px 16px; }
.funnel-step { align-items: baseline; display: flex; gap: 9px; }
.funnel-step strong { color: var(--amber); font: 700 26px/1 var(--mono); }
.funnel-step span { color: var(--muted); font: 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.funnel-arrow { color: var(--faint); font: 700 16px/1 var(--mono); }

.entry-grid { align-items: stretch; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.entry-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; transition: border-color .16s ease, transform .16s ease; }
.entry-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.entry-card:active { transform: translateY(0); }
.entry-card--wide { grid-column: 1 / -1; }
.card-body { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 15px 16px 13px; }
.card-content { flex: 1; }
.card-topline { align-items: center; display: flex; gap: 8px; justify-content: space-between; margin: 0; }
.topline-meta { color: var(--faint); font: 13px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-name { font-size: 20px; letter-spacing: -.02em; line-height: 1.16; margin: 12px 0 6px; overflow-wrap: anywhere; }
.entry-purpose { border-left: 2px solid var(--cyan); color: var(--text); font-size: 17px; line-height: 1.35; margin: 0 0 13px; overflow-wrap: anywhere; padding-left: 10px; }
.purpose-label { color: var(--cyan); display: block; font: 13px/1.2 var(--mono); letter-spacing: .07em; margin-bottom: 4px; text-transform: uppercase; }
.entry-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 27px; }
.entry-chip { background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font: 15px/1.15 var(--mono); padding: 6px 7px; }

.status-chip { border: 1px solid var(--faint); color: var(--faint); font: 600 12px/1 var(--mono); letter-spacing: .06em; padding: 4px 7px; text-transform: uppercase; white-space: nowrap; }
.s-good { border-color: var(--green); color: var(--green); }
.s-warn { border-color: var(--amber); color: var(--amber); }
.s-bad { border-color: var(--red); color: var(--red); }
.s-info { border-color: var(--cyan); color: var(--cyan); }

.card-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; font: 16px/1.2 var(--mono); margin-top: auto; padding-top: 12px; text-transform: uppercase; }
.score-note { color: var(--amber); }
.card-toggle { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); cursor: pointer; font: 14px/1.1 var(--mono); margin-left: auto; padding: 6px 9px; text-transform: uppercase; transition: background-color .18s ease-out, color .18s ease-out, transform .1s ease-out; }
.card-toggle:active { transform: translateY(1px); }
.card-toggle:hover, .card-toggle[aria-expanded="true"] { background: var(--cyan); color: var(--ink); }

.card-detail { border-top: 1px solid var(--line-strong); margin: 0 -16px -13px; padding: 15px 16px 16px; }
.detail-grid { display: grid; gap: 12px; }
.detail-grid > div { display: grid; gap: 3px; min-width: 0; }
.detail-label { color: var(--muted); font: 13px/1 var(--mono); text-transform: uppercase; }
.detail-grid strong { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.detail-chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-verdict { border-left: 2px solid var(--amber); color: var(--muted); display: grid; gap: 6px; font-size: 17px; margin: 16px 0 0; padding-left: 10px; }
.requirements-panel { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.requirements-panel h3 { color: var(--cyan); font: 13px/1.2 var(--mono); letter-spacing: .07em; margin: 0 0 8px; text-transform: uppercase; }
.manifest-preview { color: var(--muted); display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.manifest-preview li { background: var(--surface-soft); display: grid; gap: 3px; overflow-wrap: anywhere; padding: 8px 9px; }
.manifest-preview li span { color: var(--muted); font: 14px/1.3 var(--mono); }
.spark { color: var(--cyan); display: block; height: 36px; width: 100%; }
.spark .sp-line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark .sp-area { fill: currentColor; opacity: .09; stroke: none; }
.spark .sp-base { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark--amber { color: var(--amber); }

.steps { display: grid; gap: 4px; grid-template-columns: repeat(4, 1fr); margin: 0 0 13px; }
.step { background: var(--surface-soft); border: 1px solid var(--line); color: var(--faint); font: 11px/1.2 var(--mono); letter-spacing: .03em; overflow: hidden; padding: 6px 5px; text-align: center; text-transform: uppercase; }
.step-done { border-color: var(--green); color: var(--green); }
.step-now { border-color: var(--amber); color: var(--amber); }

.heat { display: grid; gap: 4px; }
.heat-row { display: grid; gap: 3px; grid-template-columns: 34px repeat(24, 1fr); }
.heat-day { color: var(--faint); font: 11px/1 var(--mono); text-transform: uppercase; }
.hc { background: var(--surface-soft); display: block; height: 15px; }
.h1 { background: rgba(241, 179, 91, .18); }
.h2 { background: rgba(241, 179, 91, .38); }
.h3 { background: rgba(241, 179, 91, .62); }
.h4 { background: rgba(241, 179, 91, .9); }
.heat-legend { color: var(--faint); font: 13px/1.4 var(--mono); margin: 10px 0 0; }

.swatches { display: flex; gap: 6px; margin: 0 0 13px; }
.sw { border: 1px solid var(--line); display: block; flex: 1; height: 42px; }

.timeline { display: flex; height: 26px; margin: 0 0 13px; }
.tl-seg { align-items: center; color: var(--muted); display: flex; font: 11px/1 var(--mono); justify-content: center; letter-spacing: .05em; min-width: 0; overflow: hidden; text-transform: uppercase; }
.tl-hook { background: rgba(241, 179, 91, .3); border: 1px solid var(--line); border-right: none; width: 25%; }
.tl-body { background: rgba(114, 215, 209, .2); border: 1px solid var(--line); border-right: none; width: 55%; }
.tl-cta { background: rgba(158, 214, 159, .26); border: 1px solid var(--line); width: 20%; }

.trail { display: grid; gap: 4px; list-style: none; margin: 8px 0 0; padding: 0; }
.trail li { color: var(--muted); font: 13px/1.35 var(--mono); }
.trail li b { color: var(--text); font-weight: 500; }

.health-dot { border-radius: 50%; display: inline-block; height: 9px; width: 9px; }
.hd-cold { border: 1px solid var(--faint); }
.hd-warn { background: var(--amber); }
.hd-live { background: var(--green); }

.graph-svg { display: block; height: auto; width: 100%; }
.graph-svg .g-box { fill: var(--surface-raised); stroke: var(--line-strong); }
.graph-svg .g-edge { fill: none; stroke: #4a565e; stroke-width: 1.1; }
.graph-svg .g-flow { fill: none; stroke: var(--amber); stroke-width: 1.6; }
.graph-svg .g-txt { fill: var(--text); font: 12px var(--mono); }
.graph-svg .g-sub { fill: var(--faint); font: 10.5px var(--mono); }
.graph-svg .g-node-d { stroke: var(--cyan); }
.graph-svg .g-node-p { stroke: var(--amber); }
.graph-svg .g-node-a { stroke: var(--green); }

.toast { background: #0d1113; border: 1px solid var(--amber); bottom: 26px; color: var(--text); font: 15px/1.4 var(--mono); left: 50%; max-width: min(92vw, 520px); opacity: 0; padding: 12px 16px; position: fixed; text-align: center; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; z-index: 60; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.filter-empty { border: 1px dashed var(--line-strong); color: var(--muted); font: 16px/1.5 var(--mono); margin: 0; padding: 18px; }

/* instagram-grade identity kit, shared by account-facing pages.
   avatar = gradient circle with initials, ring = live story,
   dot = presence, draft ring = identity still being born */
.ig { align-items: center; display: flex; gap: 12px; margin: 12px 0 6px; }
.ig-id { min-width: 0; }
.ig .entry-name { margin: 0; }
.ig .card-topline { margin: 4px 0 0; }
.ig-av { border-radius: 50%; flex: 0 0 auto; height: 46px; position: relative; width: 46px; }
.ig-av > i { align-items: center; background: linear-gradient(135deg, var(--av-a), var(--av-b)); border: 2px solid var(--surface); border-radius: 50%; color: #101417; display: flex; font: 700 16px/1 var(--sans); height: 100%; justify-content: center; width: 100%; }
.ig-av[data-ring] { background: conic-gradient(from 210deg, var(--amber), var(--red), var(--cyan), var(--amber)); padding: 2.5px; }
.ig-av[data-ring="draft"] { background: none; border: 2px dashed var(--line-strong); padding: 0; }
.ig-av[data-ring="draft"] > i { background: none; color: var(--faint); }
.ig-av--sm { height: 22px; width: 22px; }
.ig-av--sm > i { border-width: 1.5px; font-size: 10px; }
.ig-av--sm[data-ring] { padding: 2px; }
.ig-tray { display: flex; margin: 13px 0 7px; }
.ig-tray .ig-av--sm + .ig-av--sm { margin-left: -6px; }
.ig-tray .ig-av--sm > i { border-color: var(--surface); }
.ig-tl { align-items: center; display: inline-flex; gap: 7px; min-width: 0; }
.ig-tl > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-sunset { --av-a: #f1b35b; --av-b: #ff9a9a; }
.av-ocean { --av-a: #72d7d1; --av-b: #9ed69f; }
.av-moss { --av-a: #9ed69f; --av-b: #d6c98b; }
.av-violet { --av-a: #b7a6e3; --av-b: #e39bb0; }
.av-rose { --av-a: #e39bb0; --av-b: #f1b35b; }
.av-slate { --av-a: #8fb6c9; --av-b: #72d7d1; }
.ig-dot { border: 2px solid var(--surface); border-radius: 50%; height: 13px; position: absolute; right: 0; top: 1px; width: 13px; }
.ig-dot--live { background: var(--green); }
.ig-dot--warn { background: var(--amber); }
.ig-dot--bad { background: var(--red); }
.ig-dot--info { background: var(--cyan); }
@keyframes dot-breath { 0%, 100% { box-shadow: 0 0 0 0 rgba(158, 214, 159, .5); } 70% { box-shadow: 0 0 0 5px rgba(158, 214, 159, 0); } }
.ig-dot--live { animation: dot-breath 2.6s ease-out infinite; }

/* incoming message, the lead voice inside a thread card */
.dm-bubble { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; color: var(--text); font-size: 16px; line-height: 1.4; margin: 10px 0 12px; max-width: 92%; padding: 8px 11px; }

/* score colors, thresholds by eye: green strong, amber watch, red risk */
.score-good { color: var(--green); }
.score-mid { color: var(--amber); }
.score-bad { color: var(--red); }

/* entrance motion — CSS fallback when the motion CDN is unreachable.
   js-motion: Motion.js drives the stagger. css-motion: keyframes below. */
@keyframes frise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.css-motion .topbar, html.css-motion .stage-nav, html.css-motion .stage-header,
html.css-motion .filters, html.css-motion .answer-first, html.css-motion .funnel-band { animation: frise .45s cubic-bezier(.16, 1, .3, 1) both; }
html.css-motion .stage-nav { animation-delay: .07s; }
html.css-motion .stage-header { animation-delay: .14s; }
html.css-motion .filters { animation-delay: .21s; }
html.css-motion .answer-first, html.css-motion .funnel-band { animation-delay: .28s; }
html.css-motion .entry-card { animation: frise .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: .35s; }
html.css-motion .entry-card:nth-child(1) { animation-delay: .35s; }
html.css-motion .entry-card:nth-child(2) { animation-delay: .41s; }
html.css-motion .entry-card:nth-child(3) { animation-delay: .47s; }
html.css-motion .entry-card:nth-child(4) { animation-delay: .53s; }
html.css-motion .entry-card:nth-child(5) { animation-delay: .59s; }
html.css-motion .entry-card:nth-child(6) { animation-delay: .65s; }
html.css-motion .entry-card:nth-child(7) { animation-delay: .71s; }
html.css-motion .entry-card:nth-child(8) { animation-delay: .77s; }
html.css-motion .entry-card:nth-child(9) { animation-delay: .83s; }
html.css-motion .entry-card:nth-child(10) { animation-delay: .89s; }
html.css-motion .entry-card:nth-child(11) { animation-delay: .95s; }
html.css-motion .entry-card:nth-child(12) { animation-delay: 1.01s; }

@media (max-width: 760px) {
  .topbar-status { font-size: 13px; }
  .status-divider, .topbar-status .status-dot { display: none; }
  .stage-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .stage-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .search-field { align-items: flex-start; flex-direction: column; gap: 8px; }
  .heat-row { grid-template-columns: 26px repeat(24, 1fr); }
  .funnel-band { gap: 8px 12px; }
  .funnel-step strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
