/* Monevibe advertiser brief — tokens from the Figma file «Monevibe Advertiser» (collection Monevibe). */
:root {
  --lime: #d7e72a; --lime-tint: #f7fad9; --accent: #c2d400; --ink: #1e2400; --ink-2: #2c3410; --olive: #5c6e00;
  --bg: #f6f7f2; --surface: #ffffff; --line: #e3e6d8; --muted: #6b7160; --success: #2e8b57; --warning: #d98e04; --danger: #c62f2f;
  --r-card: 20px; --r-btn: 14px; --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/22px var(--font); }
a { color: var(--olive); }
h1 { font-size: 34px; line-height: 42px; letter-spacing: -0.015em; margin: 4px 0 8px; }
h2 { font-size: 26px; line-height: 34px; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; margin: 0 0 14px; }
h4, .h4 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.lead { font-size: 16px; line-height: 24px; color: var(--muted); max-width: 680px; }
.small { font-size: 13px; line-height: 18px; } .caption { font-size: 12px; line-height: 16px; }
.muted { color: var(--muted); } .olive { color: var(--olive); }
.overline { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1 1 auto; }
.file { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; max-width: 100%; }
.file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file__input:focus-visible + .file__btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: start; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__sep { width: 1px; height: 24px; background: var(--line); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.progress { display: flex; flex-direction: column; gap: 4px; }
.progress__bar { display: flex; gap: 4px; } .progress__bar i { width: 20px; height: 5px; border-radius: 3px; background: var(--line); }
.progress__bar i.on { background: var(--lime); } .progress__bar--wide i { flex: 1; width: auto; }
.lang { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.lang a.on { background: var(--ink); color: var(--surface); }

/* three columns */
.layout { display: grid; grid-template-columns: 296px minmax(0, 1fr) 340px; align-items: start; }
/* the stepper never scrolls on its own (28.10): it fits the screen — on shorter screens the captions give way first,
   then the teaser's line; below 600 px it stops being sticky */
.stepper { padding: 24px 20px; position: sticky; top: 72px; }
.stepper ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.stepitem > a, .stepitem { display: flex; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 14px; text-decoration: none; color: inherit; }
.stepitem:has(> a) { padding: 0; } .stepitem > a { flex: 1; }
.stepitem small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.stepitem strong { font-size: 14px; }
.stepitem__n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 600; font-size: 13px; }
.stepitem--active { background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.stepitem--active .stepitem__n { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.stepitem--done .stepitem__n { background: var(--lime); border-color: var(--lime); }
.stepitem--todo { color: var(--muted); }
.main { padding: 40px 48px 64px; display: grid; gap: 32px; max-width: 804px; width: 100%; justify-self: center; }   /* wide screens: the form stays in the middle (Figma #55) */
/* the step form holds the cards and the footer: the same 32 px between them (28.10), 40 px before «Dalej»;
   helper forms that only carry hidden inputs (uploads, generator) take no row of the grid */
.main > form[data-autosave]:not(.sumfoot) { display: grid; gap: 32px; }
.main > form:not(:has(> :not(input[type="hidden"]))) { display: none; }
.panel { padding: 32px 24px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 20px; position: sticky; top: 72px; }
.panel__logo { width: 120px; height: 72px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: var(--bg); margin-bottom: 12px; }
.panel__logo img { max-width: 100px; max-height: 56px; }

/* cards & form controls */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; }
.field__hint { font-size: 12px; color: var(--muted); }
.field__msg { font-size: 12px; color: var(--danger); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
textarea { resize: vertical; }
/* Focus: only text-like fields (a Field in the mockup) keep a visible focus state. Everything else — buttons, links,
   tabs, summaries, radios, checkboxes, the slider — shows nothing when clicked, and a brand-coloured ring only when
   reached from the keyboard (:focus-visible), where it is needed for accessibility. */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
input:not([type=radio]):not([type=checkbox]):not([type=range]):focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--olive); }
/* radios / checkboxes: no box on click; keyboard focus shows on the card or chip that holds them */
input[type=radio], input[type=checkbox] { outline: none; }
input[type=radio]:focus-visible, input[type=checkbox]:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.model:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.model input:focus-visible, .chip input:focus-visible { outline: none; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--danger); }
input[type=range] { width: 100%; accent-color: var(--olive); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--olive); flex: none; }
.check--error span { color: var(--danger); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-btn); padding: 16px 26px;
  font: 600 16px/20px var(--font); cursor: pointer; text-decoration: none; color: var(--ink); background: none; }
.btn--m { padding: 10px 16px; font-size: 14px; line-height: 18px; }
.btn--primary { background: var(--lime); } .btn--primary:hover { background: var(--accent); }
.btn--secondary { background: var(--surface); border-color: var(--line); }
.btn--ghost { color: var(--olive); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.chip input { accent-color: var(--olive); }
.chip--on { background: var(--lime-tint); border-color: var(--olive); }
.chip--off { opacity: .45; } .chip--soon { background: var(--lime-tint); border-color: transparent; color: var(--olive); font-weight: 600; font-size: 12px; padding: 3px 10px; }
.pill { background: var(--lime-tint); color: var(--olive); border-radius: 999px; padding: 2px 10px; font-weight: 600; margin-left: 8px; }
.note { background: var(--bg); border-radius: 14px; padding: 12px 16px; }
.note--lime { background: var(--lime-tint); } .note--line { background: var(--surface); border: 1px solid var(--line); }
/* a note inside a target action (frame 07c): a white row, the icon left of the text, no paragraph margins */
.actnote { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; } .actnote > span { flex: 1; } .actnote__ic { flex: none; color: var(--olive); }
.topbar strong, .topbar .btn, .topbar .small { white-space: nowrap; }
.badge { white-space: nowrap; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge--test { background: #fdf3e1; color: #7a5200; }
.alert { border-radius: 14px; padding: 12px 16px; margin: 0; }
.alert--danger { background: #fbeaea; color: var(--danger); } .alert--warning { background: #fdf3e1; color: #7a5200; }
.alert--ok { background: var(--lime-tint); color: var(--olive); font-weight: 600; }
.stephead .lead { margin-bottom: 0; }
.stepfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* step-specific */
/* step 1 (frames 04b / 04c / 04rc): six cells over one real input — paste and one-time-code autofill keep working */
.code__all { font: 700 32px/40px var(--font); letter-spacing: .5em; text-align: center; max-width: 320px; padding: 14px; }
.code--error .code__all { border-color: var(--danger); }
.code { position: relative; display: inline-flex; max-width: 100%; }
.code__cells { display: flex; align-items: center; gap: 12px; }
html:not(.js) .code--input .code__cells { display: none; }
html.js .code--input .code__all { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; opacity: 0; caret-color: transparent; cursor: text; }
.code__cells i { width: 62px; height: 70px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); font: 700 30px/1 var(--font); font-style: normal; font-variant-numeric: tabular-nums; }
.code__cells b { color: var(--muted); font-weight: 400; padding: 0 2px; }
.code--focus .code__cells i.on { border: 2px solid var(--olive); }
.code--focus .code__cells i.on::after { content: ""; width: 2px; height: 30px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.code--ok .code__cells i { background: var(--lime-tint); border: 2px solid var(--olive); color: var(--ink); }
.code--error .code__cells i { border-color: var(--danger); }
.code__meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.linkbtn--m { font-size: 14px; text-decoration: none; } .linkbtn:disabled { color: var(--muted); cursor: default; }
.strong { font-weight: 600; }
.dim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(30, 36, 0, .28); }
.dim .modal { display: grid; gap: 16px; width: 100%; padding: 28px 32px; }
/* «38 twórców czeka na brief» under the stepper: the audit's matches, faces stay blurred until the brief is sent */
.waitcard { display: grid; gap: 8px; margin-top: 16px; padding: 14px; background: var(--lime-tint); border: 1px solid var(--accent); border-radius: 16px; }
.waitcard strong { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 22px; }
.waitcard__faces { display: flex; align-items: center; }
.waitcard__faces img, .waitcard__faces i, .waitcard__faces b { width: 36px; height: 36px; border-radius: 50%; margin-right: -10px; border: 2px solid var(--surface);
  box-sizing: border-box; object-fit: cover; background: var(--bg); }   /* #79: the best matched creators' real avatars */
.waitcard__faces b { display: grid; place-items: center; background: var(--olive); color: var(--surface); font-size: 12px; font-weight: 600; }
.waitcard__faces i:nth-child(1) { background: radial-gradient(circle at 35% 35%, #d7e72a, #8a9a1c); }
.waitcard__faces i:nth-child(2) { background: radial-gradient(circle at 35% 35%, #e6e8dc, #a7ad96); }
.waitcard__faces i:nth-child(3) { background: radial-gradient(circle at 35% 35%, #b5b39a, #5d6248); }
.waitcard__faces i:nth-child(4) { background: radial-gradient(circle at 35% 35%, #c49a7a, #6e4c35); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tab { border: 0; background: none; padding: 8px 16px; border-radius: 10px; font: 600 14px var(--font); cursor: pointer; color: var(--muted); }
.tab--on { background: var(--ink); color: var(--lime); }
.install { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.install li { display: flex; gap: 16px; } .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 600; }
.token { background: var(--lime-tint); border: 1px solid var(--accent); border-radius: 16px; padding: 16px; display: grid; gap: 10px; margin-top: 8px; }
.token__value { font-family: ui-monospace, Menlo, monospace; flex: 1; }
.status { font-weight: 600; } .status--catalog_received { color: var(--success); } .status--none, .status--pending { color: var(--muted); }
.status--syncing, .status--connected { color: var(--olive); } .status--empty { color: #7a5200; } .status--failed, .status--taken { color: var(--danger); }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.model { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.model input { accent-color: var(--olive); justify-self: start; width: 18px; height: 18px; margin: 0; } .model--on { background: var(--lime-tint); border: 2px solid var(--olive); } .model--off { opacity: .55; cursor: not-allowed; }
/* target actions (#73, Figma 07 / 07f / 07c): one block each; with JS the blocks not being edited fold into a line */
.actions { display: grid; gap: 12px; }
.action { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.action__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.action__name { display: grid; gap: 2px; min-width: 0; } .action__name .overline { letter-spacing: .06em; }
.action__body { display: grid; gap: 16px; } .action .model { background: var(--surface); } .action .model--on { background: var(--lime-tint); }
.action__summary, .action__edit { display: none; } .action__summary { gap: 2px; }
.action--collapsed .action__body, .action--collapsed .action__sub, .action--collapsed .action__tabs { display: none; }
.action--collapsed .action__summary { display: grid; } .action--collapsed .action__summary strong { font-size: 15px; }
.action--collapsed .action__edit { display: inline-flex; } .action--collapsed { padding: 16px 20px; }
.action__remove { justify-self: start; }
.addaction { display: grid; gap: 8px; justify-items: start; }
.forecast { background: var(--lime-tint); border-radius: 14px; padding: 16px; }
.ta { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; margin: 0; }
.ta legend { font-weight: 600; padding: 0 6px; }
.upload__preview { width: 96px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.upload__cover { width: 164px; height: 90px; object-fit: cover; border-radius: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: grid; gap: 6px; background: var(--bg); border-radius: 14px; padding: 10px; }
.tile img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.textitem { flex-wrap: nowrap; align-items: flex-start; } .textitem select { width: 72px; flex: none; }
.textitem textarea { flex: 1 1 0; min-width: 0; width: auto; }
.rules { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 20px; margin: 0; color: var(--ink-2); }
.summary dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; }
.summary dt { color: var(--muted); font-size: 13px; } .summary dd { margin: 0; }
.modal { max-width: 560px; box-shadow: 0 24px 60px rgba(30, 36, 0, .14); }

@media (min-width: 821px) and (max-height: 800px) { .stepitem small { display: none; } }
@media (min-width: 821px) and (max-height: 730px) { .waitcard > .caption, .stepper > p.muted { display: none; } }
@media (min-width: 821px) and (max-height: 600px) { .stepper { position: static; } }
@media (max-width: 1180px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .panel { display: none; } }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; } .stepper { position: static; padding: 16px; } .stepper ol { display: none; }
  .main { padding: 16px 16px 48px; } .main, .main > form[data-autosave]:not(.sumfoot) { gap: 20px; }
  .grid2, .models, .tiles { grid-template-columns: 1fr; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; } .progress, .topbar__sep { display: none; }
  .summary dl { grid-template-columns: 1fr; } .card { padding: 20px; } h1 { font-size: 28px; line-height: 34px; }
  .waitcard { margin-top: 12px; }                   /* on phones too: it is the reason to finish the brief (#79) */
}
@media (max-width: 520px) { .code__cells { gap: 6px; } .code__cells i { width: 40px; height: 52px; font-size: 22px; border-radius: 10px; }
  .dim .modal { padding: 22px 20px; } }

@media (max-width: 1100px) { .topbar__saved, .topbar__domain { display: none; } }

/* ---- landing + audit (01–03) */
.site { max-width: 1040px; margin: 0 auto; padding: 32px 24px 64px; display: grid; gap: 20px; }
.hero { padding: 28px 0 8px; } .hero h1 { font-size: 44px; line-height: 1.08; margin: 8px 0 12px; max-width: 760px; }
.hook { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; max-width: 760px; }
.hook .btn { margin-top: 26px; white-space: nowrap; }
.btn--busy { opacity: .7; pointer-events: none; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards3 .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); font-weight: 700; }
.checks { margin: 8px 0; padding-left: 18px; display: grid; gap: 8px; }
.integr { display: grid; gap: 12px; } .chip--big { padding: 10px 16px; font-weight: 600; } .chip--lime { background: var(--lime); border-color: var(--lime); }
.faq { border-top: 1px solid var(--line); padding: 12px 0; } .faq summary { cursor: pointer; }
.scanbar { height: 4px; border-radius: 4px; background: var(--lime-tint); overflow: hidden; position: relative; margin: 6px 0 14px; }
.scanbar::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--lime); animation: scan 1.4s linear infinite; }
.audit--finished .scanbar, .audit--finished .loader-dots { display: none; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.loader-dots { display: inline-flex; gap: 5px; } .loader-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); animation: dot 0.9s infinite; }
.loader-dots i:nth-child(2) { animation-delay: .3s; } .loader-dots i:nth-child(3) { animation-delay: .6s; }
@keyframes dot { 0%, 100% { background: var(--line); } 33% { background: var(--olive); } }
.audit__stages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.stage { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.stage__mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; }
.stage--running { color: var(--ink); } .stage--running .stage__mark { border-color: var(--olive); border-top-color: transparent; animation: spin 1s linear infinite; }
.stage--done { color: var(--ink); } .stage--done .stage__mark { background: var(--lime); border-color: var(--lime); }
.stage--done .stage__mark::after { content: "✓"; color: var(--ink); }
.stage--failed .stage__mark { border-color: var(--danger); } .stage--waiting .stage__mark { border-style: dashed; }
@keyframes spin { to { transform: rotate(360deg); } }
.collected { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.collected li { padding: 8px 12px; background: var(--lime-tint); border-radius: 10px; font-size: 14px; }
.collected li.fresh { animation: rise .2s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; }
.kpi strong { font-size: 26px; }
.brandcard__logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.swatches { gap: 8px; } .swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); }
.chips { gap: 6px; }
.imggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.imggrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg); }
.creators__blur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; filter: blur(6px); margin-top: 10px; }
.creators__card { height: 64px; border-radius: 12px; background: linear-gradient(135deg, var(--lime-tint), var(--line)); }
.cta { display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; border-color: var(--ink); }
.cta .muted { color: #c9cdbb; }
@media (max-width: 760px) {
  .hero h1 { font-size: 32px; } .hook { flex-direction: column; } .hook .btn { margin-top: 0; width: 100%; justify-content: center; }
  .cards3, .kpis { grid-template-columns: 1fr; } .imggrid { grid-template-columns: repeat(2, 1fr); } .cta { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .scanbar::after, .loader-dots i, .stage--running .stage__mark, .collected li.fresh { animation: none; } }
.brandcard > .row:first-child { flex-wrap: nowrap; align-items: center; } [data-audit-done] { justify-self: start; width: auto; }
.audit { display: grid; }
.badge--ai { background: var(--ink); color: var(--lime); }
.creators__count strong { font-size: 34px; } .creators__teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.creators__tile { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.creators__ph { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--lime-tint), var(--line)); filter: blur(2px); }
.crlist { display: grid; gap: 10px; } .cr { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.cr img, .cr .cr__ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--lime-tint); }
.creators__av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--lime-tint); }
.field--filled input { animation: filled 1.2s ease-out; } @keyframes filled { from { background: var(--lime-tint); } to { background: var(--surface); } }

/* rate slider as a heat scale on 1–90 %: 1 % red, 10 % Monevibe lime, 50 % green, then gold towards 90 %.
   Stops sit at (v − 1) / 89 of the track; JS paints the thumb and the % pill with the colour under them. */
.rate { --heat: #d7e72a; --heat-track: linear-gradient(90deg, #d33a2c 0%, #d7e72a 10.1%, #2e9e4f 55.1%, #c9a227 100%); }
.heat { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.heat:focus { outline: none; }
.heat::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--heat-track); }
.heat::-moz-range-track { height: 10px; border-radius: 999px; background: var(--heat-track); }
.heat::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%;
  background: var(--heat); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(30, 36, 0, .35); }
.heat::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--heat); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(30, 36, 0, .35); }
.heat:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(215, 231, 42, .65), 0 1px 5px rgba(30, 36, 0, .35); }
.heat:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(215, 231, 42, .65), 0 1px 5px rgba(30, 36, 0, .35); }
.pill--heat { background: color-mix(in srgb, var(--heat) 24%, #fff); border: 1px solid color-mix(in srgb, var(--heat) 70%, #fff); color: var(--ink); }
.promo-errors { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }

/* ---- step 4 (frames 07 / 07v / 07en / 07f) */
.js .js-hide { display: none; }
.nomargin { margin: 0; } .stack { display: grid; gap: 16px; }
.model .caption { font-weight: 500; }
.payrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-items: start; }
.payrow--fixed .kinds { grid-column: 1 / -1; }
.kinds { display: grid; gap: 8px; } .kinds .field__label, .kinds p { margin: 0; }
/* chips as in the mockup: the box is hidden, a selected chip is lime with a tick */
.chip { position: relative; cursor: pointer; }
.chip input[type=radio], .chip input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--lime-tint); border-color: var(--olive); }
.chip:has(input:checked)::before { content: ""; width: 9px; height: 5px; margin: 0 1px 3px 1px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.chip:has(input:disabled) { cursor: not-allowed; }
/* a number with its unit inside the box: «30 dni», «5000 zł» */
.inputbox { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.inputbox input[type=number] { border: 0; background: transparent; width: 7ch; flex: none; padding-right: 4px; -moz-appearance: textfield; appearance: textfield; }
.inputbox input[type=number]::-webkit-inner-spin-button, .inputbox input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@supports (field-sizing: content) { .inputbox input[type=number] { field-sizing: content; width: auto; min-width: 3ch; } }
.inputbox input:not([type=radio]):not([type=checkbox]):not([type=range]):focus { outline: none; border: 0; }
.inputbox:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--olive); }
.inputbox__unit { padding-right: 14px; white-space: nowrap; }
/* empty: a grey example number and a grey unit right after it («5000 PLN»), never a dark unit on its own */
.inputbox input::placeholder { color: var(--muted); opacity: 1; }
.inputbox:has(input:placeholder-shown) .inputbox__unit { color: var(--muted); }
.inputbox { cursor: text; }
/* ▲ ▼ on the right of a number (the rate per click: ±0,10 zł, Figma 07c) */
.numstep { margin-left: auto; display: grid; gap: 2px; padding: 4px 8px 4px 0; }
.numstep__btn { width: 30px; height: 17px; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--lime-tint);
  color: var(--olive); font-size: 9px; line-height: 1; cursor: pointer; } .numstep__btn:hover { background: var(--lime); }
.numstep__btn:disabled { opacity: .35; cursor: default; }
.field--error .inputbox { border-color: var(--danger); }
/* the switch (Toggle in the mockup) */
.check input.switch { -webkit-appearance: none; appearance: none; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--line);
  position: relative; cursor: pointer; transition: background .15s; }
.check input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(30, 36, 0, .2); transition: transform .15s; }
.check input.switch:checked { background: var(--lime); } .check input.switch:checked::after { transform: translateX(16px); background: var(--ink); }
/* the offer in the creator app */
.langtabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); }
.langtab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  font: 600 13px var(--font); color: var(--muted); }
.langtab--on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(30, 36, 0, .12); }
.langtab__state { color: var(--success); } .langtab--err .langtab__state { color: var(--danger); font-weight: 800; }
.langtab__ai { color: var(--olive); }
.apppreview { background: var(--bg); border-radius: 16px; padding: 16px; display: grid; justify-items: center; gap: 12px; }
.apppreview > .caption { justify-self: start; margin: 0; }
.offercard { position: relative; width: 100%; max-width: 328px; aspect-ratio: 327 / 180; border-radius: 16px; overflow: hidden; padding: 12px;
  background: linear-gradient(165deg, #8f8c7c 0%, #4f5536 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.offercard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offercard:has(.offercard__img)::after { content: ""; position: absolute; inset: 0; pointer-events: none;   /* the brand stays readable on a light cover */
  background: linear-gradient(180deg, rgba(30, 36, 0, 0) 40%, rgba(30, 36, 0, .55) 100%); }
.offercard__top, .offercard__brand { z-index: 1; }
.offercard__top, .offercard__brand { position: relative; display: flex; align-items: center; gap: 10px; }
.offercard__top { justify-content: space-between; }
.offercard__new { background: rgba(30, 36, 0, .55); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.offercard__pill { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offercard__logo { flex: none; width: 52px; height: 52px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center;
  overflow: hidden; padding: 4px; font-size: 9px; line-height: 1.1; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.offercard__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.offercard__brand .caption { display: block; opacity: .85; } .offercard__brand strong { font-size: 16px; }
.commrows { display: grid; gap: 10px; width: 100%; justify-items: center; }
.commrow { width: 100%; max-width: 328px; display: flex; justify-content: space-between; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.commrow__texts { display: grid; gap: 4px; min-width: 0; align-content: start; } .commrow__texts strong { font-size: 14px; }
.commrow__value { display: grid; align-content: center; justify-items: end; text-align: right; flex: none; max-width: 40%; }
.commrow__value strong { font-size: 17px; }
.chip--model { justify-self: start; border: 0; background: var(--lime-tint); color: var(--olive); padding: 1px 8px; font-size: 11px; font-weight: 700; cursor: default; }
.terms { background: var(--bg); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.terms__t { font-weight: 600; font-size: 14px; margin: 0; }
.terms dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.terms dt { color: var(--muted); } .terms dd { margin: 0; font-weight: 600; } .terms .caption { margin: 0; }
.rules-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; } .rules-list li::marker { color: var(--olive); }
.field__ok { font-size: 12px; color: var(--success); font-weight: 500; } .field__ok::before { content: "✓ "; }
.tafix { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tafields { display: grid; gap: 14px; }
[data-ta].ta--busy .tafields { opacity: .55; pointer-events: none; }
/* tracking */
.card.trackcard { display: flex; align-items: center; gap: 16px; padding: 20px 28px; }
.trackcard > div { flex: 1; display: grid; gap: 2px; }
.trackcard__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.trackcard--postback .trackcard__icon { background: var(--bg); color: var(--olive); }
.dialog { border: 0; border-radius: 20px; padding: 28px; max-width: 520px; box-shadow: 0 24px 60px rgba(30, 36, 0, .18); color: var(--ink); }
.dialog::backdrop { background: rgba(30, 36, 0, .35); } .dialog:focus { outline: none; }
/* promo-code pool */
.dropzone { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 16px; border: 1.5px dashed var(--muted);
  border-radius: 14px; background: var(--surface); text-align: center; cursor: pointer; }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:has(.dropzone__input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.dropzone .btn { pointer-events: none; margin-top: 8px; }
.dropzone__icon { color: var(--olive); line-height: 0; }
.dropzone--drag { background: var(--lime-tint); }
.dropzone--error { border-color: var(--danger); }
.dropzone--done { border: 1.5px solid var(--olive); background: var(--lime-tint); }
@media (max-width: 820px) { .payrow, .terms dl { grid-template-columns: 1fr; } .card.trackcard { flex-wrap: wrap; padding: 20px; } }

/* ---- step 3 (frames 06 / 06x, dialogs 108:6720 and 115:7038) */
html:not(.js) .js-only { display: none !important; }
.prefill { display: flex; gap: 10px; border: 1px solid var(--accent); margin: 0; }
.sitetag { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--lime-tint);
  color: var(--olive); font-size: 11px; font-weight: 500; }
.sitetag::before { content: "✦"; margin-right: 4px; }
.chip--ai { background: var(--lime-tint); border-color: var(--accent); color: var(--olive); }
.chip--ai:has(input:checked)::before { display: none; }
.chip--ai:has(input:not(:checked)) { background: var(--surface); border-color: var(--line); color: var(--muted); }
.morecats { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.morecats > summary { list-style: none; cursor: pointer; border-style: dashed; color: var(--olive); }
.morecats > summary::-webkit-details-marker { display: none; }
.morecats select { width: auto; padding: 7px 12px; border-radius: 999px; font-size: 13px; }
.prodrow { display: flex; flex-wrap: wrap; gap: 12px; }             /* step 2 done (#78): one product per shop category */
.prod { margin: 0; display: grid; gap: 4px; width: 72px; } .prod img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); } .prod figcaption { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credspoiler { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.credspoiler > summary { cursor: pointer; } .credspoiler[open] > summary { margin-bottom: 12px; }
/* step 6 «Wybierz produkty ze sklepu» (Modal 70:5791): category chips, products as photo + name + category */
.dialog--picker { max-width: 760px; width: calc(100vw - 32px); } .dialog--picker .chips { margin-bottom: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.ppick { display: grid; gap: 4px; cursor: pointer; } .ppick.hidden { display: none; }
.ppick__photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--bg); }
.ppick__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppick__photo input { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; accent-color: var(--olive); }
.ppick:has(input:checked) .ppick__photo { border-color: var(--lime); }
.ppick--added { opacity: .5; cursor: default; }
.ppick__name { font-size: 13px; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logopick { display: flex; flex-wrap: wrap; gap: 12px; }
.mm-shop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mm-shop > span { flex: 1 1 220px; }
.logotile { position: relative; display: grid; gap: 6px; justify-items: center; cursor: pointer; }
.logotile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.logotile__box { width: 80px; height: 80px; display: grid; place-items: center; padding: 6px; box-sizing: border-box; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 18px; }   /* square, like the app's logo (29.10) */
.logotile__box img { width: 100%; height: 100%; object-fit: contain; }
.lochange { gap: 16px; align-items: center; }
.logotile--none .logotile__box { border: 1.5px dashed var(--line); background: var(--surface); }
.logotile__box--dash { border: 1.5px dashed var(--line); background: var(--surface); color: var(--olive); font-weight: 600; }
button.logotile { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
button.logotile:hover .logotile__box { border-color: var(--olive); }
/* «Czcionka napisu» (frame 09a, 30.10) */
.fonttile__aa { font-size: 28px; color: var(--ink); }
.fontpv { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fontpv__text { font-size: 28px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.fdsearch { width: 100%; }
.fdlist { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.fdrow { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.fdrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fdrow:has(input:checked) { border: 2px solid var(--olive); background: var(--lime-tint); }
.fdrow:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.fdrow__sample { flex: 1; min-width: 0; font-size: 24px; line-height: 1.25; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdrow__meta { display: grid; justify-items: end; text-align: right; }
.logotile:has(input:checked) .logotile__box { border: 2px solid var(--olive); }
.logotile:has(input:checked) .caption { color: var(--olive); font-weight: 600; }
.logotile:has(input:focus-visible) .logotile__box { outline: 2px solid var(--lime); outline-offset: 2px; }
.logotile--off { opacity: .45; cursor: not-allowed; }
.ref__name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* step 6 «Co ma być na grafice» (frames 09 / 09a): a row per role, 80 px tiles, «Wgraj» / «Bez modelki» / «AI dobierze» as tiles */
.gfxrow { display: grid; gap: 8px; }
.genbox .ref img, .ref__tile { width: 80px; height: 80px; }
.genbox .ref__name { max-width: 80px; }
button.ref { background: none; border: 0; padding: 0; font: inherit; color: inherit; align-self: start; }
.ref__tile { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 6px; box-sizing: border-box; text-align: center;
  border-radius: 12px; border: 1.5px dashed var(--line); background: #fff; color: var(--olive); font-size: 12px; font-weight: 600; line-height: 1.25; }
.ref__tile .ref__plus { font-size: 20px; font-weight: 400; line-height: 1; }
button.ref:hover .ref__tile { border-color: var(--olive); }
.ref:has(input:checked) .ref__tile { border: 2px solid var(--olive); background: var(--lime-tint); }
.ref:has(input:focus-visible) .ref__tile, button.ref:focus-visible .ref__tile { outline: 2px solid var(--lime); outline-offset: 2px; }
button.ref:focus-visible { outline: none; }
.ref:has(input:disabled) { opacity: .45; cursor: not-allowed; }   /* the 5th product, or past one beside a model */
@media (max-width: 600px) { .genbox .refs { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; } .genbox .ref { flex: none; } }
.logorow { display: flex; align-items: center; gap: 16px; background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.logorow > .grow { display: grid; gap: 2px; }
.logorow__tile { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);   /* square, like the app's (#80) */
  display: grid; place-items: center; overflow: hidden; }
.logorow__tile img { width: 100%; height: 100%; padding: 4px; box-sizing: border-box; object-fit: contain; }   /* the whole logo, never cropped */
.logorow--error { outline: 1px solid var(--danger); }
.coverrow { display: grid; grid-template-columns: 328px 1fr; gap: 24px; align-items: start; }
.coverprev { display: grid; gap: 8px; } .coverprev .offercard { max-width: none; }
.covermats { display: grid; gap: 10px; align-content: start; } .covermats p { margin: 0; }
.refs { display: flex; flex-wrap: wrap; gap: 10px; }
.ref { position: relative; display: grid; gap: 4px; justify-items: center; cursor: pointer; }
.ref input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ref img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
/* «Dodaj pliki» (#60) and the results of a generation (#69): one version, «Co poprawić?» beside it */
.ref--add .ref__plus { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; border: 1.5px dashed var(--olive);
  color: var(--olive); font-size: 24px; background: var(--surface); }
.ref--add input { inset: 0; width: 100%; height: 100%; cursor: pointer; }
.refs--drag .ref__plus, .dropzone--drag .ref__plus { background: var(--lime-tint); }
.quietprompt textarea { background: var(--bg); color: var(--muted); font-size: 12px; line-height: 18px; border-color: transparent; }
.quietprompt textarea:focus { color: var(--ink); background: var(--surface); }
.genresult { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 16px; align-items: start; }
.genresult__img { width: 100%; border-radius: 12px; border: 2px solid var(--olive); object-fit: cover; }
.genresult__img--cover { aspect-ratio: 327 / 180; } .genresult__img--post { aspect-ratio: 9 / 16; max-width: 180px; }
.genresult__img--square { aspect-ratio: 1; max-width: 220px; }
.genresult__img--off { opacity: .55; border-color: var(--line); }
/* the magnifier and the full-screen view (frames 09 / 09d, 30.10) */
.gmainbox { position: relative; display: block; width: 100%; max-width: 180px; }
.gmainbox:has(.genresult__img--square) { max-width: 220px; } .gmainbox > img { display: block; }
.zoombtn { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: zoom-in; }
.zoombtn:hover { background: var(--lime-tint); } .zoombtn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox[open] { display: grid; justify-items: center; gap: 12px; }
.lightbox::backdrop { background: rgba(30, 36, 0, .86); }
.lightbox__img { display: block; height: calc(100vh - 120px); width: auto; max-width: calc(100vw - 32px); aspect-ratio: 9 / 16;
  object-fit: contain; border-radius: 12px; background: #000; }
.lightbox__img--square { aspect-ratio: 1; }
.lightbox__cap { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; white-space: pre; }
.lightbox__close { position: fixed; top: 32px; right: 32px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 600px) { .lightbox__img { height: auto; width: calc(100vw - 32px); max-height: calc(100vh - 120px); } .lightbox__close { top: 16px; right: 16px; } }
.viscard { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); align-items: flex-start; }
/* a version on its way (frame 09a): a lime sweep, a pulsing spark, the stage line and a bar; ready versions stay in «Wersje» */
.genph { position: relative; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; box-sizing: border-box;
  text-align: center; border: 2px solid var(--lime); border-radius: 12px; background: linear-gradient(135deg, var(--lime-tint), #fff 45%, var(--lime-tint)); }
.genph--post { width: 180px; aspect-ratio: 9 / 16; } .genph--square { width: 220px; aspect-ratio: 1; }
.genph::before { content: ""; position: absolute; inset: 0 -60%; background: linear-gradient(110deg, transparent 38%, rgba(215, 231, 42, .55) 50%, transparent 62%);
  animation: genph-sweep 1.6s linear infinite; }
.genph > * { position: relative; }
.genph__spark { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 0 18px rgba(215, 231, 42, .7); animation: genph-pulse 1.4s ease-in-out infinite; }
.genph__bar { width: 110px; height: 4px; border-radius: 2px; background: #dde0c8; overflow: hidden; }
.genph__bar > i { display: block; height: 100%; width: 4%; background: var(--olive); transition: width 1s linear; }
.genph--mini { width: auto; height: 128px; padding: 6px; gap: 6px; border-radius: 10px; }
.genph--mini .genph__spark { width: 26px; height: 26px; font-size: 13px; } .genph--mini .genph__bar { width: 44px; height: 3px; }
@keyframes genph-sweep { from { transform: translateX(-35%); } to { transform: translateX(35%); } }
@keyframes genph-pulse { 50% { transform: scale(1.12); box-shadow: 0 0 28px rgba(215, 231, 42, .95); } }
@media (prefers-reduced-motion: reduce) { .genph::before, .genph__spark { animation: none; } }
/* «Wersje»: newest left, each in its proportion; the main one framed dark, a hidden one pale */
.capstyle { padding: 14px 16px; border-radius: 14px; background: var(--bg); gap: 10px; }   /* «Jak mają brzmieć teksty?» (30.10) */
.capstyle textarea { background: var(--surface); }
.discountbox { padding-right: 6px; } .discountbox input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; } .discountbox .langtabs { flex: none; }
.gfxsettings { flex-wrap: wrap; gap: 8px 12px; } .gfxsettings > .langtabs + strong { margin-left: 12px; }
.gfxvers { display: grid; gap: 10px; } .gfxvers > p { gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vstrip { display: flex; gap: 12px; align-items: flex-end; overflow-x: auto; padding-bottom: 4px; }
.vthumb { flex: none; display: grid; gap: 6px; justify-items: center; color: var(--muted); text-decoration: none; }
.vthumb__ring { display: block; padding: 3px; border: 2px solid transparent; border-radius: 14px; }
.vthumb__img { display: block; height: 128px; border-radius: 10px; object-fit: cover; border: 2px solid var(--olive); }
.vthumb__img--post { aspect-ratio: 9 / 16; } .vthumb__img--square { aspect-ratio: 1; }
.vthumb--off .vthumb__img { opacity: .55; border-color: var(--line); }
a.vthumb:hover .vthumb__ring { border-color: var(--line); }
.vthumb--main .vthumb__ring, a.vthumb--main:hover .vthumb__ring { border-color: var(--ink); } .vthumb--main .caption { color: var(--ink); font-weight: 600; }
a.vthumb:focus-visible { outline: none; } a.vthumb:focus-visible .vthumb__ring { outline: 2px solid var(--lime); outline-offset: 1px; }
.muted strong.ink { color: var(--ink); }
.genwait { display: grid; gap: 8px; } .genwait__img { aspect-ratio: 327 / 180; max-width: 280px; border-radius: 12px;
  background: linear-gradient(90deg, #e9ecdf 0%, #f4f6ee 50%, #e9ecdf 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@media (max-width: 720px) { .genresult { grid-template-columns: 1fr; } }
.ref:has(input:checked) img { border: 2px solid var(--olive); }
.ref:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ref:has(input:focus-visible) img { outline: 2px solid var(--lime); outline-offset: 2px; }
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.variant { display: grid; gap: 8px; justify-items: start; }
.variant img { width: 100%; aspect-ratio: 327 / 180; object-fit: cover; border-radius: 12px; border: 2px solid transparent; }
.variant--on img { border-color: var(--olive); }
/* the cropper dialogs */
.dialog--crop { max-width: 880px; width: calc(100% - 32px); display: grid; gap: 16px; }
.dialog--crop:not([open]) { display: none; }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; } .dialog__head h2 { margin: 0 0 4px; font-size: 24px; }
.dialog__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; }
.dialog__col { display: grid; gap: 12px; align-content: start; } .dialog__col p { margin: 0; }
.dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dropzone--row { display: flex; justify-items: start; text-align: left; gap: 12px; padding: 14px 16px; background: var(--bg); border-color: var(--line); }
.crop { width: 100%; aspect-ratio: 880 / 600; border-radius: 14px; cursor: grab; touch-action: none; background: #232900; }
.crop:active { cursor: grabbing; }
.zoomrow { flex-wrap: nowrap; } .zoom { flex: 1; accent-color: var(--olive); }
.lm-tile { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.offercard--lm, .offercard--cm { max-width: none; }
.offercard--lm .offercard__logo { padding: 0; }
.offercard--details { aspect-ratio: 327 / 144; }
canvas.offercard__img { width: 100%; height: 100%; }
@media (max-width: 820px) { .coverrow, .dialog__grid, .variants { grid-template-columns: 1fr; } .dialog__foot { flex-direction: column; align-items: stretch; } }

/* ---- step 2 (frames 05 / 05c / 05a) */
.nowrap { flex-wrap: nowrap; } .row.tight { gap: 8px; }
.btn--dark { background: var(--ink); color: var(--lime); } .btn--dark:hover { background: var(--ink-2); }
.btn--disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.card--dim > * { opacity: .55; }
.token__badge { background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.token__form { display: grid; gap: 12px; } .token__form .btn { justify-self: start; }
.btnpreview { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
.btnpreview .btn { pointer-events: none; flex: none; }
.live { display: inline-flex; align-items: center; gap: 6px; background: var(--lime-tint); color: var(--olive); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.srows { display: grid; }
.srow { display: flex; gap: 16px; align-items: center; padding: 14px 0; } .srow + .srow { border-top: 1px solid var(--line); }
.srow > div { display: grid; gap: 2px; }
.srow__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--line); color: var(--muted); }
.srow--done .srow__icon { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.srow--wait .srow__icon { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.srow--warn .srow__icon { background: #fdf3e1; border-color: #fdf3e1; color: #7a5200; }
.srow--error .srow__icon { background: #fbeaea; border-color: #fbeaea; color: var(--danger); }
.srow--todo strong { color: var(--muted); }
.okcard { background: var(--lime-tint); border-color: var(--accent); }
.okcard__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 700; }
.okcard__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.okcard__tile { background: var(--surface); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; } .okcard__tile strong { font-size: 24px; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }

/* ---- the offer preview panel (Figma #59): the offer as creators will see it, filled in step by step */
.panel { display: grid; gap: 8px; align-content: start; }
/* the phone has a real phone's proportions; its screen is laid out at the app's own width (393 pt) and shrunk
   as a whole, so the preview is a miniature of the creator app rather than the app squeezed into 270 px */
.phone { width: 100%; aspect-ratio: 9 / 19.5; background: #232900; border-radius: 46px; padding: 10px; margin-top: 8px;
  box-shadow: 0 18px 40px rgba(30, 36, 0, .16); }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: var(--bg); }
.phone__screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none;
  background: linear-gradient(rgba(246, 247, 242, 0), var(--bg)); }
.phone__content { width: 393px; zoom: .692; padding: 14px 24px 28px; display: grid; gap: 16px; }
.phone__status { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 8px 0 14px;
  font: 600 16px var(--font); color: var(--ink); }
.phone__island { width: 112px; height: 32px; border-radius: 16px; background: #232900; }
.phone__icons { display: flex; gap: 4px; align-items: flex-end; } .phone__icons i { width: 4px; border-radius: 1px; background: var(--ink); }
.phone__icons i:nth-child(1) { height: 6px; } .phone__icons i:nth-child(2) { height: 9px; } .phone__icons i:nth-child(3) { width: 22px; height: 11px; border-radius: 3px; }
.offercard--pv { max-width: none; perspective: 600px; }
.offercard--empty { background: linear-gradient(165deg, #dcded1 0%, #b8bca8 100%); }
.offercard__logo--empty { background: rgba(255, 255, 255, .35); }
.commrow--pv { max-width: none; padding: 16px; } .commrow--pv .commrow__texts strong { font-size: 15px; } .commrow--pv .small { font-size: 13px; }
.commrow--empty { min-height: 96px; } .commrow--empty .commrow__value { display: none; } .commrow--empty .commrow__texts { flex: 1; gap: 10px; }
.pvdesc { display: grid; gap: 8px; padding: 0 4px; } .pvdesc strong { font-size: 16px; } .pvdesc p { color: var(--muted); font-size: 14px; line-height: 20px; }
.pvdesc--empty strong { color: transparent; height: 12px; border-radius: 6px; width: 40%; background: #e9ecdf; }
.phone .skel { height: 10px; }
.pvterms { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--surface); } .pvterms strong { font-size: 15px; }
.pvterms dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.pvterms dt { color: var(--muted); } .pvterms dd { margin: 0; font-weight: 600; text-align: right; }
.pvterms--empty strong { color: transparent; height: 12px; border-radius: 6px; width: 45%; background: #e9ecdf; }
.skel { display: block; height: 8px; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #e9ecdf 0%, #f4f6ee 50%, #e9ecdf 100%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skel--w80 { width: 80%; } .skel--w60 { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pv-spin { animation: pvspin .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes pvspin { 0% { transform: rotateY(0) scale(.6); opacity: .2; } 60% { transform: rotateY(300deg) scale(1.08); opacity: 1; } 100% { transform: rotateY(360deg) scale(1); } }
.pv-in { animation: pvin .8s ease-out; }
@keyframes pvin { from { opacity: 0; transform: translateY(12px) scale(1.04); } to { opacity: 1; transform: none; } }
.pv-typing::after { content: "▍"; color: var(--olive); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.variants--wait i { display: block; aspect-ratio: 327 / 180; border-radius: 12px; background: linear-gradient(90deg, #e9ecdf 0%, #f4f6ee 50%, #e9ecdf 100%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .skel, .variants--wait i, .genwait__img, .pv-spin, .pv-in, .pv-typing::after { animation: none; } }

/* ---- step 5 (frames 08 / 08a) */
.js [data-lang-card]:not(.is-en) [data-lang-pane="en"], .js [data-lang-card].is-en [data-lang-pane="pl"],
.js [data-lang-card]:not(.is-en) [data-tip][data-lang="en"], .js [data-lang-card].is-en [data-tip][data-lang="pl"] { display: none; }
.aibox { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--lime-tint); border: 1px solid var(--accent); }
.aibox .row strong { font-size: 16px; }
.aibox__prompt { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.aibox__prompt textarea { border: 0; padding: 0; font-size: 15px; line-height: 22px; resize: vertical; }
.aibox__prompt textarea:focus { outline: none !important; }
.aibox__prompt:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; }
.iconbtn { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; padding: 0 4px; }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--bg); font-size: 12px; color: var(--ink-2); }
.descbox { display: grid; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--olive); }
.descbox textarea { border: 0; padding: 0; font-size: 16px; line-height: 25px; resize: vertical; }
.descbox textarea:focus { outline: none !important; }
.descbox:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; }
.guard { margin: 0; }
[data-desc].ta--busy .descbox { opacity: .55; }
.tiplist { display: grid; gap: 8px; }
.tiprow { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.tiprow__check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tiprow textarea { border: 0; background: transparent; padding: 0; font-size: 15px; line-height: 22px; resize: none; overflow: hidden;
  min-height: 22px; flex: 1; min-width: 0; }                        /* grows with the text (data-autogrow), never cut */
@supports (field-sizing: content) { .tiprow textarea { field-sizing: content; } }
.tiprow textarea:focus { outline: none !important; }
.tiprow__count { flex: none; padding-top: 3px; } .tiprow__count:empty { display: none; }
.nowrap { white-space: nowrap; flex: none; }
.tiprow:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; }
.tiprow__del { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; opacity: 0; }
.tiprow:hover .tiprow__del, .tiprow:focus-within .tiprow__del { opacity: 1; }
.card.row { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; } .card.row h3 { margin: 0 0 4px; } .card.row p { margin: 0; }

/* ---- step 6 (frames 09 / 09a, dialogs 117:7197 and 70:5791) */
.selfstart { justify-self: start; }
.js [data-lang-card]:not(.is-en) [data-cap][data-lang="en"], .js [data-lang-card].is-en [data-cap][data-lang="pl"] { display: none; }
.caplist { display: grid; gap: 10px; }
.caprow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.caprow:has(input[type=checkbox]:checked) { background: var(--lime-tint); border-color: var(--accent); }
.caprow input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--olive); flex: none; }
.caprow textarea { border: 0; background: transparent; padding: 0; font-size: 15px; line-height: 22px; resize: vertical; flex: 1; min-width: 0; }
.caprow textarea:focus { outline: none !important; }
.caprow:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; }
.caprow:hover .tiprow__del, .caprow:focus-within .tiprow__del { opacity: 1; }
.mtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mtile { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 14px; background: var(--bg); text-align: left; font: inherit; color: inherit; }
.mtile img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 10px; background: var(--surface); }
.mtile__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtile--add { border: 1.5px dashed var(--line); background: var(--surface); justify-items: center; align-content: center; text-align: center; cursor: pointer; min-height: 180px; }
.mtile__plus { width: 36px; height: 36px; border-radius: 50%; background: var(--lime-tint); color: var(--olive); display: grid; place-items: center; font-size: 22px; }
.micon { flex: none; color: var(--ink-2); }
.linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font: 600 12px var(--font); color: var(--olive); }
.linkbtn--danger { color: var(--danger); }
.mm-preview { width: 100%; aspect-ratio: 1.36; border-radius: 14px; background: var(--bg) center / cover no-repeat; }
.mtypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mtype { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mtype input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtype:has(input:checked) { background: var(--lime-tint); border: 2px solid var(--olive); color: var(--olive); }
.mtype:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.mm-instr summary { cursor: pointer; list-style: none; font-weight: 600; } .mm-instr textarea { margin-top: 8px; }
#brand-dialog { max-width: 680px; width: calc(100% - 32px); }
.bgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.bpick { position: relative; cursor: pointer; }
.bpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bpick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 3px solid transparent; }
.bpick:has(input:checked) img { border-color: var(--lime); }
.bpick:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.bpick:has(input:focus-visible) img { outline: 2px solid var(--olive); outline-offset: 2px; }
@media (max-width: 820px) { .mtiles, .mtypes { grid-template-columns: repeat(2, 1fr); } .bgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---- step 7 (frame 10) */
.js [data-lang-card]:not(.is-en) [data-rule][data-lang="en"], .js [data-lang-card].is-en [data-rule][data-lang="pl"] { display: none; }
.rulelist { display: grid; gap: 10px; }
.rulerow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.rulerow input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--olive); flex: none; margin: 0; }
.rulerow input[type=text] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-size: 15px; }
.rulerow input[type=text]:focus { outline: none !important; }
.rulerow:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--olive); }
.rulerow--off { background: var(--bg); } .rulerow--off input[type=text] { color: var(--muted); }
.rulerow--lock { background: var(--bg); border-color: transparent; } .rulerow__lock { font-size: 13px; }
.rulerow:hover .tiprow__del, .rulerow:focus-within .tiprow__del { opacity: 1; }
.ruletag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12px; white-space: nowrap; }
.ruletag--lock { background: var(--ink); color: var(--lime); }
.rulemore { display: grid; gap: 10px; } .rulemore > summary { cursor: pointer; font-weight: 600; } .rulemore[open] > summary { margin-bottom: 10px; }
.flrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flrow .inputbox input[type=number] { width: 11ch; }
.inputbox__unit--pre { padding: 0 0 0 14px; color: var(--muted); }
.flrange { position: relative; height: 26px; --lo: 0%; --hi: 100%; }
.flrange::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--line) var(--lo), var(--lime) var(--lo), var(--lime) var(--hi), var(--line) var(--hi)); }
.flrange input { position: absolute; inset: 0; width: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.flrange input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2.5px solid var(--olive); cursor: pointer; }
.flrange input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--olive); cursor: pointer; }
.flbars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.flbar { flex: 1; border-radius: 3px 3px 0 0; background: #e9ecdf; } .flbar--in { background: var(--lime); }
.flscale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.chipinput { border: 1px dashed var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; min-width: 240px; width: auto; flex: 1; }

/* ---- step 8 (frame 11) */
.okline { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--lime-tint); border: 1px solid var(--accent); font-weight: 500; }
.okline__icon { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 700; flex: none; }
.summary dl { grid-template-columns: 180px 1fr; gap: 0; }
.summary dt, .summary dd { padding: 11px 0; border-top: 1px solid var(--line); }
.summary dd { font-size: 15px; }
.sumthumbs { display: flex; gap: 8px; } .sumthumbs img { width: 54px; height: 96px; object-fit: cover; border-radius: 10px; }
.sumfoot { display: grid; gap: 10px; } .sumfoot .caption { margin: 0; } .sumfoot > .card { margin-bottom: 14px; }
.after { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: var(--bg); display: grid; gap: 8px; }
.after ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.after li { display: flex; gap: 10px; align-items: flex-start; }
.btn[data-code-submit]:disabled { opacity: 1; cursor: progress; }

/* after the brief (frames 12a / 12): full width, timeline, four tiles, the creators as cards */
.done { padding: 40px 48px 64px; display: grid; gap: 24px; max-width: 1296px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.timeline { list-style: none; margin: 0; grid-template-columns: repeat(3, 1fr); padding: 20px 24px; }
.timeline li { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.timeline li strong { display: block; font-size: 15px; } .timeline li small { display: block; font-size: 12px; }
.timeline__done, .timeline__now { color: var(--ink) !important; }
.timeline__n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font: 600 12px var(--font); }
.timeline__done .timeline__n { background: var(--lime); border-color: var(--lime); }
.timeline__now .timeline__n { background: var(--ink); border-color: var(--ink); color: var(--lime); font-size: 10px; }
.dstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dstat { gap: 4px; padding: 22px 24px; } .dstat strong { font-size: 32px; line-height: 40px; } .dstat__i { color: var(--olive); }
.crs { display: grid; gap: 20px; }
.crs h2 { font-size: 22px; }
.crgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; align-items: start; }
.crcard { padding: 16px; gap: 12px; }
/* the nick under a spoiler (#77): a fixed placeholder, blurred — the real handle never reaches the page */
.spoiler { color: var(--muted); filter: blur(4px); user-select: none; letter-spacing: 1px; }
.crcard__head { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.crcard__av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--lime-tint); }
.crcard__who { display: grid; gap: 2px; min-width: 0; } .crcard__who strong { font-size: 14px; overflow-wrap: anywhere; }
.crcard__who .caption { gap: 4px; }
.crcard__meta { gap: 8px; } .chip--plain { padding: 3px 8px; font-size: 12px; cursor: default; }
.tag { background: var(--lime-tint); color: var(--olive); border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.crcard__tags { gap: 6px; }
.crcard__invite { width: 100%; }
.btn--soft { background: var(--lime-tint); color: var(--olive); justify-content: center; }
.btn--dark { background: var(--ink); color: var(--lime); }
.crcard--hidden { display: none; } [data-cr-more] { justify-self: start; }
.invdlg { display: grid; gap: 14px; max-width: 480px; }
.invdlg:not([open]) { display: none; }
.invdlg__lock { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--olive); }
.invdlg__foot { justify-content: flex-end; }
.questions { display: flex; padding: 22px 24px; }
@media (max-width: 1100px) { .dstats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .done { padding: 16px 16px 48px; } .timeline { grid-template-columns: 1fr; } .questions { flex-direction: column; align-items: flex-start; } }

/* step 6 generator (#75, Figma 09): numbered settings in a lime box, the result with «Co poprawić?» beside it */
.genbox { display: grid; gap: 16px; padding: 18px; border: 1.5px solid var(--lime); border-radius: 16px; background: var(--lime-tint); }
.genstep { display: flex; gap: 12px; align-items: flex-start; }
.num--s { width: 24px; height: 24px; font-size: 12px; flex: none; }
.genwait__img--post { aspect-ratio: 9 / 16; max-width: 180px; }
.gfxversions { display: flex; flex-wrap: wrap; gap: 12px; } .gfxversions img { width: 120px; border-radius: 10px; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langtab:has(input:focus-visible) { outline: 2px solid var(--lime); }

/* #61 the preview panel: folded into a 56 px rail (≥ 1180 px, remembered) or a bottom sheet behind «Podgląd» (< 1180 px);
   folded by default (early.js); new offer details count on the rail / «Podgląd» and pulse until it opens, a tip says what for 6 s */
.panel__head { gap: 8px; } .iconbtn { border: 1px solid var(--line); background: var(--surface); width: 32px; height: 32px; border-radius: 10px;
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); } .panel__close { display: none; }
.pvrail, .pvfab { display: none; }
@media (min-width: 1181px) {          /* the rail only on wide screens: below, the folded preview must not touch the grid */
  html.pv-collapsed .layout { grid-template-columns: 296px minmax(0, 1fr) 56px; } html.pv-collapsed .pvrail { display: flex; }
}
html.pv-collapsed .panel { display: none; }
.pvrail { position: sticky; top: 72px; height: calc(100vh - 72px); flex-direction: column; align-items: center; gap: 14px; padding: 20px 0;
  background: var(--surface); border: 0; border-left: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--ink); }
.pvrail__t { writing-mode: vertical-rl; font-weight: 600; font-size: 13px; }
.pvcount { display: none; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--olive);
  color: var(--surface); outline: 2px solid var(--surface); font: 600 11px/18px var(--font); text-align: center; }
html.pv-news .pvcount { display: inline-block; animation: pvpulse 1.6s ease-out infinite; }
@keyframes pvpulse { 0% { box-shadow: 0 0 0 0 rgba(215, 231, 42, .8); } 100% { box-shadow: 0 0 0 12px rgba(215, 231, 42, 0); } }
.pvtip { position: fixed; z-index: 40; right: 72px; top: 120px; max-width: 260px; margin: 0; padding: 10px 14px; border-radius: 12px;
  background: var(--ink); color: var(--surface); font-size: 13px; box-shadow: 0 6px 20px rgba(30, 36, 0, .2); }
.pvdim { position: fixed; inset: 0; z-index: 55; background: rgba(30, 36, 0, .4); }
@media (max-width: 1180px) {
  .pvfab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 12px 18px;
    border: 0; border-radius: 999px; background: var(--ink); color: var(--surface); font: inherit; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 20px rgba(30, 36, 0, .25); }
  .main { padding-bottom: 104px; }                    /* the closed sheet's button never covers «Dalej» */
  .pvtip { right: 20px; top: auto; bottom: 80px; }
  .panel { display: none; }                          /* a later .panel {display: grid} used to win here */
  html.pv-sheet .panel { display: grid; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; overflow-y: auto;
    border: 0; border-radius: 20px 20px 0 0; }
  html.pv-sheet .panel__collapse { display: none; } html.pv-sheet .panel__close { display: inline-block; }
  .panel__collapse { display: none; }
}
@media (prefers-reduced-motion: reduce) { html.pv-news .pvcount { animation: none; } }
@media (max-width: 820px) { .action { padding: 14px; } .action__head { flex-wrap: wrap; } .genbox { padding: 14px; } }
