  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  svg { display: block; }

  /* overflow:hidden clips the decorative ::after glow, which sticks 20px past the
     right edge and would otherwise give the whole page a horizontal scrollbar on mobile. */
  header.masthead { position: relative; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line); }
  header.masthead::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
  }
  header.masthead::after {
    content: ""; position: absolute; top: -40px; right: -20px; width: 360px; height: 210px; pointer-events: none;
    background: radial-gradient(60% 80% at 72% 18%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%);
  }
  .masthead-inner {
    position: relative; z-index: 2; max-width: 1040px; margin: 0 auto;
    padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  }
  /* Sizing/layout of the lockup lives in base.css; this is the link behaviour only.
     BEZ reakcji na hover: logotyp jest znakiem marki, a przygaszanie go pod kursorem
     czytało się jak wyłączony przycisk. Klikalny zostaje (wraca na listę) — sygnalizuje to
     sam kursor; jedyny element lockupu z podświetleniem to „TrafficWatchdog" (base.css),
     bo tamten prowadzi na inny serwis. */
  .brand { text-decoration: none; cursor: pointer; }
  .masthead-title { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; padding: 6px 20px 22px; }
  .masthead-title h1 { margin: 8px 0 14px; font-size: clamp(24px, 4.4vw, 33px); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
  .masthead-title h1 .em { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .masthead-title h1 .em .em-plain { color: var(--ink); -webkit-text-fill-color: var(--ink); }
  .client-card {
    display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: stretch;
    margin-top: 18px; padding: 14px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
  }
  .cc-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cc-label { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
  .cc-value { font-size: 15px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .cc-swatch { width: 15px; height: 15px; border-radius: 5px; flex: 0 0 15px; box-shadow: inset 0 0 0 1px rgba(16,24,40,.12); }
  .cc-platforms { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .cc-plat {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-size: 11px; font-weight: 800; letter-spacing: .01em; padding: 3px 9px 3px 7px; border-radius: 999px;
  }
  .cc-plat-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
  .cc-plat.is-on { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
  .cc-plat.is-on .cc-plat-dot { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.16); }
  .cc-plat.is-off { background: color-mix(in srgb, var(--ink) 6%, var(--card)); color: var(--muted-2); }
  .cc-plat.is-off .cc-plat-dot { background: var(--muted-2); }
  /* Konto z pakietu bez połączenia = link do jego karty w Ustawieniach (review.html plat_pill). */
  a.cc-plat.is-off { color: var(--warn-ink); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line); text-decoration: none; }
  a.cc-plat.is-off .cc-plat-dot { background: var(--warn); }
  a.cc-plat.is-off:hover { text-decoration: underline; text-underline-offset: 2px; }


  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px 72px; }


  .progress-wrap { display: flex; align-items: center; gap: 12px; margin: 16px 2px 4px; }
  .progress {
    flex: 1; height: 8px; border-radius: 999px; background: var(--brand-ghost);
    overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
  }
  .progress-fill {
    height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .45s cubic-bezier(.2,.7,.3,1);
  }
  .progress-label { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }


  .tab-panel { display: none; }
  .tab-panel.is-active { display: block; animation: fade .25s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

  .section-title {
    font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); margin: 22px 4px 14px; font-weight: 800;
  }

  .card-foot {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px; border-top: 1px solid var(--line-soft); background: var(--card-soft);
  }
  .post-status { font-size: 13px; color: var(--muted); flex: 1; min-width: 160px; line-height: 1.45; }
  .social-card .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .social-card .post-status.is-empty { display: none; }
  .foot-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .foot-actions:not(:has(> *)) { display: none; }
  /* Pierwszy wiersz paska karty — narzędzia „popraw to" (review.html `post_tools` + article_card).
     `width: 100%` łamie go na własną linię w obu układach `.card-foot` (row+wrap u artykułu,
     column u posta). Wiersz równa do prawej, jak publikacja pod nim. „Usuń" (`.tool-danger`,
     `margin-right: auto` = sam przy lewej krawędzi) stoi tu u artykułu; karta Social trzyma go
     w dolnym wierszu `.foot-actions`, obok publikacji. */
  .foot-tools {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; width: 100%;
    padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
  }
  .foot-tools .btn { padding: 9px 13px; }
  .foot-tools .btn svg { flex: 0 0 auto; }
  .foot-tools [hidden],
  .foot-actions [hidden] { display: none; }
  .btn.secondary.tool-danger { color: var(--err); margin-right: auto; }
  .btn.secondary.tool-danger:hover:not(:disabled) {
    background: var(--err-bg); color: var(--err);
    border-color: color-mix(in srgb, var(--err) 45%, var(--line));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--err) 14%, transparent);
  }
  .foot-actions .btn { padding: 9px 15px; }
  .post-status a { color: var(--brand); font-weight: 600; word-break: break-all; }
  .post-status .ok { color: var(--ok); font-weight: 700; }
  .post-status .err { color: var(--err); font-weight: 700; }
  .post-status.ok { color: var(--ok); }
  .post-status.err { color: var(--err); }
  .spinner {
    display: inline-block; width: 13px; height: 13px; border: 2px solid var(--brand-line);
    border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite;
    vertical-align: -2px; margin-right: 6px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .post-article {
    position: relative;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px;
  }
  .article-inner { padding: 40px clamp(24px, 5vw, 56px) 8px; }
  .article-kicker { display: inline-flex; }
  .article-title {
    margin: 16px 0 14px; font-family: var(--serif); font-weight: 700;
    font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -.012em; color: var(--ink);
    text-wrap: balance;
  }
  .article-dek {
    margin: 0; font-family: var(--serif); font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.5; color: var(--muted); font-weight: 400; text-wrap: pretty;
  }
  .article-meta {
    display: flex; align-items: center; gap: 12px; margin-top: 24px;
    padding-top: 22px; border-top: 1px solid var(--line-soft);
  }
  .meta-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; text-transform: uppercase;
  }
  .meta-text { line-height: 1.3; }
  .meta-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
  .meta-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
  .meta-sub .draft-pill {
    font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 2px 8px; border-radius: 999px;
  }
  .article-hero { margin: 28px clamp(24px, 5vw, 56px) 4px; }
  .article-hero img {
    display: block; width: 100%; height: auto; border-radius: 14px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft);
  }
  .article-hero figcaption { margin-top: 9px; font-size: 12.5px; color: var(--muted-2); text-align: center; }
  /* „Kopiuj tekst alt" + jego „?" w stopce karty (obok „Pobierz HTML") — jedna grupa, żeby
     przy zawijaniu wiersza „?" nie odpadł od swojego przycisku. */
  .alt-copy-group { display: inline-flex; align-items: center; gap: 9px; }
  .alt-copy.is-copied { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
  .article-body { padding: 12px clamp(24px, 5vw, 56px) 28px; }
  .article-frame {
    width: 100%; border: 0; display: block; background: #fff; height: 600px;
    transition: height .2s ease;
  }
  :root[data-theme="dark"] .article-frame,
  :root[data-theme="dark"] .article-edit-frame { background: var(--card); }
  .article-frame.is-collapsed { height: 540px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .article-expand { display: none; justify-content: center; padding: 0 0 24px; margin-top: -8px; }
  .article-expand.show { display: flex; }

  .article-editor { padding: 4px clamp(24px, 5vw, 56px) 20px; }
  .article-editor[hidden] { display: none; }
  .article-edit-frame {
    width: 100%; display: block; min-height: 320px;
    border: 1px solid var(--brand); border-radius: 12px; background: #fff;
    box-shadow: 0 0 0 3px var(--brand-ghost);
  }
  .article-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; }
  .article-toolbar button {
    appearance: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
    color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    padding: 6px 11px; min-width: 34px; line-height: 1.2;
    transition: background .15s, border-color .15s, color .15s;
  }
  .article-toolbar button:hover { background: var(--brand-ghost); border-color: var(--brand-line); color: var(--brand-strong); }
  .article-toolbar .tb-bold { font-weight: 900; }
  .article-toolbar .tb-italic { font-style: italic; font-family: Georgia, serif; }
  .article-toolbar .tb-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
  .article-seo-fields { display: grid; gap: 14px; margin: 16px 0 14px; }
  .article-seo-fields[hidden] { display: none; }
  .article-seo-label {
    display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  }
  .article-seo-input, .article-seo-textarea {
    width: 100%; box-sizing: border-box; background: var(--card);
    border: 1px solid var(--brand); border-radius: var(--radius-sm); padding: 10px 14px;
    box-shadow: 0 0 0 3px var(--brand-ghost);
  }
  .article-seo-input {
    font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3.4vw, 32px);
    line-height: 1.2; letter-spacing: -.01em; color: var(--ink);
  }
  .article-seo-textarea {
    font-family: var(--serif); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5;
    color: var(--muted); resize: vertical; min-height: 64px;
  }
  .article-seo-input:focus, .article-seo-textarea:focus { outline: none; border-color: var(--brand-strong); }
  .article-editor-hint { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 10px 0 0; }
  /* Link do „Ustawień" w hincie — musi się odcinać od wyszarzonego tekstu dookoła. */
  .article-editor-hint a { color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  .article-editor-hint a:hover { text-decoration-thickness: 2px; }
  .article-editor-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

  /* ── Poprawa okładki: OKNO Studia (08-cover.js; od 2026-11-21, wcześniej pełny ekran) ─────
     Ta sama rodzina co `.rv-modal`: przyciemnione tło, ramka 940 px, na telefonie arkusz od
     dołu. z-index 125: nad oknem artykułu z widoku kafelków (.tile-modal 118–121), pod oknami
     potwierdzeń (.rv-modal 130) i toastem (140). Element siedzi w <body> (08-cover.js go tam
     przenosi), więc `position: fixed` nie zależy od przodków karty. Reguły `[hidden]` są
     osobne, bo `display: grid/flex` sam z siebie bije atrybut `hidden`. */
  html.cs-open, html.cs-open body { overflow: hidden; }
  .cover-studio { position: fixed; inset: 0; z-index: 125; color: var(--ink); }
  .cover-studio[hidden] { display: none; }
  .cs-overlay { position: absolute; inset: 0; background: rgba(10,16,28,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  .cs-dialog {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box;
    width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .cs-top { display: flex; align-items: center; gap: 12px; padding: 18px 14px 8px 22px; min-width: 0; }
  /* flex-basis 0: długi podtytuł (nowrap) przy `auto` zajmowałby cały wiersz i zrzucał licznik. */
  .cs-titles { display: grid; min-width: 0; flex: 1 1 0; }
  .cs-title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
  /* Nagłówek i podgląd dostają fokus z kodu (tabindex=-1) — to cele, nie kontrolki. */
  .cs-title:focus, .cs-preview:focus { outline: none; }
  .cs-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-left {
    flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--brand-strong); white-space: nowrap;
    background: var(--brand-ghost); border: 1px solid var(--brand-line); padding: 4px 10px; border-radius: 999px;
  }
  .cs-x {
    appearance: none; flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
    border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
  }
  .cs-x:hover { background: var(--card-soft); color: var(--ink); }
  .cs-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
  .cs-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; padding: 8px 22px 6px; }
  .cs-body > * { min-width: 0; }
  .cs-foot { display: flex; align-items: center; gap: 12px; padding: 12px 22px 18px; }
  .cs-foot .cs-note { flex: 1 1 auto; }
  .cs-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .cs-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
  .cs-note[hidden] { display: none; }
  .cs-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

  /* Lewa kolumna: podgląd (tu też kadr własnej okładki) i taśma wersji pod nim. */
  .cs-stage { display: grid; gap: 10px; align-content: start; }
  .cs-preview {
    position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
    background: var(--card-soft); border: 1px solid var(--line-soft);
  }
  .cs-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .cs-preview.is-empty { background: linear-gradient(135deg, var(--brand-ghost), var(--card-soft)); }
  /* Artykuł bez okładki: zamiast pustej ramki krótkie zdanie (znika, gdy setPreview zdejmie .is-empty). */
  .cs-empty {
    position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
    text-align: center; font-size: 14px; color: var(--muted);
  }
  .cs-preview:not(.is-empty) > .cs-empty { display: none; }
  .cs-busy {
    position: absolute; inset: 0; z-index: 2; display: none; place-items: center; align-content: center; gap: 12px;
    padding: 20px; text-align: center; font-weight: 700; color: var(--ink-2);
    background: color-mix(in srgb, var(--card) 62%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .cover-studio.is-busy .cs-busy { display: grid; }
  .cs-spin { width: 30px; height: 30px; border: 3px solid var(--brand-line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
  /* Wersje: puste miejsca (`.cs-slot`) = próby, które jeszcze zostały. `position: relative` —
     08-cover.js przewija taśmę do bieżącej wersji po `offsetLeft`. */
  .cs-rail { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 5px 5px 8px; scrollbar-width: thin; }
  .cs-version { position: relative; flex: 0 0 100px; display: grid; gap: 5px; align-content: start; cursor: pointer; }
  .cs-version input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .cs-version img {
    display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px;
    background: var(--card-soft); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s;
  }
  .cs-vlabel { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-version:hover img { box-shadow: 0 0 0 2px var(--brand-line); }
  .cs-version.is-selected img { box-shadow: 0 0 0 2.5px var(--brand); }
  .cs-version.is-selected .cs-vlabel { color: var(--brand-strong); }
  .cs-version:focus-within img { box-shadow: 0 0 0 2.5px var(--brand), 0 0 0 5px var(--brand-ghost); }
  /* Napis „Wolne", nie „+": plus wyglądał na przycisk, a pustego miejsca kliknąć się nie da. */
  .cs-slot {
    flex: 0 0 100px; align-self: flex-start; box-sizing: border-box; aspect-ratio: 16 / 9; display: grid; place-items: center;
    font-size: 11px; font-weight: 700; color: var(--muted); user-select: none;
    border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 9px;
  }
  .cover-studio.is-busy .cs-rail { opacity: .55; pointer-events: none; }

  /* Prawa kolumna: przełącznik trzech rzeczy, które klient może zrobić — każda z własnym polem. */
  .cs-insp { display: grid; gap: 12px; align-content: start; }
  .cs-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card-soft); border: 1px solid var(--line); }
  .cs-tab {
    appearance: none; flex: 1 1 0; min-width: 0; border: 0; background: transparent; cursor: pointer; padding: 8px 6px; border-radius: 9px;
    font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ink-2);
  }
  .cs-tab:hover:not(:disabled):not(.is-on) { color: var(--ink); }
  .cs-tab.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
  .cs-tab:disabled { opacity: .45; cursor: not-allowed; }
  .cs-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
  .cs-pane { display: grid; gap: 10px; }
  .cs-pane[hidden] { display: none; }
  .cs-actrow { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
  /* Napis bywa z nazwą produktu („Nowa wersja z produktem „…”") — zawija się zamiast uciekać. */
  .cs-reroll { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
  .cs-wait {
    margin: 0; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; line-height: 1.4;
    color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line);
  }
  .cs-wait[hidden] { display: none; }
  /* Wykorzystane próby: licznik przygaszony, „Nowa wersja" i „Popraw opisem" wyłączone
     (review.html / 08-cover.js), zostaje „Własna okładka" i notka, co klient NADAL może zrobić. */
  .cover-studio.is-spent .cs-left { color: var(--muted); background: var(--card-soft); border-color: var(--line); }
  .cs-spent {
    margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45;
    color: var(--ink-2); background: var(--card-soft); border: 1px solid var(--line);
  }
  .cover-studio:not(.is-spent) .cs-spent { display: none; }

  /* Produkty: siatka 4 kolumn, zawija się — NIE pasek przewijany w bok: w pasku „Bez produktu"
     i „Dodaj zdjęcie produktu" (zawsze na końcu) lądowały poza ramką przy 4+ kandydatach.
     „Na okładce" = produkt bieżącej wersji, obwódka = wybrany do następnego rysowania. Pełna
     nazwa jest w `title`. */
  .cs-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding: 2px; }
  .cs-prod {
    appearance: none; border: 0; background: transparent; padding: 0; margin: 0; font: inherit; text-align: left;
    display: grid; gap: 2px; align-content: start; cursor: pointer; color: var(--ink); min-width: 0; position: relative;
  }
  .cs-prod[hidden] { display: none; }
  .cs-pimg {
    position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
    border: 1px solid var(--line); background: var(--card-soft); text-align: center; padding: 4px;
    font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.2;
  }
  .cs-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .cs-pimg.is-missing img { display: none; }
  .cs-pname {
    margin-top: 5px; font-size: 11.5px; font-weight: 700; line-height: 1.25; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
  }
  .cs-pprice { font-size: 11px; color: var(--muted); }
  .cs-prod[aria-checked="true"] .cs-pimg { outline: 2.5px solid var(--brand); outline-offset: 1px; }
  /* Fokus klawiatury inny niż zaznaczenie — przerywany, żeby fokus na kafelku 2 nie wyglądał
     jak wybór, gdy zaznaczony jest kafelek 1 (uwaga 11 przeglądu). */
  .cs-prod:focus-visible { outline: none; }
  .cs-prod:focus-visible .cs-pimg { outline: 2px dashed var(--brand); outline-offset: 2px; }
  .cs-now {
    position: absolute; left: 4px; bottom: 4px; display: none; z-index: 1;
    font-size: 9.5px; font-weight: 800; color: var(--ok); background: var(--ok-bg); padding: 2px 6px; border-radius: 999px;
  }
  .cs-prod.is-current .cs-now { display: inline-block; }
  .cs-prod.is-add .cs-pimg { border: 1.5px dashed var(--accent); color: var(--accent); background: transparent; }
  .cs-prod.is-add:focus-within .cs-pimg { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cs-prod.is-add input, .cs-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
  .cs-hint { resize: none; min-height: 0; }

  /* Własna okładka: pole wyboru/upuszczenia; kadr dzieje się na dużym podglądzie. */
  .cs-preview.is-over, .cs-crop-frame.is-over { outline: 3px dashed var(--brand); outline-offset: 3px; }
  .cs-prod.is-add.is-over .cs-pimg { border-style: solid; background: var(--brand-ghost); }
  .cs-drop {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center;
    padding: 14px 16px; cursor: pointer; border: 1.5px dashed var(--brand-line); border-radius: 12px;
    background: var(--brand-ghost); color: var(--brand-strong);
  }
  .cs-drop svg { grid-row: span 3; }
  .cs-drop b { color: var(--ink); font-size: 13.5px; line-height: 1.35; }
  .cs-drop span { color: var(--muted); font-size: 12px; }
  .cs-drop.is-over, .cs-drop:focus-within { border-color: var(--brand); }
  .cs-drop[hidden], .cs-crop[hidden] { display: none; }
  .cs-crop { display: grid; gap: 10px; }
  .cs-crop-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  /* Kadr NA PODGLĄDZIE: przesuwanie zdjęcia ustawia `object-position`, czyli dokładnie
     `centering` z ImageOps.fit po stronie serwera. Pionowe zdjęcie = całe na rozmytym tle. */
  .cs-crop-frame {
    position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit;
    background: #0c1424; cursor: grab; touch-action: none;
  }
  .cs-crop-frame[hidden] { display: none; }
  .cs-crop-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--brand); pointer-events: none; }
  .cs-crop-frame.is-dragging { cursor: grabbing; }
  .cs-crop-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
  .cs-crop-frame.is-portrait { cursor: default; }
  .cs-crop-frame.is-portrait::before { content: ""; position: absolute; inset: -24px; background: var(--cs-crop-bg) center / cover; filter: blur(16px) brightness(.75); }
  .cs-crop-frame.is-portrait img { object-fit: contain; }
  .cp-instruction {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; line-height: 1.5;
    color: var(--ink); background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 9px 12px; resize: vertical; min-height: 46px;
  }
  .cp-instruction:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ghost); }
  .cp-instruction:disabled { opacity: .6; }
  .cp-msg { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
  .cp-msg[hidden] { display: none; }
  .cp-msg.is-error { color: var(--err); font-weight: 600; }
  /* Telefon: arkusz od dołu, jedna kolumna (podgląd → wersje → przełącznik → pole → „Gotowe"). */
  @media (max-width: 760px) {
    .cs-dialog {
      top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; max-height: 92dvh;
      border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .cs-top { padding: 16px 8px 6px 16px; gap: 8px; }
    .cs-body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 6px 16px 4px; }
    .cs-foot { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  }
  @media (max-width: 400px) {
    .cs-top { flex-wrap: wrap; }
    .cs-left { order: 4; flex: 1 1 100%; text-align: center; }
  }
  /* Rysowanie trwa przy zamkniętym studiu: znak na okładce karty i kafelka (08-cover.js
     `markCard`) — klient widzi, dlaczego publikacja czeka (409 `cover_job_running`). */
  .article-hero, .at-cover { position: relative; }
  .cover-busy-chip {
    position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center;
    max-width: calc(100% - 24px); padding: 6px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--ink);
    background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .at-cover .cover-busy-chip { left: 8px; top: 8px; max-width: calc(100% - 16px); font-size: 11.5px; padding: 4px 9px; }
  .cover-tool-spin { margin: 0; }
  .post-article .card-foot {
    position: sticky; bottom: 0; z-index: 5;
    background: color-mix(in srgb, var(--card-soft) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  /* Empty article status (pending) collapses so the action row can hug the card's right edge;
     the actions grow to fill and stay right-aligned (both publish buttons on the right). */
  .post-article .post-status:empty { display: none; }
  .post-article .foot-actions { flex: 1 1 auto; }

  .social-stage {
    max-width: 1040px; margin: 8px auto 0;
    columns: 2; column-gap: 22px;
  }
  .social-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; min-width: 0;
    break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
    margin: 0 0 22px;
  }
  /* Jedna kolumna już od 700px, nie od 620: karta FB ma pasek „Lubię to / Komentarz /
     Udostępnij" o min-content ~303px, a kolumna masonry ma go dopiero od ~680px okna —
     między 621 a ~680px karta rozpychała dokument (zmierzone: 640px okna → 668px strony). */
  @media (max-width: 700px) { .social-stage { columns: 1; } }

  /* ── Zakładka Wideo: jedna karta na batch (review.html `video_group_card`) ──────────────
     Klip po lewej (raz, ze wspólnym „Pobierz wideo"), po prawej wiersz zakładek kanałów
     z jednym „Usuń" na końcu i panel aktywnego. Panel to `.card.social-card` dla JS — tu zdejmujemy z niego wygląd karty. */
  .video-stage { columns: auto; display: flex; flex-direction: column; gap: 22px; }
  .video-group {
    display: grid; grid-template-columns: 360px minmax(0, 1fr);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; min-width: 0;
  }
  .vg-media {
    display: flex; flex-direction: column; gap: 12px; padding: 16px;
    background: var(--card-soft); border-right: 1px solid var(--line-soft);
  }
  .vg-player { border-radius: 14px; overflow: hidden; }
  .sc-media.single.vg-player video { width: 100%; aspect-ratio: 9 / 16; max-height: none; object-fit: contain; }
  .vg-download { align-self: center; }
  .vg-download svg, .vg-delete svg { flex: 0 0 auto; }
  /* `.vg-main` jest kontenerem: o etykietach zakładek decyduje szerokość KOLUMNY, nie okna —
     obok 360px odtwarzacza na tablecie (~768px) zostaje jej tyle co na telefonie. Zakładki
     z podpisami + „Usuń" potrzebują ~590px; poniżej zostają ikony z kropkami statusu. */
  .vg-main { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
  /* Wiersz zakładek + „Usuń" całego wideo. Kreska pod spodem należy do wiersza, nie do
     `.vg-tabs` — to kontener z `overflow-x: auto`, więc podkreślenie aktywnej zakładki stoi
     tuż nad kreską zamiast na nią nachodzić (ujemny margines zostałby przycięty). */
  .vg-head {
    display: flex; align-items: center; gap: 10px; padding-right: 12px;
    border-bottom: 1px solid var(--line);
  }
  .vg-head [hidden] { display: none; }
  .vg-tabs {
    display: flex; gap: 2px; padding: 8px 0 0 12px; flex: 1 1 auto; min-width: 0; align-self: stretch;
    overflow-x: auto; scrollbar-width: none;
  }
  .btn.secondary.vg-delete { flex: 0 0 auto; margin-right: 0; padding: 7px 12px; font-size: 13px; }
  .vg-tabs::-webkit-scrollbar { display: none; }
  .vg-tab {
    appearance: none; border: 0; background: none; font: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 10px 12px 12px; border-bottom: 2.5px solid transparent;
    font-size: 13.5px; font-weight: 700; color: var(--muted);
    transition: color .15s ease, border-color .15s ease;
  }
  .vg-tab:hover:not(:disabled) { color: var(--ink-2); }
  .vg-tab.is-active { color: var(--ink); border-bottom-color: var(--brand); }
  /* Kanał spoza bieżącego filtra statusu (np. już opublikowany przy „Do akceptacji"). */
  .vg-tab.is-off { opacity: .45; cursor: default; }
  /* Reels poza pakietem — zakładka bez posta, tylko pokazuje kanał (review.html video_group_card). */
  .vg-tab.is-ghost, .vg-tab.is-ghost:hover { opacity: .45; cursor: default; color: var(--muted); }
  .vg-tab.is-ghost .vg-tab-ico { filter: grayscale(1); }
  .vg-tab-ico {
    width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .vg-tab-ico svg { width: 12px; height: 12px; }
  /* Przy nazwie zakładki: ptaszek TYLKO, gdy wideo na tym kanale jest opublikowane — poza tym nic
     (stan konta mówi linia `chan_status` w panelu). Maska na kolorze tła, więc tryb ciemny bierze
     kolor ze zmiennych. Klasę stawia 02-main.js syncVideoGroups. */
  .vg-dot { display: none; width: 14px; height: 14px; flex: 0 0 14px; background: var(--ok);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
  .vg-dot.is-published { display: inline-block; }
  /* Stan KONTA kanału posta (review.html `chan_status`), tylko gdy coś nie gra — połączone konto
     nie ma paska. Karta Social: dolny pasek na całą szerokość (miejsce dawnej notki „Post do
     artykułu"); panel wideo: zaokrąglone pudełko nad opisem (`.vg-panel .chan-status`). */
  .chan-status {
    display: flex; align-items: center; gap: 8px 10px;
    padding: 11px 15px; border-top: 1px solid var(--line-soft);
    font-size: 13px; line-height: 1.4; color: var(--muted);
    background: color-mix(in srgb, var(--ink) 5%, var(--card));
  }
  .chan-status b { font-weight: 800; color: inherit; }
  .chan-ico { width: 15px; height: 15px; flex: 0 0 15px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
  .chan-status.is-off { color: var(--warn-ink); background: var(--warn-bg); border-top-color: var(--warn-line); }
  .chan-status.is-off .chan-ico { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.6v.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.6v.01'/%3E%3C/svg%3E"); }
  .chan-status.is-locked .chan-ico { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
  .vg-panel .chan-status { margin: 12px 16px 0; padding: 8px 12px; border-top: 0; border-radius: var(--radius-sm); }
  .vg-panel .chan-status.is-off { box-shadow: inset 0 0 0 1px var(--warn-line); }
  /* Tekst się zawija we własnej kolumnie, znak i link zostają na swoich miejscach. */
  .chan-text { flex: 1 1 0; min-width: 0; }
  .chan-link { flex: 0 0 auto; font-weight: 800; color: inherit; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
  .chan-link::after { content: " →"; }
  @media (max-width: 520px) {
    /* Telefon: link pod tekstem (wyrównany do niego), zamiast ściskać tekst w wąską kolumnę. */
    .chan-status { flex-wrap: wrap; row-gap: 4px; }
    .chan-text { flex-basis: calc(100% - 25px); }
    .chan-link { margin-left: 23px; }
  }
  .social-card.vg-panel {
    display: flex; flex-direction: column; flex: 1 1 auto;
    border: 0; border-radius: 0; box-shadow: none; margin: 0; background: transparent; overflow: visible;
  }
  .social-card.vg-panel[hidden] { display: none; }
  .vg-panel.glow-track::after { display: none; }
  .vg-panel .sc-sub { display: none; }
  .vg-panel .sc-yt-title { padding: 16px 16px 0; }
  .vg-panel .sc-caption { padding: 14px 16px; font-size: 14.5px; max-height: 460px; overflow-y: auto; }
  .vg-panel .sc-yt-title + .sc-caption { padding-top: 8px; }
  .vg-panel .caption-tools { padding: 14px 16px; }
  /* Stopka panelu wideo = JEDEN wiersz: narzędzia (Edytuj · Zgłoś uwagę) przy lewej, status +
     Opublikuj przy prawej; w wąskiej kolumnie publikacja zawija się pod narzędzia. */
  .vg-panel .card-foot { margin-top: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .vg-panel .foot-tools { width: auto; flex: 0 1 auto; justify-content: flex-start; padding-bottom: 0; border-bottom: 0; }
  .vg-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 12px; flex: 1 1 auto; margin-left: auto; }
  .vg-bar .post-status { flex: 0 1 auto; min-width: 0; text-align: right; }
  .vg-bar .publish-post, .vg-bar .vg-publish-all { flex: 0 0 auto; padding: 9px 15px; }
  .vg-publish-all[hidden] { display: none; }
  @media (max-width: 720px) {
    .video-group { grid-template-columns: minmax(0, 1fr); }
    .vg-media { border-right: 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
    .vg-player { width: min(300px, 100%); }
  }
  @container (max-width: 599px) {
    .vg-tab-label { display: none; }
    .vg-tab { padding: 10px 12px 12px; }
    .vg-tabs { padding-left: 6px; }
    .vg-delete .tool-label { display: none; }
    .btn.secondary.vg-delete { padding: 8px 10px; }
  }
  /* Cztery zakładki + „Usuń" na 320px telefonie: bez tego IG Reels chowa się pod przyciskiem. */
  @container (max-width: 300px) {
    .vg-tab { padding: 10px 9px 12px; gap: 6px; }
  }
  @media (max-width: 560px) {
    .vg-bar .post-status { font-size: 12.5px; }
  }
  /* `flex-wrap: wrap` jest tu KONSTRUKCYJNE, nie kosmetyczne. Awatar + nazwa + plakietka
     platformy + „Edytuj" mają razem ~374px min-contentu, a `.social-stage` to `columns: 2`,
     więc kolumna bywa węższa (768px okna ⇒ ~353px). Bez zawijania karta nie mogła zejść
     poniżej swojego min-contentu i rozpychała `.wrap` → dokument (poziomy pasek na tablecie,
     rozjechany layout viewport na telefonie). Przy szerokiej kolumnie nic się nie zawija. */
  .sc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 13px 14px; }
  .sc-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; position: relative;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; text-transform: uppercase;
    background: var(--brand);
  }
  .sc-avatar.ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 42%, #d6249f 60%, #285AEB 92%); }
  .sc-avatar.tt { background: #010101; }
  .sc-avatar.tt::after {
    content: ""; position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(135deg, #25f4ee 30%, #fe2c55 70%); border: 2px solid var(--card);
  }
  .sc-avatar.fb { background: #1877f2; }
  .sc-avatar.yt { background: #ff0000; color: transparent; }
  .sc-avatar.yt::after {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-44%, -50%);
    width: 0; height: 0;
    border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  }
  .sc-avatar.ig-ring { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #fd5949; }
  .sc-who { min-width: 0; line-height: 1.3; flex: 1; }
  .sc-name { font-weight: 700; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
  .sc-name .verified { color: var(--brand); }
  .sc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 5px; }
  .sc-sub .globe { width: 12px; height: 12px; color: var(--muted-2); }
  .sc-more { margin-left: auto; background: none; border: 0; cursor: default; color: var(--muted); padding: 4px; flex: 0 0 auto; }
  .sc-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 11px 5px 9px; border-radius: 999px; white-space: nowrap;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.22);
  }
  .sc-badge .pill-dot {
    width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px;
    background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18);
  }
  .badge--article   { background: var(--brand-grad); }
  .badge--blog      { background: var(--brand-grad); }
  .badge--facebook  { background: radial-gradient(circle at 28% 112%, #5ea2f6 0%, #1877f2 72%); }
  .badge--instagram { background: radial-gradient(circle at 28% 112%, #fdf497 0%, #fd5949 42%, #d6249f 62%, #285aeb 92%); }
  .badge--tiktok    { background: radial-gradient(circle at 24% 112%, #25f4ee 0%, #111 46%, #fe2c55 100%); }
  .badge--youtube   { background: radial-gradient(circle at 28% 112%, #ff6a6a 0%, #ff0000 72%); }

  .sc-caption {
    padding: 2px 15px 13px; white-space: pre-wrap; word-wrap: break-word;
    font-size: 14px; line-height: 1.5; color: var(--ink-2);
  }
  .sc-caption .cap-name { font-weight: 700; color: var(--ink); margin-right: 6px; }
  .sc-caption.is-empty .cap-text::before {
    content: var(--i18n-caption-empty); color: var(--muted-2); font-style: italic;
  }
  .sc-caption.fb-text { font-size: 15px; color: var(--ink); padding-bottom: 11px; }

  .caption-tools { padding: 0 15px 12px; }
  /* Delete confirmation modal */
  /* z-index jak .modal-overlay — potwierdzenie usunięcia też potrafi wyjść z otwartego
     kafelka i musi przykryć jego krzyżyk (121). */
  .rv-modal { position: fixed; inset: 0; z-index: 130; display: none; }
  .rv-modal.is-open { display: block; }
  .rv-modal-overlay { position: absolute; inset: 0; background: rgba(10,16,28,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  /* Okno uruchomienia testu niesie dziś cały zakup (zakres + zgoda), więc bywa wyższe niż
     niski laptop — stąd przewijanie W ŚRODKU okna zamiast ucinania przycisków poza ekranem.
     Krótkie okna (kasowanie) nie widzą z tego nic. */
  .rv-modal-dialog {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px)); box-sizing: border-box;
    max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px 24px 20px;
  }
  .rv-modal-title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; }
  /* Okno uruchomienia testu: tytuł na środku, bo jest nagłówkiem OFERTY, a nie pytaniem
     dopisanym nad przyciskami (modal kasowania zostaje przy wyrównaniu do lewej). */
  .rv-modal-title.is-centered { text-align: center; }
  .rv-modal-body { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
  .rv-modal-btns { display: flex; justify-content: flex-end; gap: 10px; }
  /* Dwa przyciski o przeciwnym znaczeniu rozjechane na boki: wyjście do cennika przy lewej
     krawędzi, uruchomienie przy prawej — obok siebie czytały się jak para równorzędnych. */
  .rv-modal-btns.is-split { justify-content: space-between; }
  /* Okno uruchomienia bezpłatnego testu: nagłówek na firmowym tle (pigułka „30 DNI ZA 0 ZŁ",
     tytuł, zdanie wstępne), pod nim WYBÓR zakresu (wiersz na pakiet i na każdy dodatek —
     nazwa plus zdanie o wolumenie, te same słowa co karta w Sklepie), a termin mniejszy na
     końcu: ma być czytelny, ale nie konkurować z tym, CO klient uruchamia. Błąd wygląda jak
     w formularzu sklepu (.shop-error). */
  .rv-modal-note { display: block; margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
  /* Pasek nagłówka wychodzi na całą szerokość okna, więc zjada jego górny padding ujemnymi
     marginesami. Rogów nie zaokrągla — `.rv-modal-dialog` ma `overflow-y: auto`, czyli
     przycina zawartość do własnego promienia. */
  .trial-dialog { padding-top: 0; }
  .trial-head {
    margin: 0 -24px 18px; padding: 20px 24px 16px; text-align: center;
    border-bottom: 1px solid var(--line-soft);
    background:
      radial-gradient(120% 150% at 50% -30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 72%),
      var(--card-soft);
  }
  /* Ta sama pigułka, którą karta Startera nosi jako wstążkę (`.tier-badge`) — okno sprzedaje
     dokładnie tę ofertę, więc mówi ją tym samym gradientem. */
  .trial-kicker {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
    padding: 5px 13px; border-radius: 999px; white-space: nowrap;
    background: linear-gradient(100deg, var(--brand), var(--accent)); color: #fff;
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 65%, transparent);
  }
  .trial-kicker-spark { font-size: 11px; animation: ib-spark 1.8s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) { .trial-kicker-spark { animation: none; } }
  .trial-head .rv-modal-title { font-size: 20px; margin: 0; }
  .trial-sub { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
  /* „Rozszerz plan" — nagłówek nad wierszami OPCJONALNYMI, dokładnie jak `.tier-extend-h`
     w karcie: dzięki niemu blog nad nim czyta się jako zawartość pakietu, a nie jako
     wybór, którego klient nie może zaznaczyć. */
  .trial-scope-h {
    margin: 16px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
  }
  .trial-scope { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
  /* Wiersz zakresu to ten sam obiekt co `.xrow` w karcie planu (ikona kanału w kolorowym
     kafelku, nazwa nad wolumenem), tylko większy — tutaj jest treścią okna, a nie dodatkiem
     na dole karty. Kolory kanałów biorą się z jednego miejsca, patrz `--ax` niżej. */
  .trial-scope-row {
    border: 1px solid var(--line); border-radius: 14px; background: var(--card);
    transition: border-color .18s, background .18s, box-shadow .18s;
  }
  .trial-scope-row:not(.is-fixed):hover { border-color: color-mix(in srgb, var(--ax) 45%, var(--line)); }
  .trial-scope-row.is-on {
    border-color: color-mix(in srgb, var(--ax) 55%, var(--line));
    background: color-mix(in srgb, var(--ax) 7%, var(--card));
  }
  /* Blog JEST pakietem, nie wyborem: wiersz nie ma checkboxa (tylko narysowany ptaszek
     `.xrow-box--static`, jak `base_row` w karcie) i nie reaguje na kursor. Wyszarzony,
     zablokowany checkbox czytał się jak kontrolka, która się zepsuła. */
  .trial-scope-row.is-fixed .trial-scope-label { cursor: default; }
  .trial-scope-label { display: flex; gap: 11px; align-items: center; padding: 11px 13px; cursor: pointer; }
  .trial-scope-row .xrow-box { width: 20px; height: 20px; }
  .trial-scope-ico {
    width: 30px; height: 30px; flex: none; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--ax);
  }
  .trial-scope-ico svg { width: 17px; height: 17px; }
  .trial-scope-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .trial-scope-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .trial-scope-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
  /* Platformy dodatku, dopisane do nazwy lżejszym krojem („Social media - Facebook,
     Instagram"). Dywiz rysuje CSS, nie katalog: tłumacz dostaje same nazwy platform i nie ma
     jak zgubić separatora ani wstawić własnego — a zapis zgadza się z „SEO - Blog firmowy",
     które stoi wierszem wyżej. */
  .trial-scope-where { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.25; }
  .trial-scope-where::before { content: "- "; }
  .trial-scope-vol { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
  /* Kreator: platformy dodatku jako małe znaczki przy nazwie (zamiast wypisanych nazw)
     i jedno zdanie o tym, co powstaje — pod wolumenem, lżejsze od niego. */
  /* Nagłówek wiersza (`.trial-scope-head`) wyrównuje do LINII BAZOWEJ — znaczki bez tekstu
     siadały na niej dolną krawędzią i stały wyżej niż środek nazwy. Wiersz ze znaczkami
     (`has-chans`) centruje więc wszystko w pionie: nazwa i znaczki mają jeden środek.
     Znaczek 16 px w pudełku 22 px — po 3 px z każdej strony, całe piksele: przy nieparzystej
     różnicy glif lądował na pół piksela, rozmyty i przesunięty. */
  .trial-scope-head.has-chans { align-items: center; }
  .trial-scope-chans { display: inline-flex; gap: 4px; margin-left: 2px; }
  .trial-scope-chan {
    width: 22px; height: 22px; border-radius: 6px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .trial-scope-chan svg { width: 16px; height: 16px; }
  .trial-scope-chan[data-chan="fb"] { background: #1877f2; }
  .trial-scope-chan[data-chan="ig"] { background: #d6249f; }
  .trial-scope-chan[data-chan="tt"] { background: #1f2937; }
  .trial-scope-chan[data-chan="yt"] { background: #ff0000; }
  :root[data-theme="dark"] .trial-scope-chan[data-chan="tt"] { background: #5b6884; }
  .trial-scope-example { font-size: 12px; line-height: 1.4; color: var(--muted-2); }
  /* „Zawsze w planie" — ta sama etykieta co na karcie (`.xrow-owned`), tu jako pigułka PRZY
     NAZWIE, bo to ona zastępuje zdjęty checkbox. Przy prawej krawędzi wiersza zabierała
     szerokość zdaniu o wolumenie i łamała je na dwie linie w jednym wierszu z trzech. */
  .trial-scope-tag {
    flex: none; padding: 2px 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--ax) 13%, transparent);
    font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: var(--ax);
  }
  /* Zgoda przeniesiona z formularza zamówienia: w oknie stoi ciaśniej niż na stronie, bo nad
     nią jest już cała treść decyzji. (Pole e-mail zniknęło stąd 2026-09-16 — adres bierzemy
     z karty domeny, patrz review.html §BEZPŁATNY TEST.) */
  .rv-modal-dialog .consent-field { margin: 12px 0 14px; }
  .rv-modal-error {
    font-size: 13px; color: var(--err); background: color-mix(in srgb, var(--err) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--err) 26%, transparent);
    border-radius: 10px; padding: 8px 10px; margin: 0 0 14px;
  }
  .btn.danger { background: var(--err); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px color-mix(in srgb, var(--err) 26%, transparent); }
  .btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--err) 88%, #000); box-shadow: 0 10px 26px color-mix(in srgb, var(--err) 40%, transparent); }
  .caption-input {
    width: 100%; box-sizing: border-box; resize: none; overflow: hidden; min-height: 120px;
    font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--ink-2);
    border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--card);
  }
  .caption-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ghost); }
  .caption-editor-btns { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .caption-editor-btns .btn { padding: 8px 16px; }
  .emoji-btn {
    appearance: none; cursor: pointer; font-family: inherit; font-size: 17px; line-height: 1;
    border: 1px solid var(--line); background: var(--card); border-radius: 999px;
    width: 34px; height: 34px; flex: 0 0 auto; margin-right: auto;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
  }
  .emoji-btn:hover { background: var(--brand-ghost); border-color: var(--brand-line); }
  .emoji-pop {
    position: fixed; z-index: 60; width: 300px; max-height: 300px; overflow: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 10px;
  }
  .emoji-pop[hidden] { display: none; }
  .emoji-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 10px 4px 6px; }
  .emoji-cat:first-child { margin-top: 2px; }
  .emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
  .emoji-grid button {
    appearance: none; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1;
    padding: 5px 0; border-radius: 8px; transition: background .12s;
  }
  .emoji-grid button:hover { background: var(--brand-ghost); }

  .sc-media { position: relative; background: #0c0d10; }
  .sc-media img, .sc-media video { display: block; width: 100%; }
  .sc-media.single img, .sc-media.single video { max-height: 600px; object-fit: contain; margin: 0 auto; }
  /* Zanim doleci metadata, <video> nie ma naturalnych proporcji i karta stoi w domyślnym
     prostokącie. `auto <ratio>` = użyj naturalnych, gdy będą znane, a do tego czasu 9:16
     (TikTok/YouTube generujemy pionowo) — dzięki temu kafelek nie skacze przy wczytaniu.
     Reel FB/IG to TEN SAM pionowy plik, więc ta sama reguła (`.is-reel` z `media_block`) — nie
     `.sc-media.reel` niżej, które wymiaruje kontener i przycina (`object-fit: cover`). */
  .social-card--tiktok .sc-media.single video,
  .social-card--youtube .sc-media.single video,
  .sc-media.single.is-reel video { aspect-ratio: auto 9 / 16; }

  .carousel { position: relative; }
  .carousel-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .carousel-track::-webkit-scrollbar { display: none; }
  /* `min-width: 0` NIE jest ozdobnikiem — bez niego slajd (flex item) dostaje domyślne
     `min-width: auto`, czyli „nie zejdę poniżej min-content swojej zawartości", a min-content
     `<img width:100%>` z `aspect-ratio` to NATURALNA szerokość pliku. Zdjęcie produktowe
     529px rozpychało wtedy slajd → tor → kartę → `.day-list` → `.wrap` → cały dokument do
     559px przy oknie 414px: na telefonie przeglądarka rozjeżdżała layout viewport i CAŁA
     strona (z banerem cookie włącznie) wyjeżdżała za prawą krawędź. Objaw zależał od zdjęć,
     więc łapał tylko część języków demo i wyglądał jak awaria samej zakładki Social. */
  .carousel-track > .slide { scroll-snap-align: center; flex: 0 0 100%; min-width: 0; }
  .carousel-track > .slide img, .carousel-track > .slide video {
    width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #0c0d10;
  }
  .carousel.story .carousel-track > .slide { flex: 0 0 100%; }
  .carousel.story .carousel-track > .slide img, .carousel.story .carousel-track > .slide video {
    aspect-ratio: 9 / 16; object-fit: cover;
  }
  .fb-carousel { background: var(--card); }
  .fb-ccard { background: var(--card); }
  .fb-carousel .carousel-track > .slide img, .fb-carousel .carousel-track > .slide video {
    aspect-ratio: 1 / 1; object-fit: cover; background: #0c0d10;
  }
  .fb-ccard-foot {
    background: var(--line-soft); padding: 10px 12px; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 2px;
  }
  /* Domena i nazwa produktu przychodzą ze sklepu klienta — bywają jednym niełamliwym
     ciągiem („EXAMPLE-SHOP.COM", niemieckie złożenia). `anywhere` łamie je zamiast
     podnosić min-content całej karty (patrz `min-width: 0` na slajdzie). */
  .fb-ccard-domain, .fb-ccard-name, .fb-ccard-desc { overflow-wrap: anywhere; }
  .fb-ccard-domain { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .fb-ccard-name {
    font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .fb-ccard-desc {
    font-size: 13px; color: var(--muted); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .car-counter {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    font-size: 12px; font-weight: 700; color: #fff;
    background: rgba(16,18,22,.62); backdrop-filter: blur(4px);
    padding: 4px 11px; border-radius: 999px; letter-spacing: .02em;
    opacity: 1; transition: opacity .2s;
  }
  .car-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.92); color: #1a1c22; box-shadow: 0 2px 8px rgba(0,0,0,.22);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .18s ease, transform .12s ease;
  }
  .car-arrow:hover { transform: translateY(-50%) scale(1.06); }
  .car-arrow.prev { left: 10px; }
  .car-arrow.next { right: 10px; }
  .car-arrow[disabled] { opacity: 0; pointer-events: none; }
  .car-dots {
    display: flex; justify-content: center; gap: 6px; padding: 11px 0 3px;
  }
  .car-dots .cdot {
    width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 26%, var(--line));
    transition: transform .2s, background .2s;
  }
  .car-dots .cdot.active { background: var(--brand); transform: scale(1.5); }

  .sc-actions-ig {
    display: flex; align-items: center; gap: 16px; padding: 10px 14px 4px; color: var(--ink);
  }
  .sc-actions-ig svg { width: 25px; height: 25px; cursor: default; }
  .sc-actions-ig .spacer { flex: 1; }
  .sc-actions-fb {
    display: flex; align-items: stretch; padding: 4px 6px; margin: 0 8px; border-top: 1px solid var(--line-soft);
  }
  .sc-actions-fb button {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: none; border: 0; cursor: default; padding: 9px 4px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); border-radius: 8px;
  }
  .sc-actions-fb button svg { width: 19px; height: 19px; }
  .sc-meta-fb {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 15px 2px; font-size: 12.5px; color: var(--muted);
  }
  .sc-meta-fb .reacts { display: inline-flex; align-items: center; gap: 6px; }
  .sc-meta-fb .react-ico {
    width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: #1877f2; box-shadow: 0 0 0 2px var(--card);
  }
  .sc-meta-fb .react-ico svg { width: 11px; height: 11px; }

  .sc-actions-tt { display: flex; align-items: center; gap: 16px; padding: 11px 14px 4px; color: var(--ink); }
  .sc-actions-tt .tt-act { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .sc-actions-tt svg { width: 23px; height: 23px; }
  .sc-actions-tt .spacer { flex: 1; }

  .sc-yt-title { padding: 11px 15px 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
  .sc-actions-yt { display: flex; align-items: center; gap: 8px; padding: 9px 14px 4px; flex-wrap: wrap; }
  .yt-likepill { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--ink) 5%, var(--card)); border-radius: 999px; }
  .yt-likepill .yt-like { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .yt-likepill .yt-like + .yt-like { border-left: 1px solid var(--line); }
  .yt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, var(--card)); font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .sc-actions-yt svg, .yt-likepill svg { width: 18px; height: 18px; }


  .empty {
    text-align: center; color: var(--muted); padding: 60px 20px; margin-top: 26px; max-width: 520px;
    margin-left: auto; margin-right: auto;
    background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  }
  .empty .ico { display: flex; justify-content: center; margin-bottom: 12px; color: var(--muted-2); }

  /* „Pusto" zamienione na „właśnie to robimy" — pusta zakładka w trakcie paczki powitalnej
     (markup: makro `empty_state` w review.html, `.brand-spin` z base.css).
     Kreska ciągła zamiast kropkowanej i markowa obwódka: kropkowana ramka to znak PUSTKI,
     a tu nic nie jest puste — materiały powstają w tej chwili. Poza tym karta ma wyglądać
     jak ta z ekranu instalacji, na którą klient patrzył minutę wcześniej.
     Kolumna, bo stan pusty to jedna linijka pod ikoną, a ten ma cztery elementy pod sobą. */
  /* Obie wersje treści siedzą w DOM-ie na stałe (`.empty-idle` / `.empty-working`), a przełącza
     je `hidden` z 03-onboarding.js — bez tego wersja „pracujemy" nie dałaby się włączyć bez
     przeładowania, a klient trafia do studia zwykle ZANIM paczka zapisze pierwszy stan. */
  .empty-idle { display: block; }
  /* Jak przy `.onb-banner[hidden]`: własne `display` zasłoniłoby `hidden`, więc w trakcie
     paczki pusta zakładka pokazywałaby OBIE wersje naraz („brak artykułów" + „pracujemy"). */
  .empty-idle[hidden] { display: none; }
  .empty.is-working {
    padding: 46px 24px; border-style: solid;
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  }
  .empty .empty-working { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .empty .empty-working[hidden] { display: none; }
  .empty .empty-working .brand-spin { --spin-size: 56px; margin-bottom: 16px; }
  .empty .empty-title { font-size: 17px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
  .empty .empty-sub { font-size: 13.5px; line-height: 1.6; max-width: 36ch; }
  /* Licznik („2 z 3") to jedyna twarda liczba na tej karcie — tabular-nums, żeby nie skakał,
     gdy poll podbije go o jeden. */
  .empty .empty-count {
    margin-top: 10px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--brand-strong); opacity: .9;
  }

  .toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
    background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px;
    font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease; z-index: 140;
    box-shadow: 0 12px 34px rgba(0,0,0,.3);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .masthead-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  .report-btn { flex: 0 0 auto; }
  .report-btn svg { width: 16px; height: 16px; }
  /* Merged top bar (onboarding progress + test-version banner) follows the scroll as ONE sticky
     element; the sticky topnav is pushed below it by its measured height (--topbar-h, set by the
     onboarding IIFE's syncTopbars). */
  .topbar { position: sticky; top: 0; z-index: 40; }
  .onb-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 12px clamp(16px, 4vw, 40px);
    background: var(--brand-ghost); border-bottom: 1px solid var(--brand-line);
    color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  }
  /* Bez tego `display: flex` z reguły wyżej BIJE `[hidden] { display: none }` z arkusza
     przeglądarki (arkusz autora wygrywa z UA niezależnie od specyficzności) — a od 2026-09-21
     oba wiersze belki (postęp i pitch) siedzą w DOM-ie NA STAŁE i chowa je właśnie `hidden`.
     Efekt: pusty wiersz „Przygotowujemy Twoje materiały" (bez spinnera i bez licznika, bo te
     wybiera `data-onb-status`, a on jest pusty) wisiał nad panelem KAŻDEGO klienta, któremu
     belka się w ogóle renderuje. Ta sama pułapka co `.empty-working[hidden]` wyżej. */
  .onb-banner[hidden] { display: none; }
  .onb-banner.is-error {
    background: var(--err-bg);
    border-bottom-color: color-mix(in srgb, var(--err) 30%, var(--card));
    color: var(--err);
  }
  .onb-banner.is-success {
    background: var(--ok-bg);
    border-bottom-color: color-mix(in srgb, var(--ok) 30%, var(--card));
    color: var(--ok);
  }
  /* Public demo (/preview) AND the test-version row: the brand gradient, because this row is the
     only piece of MARKETING on either page — it says "this is a showcase" / "activate the free
     30-day pack" and must not be mistaken for one of the client-facing notices above it. The test
     row used to have its own amber `.is-test` skin; both rows now wear this one. Mirrored by
     .test-banner.is-demo in settings.css — keep the two in sync. */
  .onb-banner.is-demo, .test-banner.is-demo {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-bottom-color: transparent; color: #fff;
  }
  .onb-banner.is-demo .onb-sub, .test-banner.is-demo .onb-sub { opacity: .86; }
  /* The old price in the test row's offer ("0 zł zamiast <s>474 zł</s>"): struck through and
     stepped back, so the free price is what the eye lands on. Mirrored in settings.css. */
  .onb-sub s, .test-msg s { opacity: .8; text-decoration-thickness: 1.5px; }
  /* Inverted CTA: on the gradient a --brand button disappears into the background. */
  .onb-banner.is-demo .demo-cta, .test-banner.is-demo .demo-cta {
    background: #fff; color: var(--brand); font-weight: 800;
  }
  .onb-banner.is-demo .demo-cta:hover, .test-banner.is-demo .demo-cta:hover { background: #fff; opacity: .9; }
  .onb-flask { flex: none; font-size: 15px; line-height: 1; }
  /* ✕ on one-off rows (Shopify billing result): inherits the row's colour, so it reads on the
     success, error and neutral skins alike. */
  .onb-close {
    flex: none; margin-left: auto; padding: 4px 8px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; opacity: .7;
  }
  .onb-close:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
  /* Test-row CTA — identical to the settings page banner button (keep the two in sync). */
  .test-cta { flex: none; margin-left: auto; padding: 7px 16px; font-size: 13px; white-space: nowrap; background: var(--brand); color: #fff; border-color: transparent; }
  /* "Twój plan: <nazwa>" + its CTA, right-aligned in the tab row (where the Sklep tab used to be). */
  .nav-plan { display: flex; align-items: center; gap: 9px; margin-left: auto; padding-left: 18px; }
  .nav-plan-label { font-size: 12.5px; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
  .nav-plan-value { font-size: 13.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
  .nav-plan-value.is-set { color: var(--brand-strong); }
  /* Bezpłatny test — jeden z pięciu stanów chipa, więc jest SAMĄ wartością, a nie plakietką
     doklejoną obok niej. Pigułka (tło + obramowanie) stała tuż obok przycisku „Zobacz plany"
     i czytała się jak drugi przycisk — a to jest odczyt, nie kontrolka. Zostaje więc sam
     ok-owy kolor: ta sama typografia co każdy inny stan chipa, tylko na zielono. */
  .nav-plan-value.is-trial { color: var(--ok); cursor: default; }
  .nav-plan-cta { padding: 7px 14px; font-size: 12.5px; white-space: nowrap; }
  /* Prominent animated "activate plan" CTA — the no-plan-yet variant. */
  .ib-plan-cta {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap;
    color: #fff; text-decoration: none; position: relative; overflow: hidden;
    background: linear-gradient(100deg, var(--brand), var(--accent));
    box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--brand) 60%, transparent);
    transition: transform .18s cubic-bezier(.22,.8,.3,1), box-shadow .18s;
  }
  .ib-plan-cta:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 8px 20px -5px color-mix(in srgb, var(--brand) 70%, transparent); }
  .ib-plan-cta:active { transform: translateY(0) scale(.99); }
  /* Shine sweep across the pill. */
  .ib-plan-cta::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-18deg); animation: ib-shine 3.4s ease-in-out infinite;
  }
  @keyframes ib-shine { 0%,18% { left: -60%; } 42%,100% { left: 130%; } }
  .ib-plan-spark { font-size: 12px; animation: ib-spark 1.8s ease-in-out infinite; }
  @keyframes ib-spark { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.35) rotate(20deg); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .ib-plan-cta::after, .ib-plan-spark { animation: none; } }
  .infobars .client-card { align-items: center; }
  .onb-msg { flex: 1 1 auto; }
  /* Two-line row (headline + sub), used by the demo banner. */
  .onb-banner-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
  .onb-banner-text .onb-msg { flex: none; }
  .onb-sub { font-size: 12.5px; font-weight: 600; opacity: .82; }
  /* Progress row (back on 2026-09-18 with the media agent's install bundle). `.onb-check` is
     SCOPED to `.onb-banner` on purpose: unscoped, it leaked into the wizard's consent checkbox
     — the leak static/css/onboarding/shell.css warns about. `.onb-banner-cta` did NOT come
     back with it: this row has no button in any state (no "generate the next one", no retry).

     **The glyph is chosen by CSS off `data-onb-status`, not by the template.** Since 2026-09-21
     the row is ONE element that `03-onboarding.js` rewrites in place (so it can appear and update
     with no reload), which means both glyphs are always in the DOM and exactly one is shown.
     Anything else here — colours, the sub line, the count — is driven the same way. */
  .onb-banner .onb-check { flex: none; font-weight: 800; font-size: 15px; line-height: 1; }
  .onb-banner .onb-spin,
  .onb-banner .onb-check { display: none; }
  .onb-banner[data-onb-status="generating"] .onb-spin { display: block; }
  .onb-banner[data-onb-status="done"] .onb-check { display: block; }
  .onb-count { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; opacity: .8; }
  /* Ten sam pierścień co na ekranie instalacji i w pustej zakładce (`.brand-spin`, base.css),
     tylko zmniejszony do wysokości paska — belka nie ma własnej animacji do utrzymania. */
  .onb-banner .onb-spin { --spin-size: 16px; flex: none; }
  /* The onboarding OVERLAY's own styles (card, steps, e-mail row, consent box) live in
     static/css/onboarding/{shell,steps}.css — they are shared with the settings page and are
     nothing to do with this page's banners. Only the `.onb-banner` topbar rows above belong
     here. */

  .day-list { display: block; }
  .day-section { margin-bottom: 4px; }
  .day-list .section-title { display: none; }


  .masthead-sub { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }

  /* /preview masthead: copy left, marketplace call-out + chips in the right half of the same
     band (bottom-aligned to the pitch line) — stacking them under the copy pushed everything
     below the masthead down for nothing. Phones stack + left-align it in the 560px block. */
  .masthead-title.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; }
  .masthead-title.split .mt-copy { min-width: 0; }
  .plat-promo { text-align: right; flex: 0 0 auto; }
  .plat-promo .plat-cta { font-size: 13.5px; }
  /* 2×2 grid rather than a wrapping row: four chips in one line are wider than the pitch
     line to their left, and any width change (a longer locale label) reflowed the copy.
     The block is a fixed two-column shape instead, pinned to the right edge; chips stretch
     to their column and center their content so the edges stay flush. */
  .plat-promo .plat-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: end; margin-top: 8px;
  }
  .plat-promo .plat-link { justify-content: center; }

  /* Marketplace chips under the masthead subtitle — /preview only (see review.html).
     The plate stays white in BOTH themes on purpose: these are third-party wordmarks with
     baked-in near-black glyphs (IdoSell), so they can't inherit the page's ink. */
  .plat-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
  .plat-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; text-decoration: none;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .plat-link:hover {
    transform: translateY(-1px); box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  }
  .plat-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .plat-link-mark { height: 14px; width: auto; }
  /* The WordPress mark is square; the WooCommerce badge is a wide 24×5.24 strip (its SVG is
     cropped to the ink), so both are sized by width and left to keep their own ratio. */
  .plat-link-ico { width: 14px; height: auto; }
  .plat-link-ico.wide { width: 19px; }
  .plat-link-txt { font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; color: #171717; white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { .plat-link:hover { transform: none; } }

  .cc-accounts { display: inline-flex; flex-wrap: wrap; gap: 5px 14px; }
  .cc-acct { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
  .cc-acct-ico { width: 15px; height: 15px; display: flex; flex: 0 0 15px; }
  .cc-acct-ico.fb { color: #1877f2; }
  .cc-acct-ico.ig { color: #d6249f; }
  .cc-acct-ico.tt { color: var(--ink); }
  .cc-acct-ico.yt { color: #ff0000; }
  .cc-none { font-size: 14px; font-weight: 600; color: var(--muted-2); font-style: italic; }

  .topnav {
    position: sticky; top: var(--topbar-h, 0px); z-index: 20;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .navbar { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; }
  .nav-btn {
    appearance: none; border: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 20px; font-size: 15px; font-weight: 700; white-space: nowrap; flex: none;
    color: var(--muted); background: transparent; border-bottom: 3px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
  }
  .nav-btn .nav-ico { width: 18px; height: 18px; display: flex; flex: 0 0 18px; color: var(--acc); }
  .nav-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
  .nav-btn[data-tab="blog"]   { --acc: #1f86c9; --acc-soft: #289be5; }
  .nav-btn[data-tab="social"] { --acc: #c026a6; --acc-soft: #d6249f; }
  .nav-btn[data-tab="video"]  { --acc: #e11d48; --acc-soft: #ff5858; }
  /* Harmonogram: fiolet, jedyny kolor marki bez zakładki; w ciemnym motywie jaśniejszy, bo
     #7c3aed na --card ma ~3:1, a #a78bfa ~6:1. */
  .nav-btn[data-tab="plan"]   { --acc: #7c3aed; --acc-soft: #9747ff; }
  :root[data-theme="dark"] .nav-btn[data-tab="plan"] { --acc: #a78bfa; }
  /* Pasek zakładek (bez `.nav-plan`). Etykiety nigdy się nie łamią: gdy zakładki nie mieszczą się
     obok pakietu, pasek przewija się w bok z wygaszoną krawędzią po stronie, gdzie coś jest
     schowane (02-main.js: .fade-start/.fade-end) — na każdej szerokości, nie tylko ≤720 px.
     Wcześniej powyżej 720 px przyciski się ściskały i „Social Media" łamało się na dwie linie
     (pięć zakładek zespołu: + Harmonogram i Statystyki), a w 721–960 px część zakładek ginęła. */
  .nav-tabs {
    position: relative; display: flex; align-items: stretch; min-width: 0;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs.fade-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .nav-tabs.fade-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
  .nav-tabs.fade-start.fade-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
  /* Pięć zakładek (widok zespołu) mieści się obok pakietu w 1040 px dopiero z węższym odstępem. */
  @media (min-width: 721px) {
    .nav-tabs:has(> button:nth-of-type(5)) > .nav-btn { padding-left: 15px; padding-right: 15px; }
  }
  .nav-label-short { display: none; }
  .nav-btn.is-active { color: var(--acc); border-bottom-color: var(--acc-soft); background: color-mix(in srgb, var(--acc-soft) 10%, transparent); }
  .nav-count {
    font-size: 11.5px; font-weight: 800; min-width: 19px; height: 19px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
    background: color-mix(in srgb, var(--acc-soft) 15%, var(--card)); color: var(--acc);
  }
  .nav-btn.is-active .nav-count { background: color-mix(in srgb, var(--acc-soft) 22%, var(--card)); }
  .nav-soon {
    font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted-2); background: color-mix(in srgb, var(--ink) 7%, var(--card)); padding: 2px 6px; border-radius: 6px;
  }
  .infobars { border-top: 1px solid var(--line-soft); }
  .infobars[hidden] { display: none; }
  .infobars .client-card {
    display: none;
    max-width: 1040px; margin: 0 auto; padding: 12px 20px;
    border: 0; border-radius: 0; box-shadow: none; background: transparent;
  }
  .infobars .client-card.is-active { display: flex; }
  /* „Case study" — obwódkowy przycisk marki na prawym końcu paska informacji, pod przyciskiem
     planu z paska zakładek. Wypełnienie jest PRZEZROCZYSTE (nie `--card`): pasek informacji
     sam nie ma tła, a biały prostokąt zrobiłby z linku kafel wyższy od otaczających go
     odczytów. Kolor niesie więc sama obwódka i tekst — to jedyny niebieski akcent w tym
     pasku, bo jedyny link, który wyprowadza poza panel. */
  .cc-case-cta {
    margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
    color: var(--brand-strong); background: transparent;
    border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
    transition: background .15s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  }
  .cc-case-cta svg { width: 14px; height: 14px; flex: 0 0 14px; }
  /* Platformy to jedyny odczyt o zmiennej szerokości (w Wideo z Reels: cztery pigułki), więc
     w naturalnym rozmiarze zjeżdżał do drugiego wiersza i „Case study" zostawał tam sam.
     flex-basis:0 trzyma go w PIERWSZYM wierszu — bierze to, co zostaje przed przyciskiem,
     a pigułki łamią się we własnej kolumnie (ten sam układ co karta klienta w ustawieniach). */
  .infobars .cc-item--platforms { flex: 1 1 0; min-width: 150px; }
  .cc-case-cta:hover {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border-color: var(--brand); transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 14%, transparent);
  }
  .cc-case-cta:active { transform: translateY(0) scale(.985); box-shadow: none; }
  @media (prefers-reduced-motion: reduce) { .cc-case-cta { transition: none; } }

  .subbar {
    margin: 18px 0 16px; padding: 10px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  }
  .subbar[hidden] { display: none; }
  .subbar-left { justify-self: start; display: flex; align-items: center; min-width: 0; }
  .subbar-center { justify-self: center; }
  .subbar-right { justify-self: end; }
  .view-count { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .view-count .vc-ico { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 15px; }

  .seg { display: inline-flex; background: color-mix(in srgb, var(--ink) 5%, var(--card)); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
  .seg-btn {
    appearance: none; border: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
    color: var(--muted); background: transparent; transition: color .15s, background .15s, box-shadow .15s;
  }
  .seg-btn:hover { color: var(--ink-2); }
  .seg-btn.is-active { color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }
  .seg-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
  .seg-btn[data-status="pending"] .seg-dot { background: var(--warn); }
  .seg-btn[data-status="published"] .seg-dot { background: var(--ok); }
  .seg-count { font-size: 11px; font-weight: 800; color: var(--muted-2); min-width: 12px; }
  .seg-btn.is-active .seg-count { color: var(--muted); }

  /* Przełącznik widoku listy blogowej — ten sam komponent co filtr statusu po prawej. */
  .view-seg { margin-right: 10px; }
  .view-seg[hidden] { display: none; }
  .view-seg .seg-btn { padding: 7px 11px; gap: 6px; }
  .view-seg .seg-ico { width: 15px; height: 15px; flex: 0 0 15px; display: block; }
  .view-seg .seg-ico svg { width: 100%; height: 100%; display: block; }

  .daynav { display: inline-flex; align-items: stretch; background: var(--card); border: 1px solid var(--brand-line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .daynav-arrow {
    appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--brand-strong);
    padding: 0 16px; display: inline-flex; align-items: center; transition: background .15s, color .15s;
  }
  .daynav-arrow:hover:not(:disabled) { background: var(--brand-ghost); }
  .daynav-arrow:disabled { color: var(--muted-2); opacity: .4; cursor: default; }
  .daynav-arrow svg { width: 21px; height: 21px; }
  .daynav-label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 9px 26px; min-width: 200px; text-align: center;
    border-left: 1px solid var(--brand-line); border-right: 1px solid var(--brand-line);
  }
  .daynav-date { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
  .daynav-idx { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
  .daynav[hidden] { display: none; }

  /* Reused by connect_notice() (the "link an account" card). */
  .report-placeholder {
    padding: 56px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .report-placeholder .rp-ico { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--brand-ghost); color: var(--brand-strong); }
  .report-placeholder h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
  .report-placeholder p { margin: 0; max-width: 440px; color: var(--muted); font-size: 15px; line-height: 1.55; }

  /* --- Shop tab (subscription tiers + contact form) --- */
  .shop-wrap { max-width: 1040px; margin: 8px auto 0; }
  .shop-head { text-align: center; margin-bottom: 26px; }
  .shop-head h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
  .shop-head p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.55; }
  /* Currency picker: a quiet inline row under the subtitle, never a section of its own —
     the panel's job is to sell a package, and most clients never touch this. The control
     itself is the shared .lang-select pill (base.css). */
  .shop-cur { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; }
  .shop-cur-label { font-size: 13px; font-weight: 600; color: var(--muted); }
  .shop-cur-select { font-size: 12.5px; padding-block: 7px; }
  /* Shopify subscription row: same quiet inline row as the currency picker — state on the
     left, the cancel action on the right, wrapping under each other on a phone. */
  .shop-sub { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 16px; }
  .shop-sub-text { font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .shop-sub-text.is-warn { color: var(--warn); max-width: 520px; line-height: 1.5; }
  /* Anulowanie to działanie nieodwracalne dla bieżącej subskrypcji — czerwone, żeby nie
     czytało się jak kolejny przycisk „wybierz". */
  .shop-sub-cancel {
    font-size: 13px; padding: 8px 16px; font-weight: 700;
    background: #e1306c; border-color: #e1306c; color: #fff;
  }
  .shop-sub-cancel:hover:not(:disabled) { background: color-mix(in srgb, #e1306c 86%, #000); border-color: transparent; color: #fff; }
  /* Aktywna subskrypcja: ta sama plakietka co „anulowana" niżej, w kolorach `--ok`. */
  .shop-sub-active {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
    background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
    border-radius: 999px; color: var(--ok); font-size: 14px; font-weight: 700; line-height: 1.4;
  }
  .shop-sub-active .shop-sub-ico { color: var(--ok); }
  /* Subskrypcja anulowana „do końca okresu": plakietka w kolorach ostrzeżenia, żeby termin
     końca pakietu był pierwszą rzeczą, jaką klient widzi w zakładce. */
  .shop-sub-ending {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
    background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px;
    color: var(--warn-ink); font-size: 14px; font-weight: 700; line-height: 1.4; text-align: left;
  }
  .shop-sub-ending strong { font-weight: 800; color: var(--warn); white-space: nowrap; }
  .shop-sub-ico { flex: none; width: 18px; height: 18px; color: var(--warn); }
  .tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; padding-top: 12px; }
  /* Drops to one column early (900, not 760): the cards now carry the add-on rows, and a
     narrower card wraps the row's price onto its own line. */
  @media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }
  .tier-card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); padding: 38px 20px 22px; overflow: hidden; isolation: isolate;
    transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s, border-color .22s;
    /* `backwards`, NOT `both`: a filled-forwards animation keeps its final `transform: none`
       applied for good, which silently killed the featured card's scale and every hover lift
       (an animation's own value beats a normal declaration). */
    animation: tier-in .5s cubic-bezier(.22,.8,.3,1) backwards; animation-delay: calc(var(--i, 0) * 90ms);
  }
  @keyframes tier-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  /* Gradient accent strip along the top edge + a soft radial glow bloom behind the icon. */
  .tier-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 1;
    background: linear-gradient(90deg, var(--tier-a), var(--tier-b));
  }
  .tier-card::after {
    content: ""; position: absolute; top: -40px; left: 50%; width: 200px; height: 140px; z-index: -1;
    transform: translateX(-50%); border-radius: 50%; opacity: .14; filter: blur(26px);
    background: radial-gradient(circle, var(--tier-b), transparent 70%);
  }
  .tier-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--tier-a) 65%, transparent), var(--shadow); border-color: color-mix(in srgb, var(--tier-a) 40%, var(--line)); }
  .tier-card.is-featured { border-color: color-mix(in srgb, var(--tier-a) 55%, var(--line)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tier-a) 45%, transparent), var(--shadow); }
  @media (min-width: 901px) { .tier-card.is-featured { transform: scale(1.04); } .tier-card.is-featured:hover { transform: translateY(-6px) scale(1.04); } }
  /* Centred on the top edge (the card clips its own corners, so the pill keeps a flat top
     and rounds only downwards) — every tier card reserves the same padding-top for it. */
  .tier-badge {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--tier-a), var(--tier-b)); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    padding: 6px 14px 5px; border-radius: 0 0 999px 999px; white-space: nowrap;
    box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--tier-a) 70%, transparent);
  }
  .tier-badge:not(.tier-badge--current)::before { content: "★ "; }
  /* The tier the client is already on: ribbon + ring inherit THAT tier's own gradient (the old
     flat green read as a status sticker bolted onto the card rather than part of it). */
  .tier-badge--current { box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--tier-a) 70%, transparent), inset 0 0 0 1px rgba(255,255,255,.35); }
  .tier-card.is-current { border-color: color-mix(in srgb, var(--tier-a) 55%, var(--line)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tier-a) 45%, transparent), var(--shadow); }
  /* Keep the "current plan" label at full contrast — the old opacity fade made it unreadable. */
  .tier-card .tier-pick[disabled] { opacity: 1; cursor: default; box-shadow: none; color: var(--ink); font-weight: 700; }
  /* `flex: 0 0 auto` is load-bearing: this chip is a flex CHILD in both places it appears, and
     in `.ex-head` (a row) it sits next to the add-on volume line, which is long enough to shrink
     a default `flex-shrink: 1` chip to ~30px wide while `height` stays 46 — a squashed rectangle.
     The blog explainer never showed it only because it has no volume line to compete with. */
  .tier-ico {
    width: 46px; height: 46px; flex: 0 0 auto;
    border-radius: 13px; display: flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, var(--tier-a), var(--tier-b));
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--tier-a) 75%, transparent);
    transition: transform .3s cubic-bezier(.22,.8,.3,1);
  }
  .tier-ico svg { width: 24px; height: 24px; }
  .tier-card:hover .tier-ico { transform: rotate(-6deg) scale(1.08); }
  .tier-name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
  .tier-price {
    font-size: 30px; font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(120deg, var(--tier-a), var(--tier-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .tier-per { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; -webkit-text-fill-color: var(--muted); }
  .tier-perks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
  .tier-perks li { position: relative; padding-left: 27px; font-size: 14px; line-height: 1.4; }
  .tier-perks li::before {
    position: absolute; left: 0; top: -1px; width: 19px; height: 19px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1;
  }
  .tier-perks li.ok { color: var(--ink-2); }
  .tier-perks li.ok::before { content: "✓"; color: var(--tier-a); background: color-mix(in srgb, var(--tier-a) 15%, transparent); }
  .tier-perks li.no { color: var(--muted-2); }
  .tier-perks li.no::before { content: "×"; color: var(--muted-2); background: color-mix(in srgb, var(--muted) 14%, transparent); }
  .tier-pick { width: 100%; justify-content: center; margin-top: 6px; }
  /* THE one filled button on the panel: the tier the client is about to order. Every pick
     button ships as a `.btn.secondary` outline and `.is-accent` moves between them (server:
     the tier_pick macro, live: 07-shop.js `render()`), so choosing Starter takes the fill
     OFF the featured card instead of lighting a second one — and the card the client already
     pays for never gets it at all. One class heavier than the base.css `.btn.secondary`
     rules it overrides, hover included (that one would otherwise repaint it white). */
  .tier-card .tier-pick.is-accent {
    background: linear-gradient(90deg, var(--tier-a), var(--tier-b));
    border-color: transparent; color: #fff;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--tier-a) 60%, transparent);
  }
  .tier-card .tier-pick.is-accent:hover:not(:disabled) {
    background: linear-gradient(90deg, var(--tier-b), var(--tier-a));
    border-color: transparent; color: #fff;
  }
  /* `.btn.secondary::after` kills the shine sweep — the accent is a primary button in all but
     class name, so it gets it back (and gives it up again with reduced motion, like .btn). */
  .tier-card .tier-pick.is-accent::after { display: block; }
  @media (prefers-reduced-motion: reduce) {
    .tier-card .tier-pick.is-accent::after { display: none; }
  }

  /* --- Entry tier's free first month (tier_card `free_month`) ---
     A badge alone next to a live price reads as decoration, so the PRICE carries the offer:
     the monthly amount struck through, 0 beside it, and one line saying when billing starts.
     The struck number drops the block's gradient text-fill for a flat colour — a
     transparent-on-gradient number with a rule through it is unreadable at 30px. `.tier-now`
     keeps `color: transparent` (inherited) so the parent's clipped gradient still paints it.
     Kolor to `--ink-2`, NIE `--muted`: przekreślona kwota jest połową oferty („zamiast 450 zł
     — 0 zł"), a w szarości `--muted` gasła obok wielkiego zera i klient nie widział, ile
     właściwie dostaje za darmo. Kreska idzie pełnym `--warn` (wcześniej 80% w przezroczystość,
     czyli jeszcze bledziej) i `skip-ink: none`, żeby była JEDNĄ ciągłą linią — przerwana na
     cyfrach czytała się jak artefakt renderowania, a nie jak przekreślenie. */
  .tier-price.is-free { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
  .tier-was {
    font-weight: 700; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2);
    text-decoration: line-through; text-decoration-thickness: 2px;
    text-decoration-color: var(--warn); text-decoration-skip-ink: none;
  }
  .tier-price .tier-was { font-size: 19px; }
  .tier-price.is-free .tier-per { margin-left: 0; }
  .tier-free-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
  /* Ten sam wiersz w kartach bez bezpłatnego miesiąca niesie zdanie o progu (§HTML). Jest to
     tekst opisowy, nie oferta, więc idzie w `--muted` — obok ceny nie może z nią konkurować. */
  .tier-free-note.is-desc { color: var(--muted); }
  /* Karty jako SUBGRID: ikona, nazwa, cena, notka, pigułka wolumenu, rozszerzenia, suma i
     przycisk siedzą w tych samych wierszach we WSZYSTKICH trzech kartach. Bez tego notka
     (w karcie 1 „pierwszy miesiąc gratis", w pozostałych zdanie o progu — teksty różnej
     długości) spychała u siebie resztę w dół, a cena w wariancie `is-free` jest
     trzywierszowa, więc rozjazd był podwójny. Wiersz zawsze ma wysokość najwyższej z trzech
     kart. Liczba dzieci karty (8) MUSI zgadzać się z liczbą wierszy; `.tier-badge` jest
     absolutny, więc nie jest itemem gridu i się nie liczy.
     `row-gap` na siatce zastępuje wewnętrzny `gap: 12px` karty.
     MIEJSCE TEGO BLOKU JEST CELOWE — stał wcześniej NAD `.tier-card`, więc reguła o tej samej
     specyficzności, dalej w pliku, cofała mu `display: grid`: karty zostawały flexem i
     rozjeżdżały się dokładnie tak, jak subgrid miał temu zapobiec. Media query nie podbija
     specyficzności — ten blok musi zostać PO nich. */
  @supports (grid-template-rows: subgrid) {
    @media (min-width: 901px) {
      .tier-grid { grid-template-rows: repeat(8, auto); row-gap: 12px; column-gap: 20px; }
      .tier-card { display: grid; grid-template-rows: subgrid; grid-row: 1 / -1; gap: 0; }
      /* `gap: 0` zjada odstęp, który na wąskim ekranie daje flex karty: bez tego kreska nad
         „Razem" przylegała do dolnej krawędzi ostatniego wiersza dodatku. */
      .tier-extend { padding-bottom: 12px; }
    }
  }
  .tier-total-value.is-free { display: inline-flex; align-items: baseline; gap: 7px; }
  .tier-total-value .tier-was { font-size: 16px; }
  /* The trial covers the add-ons too, so their rows are struck the same way. Stacked, not
     inline: the row price shares a grid track with the channel name, and "+150 zł 0 zł" on
     one nowrap line pushed the name column out of the card on the narrow breakpoint.
     Obie liczby stoją w rozmiarze CENY wiersza (16px), więc hierarchię niesie kolor i grubość
     (ink-2/700 „było" pod ink/800 „jest"), nie stopień pisma — to właśnie przekreślona kwota
     miała być wreszcie czytelna, a zdrobniona wracała tam, skąd ją wyciągnęliśmy.
     Przy dwóch liniach po 16px `gap: 1px` sklejał je w jedną pomyloną liczbę: stąd 3px i
     ciaśniejsza interlinia, żeby stos urósł o odstęp, a nie o światło wewnątrz linii.
     Grubość kreski zostaje dziedziczona (2px z `.tier-was`) — override na 1.5px był pisany
     pod 11px i przy 16px robił z przekreślenia włos. */
  .xrow-price.is-free {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 3px; line-height: 1.15;
  }
  .xrow-price .tier-was { font-size: 16px; }
  .xrow-now { font-size: 16px; font-weight: 800; color: var(--ink); }

  /* Volume is the ONLY thing that differs between base tiers, so it gets its own block
     rather than a bullet: the monthly article count leads, the cadence explains it. */
  .tier-volume {
    margin-top: 2px; padding: 12px 14px; border-radius: 13px; flex: 0 0 auto;
    background: color-mix(in srgb, var(--tier-a) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier-a) 22%, transparent);
    display: flex; flex-direction: column; gap: 3px;
  }
  .tier-volume-n { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
  /* --- What the package is made of: the blog row + the add-on checkboxes, in every card ---
     The pick is global (ticking one row ticks it in all three cards); what differs per card
     is the PRICE, because add-ons cost more on bigger tiers.
     This block must NOT be bottom-pinned. The cards are `align-items: stretch`, so they all
     take the tallest card's height; a `margin-top:auto` here collected every pixel of a
     card's leftover height into ONE gap — the one between the volume pill and the blog row.
     Cards whose extend block is shorter (no `.xrow-owned` line, because nothing in them is
     the client's current add-on) got a visibly bigger hole than the owned tier. The bottom
     alignment that was wanted belongs to `.tier-total` instead, which carries it now. */
  .tier-extend { padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
  /* "Rozszerz pakiet" — a header for the OPTIONAL rows only, hence below the blog row. */
  .tier-extend-h { margin-top: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
  .xrow {
    display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 9px;
    padding: 9px 11px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line); background: transparent;
    transition: border-color .18s, background .18s, box-shadow .18s;
  }
  .xrow:hover { border-color: color-mix(in srgb, var(--ax) 45%, var(--line)); }
  .xrow.is-on { border-color: color-mix(in srgb, var(--ax) 55%, var(--line)); background: color-mix(in srgb, var(--ax) 8%, transparent); }
  /* `.is-owned` MARKS what the client already pays for — it does not lock the row. */
  .xrow--base { cursor: default; }
  /* Kolory kanałów — jedno miejsce dla karty planu i dla okna bezpłatnego testu
     (`.trial-scope-row`), bo w obu ten sam kanał ma być tym samym kolorem. */
  .xrow[data-addon-row="blog"], .trial-scope-row[data-scope="blog"] { --ax: #289be5; }
  .xrow[data-addon-row="social"], .trial-scope-row[data-scope="social"] { --ax: #e1306c; }
  .xrow[data-addon-row="video"], .trial-scope-row[data-scope="video"] { --ax: #7c3aed; }
  /* The blog row is the package itself, not an extra: it sits ABOVE the "Rozszerz pakiet"
     header, and its price has no leading "+". */
  .xrow--base { margin-bottom: 2px; }
  /* Shopify: blog + Social Media w JEDNYM boxie (base_row z `social_n`). Dwa podwiersze
     z kreską między nimi, cena progu w osobnej kolumnie za pionową kreską, „Zawsze
     w planie" pod poziomą. Ramka w gradiencie marki (blog → fiolet), bo box niesie oba
     kanały, a nie kolor jednego z nich.
     Dodatki pod nim (`.xrow--split`, Wideo) mają ten sam podział: kolumna ceny o STAŁEJ
     szerokości `--xrow-price-w` za pionową kreską, więc kreski i ceny obu boxów stoją
     w jednej linii niezależnie od długości kwoty. */
  .tier-extend { --xrow-price-w: 74px; }
  .xrow--combo, .xrow--combo.is-on, .xrow--combo:hover {
    grid-template-columns: 1fr var(--xrow-price-w); align-items: stretch; gap: 0; padding: 4px 12px 10px;
    border: 1px solid transparent;
    background:
      linear-gradient(color-mix(in srgb, #289be5 7%, var(--card)), color-mix(in srgb, #9747ff 7%, var(--card))) padding-box,
      linear-gradient(135deg, #289be5, #9747ff) border-box;
  }
  .xrow-subs { display: flex; flex-direction: column; min-width: 0; padding-right: 10px; }
  .xrow-sub { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; padding: 9px 0; }
  .xrow-sub + .xrow-sub { border-top: 1px solid var(--line); }
  .xrow-sub--social { --ax: #e1306c; }
  .xrow--split { grid-template-columns: auto auto 1fr var(--xrow-price-w); column-gap: 9px; row-gap: 0; padding: 4px 12px; }
  .xrow--split > .xrow-id { padding: 9px 0; }
  /* Kwota i symbol w jednej linii, „/ mies." pod nimi, całość wyśrodkowana w kolumnie —
     flex-wrap zamiast kolumny, bo w kolumnie liczba i symbol waluty lądowały w osobnych
     liniach. */
  .xrow--combo > .xrow-price, .xrow--split > .xrow-price {
    align-self: stretch; box-sizing: border-box;
    display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
    padding-left: 10px; border-left: 1px solid var(--line);
  }
  /* Odstęp przed symbolem waluty jako margines: w flexie spacja z szablonu znika, a column-gap
     rozpychał też „+” od kwoty („+ 39 $”). */
  .xrow--combo > .xrow-price > [data-cur], .xrow--split > .xrow-price > [data-cur] { margin-left: .25em; }
  .xrow--combo > .xrow-price { font-size: 18px; }
  .xrow--split > .xrow-price.is-free { flex-direction: column; align-items: center; flex-wrap: nowrap; justify-content: center; }
  .xrow--combo > .xrow-price .xrow-per, .xrow--split > .xrow-price .xrow-per { flex-basis: 100%; text-align: center; }
  .xrow--combo > .xrow-owned {
    margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--line); color: #9747ff;
  }
  .xrow--split > .xrow-owned, .xrow--split > .xrow-drop {
    padding: 8px 0 6px; border-top: 1px solid var(--line);
  }
  /* Dodatek wliczony w podstawę (Shopify: Social): zamiast ceny „w cenie" — kwota siedzi już
     w cenie progu w wierszu wyżej, więc liczba tutaj liczyłaby ją drugi raz. */
  .xrow-price--included { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
  /* Drawn by us, not by the platform. The native control paints a checked-but-DISABLED box
     as grey-on-grey (and browsers disagree on how grey), which made the permanently-ticked
     blog row read as unticked. Everything here — box, fill, tick — is our own CSS, so the
     locked-on rows look exactly as on as the ones the client just clicked. */
  .xrow-box {
    appearance: none; -webkit-appearance: none;
    display: block;   /* the static span is inline by default — it would ignore width/height */
    width: 18px; height: 18px; margin: 0; flex: 0 0 auto; cursor: inherit;
    border: 1.5px solid color-mix(in srgb, var(--ax) 40%, var(--line));
    border-radius: 6px; background: var(--card);
    background-repeat: no-repeat; background-position: center; background-size: 13px;
    /* No transition on the fill: a checkbox must read as on/off the instant it flips, and a
       transition that never finishes (background tab, reduced motion) leaves it mid-colour. */
  }
  /* `--static` is the blog row's tick: a span, permanently in the checked look (see the
     base_row macro for why it is not a disabled checkbox). */
  .xrow-box:checked, .xrow-box--static {
    background-color: var(--ax); border-color: var(--ax);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4l3 3 6.2-6.2' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .xrow-box:focus-visible { outline: 2px solid var(--ax); outline-offset: 2px; }
  .xrow-ico {
    width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--ax);
  }
  .xrow-ico svg { width: 15px; height: 15px; }
  .xrow-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .xrow-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }
  .xrow-vol { font-size: 11px; color: var(--muted); line-height: 1.2; }
  /* `letter-spacing: -.02em` jak przy pozostałych DUŻYCH liczbach karty (`.tier-price`,
     `.tier-total-value`): przy 16px/800 domyślny trekking rozpychał „+150 zł" w kolumnie,
     która jest `auto` — każdy odzyskany piksel wraca do nazwy (`1fr`), a to ona łamie się
     na dwie linie i podbija wysokość wiersza we WSZYSTKICH kartach (subgrid). */
  .xrow-price { text-align: right; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; line-height: 1.2; }
  .xrow-per { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin: 0; }
  /* What the client already pays for, and — once they untick it — that they are about to ask
     us to STOP. The drop marker is warn-coloured: it is the one state in this panel that
     takes something away, so it must not read like another neutral caption. */
  .xrow-owned, .xrow-drop {
    grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; color: var(--ax);
  }
  .xrow-drop { display: none; color: var(--warn); }
  .xrow.is-owned:not(.is-on) .xrow-owned { display: none; }
  .xrow.is-owned:not(.is-on) .xrow-drop { display: block; }
  .xrow.is-owned:not(.is-on) { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }

  /* Per-card running total — base + whatever is ticked, at THIS tier's add-on prices.
     `margin-top:auto` pins the total + the button under it to the card's bottom edge, so the
     three cards' CTAs line up. Slack now pools directly above this rule instead of above the
     blog row, where it reads as breathing room rather than a hole in the card. */
  .tier-total {
    display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  }
  .tier-total-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-right: auto; }
  .tier-total-value {
    font-size: 22px; font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(120deg, var(--tier-a), var(--tier-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* Picked state: the chosen tier must read as chosen at a glance — ring in the card's own
     gradient, filled button, and the label swaps "Wybieram" → "✓ Wybrany". */
  .pick-on { display: none; }
  .is-picked .tier-pick .pick-idle { display: none; }
  .is-picked .tier-pick .pick-on { display: inline; }
  /* The tier the client already pays for says so on its button instead of "Wybieram" — it is
     still clickable (that's how you keep the tier and add an add-on), the ✓ just tracks
     whether it is the picked one. MUST stay after the .is-picked rules: same specificity,
     later wins. */
  .pick-current, .tier-card.is-current .tier-pick .pick-idle,
  .tier-card.is-current .tier-pick .pick-on { display: none; }
  .tier-card.is-current .tier-pick .pick-current { display: inline; }
  .tier-card.is-current .tier-pick .pick-tick { display: none; }
  .tier-card.is-current.is-picked .tier-pick .pick-tick { display: inline; }
  .tier-card.is-picked {
    border-color: color-mix(in srgb, var(--tier-a) 62%, var(--line));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tier-a) 50%, transparent), var(--shadow);
  }
  /* "Twój pakiet" is a STATUS, not an offer, so the tier the client already pays for gets a
     soft tint in its own colour instead of the accent's fill — a plain white button there
     read as a dead control, a filled one sold what they already have. It is the reason a
     client on a plan sees no filled button until they pick a DIFFERENT tier (`.is-accent`
     above, which this card never carries). */
  .tier-card.is-current .tier-pick {
    background: color-mix(in srgb, var(--tier-a) 12%, var(--card));
    border-color: color-mix(in srgb, var(--tier-a) 42%, var(--line));
    color: color-mix(in srgb, var(--tier-a) 65%, var(--ink));
  }
  .tier-card.is-current .tier-pick:hover:not(:disabled) {
    background: color-mix(in srgb, var(--tier-a) 20%, var(--card));
    border-color: color-mix(in srgb, var(--tier-a) 60%, var(--line));
    color: color-mix(in srgb, var(--tier-a) 65%, var(--ink));
  }
  /* Obecny pakiet ze zmienionymi dodatkami (`.is-changed`): etykieta „Zatwierdź zmianę" zamiast
     „Twój plan" i pełne wypełnienie akcentu — status zamienia się w akcję. Specyficzność wyższa
     niż odcień `.is-current` powyżej, który inaczej przykryłby `.is-accent`. */
  /* --- Shopify: potwierdzenie zakupu w karcie (tier_card → .tier-actions) ---
     Wrapper zajmuje wiersz siatki, który zajmował sam przycisk wyboru (subgrid, 8 wierszy),
     więc przycisk ma się w nim zachowywać jak dotąd: pełna szerokość, dół karty. */
  .tier-actions { display: flex; flex-direction: column; gap: 12px; }
  .tier-confirm {
    display: flex; flex-direction: column; gap: 10px; padding: 14px;
    border: 1px solid color-mix(in srgb, var(--tier-a) 45%, var(--line)); border-radius: 14px;
    background: color-mix(in srgb, var(--tier-a) 7%, var(--card));
    animation: tier-confirm-in .22s cubic-bezier(.22,.8,.3,1);
  }
  .tier-confirm[hidden] { display: none; }
  @keyframes tier-confirm-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .tier-confirm { animation: none; } }
  .tier-confirm-err { font-size: 12.5px; font-weight: 600; color: var(--err); background: var(--err-bg); border-radius: 10px; padding: 8px 10px; line-height: 1.45; }
  .tier-confirm-err[hidden] { display: none; }
  .tier-confirm-ok {
    width: 100%; font-weight: 800; color: #fff; border-color: transparent;
    background: linear-gradient(90deg, var(--tier-a), var(--tier-b));
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--tier-a) 60%, transparent);
  }
  .tier-confirm-ok:hover:not(:disabled) { background: linear-gradient(90deg, var(--tier-b), var(--tier-a)); color: #fff; border-color: transparent; }
  .tier-confirm-ok:disabled { opacity: .7; cursor: progress; }
  /* Zgoda na regulamin pod przyciskiem akceptacji — kliknięcie jest jej udzieleniem, więc ma być
     czytelna (--ink-2, nie --muted) i widoczna razem z przyciskiem, także na telefonie. */
  .tier-confirm-terms { margin: -2px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); text-align: center; }
  .tier-confirm-terms a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .tier-confirm-cancel {
    align-self: center; padding: 2px 6px; border: 0; background: transparent; cursor: pointer;
    color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  }
  .tier-confirm-cancel:hover { color: var(--ink); }
  .pick-change { display: none; }
  .tier-card.is-current.is-changed .tier-pick .pick-current { display: none; }
  .tier-card.is-current.is-changed .tier-pick .pick-change { display: inline; }
  .tier-card.is-current.is-changed .tier-pick.is-accent {
    background: linear-gradient(90deg, var(--tier-a), var(--tier-b));
    border-color: transparent; color: #fff;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--tier-a) 60%, transparent);
  }
  .tier-card.is-current.is-changed .tier-pick.is-accent:hover:not(:disabled) {
    background: linear-gradient(90deg, var(--tier-b), var(--tier-a));
    border-color: transparent; color: #fff;
  }

  /* --- "Co zawiera usługa?" — the capability copy, once, below the offer ---
     Three read-only explainer cards (base package + each add-on). No controls live here: the
     buying decision is entirely in the tier grid above. */
  .shop-explain { margin-top: 42px; }
  .explain-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; color: var(--ink); }
  .explain-head::before, .explain-head::after {
    content: ""; flex: 1 1 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
  }
  .explain-head span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
  .explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
  @media (max-width: 900px) { .explain-grid { grid-template-columns: 1fr; } }
  .ex-card {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); padding: 22px 20px;
    transition: border-color .2s, box-shadow .2s;
  }
  /* Shopify: blog + Social Media in one card — two columns wide, bullets in two columns
     (alone in the grid when there is no video card). */
  .ex-card--combo { grid-column: span 2; }
  .ex-card--combo:only-child { grid-column: 1 / -1; }
  .ex-card--combo .tier-perks { display: block; columns: 2; column-gap: 28px; }
  .ex-card--combo .tier-perks li { break-inside: avoid; margin-bottom: 9px; }
  @media (max-width: 900px) {
    .ex-card--combo { grid-column: auto; }
    .ex-card--combo .tier-perks { columns: 1; }
  }
  .ex-card:hover { border-color: color-mix(in srgb, var(--tier-a) 40%, var(--line)); }
  .ex-head { display: flex; align-items: center; gap: 12px; }
  .ex-id { min-width: 0; }
  .ex-name {
    font-size: 17px; font-weight: 800; letter-spacing: -.01em;
    background: linear-gradient(120deg, var(--tier-a), var(--tier-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .ex-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .ex-card .tier-perks { gap: 9px; }
  .ex-card .tier-perks li { font-size: 13.5px; }
  /* Payoff line, split off the bullets by a rule: what the client GETS, not what we do. */
  .ex-foot {
    display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.35;
    color: var(--ink-2);
  }
  .ex-foot-ico {
    width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    color: var(--tier-a); background: color-mix(in srgb, var(--tier-a) 13%, transparent);
  }
  .ex-foot-ico svg { width: 20px; height: 20px; }

  /* Explains a disabled send button (picked configuration == what the client already has),
     or — `.is-drop` — warns that the request also cancels something they pay for today. */
  .sum-note { margin: -4px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
  .sum-note.is-drop {
    padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--warn-ink);
    background: var(--warn-bg); border: 1px solid var(--warn-line);
  }
  .shop-form {
    margin: 26px auto 0; max-width: 560px; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px clamp(20px, 4vw, 32px);
  }
  .shop-form-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--ink); }
  /* PARAGON — co klient zamawia i za ile, powtórzone nad polami: karta, z której wybrał, jest
     dwa ekrany wyżej. Pozycje i sumę wpisuje 07-shop.js; w trybach bezpłatnych zostaje sam
     wiersz nagłówkowy (reszta ma `hidden`), bo nie ma czego wyceniać. */
  .shop-order {
    margin: 0 0 14px; padding: 13px 15px 12px; border-radius: 14px;
    background: color-mix(in srgb, var(--ink) 3.5%, var(--card));
    border: 1px solid var(--line);
  }
  .shop-order-head { display: flex; flex-direction: column; gap: 2px; }
  .shop-order-label {
    font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted-2);
  }
  .shop-plan-value { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.35; }
  .shop-plan-value.is-set { color: var(--brand-strong); }
  /* Free-first-month order: the line names the trial in its own text ("Starter (Bezpłatny
     test)"), so it only needs the ok tint the rest of the trial affordances carry — it must
     NOT stay brand-coloured like a paid pick. Overrides .is-set, so it comes after it. */
  .shop-plan-value.is-trial { color: var(--ok); }
  /* Opis wybranego progu — zdanie pod nazwą konfiguracji, nie druga nazwa: stonowany kolor i
     mniejszy stopień, żeby nie konkurował z `.shop-plan-value` ani z ceną w paragonie.
     `margin-top` zamiast `gap`, bo nagłówek trzyma etykietę i nazwę ciasno (gap: 2px). */
  .shop-plan-desc {
    margin: 5px 0 0; font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--muted);
  }
  .shop-order-items {
    list-style: none; margin: 11px 0 0; padding: 11px 0 0; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 9px;
  }
  .shop-order-item { display: flex; align-items: baseline; gap: 12px; }
  /* `display:flex` z reguł wyżej bije domyślne `[hidden]` przeglądarki — bez tego ukryte
     pozycje/suma (tryby bezpłatne) i „Co dalej?" (przed wysyłką) i tak by się rysowały. */
  .shop-order-items[hidden], .shop-order-total[hidden], .shop-next[hidden] { display: none; }
  .soi-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .soi-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
  .soi-vol { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
  .soi-price { flex: 0 0 auto; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
  /* Pozycja pokryta testem: cena przekreślona, obok 0. Ta sama para co w wierszu karty
     (`.xrow-price.is-free`) i ta sama kreska co w „Razem" (`.shop-order-was`) — paragon i karta
     mają pokazywać jedną ofertę, więc rabat musi być tą samą figurą w obu miejscach. */
  .soi-price.is-free { display: inline-flex; align-items: baseline; gap: 6px; }
  .soi-was {
    font-weight: 700; color: var(--ink-2);
    text-decoration: line-through; text-decoration-thickness: 2px;
    text-decoration-color: var(--warn); text-decoration-skip-ink: none;
  }
  .soi-now { font-weight: 800; color: var(--ok); }
  .shop-order-total {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line);
  }
  .shop-order-total-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .shop-order-total-main { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .shop-order-total-value { font-size: 19px; font-weight: 900; color: var(--brand-strong); }
  /* Przekreślona kwota w paragonie — ta sama recepta co `.tier-was` na karcie (ink-2 + pełny
     `--warn` na kresce, ciągłej): stała tu w `--muted-2`, najjaśniejszej szarości w palecie,
     przy 13px i bez koloru kreski — czyli dokładnie w miejscu, w którym klient sprawdza, ile
     normalnie kosztuje to, co dostaje za 0 zł, kwota była praktycznie niewidoczna. */
  .shop-order-was {
    font-size: 13.5px; font-weight: 700; color: var(--ink-2);
    text-decoration: line-through; text-decoration-thickness: 2px;
    text-decoration-color: var(--warn); text-decoration-skip-ink: none;
  }
  .shop-order-per { font-size: 11.5px; font-weight: 600; color: var(--muted); }
  /* Bezpłatny miesiąc: pozycje zostają w swoich cenach (tyle kosztuje pakiet), zeruje się samo
     „Razem" — przekreślona kwota + 0 w tincie `--ok`, tak jak na karcie. */
  .shop-order-total.is-free .shop-order-total-value { color: var(--ok); }
  /* Zdanie pod sumą. Przy teście jest obietnicą („nic się samo nie pobierze") i nosi ten sam
     tint `--ok`, co wyzerowane „Razem" nad nim; przy płatnym zamówieniu to zwykła informacja
     proceduralna, więc `.is-plain` gasi zieleń — inaczej kwota do zapłaty dostawała pod spodem
     kolor, którym cała strona oznacza „za darmo". */
  .shop-order-note { margin: 9px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ok); }
  .shop-order-note.is-plain { color: var(--muted); }
  /* "Co dalej?" — the mode's what-happens-next copy, shown only in the confirmation card after
     the form has been sent. A quiet brand-tinted note, not a warning: it reassures, so it must
     not borrow the amber/red of .sum-note.is-drop. */
  .shop-next {
    display: flex; gap: 10px; margin: 0; padding: 12px 14px; text-align: left;
    border-radius: 12px; background: var(--brand-ghost); border: 1px solid var(--brand-line);
  }
  .shop-next-ico { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; color: var(--brand-strong); }
  .shop-next-ico svg { width: 100%; height: 100%; display: block; }
  .shop-next-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .shop-next-title { font-size: 13px; font-weight: 800; color: var(--brand-strong); }
  .shop-next-text { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
  .shop-form-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
  .shop-form-actions .btn { min-width: 160px; justify-content: center; }
  /* Wysyłka bezpłatnego testu („Rozpocznij bezpłatny test"). Zielona, bo cała strona oznacza
     tym kolorem „za darmo" — przekreślone ceny, wyzerowane „Razem", zdanie pod sumą — a to jest
     przycisk, który ten test uruchamia; markowy gradient stawiał go w jednym rzędzie z płatnym
     zamówieniem. Podmieniamy samo `background-image`: rozmiar tła, pozycja i przesuw pod
     kursorem zostają z `.btn`, więc animacja jest ta sama. Kolory są STAŁE, nie `--ok`: tekst
     jest tu biały, a jasny wariant tokena z trybu ciemnego zjadłby go razem z kontrastem. */
  .shop-form-actions .btn.is-trial {
    background-image: linear-gradient(90deg, #0f9d58, #2fb673, #0f9d58);
    box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px color-mix(in srgb, #0f9d58 26%, transparent);
  }
  /* Potwierdzenie wysyłki: ptaszek + jedno zdanie + przeniesiony tu blok „Co dalej?". */
  .shop-sent {
    display: flex; flex-direction: column; align-items: center; gap: 13px;
    text-align: center; padding: 10px 0 4px;
  }
  /* `display:flex` wyżej BIJE atrybut `hidden` (reguła UA ma specyficzność 0,0,0), więc karta
     „wysłane" renderowana z `hidden` — jak ta w oknie testu — byłaby widoczna od otwarcia.
     Każdy `display` w tym pliku musi mieć swój wariant `[hidden]`, inaczej atrybut nie działa. */
  .shop-sent[hidden] { display: none; }
  .shop-sent-ico {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent);
  }
  .shop-sent-ico svg { width: 26px; height: 26px; display: block; }
  .shop-sent-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--ink); }
  .shop-sent .shop-next { width: 100%; }
  /* Wersja w oknie testu (prośba o test na platformie bez samoobsługi): nie ma tam bloku
     „Co dalej?" do przeniesienia, więc jedno zdanie niesie je samo, a przycisk zamknięcia
     dostaje własny wiersz. */
  .shop-sent-next { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
  .shop-sent .rv-modal-btns { width: 100%; justify-content: center; margin-top: 2px; }
  /* Zgłoszenie poszło: cała zawartość okna ustępuje karcie „wysłane". Selektor gasi
     RODZEŃSTWO karty, więc nie trzeba wyliczać, co w oknie stoi — a `display:none` bije
     własne `display` tych elementów, czego atrybut `hidden` by nie zrobił. */
  .rv-modal-dialog.is-sent > *:not([data-trial-sent]) { display: none !important; }

  /* Kreator startu testu: `is-setup` gasi ekran 1 i odsłania panele 2–4. Ten sam wzór co
     `is-sent` wyżej i z tego samego powodu — część dzieci dialogu ma własny `display`
     (flex/grid), którego atrybut `hidden` nie przebija. */
  /* `!important`: dzieci dialogu (ekran zakresu) niosą własne `display` z klas o tej samej
     albo wyższej wadze — np. `.trial-dialog.is-wizard .setup-fill-body { display: flex }` na
     środku ekranu zakresu — i bez tego ekran zakresu prześwitywał nad kreatorem. */
  .rv-modal-dialog.is-setup > *:not([data-trial-setup]) { display: none !important; }
  /* Potwierdzenie zgłoszenia (tryb `request`): oprawa kreatora, numer kroku w kafelku
     w miejscu ikony, tytuł z `tabindex="-1"` — kursor ląduje na nim po wysłaniu. */
  .trial-sent[hidden] { display: none; }
  .trial-sent > .trial-head [tabindex="-1"]:focus { outline: none; }
  .trial-sent > .rv-modal-btns { justify-content: flex-end; }
  .setup-next-n { font-size: 13px; font-weight: 800; }
  /* Ekran 1 PO aktywacji („Wstecz" z ekranu e-mail): sam odczyt zakresu. Zgoda, „Uruchom",
     „Zobacz plany" i błąd znikają, zostaje „Dalej" (`[data-trial-resume]`) przy prawej
     krawędzi. Zablokowane ptaszki zachowują pełny wygląd — wyszarzony ptaszek czytał się jak
     zepsuta kontrolka — i tylko kursor mówi, że tu nic się nie kliknie. */
  .trial-dialog.is-started [data-consent-field],
  .trial-dialog.is-started [data-trial-confirm],
  .trial-dialog.is-started [data-trial-dismiss],
  .trial-dialog.is-started [data-trial-error] { display: none !important; }
  /* Tylko DZIECI dialogu (ekran 1) — `is-started` zostaje na dialogu także po powrocie do
     kreatora, a jego przyciski i wiersze siedzą głębiej, w `.trial-setup`. */
  .trial-dialog [data-trial-resume][hidden] { display: none; }
  .trial-dialog.is-started > .rv-modal-body .xrow-box:disabled { opacity: 1; cursor: default; }
  .trial-dialog.is-started > .rv-modal-body .trial-scope-label { cursor: default; }
  /* Kreator chowa atrybutem `hidden` rzeczy, które mają własne `display` (pigułka oferty,
     przyciski, panele) — a `display: inline-flex` z ich klasy bije domyślne `display:none`
     atrybutu. Jedna reguła na całe okno zamiast wyliczania, co akurat zniknęło. */
  .trial-setup [hidden] { display: none !important; }
  /* Nagłówek kreatora to TEN SAM pasek co na ekranie 1 (`.trial-head`), tylko jeden na trzy
     ekrany — wymienia się jego treść. Kursor po przejściu ląduje na tytule, więc tytuł ma
     `tabindex="-1"`; obwódka wokół samego napisu wyglądałaby jak zaznaczony tekst. */
  .setup-head [data-setup-title]:focus { outline: none; }
  .setup-head [data-setup-title]:focus-visible { outline: none; }
  /* Ścieżka kroków: kropka na krok, kreska między kropkami. Bieżący krok na firmowym
     gradiencie (ten sam, co pigułka oferty), zrobione — zielone z ptaszkiem. */
  .setup-steps {
    list-style: none; margin: 0 0 13px; padding: 0;
    display: flex; align-items: center; justify-content: center; gap: 5px;
  }
  .setup-steps[hidden] { display: none; }
  .setup-step {
    display: flex; align-items: center; gap: 5px; white-space: nowrap;
    font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: var(--muted-2);
  }
  .setup-step + .setup-step::before {
    content: ""; width: 10px; height: 2px; border-radius: 2px; background: var(--line);
  }
  .setup-step.is-done + .setup-step::before { background: color-mix(in srgb, var(--ok) 45%, var(--line)); }
  .setup-step-n {
    width: 20px; height: 20px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; line-height: 1;
    background: var(--card); border: 1.5px solid var(--line); color: var(--muted-2);
  }
  .setup-step-n svg { width: 11px; height: 11px; }
  /* Na ekranie 1 i na finale pigułka oferty stoi NAD ścieżką (sama góra okna) — ścieżka
     dostaje od niej odrobinę więcej powietrza niż domyślny margines pigułki. */
  .trial-kicker + .setup-steps { margin-top: 2px; }
  .setup-step.is-now { color: var(--ink); }
  .setup-step.is-now .setup-step-n {
    background: linear-gradient(100deg, var(--brand), var(--accent));
    border-color: transparent; color: #fff;
    box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--brand) 60%, transparent);
  }
  .setup-step.is-done { color: var(--muted); }
  .setup-step.is-done .setup-step-n { background: var(--ok); border-color: var(--ok); color: #fff; }
  /* Sześć kroków (kreator z kanałami social): podpis tylko przy bieżącym — sześć podpisów
     nie mieści się w jednej linii okna, a numer mówi, gdzie klient jest. */
  .setup-steps.is-compact .setup-step:not([aria-current]) .setup-step-name { display: none; }
  .setup-steps.is-compact .setup-step + .setup-step::before { width: 14px; }
  /* Na telefonie cztery podpisy nie mieszczą się w jednej linii okna — zostają same kropki,
     a podpis tylko przy kroku bieżącym (numer i tak mówi, gdzie klient jest). */
  @media (max-width: 520px) {
    .setup-step:not([aria-current]) .setup-step-name { display: none; }
    .setup-step + .setup-step::before { width: 12px; }
  }

  /* Licznik nad listą kanałów — jedna liczba zamiast liczenia ptaszków wzrokiem. */
  .setup-count {
    margin: 0; text-align: right; font-size: 12px; font-weight: 700;
    letter-spacing: .01em; color: var(--muted);
  }
  .setup-count.is-all { color: var(--ok); }
  .setup-chans { margin-top: 0; }
  /* Wiersz kanału (ekran 2 i 3) to wiersz zakresu z ekranu 1 (`.trial-scope-row`) z akcją
     dostawioną przy prawej krawędzi. Nie jest klikalny jako całość — klikalne jest to, co
     w akcji stoi — więc kursor zostaje strzałką. */
  .setup-chan .trial-scope-label { cursor: default; }
  .setup-chan .trial-scope-body { flex: 1 1 auto; }
  /* Podłączony kanał świeci ZIELENIĄ, a nie kolorem kanału: tu stan jest binarny („mamy
     dostęp"), więc czyta się go tym samym kolorem, co wszystkie inne „gotowe" na stronie.
     Czerwone tło wiersza YouTube'a wyglądało jak ostrzeżenie. Kolor kanału zostaje na
     kafelku ikony — i na ekranie 3, gdzie `is-on` znaczy „ten kanał publikuje sam". */
  .setup-chan.is-ok {
    border-color: color-mix(in srgb, var(--ok) 42%, var(--line));
    background: color-mix(in srgb, var(--ok) 7%, var(--card));
  }
  .setup-chan-act { margin-left: auto; flex: none; display: flex; align-items: center; }
  .setup-chan-btn { padding: 7px 15px; font-size: 13px; }
  .setup-chan-on {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
    background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok);
    font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  }
  .setup-chan-on svg { width: 12px; height: 12px; }
  /* Kanał, który właśnie wrócił podłączony z innej karty — jedno mrugnięcie zielenią, żeby
     powrót do okna nie wyglądał jak „nic się nie stało". */
  @keyframes setup-pop {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
    to   { box-shadow: 0 0 0 9px transparent; }
  }
  .setup-chan.is-fresh { animation: setup-pop .8s ease-out; }
  @media (prefers-reduced-motion: reduce) { .setup-chan.is-fresh { animation: none; } }
  /* Szkielet na czas pierwszego zapytania (okno otwiera się w sekundzie aktywacji). */
  .setup-skel {
    height: 54px; border-radius: 14px; border: 1px solid var(--line-soft);
    background: linear-gradient(100deg, var(--card-soft) 30%, var(--line-soft) 50%, var(--card-soft) 70%);
    background-size: 280% 100%; animation: setup-skel 1.2s linear infinite;
  }
  @keyframes setup-skel { from { background-position: 140% 0; } to { background-position: -40% 0; } }
  @media (prefers-reduced-motion: reduce) { .setup-skel { animation: none; } }
  /* Kolory kanałów — te same, którymi pasek informacji o kliencie maluje ikony kont
     (`.cc-acct-ico`). TikTok jest czarny, więc w ciemnym motywie kafelek dostaje jaśniejszy
     grafit: czarny na granacie nie odróżnia się od tła karty. */
  .trial-scope-row[data-scope="fb"] { --ax: #1877f2; }
  .trial-scope-row[data-scope="ig"] { --ax: #d6249f; }
  .trial-scope-row[data-scope="tt"] { --ax: #1f2937; }
  .trial-scope-row[data-scope="yt"] { --ax: #ff0000; }
  :root[data-theme="dark"] .trial-scope-row[data-scope="tt"] { --ax: #5b6884; }

  /* Karty wyboru publikacji dla blogu: radio + nazwa opcji nad zdaniem o skutku. Firmowy
     akcent, bo to ustawienie BLOGU — kanały niżej mają swoje kolory. */
  .setup-mode { --ax: var(--brand); }
  .setup-modes { margin-bottom: 4px; }
  .xrow-box--radio { border-radius: 50%; background-size: 9px; }
  /* Tryb dostępny dopiero po integracji sklepu z naszą aplikacją: karta stoi, ale wyszarzona
     i nieklikalna — klient widzi, że opcja istnieje, i czyta z karty `.setup-upsell` na dole,
     co ją odblokowuje. Pigułka „Po integracji" w szarości, nie w kolorze marki. */
  .setup-mode.is-locked { background: var(--card-soft); border-style: dashed; }
  .setup-mode.is-locked .trial-scope-label { cursor: not-allowed; }
  .setup-mode.is-locked .trial-scope-name,
  .setup-mode.is-locked .trial-scope-vol { color: var(--muted-2); }
  .setup-mode.is-locked .xrow-box { opacity: .45; }
  .setup-mode.is-locked:hover { border-color: var(--line); }
  .xrow-box--radio:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='white'/%3E%3C/svg%3E");
  }
  /* Przełącznik automatycznej publikacji. Kontrolka suwakiem, a nie ptaszkiem: ptaszek
     czyta się jak „zaznacz kanał", a tu chodzi o WŁĄCZENIE trybu na kanale, który już jest
     wybrany. Włączony bierze kolor kanału, ten sam co kafelek jego ikony. */
  .setup-switch {
    appearance: none; -webkit-appearance: none; position: relative; flex: none; cursor: pointer;
    width: 42px; height: 24px; margin: 0; border-radius: 999px;
    background: var(--line); border: 1px solid var(--line);
    transition: background .18s, border-color .18s;
  }
  .setup-switch::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.3);
    transition: transform .18s;
  }
  .setup-switch:checked { background: var(--ax); border-color: var(--ax); }
  .setup-switch:checked::after { transform: translateX(18px); }
  .setup-switch:focus-visible { outline: 2px solid var(--ax); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .setup-switch, .setup-switch::after { transition: none; } }

  /* Ekran e-mail: wiersz adresu w kolorze marki (adres to nie kanał), a po „Zmień" pole
     w tej samej ramce co reszta wierszy okna. Adres łamie się w dowolnym miejscu — długi
     adres firmowy bez spacji rozpychałby wiersz poza okno. */
  .setup-email-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    padding: 14px 16px; border-radius: 16px;
    border: 1px solid var(--brand-line);
    background:
      radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
      var(--card);
  }
  .setup-email-badge {
    width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(100deg, var(--brand), var(--accent));
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent);
  }
  .setup-email-badge svg { width: 20px; height: 20px; }
  .setup-email-label {
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted);
  }
  .setup-email-value {
    font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.01em;
    line-height: 1.3; overflow-wrap: anywhere; max-width: 100%;
  }
  .setup-email-card .setup-chan-btn { margin-top: 6px; }
  /* Ekrany kreatora układają środek w KOLUMNĘ z jednym odstępem (`gap`), żeby panel
     informacyjny (`.setup-panel`) mógł urosnąć do dołu okna o stałej wysokości — bez tego
     pod treścią zostawał pas pustki nad przyciskami. Marginesy dzieci zerujemy: odstęp
     jest jeden i należy do kolumny. Nagłówek sekcji przytula się do swojej listy (−4 px),
     a od poprzedniej sekcji odsuwa (+4 px). */
  .trial-dialog.is-wizard .setup-fill-body { display: flex; flex-direction: column; gap: 10px; }
  .setup-fill-body > .rv-modal-error,
  .setup-fill-body > .rv-modal-note,
  .setup-fill-body > .trial-scope,
  .setup-fill-body > .setup-upsell { margin: 0; }
  .setup-fill-body > .trial-scope-h,
  .setup-fill-body > .setup-list-head { margin: 4px 0 -4px; }
  .setup-fill-body > .trial-scope-h:first-child,
  .setup-fill-body > .setup-list-head:first-child { margin-top: 0; }
  /* Nagłówek listy z dodatkiem przy prawej krawędzi (licznik podłączeń, niepodłączone kanały). */
  .setup-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .setup-list-head > .trial-scope-h { margin: 0; }
  /* „Jak to działa" na ekranie kont — trzy kroki obok siebie, numer w kółku nad zdaniem. */
  .setup-how {
    list-style: none; margin: 0; padding: 0; flex: 1 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center;
  }
  .setup-how li {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2);
  }
  .setup-how-n {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); color: var(--brand-strong); font-size: 12px; font-weight: 800;
    box-shadow: 0 0 0 1px var(--brand-line) inset;
  }
  /* Wiersze kanałów na ekranach kont i publikacji ciaśniej niż na ekranie 1: przy czterech
     kanałach każde 3 px w pionie to 24 px, których brakowało na panel pod listą. */
  .setup-chans .trial-scope-label { padding-top: 7px; padding-bottom: 7px; }
  /* Ekran kont: zdanie pod tytułem i zdanie o haśle mają po dwie linie, więc przy czterech
     kanałach środek przewijał się o 15 px — ten ekran ma ciaśniejsze wiersze i panel. */
  [data-trial-pane="connect"] .setup-chans .trial-scope-label { padding-top: 6px; padding-bottom: 6px; }
  [data-trial-pane="connect"] .setup-panel { padding-top: 12px; padding-bottom: 10px; }
  [data-trial-pane="connect"] .setup-perks-foot { margin-top: 9px; padding-top: 8px; }
  /* Tryby publikacji dostępne dopiero po integracji: sama nazwa z pigułką, bez zdania
     o skutku — co je odblokowuje, mówi karta `.setup-upsell` na dole, a dwa pełne zdania
     o opcjach, których nie da się wybrać, spychały kanały social pod krawędź okna. */
  .setup-mode.is-locked .trial-scope-vol { display: none; }
  .setup-mode.is-locked .trial-scope-label { padding: 8px 12px; cursor: not-allowed; }
  .setup-mode.is-locked .trial-scope-name { font-size: 13px; }
  .setup-mode.is-locked .trial-scope-head { flex-wrap: nowrap; gap: 6px; align-items: center; }
  .setup-lock { display: inline-flex; flex: none; color: var(--muted-2); }
  .setup-lock svg { width: 13px; height: 13px; }
  .setup-modes.has-locked { grid-template-columns: 1fr 1fr; }
  .setup-modes.has-locked > :not(.is-locked) { grid-column: 1 / -1; }
  .setup-fill-body > .setup-upsell { margin-top: auto; }
  /* „Twój test — co miesiąc" pod zakresem (kreator): liczby po lewej, cena po prawej —
     0 dużym krojem nad przekreśloną ceną zakresu. `margin-top: auto` trzyma kartę przy dole
     ekranu, a pod nią zostaje jednolinijkowe zdanie o warunkach. */
  .setup-fill-body > .trial-sum { margin-top: auto; }
  /* Ekran zakresu w kreatorze: wiersze o 3 px ciaśniej w pionie niż bez kreatora, a odstęp
     kolumny 8 zamiast 10 — wiersze niosą dodatkowe zdanie o tym, co powstaje, a w dłuższych
     językach zdanie o wolumenie łamie się na dwie linie; przy 11 px środek przewijał się
     o kilkanaście pikseli (zmierzone na żywym panelu: pl 428/423, en 445/423). */
  .trial-dialog.is-wizard > .setup-fill-body { gap: 8px; }
  .trial-dialog.is-wizard > .setup-fill-body .trial-scope-label { padding-top: 8px; padding-bottom: 8px; }
  .trial-sum {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border-radius: 14px;
    border: 1px solid var(--brand-line); background: var(--brand-ghost);
  }
  .trial-sum-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .trial-sum-label {
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: var(--brand-strong);
  }
  .trial-sum-items { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
  .trial-sum-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
  .trial-sum-now { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
  .trial-sum-was { font-size: 12px; font-weight: 600; color: var(--muted); }
  .trial-sum-was s {
    color: var(--ink-2);
    text-decoration-color: var(--warn); text-decoration-skip-ink: none;
  }
  .setup-fill-body > .trial-sum + .rv-modal-note { margin-top: -2px; }
  /* Link do ustawień na ostatnim ekranie kreatora — wiersz, a nie goły link w zdaniu: ma
     ikonę, tytuł, zdanie o tym, co tam jest, i strzałkę. `margin-top: auto` trzyma go przy
     dole ekranu, pod listą. */
  .setup-fill-body > .setup-settings-link,
  .setup-fill-body > .setup-settings-wrap { margin-top: auto; }
  .setup-settings-link {
    display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 14px;
    border: 1px solid var(--line-soft); background: var(--card-soft); color: inherit;
    text-decoration: none; transition: border-color .18s, background .18s;
  }
  .setup-settings-link:hover { border-color: var(--brand-line); background: var(--brand-ghost); }
  .setup-settings-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .setup-settings-ico {
    width: 30px; height: 30px; flex: none; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); color: var(--brand-strong); box-shadow: 0 0 0 1px var(--brand-line) inset;
  }
  .setup-settings-ico svg { width: 16px; height: 16px; }
  .setup-settings-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .setup-settings-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
  .setup-settings-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
  .setup-settings-arrow { flex: none; font-size: 16px; font-weight: 700; color: var(--brand-strong); }
  /* Wewnątrz panelu „Więcej w ustawieniach" link jest jego stopką: biała karta na miękkim
     tle panelu, bez własnego `margin-top: auto`. */
  .setup-settings-panel .setup-settings-link { margin-top: 12px; background: var(--card); padding: 8px 12px; }
  /* „Dostosuj Media Agent AI": obszar ustawień = nazwa nad krótkim zdaniem, co w nim jest. */
  .setup-how-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
  .setup-how-desc { font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
  /* Ekran postów niesie dwulinijkowe zdanie pod tytułem, a niepodłączony kanał — zdanie
     o dwóch liniach obok „Połącz"; żeby środek się nie przewijał, obszary ustawień mają ikonę
     w linii z nazwą (zamiast nad nią), wiersze kanałów są ciaśniej, a „Połącz" mniejsze. */
  .setup-panel.setup-settings-panel { padding-top: 11px; padding-bottom: 10px; }
  .setup-panel.setup-settings-panel > .trial-scope-h { margin-bottom: 8px; }
  .setup-settings-panel .setup-how { grid-template-columns: repeat(3, 1fr); column-gap: 8px; align-items: start; }
  .setup-settings-panel .setup-how li {
    flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; align-content: flex-start; gap: 2px 6px;
  }
  .setup-settings-panel .setup-how-n { width: 22px; height: 22px; }
  .setup-settings-panel .setup-how-n svg { width: 12px; height: 12px; }
  .setup-settings-panel .setup-how-desc { flex-basis: 100%; }
  .setup-settings-panel .setup-settings-link { margin-top: 9px; }
  [data-trial-pane="social"] .setup-chans .trial-scope-label { padding: 6px 11px; gap: 10px; }
  [data-trial-pane="social"] .setup-chans .trial-scope-vol { font-size: 12px; line-height: 1.35; }
  [data-trial-pane="social"] .setup-chan-btn { padding: 5px 11px; font-size: 12px; }
  /* „Co przyjdzie na ten adres" — objaśnienie, nie rzecz do kliknięcia: miękki panel zamiast
     ramek wierszy, kafelek ikony w odcieniu marki, nazwa nad zdaniem.
     Panel rośnie (`flex: 1 0 auto`), a wiersze rozkładają się w nim równo. */
  .setup-panel {
    flex: 1 0 auto; display: flex; flex-direction: column;
    padding: 14px 16px 12px; border-radius: 16px;
    border: 1px solid var(--line-soft); background: var(--card-soft);
  }
  .setup-panel > .trial-scope-h { margin: 0 0 10px; }
  .setup-perks {
    list-style: none; margin: 0; padding: 0; flex: 1 0 auto;
    display: flex; flex-direction: column; justify-content: space-evenly; gap: 12px;
  }
  .setup-perk { display: flex; gap: 11px; align-items: flex-start; }
  .setup-perk + .setup-perk { padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .setup-perk-head { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
  .setup-perks-foot {
    display: flex; align-items: center; gap: 7px; margin: 12px 0 0; padding-top: 10px;
    border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.4; color: var(--muted);
  }
  .setup-perks-foot svg { width: 14px; height: 14px; flex: none; }
  .setup-perk-ico {
    width: 30px; height: 30px; flex: none; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); color: var(--brand-strong);
    box-shadow: 0 0 0 1px var(--brand-line) inset;
  }
  .setup-perk-ico svg { width: 16px; height: 16px; }
  .setup-perk-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
  .setup-perk-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
  .setup-perk-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

  /* EKRAN „START". Pasek nagłówka w wersji finału (`is-done`): „Gotowe!" większym krojem, a zdanie pod nim pogrubione — to druga linia nagłówka, nie
     objaśnienie. Pasek jest tu ciaśniej, bo środek niesie trzy bloki w oknie o stałej wysokości. */
  .setup-head.is-done { padding-top: 16px; padding-bottom: 14px; }
  .setup-head.is-done .trial-kicker { margin-bottom: 8px; }
  .setup-head.is-done .setup-steps { margin-bottom: 10px; }
  .setup-head.is-done .rv-modal-title { font-size: 27px; letter-spacing: -.02em; line-height: 1.15; }
  .setup-head.is-done .trial-sub { margin-top: 3px; font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

  /* Dwie karty dat obok siebie — kafelek ikony w odcieniu karty, podpis nad datą. */
  .setup-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .setup-date {
    --dx: #7c3aed; display: flex; align-items: center; gap: 9px; min-width: 0;
    padding: 10px 10px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--dx) 16%, var(--line-soft));
    background: color-mix(in srgb, var(--dx) 5%, var(--card));
  }
  .setup-date.is-end { --dx: #289be5; }
  .setup-date-ico {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--dx); background: color-mix(in srgb, var(--dx) 13%, var(--card));
  }
  .setup-date-ico svg { width: 18px; height: 18px; }
  .setup-date-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .setup-date-label { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--muted); line-height: 1.3; }
  .setup-date-value { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }

  /* „Twój plan na czas testu": kafelki pakietu w jednym rzędzie (`--tiles` z JS), każdy
     w odcieniu dodatku. */
  /* Plan rośnie do dołu okna (panel „Jeszcze jeden krok" ma wysokość treści), a kafelki
     rosną razem z nim — treść kafelka stoi na środku. */
  .setup-plan { flex: 1 0 auto; padding: 12px 12px; gap: 10px; }
  .setup-plan-h { margin: 0 2px; font-size: 15px; font-weight: 800; color: var(--ink); }
  .setup-plan-tiles {
    list-style: none; margin: 0; padding: 0; flex: 1 0 auto;
    display: grid; grid-template-columns: repeat(var(--tiles, 3), 1fr); gap: 8px;
  }
  .setup-plan-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
    padding: 12px 6px 11px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--ax) 16%, var(--line-soft));
    background: color-mix(in srgb, var(--ax) 5%, var(--card));
  }
  .setup-plan-tile[data-scope="blog"] { --ax: #289be5; }
  .setup-plan-tile[data-scope="social"] { --ax: #e1306c; }
  .setup-plan-tile[data-scope="video"] { --ax: #f59e0b; }
  .setup-plan-tile.is-off { border-style: dashed; border-color: var(--line); background: var(--card); }
  .setup-plan-tile.is-off .setup-plan-icons { filter: grayscale(1); opacity: .45; }
  .setup-plan-tile.is-off .setup-plan-name { color: var(--muted); }
  .setup-plan-icons { display: flex; gap: 4px; margin-bottom: 4px; }
  .setup-plan-icons .trial-scope-ico { width: 34px; height: 34px; border-radius: 10px; }
  .setup-plan-icons .trial-scope-ico svg { width: 19px; height: 19px; }
  .setup-plan-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
  .setup-plan-vol { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
  /* Kolory znaczków — te same co wiersze kanałów (`.trial-scope-row[data-scope]`). */
  .trial-setup .trial-scope-ico[data-scope="blog"] { --ax: #289be5; }
  .trial-setup .trial-scope-ico[data-scope="fb"] { --ax: #1877f2; }
  .trial-setup .trial-scope-ico[data-scope="ig"] { --ax: #d6249f; }
  .trial-setup .trial-scope-ico[data-scope="tt"] { --ax: #1f2937; }
  .trial-setup .trial-scope-ico[data-scope="yt"] { --ax: #ff0000; }
  :root[data-theme="dark"] .trial-setup .trial-scope-ico[data-scope="tt"] { --ax: #5b6884; }
  /* „Jeszcze jeden krok" — kafelek z ogniwem po lewej, tekst obok, znaczki kanałów pod spodem
     na całą szerokość panelu (cztery w jednym rzędzie nie mieszczą się obok ikony). */
  .setup-onemore {
    flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; align-content: center;
    gap: 8px 12px; padding: 11px 12px;
    border-color: var(--brand-line); background:
      radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
      var(--card-soft);
  }
  .setup-onemore-ico {
    width: 48px; height: 48px; border-radius: 50%; align-self: center;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 13%, var(--card));
  }
  .setup-onemore-ico svg { width: 24px; height: 24px; }
  .setup-onemore-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .setup-onemore-kicker {
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: var(--brand-strong);
  }
  .setup-onemore-title { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
  .setup-onemore-desc { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
  .setup-onemore-chips {
    grid-column: 1 / -1; list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .setup-onemore-chip {
    flex: 1 1 0; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 4px 9px 4px 4px; border-radius: 10px; background: var(--card);
    border: 1px solid var(--line-soft); box-shadow: 0 1px 2px rgba(16,24,40,.05);
    font-size: 12px; font-weight: 700; color: var(--ink);
  }
  .setup-onemore-chip .trial-scope-ico { width: 22px; height: 22px; border-radius: 6px; }
  .setup-onemore-chip .trial-scope-ico svg { width: 13px; height: 13px; }
  .setup-onemore-chip > svg { width: 12px; height: 12px; color: var(--ok); }
  .setup-onemore-chip.is-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
  /* Kolorowy przycisk do ekranu kont niesie strzałkę — prowadzi DALEJ, do kolejnego kroku.
     Osobny element, nie `::after`: ten pseudo-element `.btn` ma już na odblask (base.css). */
  .setup-btn-arrow { margin-left: 8px; font-weight: 700; }
  @media (max-width: 520px) {
    .setup-dates { grid-template-columns: 1fr; }
    .setup-plan-tiles { grid-template-columns: 1fr; }
    .setup-plan-tile { flex-direction: row; text-align: left; gap: 8px; }
    .setup-plan-icons { margin: 0; }
    .setup-plan-vol { margin-left: auto; }
  }
  /* Pole adresu stoi W karcie, w miejscu napisu — wyśrodkowane jak on, żeby „Zmień" nie
     przestawiało układu, tylko zamieniało tekst na coś, co da się edytować. */
  .setup-input {
    width: 100%; box-sizing: border-box; padding: 10px 13px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink);
    font: inherit; font-size: 14px;
  }
  .setup-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ghost); }
  .setup-email-input { text-align: center; font-weight: 700; font-size: 15px; margin-top: 4px; }
  .setup-email-card.is-editing .setup-email-label { color: var(--brand-strong); }
  .trial-setup .rv-modal-error { margin-top: 10px; }

  /* „Więcej opcji po integracji" pod kartą publikacji blogu — tylko na platformie bez
     `publish_auto` (sklep bez naszej aplikacji). Firmowy odcień, nie ostrzeżenie: to nie jest
     błąd, tylko droga do reszty opcji. */
  .setup-upsell {
    display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 8px 12px;
    border-radius: 14px; background: var(--brand-ghost);
    border: 1px solid var(--brand-line);
  }
  .setup-upsell-ico {
    width: 26px; height: 26px; flex: none; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); color: var(--brand-strong);
  }
  .setup-upsell-ico svg { width: 15px; height: 15px; }
  /* Jedna linijka: pogrubione pytanie i odpowiedź zaraz po nim. Co integracja odblokowuje,
     widać w dwóch wyszarzonych kartach tuż nad nią, więc zdanie nie musi tego powtarzać. */
  .setup-upsell-body { min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
  .setup-upsell-title { font-weight: 700; color: var(--ink); margin-right: 3px; }

  /* OKNO O STAŁYM ROZMIARZE (tryb `self`, `.is-wizard`). Cztery ekrany jednego okna miały
     każdy swoją wysokość, więc okno skakało przy każdym „Dalej" i przyciski uciekały spod
     kursora. Dziś wysokość jest jedna: nagłówek i przyciski stoją w miejscu (`flex: none`),
     a przewija się tylko środek — `.rv-modal-body` ekranu 1 i każdego panelu kreatora.
     Środek wychodzi ujemnymi marginesami do krawędzi okna, żeby pasek przewijania stał przy
     krawędzi, a nie w połowie paddingu. */
  .trial-dialog.is-wizard {
    width: min(480px, calc(100vw - 32px));
    height: min(680px, calc(100vh - 32px), calc(100dvh - 32px));
    max-height: none; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .trial-dialog.is-wizard > *,
  .trial-dialog.is-wizard .trial-pane > * { flex: none; }
  .trial-dialog.is-wizard > .rv-modal-body,
  .trial-dialog.is-wizard .trial-pane > .rv-modal-body,
  .trial-dialog.is-wizard .trial-sent > .rv-modal-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    margin: 0 -24px 16px; padding: 0 24px 4px;
  }
  .trial-dialog.is-wizard .trial-setup:not([hidden]),
  .trial-dialog.is-wizard .trial-pane:not([hidden]),
  .trial-dialog.is-wizard > .trial-sent:not([hidden]) {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  }
  /* Pierwsza lista środka nie potrzebuje odstępu od paska nagłówka — ten ma już własny
     dolny margines — więc każdy ekran zaczyna treść na tej samej wysokości. */
  .trial-dialog.is-wizard .rv-modal-body > :first-child { margin-top: 0; }

  .nav-btn.is-locked { color: var(--muted-2); opacity: .68; }
  .nav-btn.is-locked .nav-ico { color: var(--muted-2); }
  .nav-btn.is-locked:hover { opacity: 1; }
  .nav-btn[data-state="connect"] .nav-count, .nav-btn[data-state="locked"] .nav-count { display: none; }

  /* Na zamkniętej zakładce JS chowa `.subbar` (02-main.js), więc razem z nią znika jej
     `margin: 18px 0 16px` i baner kleił się do paska nawigacji. Odtwarzamy górny odstęp. */
  .locked-view { margin-top: 18px; }
  /* .locked-banner / .channel-notice live in base.css — the settings page wears them too. */

  /* The reel layout itself stays: TikTok/YouTube verticals use it for their 9:16 media. */
  .sc-media.reel { aspect-ratio: 9 / 16; max-height: 600px; }
  .sc-media.reel video, .sc-media.reel img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
  .sc-actions-reel {
    position: absolute; right: 10px; bottom: 16px; z-index: 3;
    display: flex; flex-direction: column; gap: 15px; align-items: center;
  }
  .sc-actions-reel .reel-act {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(16, 18, 22, .34); backdrop-filter: blur(3px); box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
  .sc-actions-reel .reel-act svg { width: 22px; height: 22px; }

  @media (prefers-reduced-motion: reduce) { .nav-btn { transition: none; } }
  @media (max-width: 720px) {
    .subbar { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
    .subbar-left, .subbar-center, .subbar-right { justify-self: center; }
    .subbar-left { justify-content: center; }
    /* Tabs stay one row and the plan group drops to its own row underneath. With four tabs
       the row no longer fits from ~360px down (measured; de/fr labels are longer still), so
       the tabs sit in a strip that SCROLLS sideways instead of wrapping: 02-main.js scrolls the
       active tab into it and fades only the edge that hides something (.fade-start/.fade-end). */
    .navbar { flex-wrap: wrap; }
    .nav-tabs { flex: 1 1 100%; }
    .nav-btn { padding: 14px 15px; }
    .nav-plan { width: 100%; margin-left: 0; padding: 8px 0 10px; justify-content: flex-end; border-top: 1px solid var(--line-soft); }
    .daynav-label { min-width: 150px; padding: 8px 16px; }

    /* ---- Sticky stack, wersja „w ruchu" -------------------------------------
       Na telefonie baner + zakładki + wiersz pakietu + pasek informacyjny pinują ~200px
       z 844px ekranu. Pakiet i pasek informacyjny to dane NA WEJŚCIE (jaki mam plan, jaka
       domena/kadencja) — przy czytaniu listy draftów nie niosą nic, a kosztują pół karty.
       Po zjechaniu ze szczytu strony zwijamy więc pasek informacyjny w całości, a z wiersza
       pakietu sam odczyt (przycisk zostaje — patrz wyjątek niżej), zostawiając zakładki
       i górny baner.
       Klasa `is-scrolled` na <html> pochodzi z review/00-topbar.js (histereza 24/8px).
       Zwijamy max-height, nie display, żeby powrót na górę był ruchem, a nie przeskokiem. */
    .nav-plan, .infobars {
      overflow: hidden; max-height: 240px; opacity: 1;
      transition: max-height .24s ease, opacity .18s ease, padding .24s ease;
    }
    :root.is-scrolled .infobars {
      max-height: 0; opacity: 0;
      padding-top: 0; padding-bottom: 0; border-top-width: 0;
    }
    /* Wyjątek od zwijania: PRZYCISK pakietu zostaje na ekranie. Na telefonie nie ma zakładki
       „Sklep", więc to jedyne wejście do panelu pakietów — chowany razem z odczytem planu
       znikał dokładnie wtedy, gdy klient przewija drafty, czyli w jedynym momencie, w którym
       oferta „Testuj 30 dni" ma sens. Zwijamy więc tylko ODCZYT („Twój plan: Tryb demo") —
       to on jest daną na wejście — a wiersz zostaje jako wąski pasek z samym CTA.
       `display: none` na etykietach, nie max-height: to elementy flexa w wierszu, więc
       zwinięte na wysokość i tak trzymałyby swoją szerokość obok przycisku. */
    :root.is-scrolled .nav-plan { padding-top: 4px; padding-bottom: 6px; }
    :root.is-scrolled .nav-plan-label,
    :root.is-scrolled .nav-plan-value { display: none; }
    @media (prefers-reduced-motion: reduce) {
      .nav-plan, .infobars { transition: none; }
    }
  }

  .article-list { margin: 8px 0 0; }
  .article-list .post-article { margin-bottom: 22px; }

  /* ---- Widok kafelków -------------------------------------------------------
     Źródłem prawdy jest data-review-view na <html> (ustawiane przed pierwszym
     malowaniem w <head>, potem przez 02-main.js). Kafelek i karta są rodzeństwem
     w .article-list: dokładnie jedno z nich jest widoczne, a filtr statusu z
     render() dokłada do obu inline display:none — dlatego te reguły NIE używają
     !important i nie mogą go dostać. */
  .article-tile { display: none; }
  /* 2 kafelki w rzędzie: .wrap ma max 1040px (≈1000px treści), więc minmax(340px, 1fr)
     nigdy nie zmieści trzeciej kolumny, a poniżej ~700px sam schodzi do jednej. */
  /* `min(340px, 100%)` zamiast gołego 340px: przy oknie węższym niż ~370px sam track minmax
     wymuszał 340px min-contentu na całej liście → `.wrap` → dokument, i telefon rozjeżdżał
     layout viewport. `min()` pozwala kolumnie zejść do szerokości kontenera. */
  :root[data-review-view="tiles"] .article-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
  :root[data-review-view="tiles"] .article-list .post-article { display: none; margin-bottom: 0; }
  :root[data-review-view="tiles"] .article-tile { display: flex; }

  .article-tile {
    appearance: none; font-family: inherit; text-align: left; padding: 0; cursor: pointer;
    flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  .article-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-line); }
  .article-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .at-cover { display: block; aspect-ratio: 16 / 9; background: var(--card-soft); overflow: hidden; }
  .at-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .at-cover.is-empty { background: var(--brand-grad-90); opacity: .18; }
  .at-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
  .at-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .at-pill {
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 6px; color: var(--warn-ink); background: color-mix(in srgb, var(--warn) 16%, transparent);
  }
  .at-pill.is-published { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
  .at-day { font-size: 11px; font-weight: 700; color: var(--muted-2); }
  .at-title {
    font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.26;
    letter-spacing: -.01em; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .at-dek {
    font-size: 13.5px; line-height: 1.5; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---- Popup kafelka --------------------------------------------------------
     Karta zostaje w swoim miejscu w DOM i tylko wychodzi na position:fixed —
     nic nie jest przenoszone, więc ramka artykułu się nie przeładowuje, a
     otwarty edytor nie traci treści. Żaden przodek .post-article nie ma
     transform/filter, inaczej fixed liczyłby się względem niego. */
  .tile-modal-back { position: fixed; inset: 0; z-index: 118; background: rgba(10,16,28,.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  .tile-modal-close {
    position: fixed; top: 14px; right: 16px; z-index: 121;
    appearance: none; border: 0; cursor: pointer; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  }
  .tile-modal-back[hidden], .tile-modal-close[hidden] { display: none; }
  .tile-modal-close svg { width: 17px; height: 17px; }
  /* Wyśrodkowanie przez auto-marginesy, NIGDY przez transform: transform na karcie
     zrobiłby z niej blok zawierający dla każdego position:fixed w środku i przestawił
     wszystko, co liczy pozycję z getBoundingClientRect(). */
  :root[data-review-view="tiles"] .article-list .post-article.is-modal {
    display: block; position: fixed; z-index: 119;
    top: 3vh; bottom: 3vh; left: 0; right: 0; margin: 0 auto;
    width: min(940px, 94vw); overflow: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 0 30px 80px rgba(10,16,28,.4);
  }

  @media (max-width: 480px) {
    .btn { padding: 10px 14px; }
    .article-inner { padding-top: 30px; }
  }

  /* ── Phones ──────────────────────────────────────────────────────────────────
     Two things drive this block. (1) The sticky stack — banner + tab row + plan row
     + info bar — pins 350px of an 844px phone in its desktop sizing, so every card
     the client scrolls to lands underneath it; everything here shrinks that stack.
     (2) iOS Safari zooms the page in on focusing any field under 16px and never
     zooms back, so every editable control gets 16px. */
  @media (max-width: 560px) {
    /* Wiersz narzędzi karty w jednej linii: z „Usuń" zostaje czerwona ikona (aria-label/title
       niosą nazwę). */
    .foot-tools { gap: 6px; }
    .foot-tools .btn { padding: 9px 11px; }
    .foot-tools .tool-danger .tool-label,
    .foot-actions .tool-danger .tool-label { display: none; }
    .foot-actions .btn.tool-danger { padding: 9px 11px; }
    .wrap { padding-left: 14px; padding-right: 14px; }
    .masthead-title { padding: 4px 14px 18px; }
    .masthead-title h1 { margin: 4px 0 10px; }
    .masthead-sub { font-size: 14px; }
    .masthead-title.split { display: block; }
    .plat-promo { text-align: left; margin-top: 12px; }
    .plat-promo .plat-links { justify-content: start; }

    /* Sticky stack, row by row. */
    .onb-banner { padding: 10px 14px; font-size: 12.5px; gap: 8px; }
    /* Druga linijka pitchu demo (`.onb-sub`) na telefonie NIE wchodzi: przy 320–390px
       rozpychała baner do 4–7 wierszy, ściskała tekst do wąskiej kolumny obok przycisku
       (który jest `white-space: nowrap` i zabiera ~175px) i cały pasek — sticky! — zjadał
       jedną piątą ekranu. Nagłówek + CTA sprzedają to samo w jednym wierszu. */
    .onb-banner .onb-sub { display: none; }
    .test-cta, .demo-cta { padding: 7px 12px; font-size: 12.5px; }
    .navbar { padding: 0 8px; }
    .nav-btn { padding: 12px 10px; font-size: 14px; gap: 7px; }
    .nav-plan { padding: 6px 6px 9px; gap: 8px; }
    /* Etykieta „Twój plan:" ZOSTAJE też na telefonie — bez niej samo „Pro" obok przycisku
       czytało się jak kolejna zakładka, a nie jak stan rozliczeniowy. Sam odczyt (etykieta
       + nazwa progu) znika dopiero po zjechaniu ze szczytu; przycisk pakietu zostaje
       (patrz `.is-scrolled` w bloku ≤720px). */
    .nav-plan-label { font-size: 11.5px; }
    /* Na telefonie odczyty łamią się na kilka wierszy różnej wysokości (konta i pigułki
       platform zawijają się w swoich kolumnach), a `align-items: center` rozjeżdżał wtedy
       etykiety sąsiadów w pionie. Do góry — etykiety w wierszu stoją w jednej linii. */
    .infobars .client-card { padding: 10px 14px; gap: 8px 18px; align-items: flex-start; }
    .infobars .cc-case-cta { align-self: center; }
    .cc-label { font-size: 9.5px; }
    .cc-value, .cc-acct { font-size: 13.5px; }

    /* Touch targets: the desktop pills are 27–29px tall. */
    .seg-btn { padding: 9px 13px; }
    /* Filtr statusu i pager dnia to jedyne elementy paska sterowania, których min-content
       (2 pigułki obok siebie / etykieta daty + dwie strzałki) przebijał treść telefonu —
       `.subbar` nie ma jak ich ścisnąć, więc rozpychały dokument. Wolno im się złamać. */
    .seg { flex-wrap: wrap; justify-content: center; }
    .daynav-label { min-width: 0; }
    /* Widok list/kafelki: ikony niosą znaczenie, a etykieta + licznik + filtr statusu
       nie mieszczą się w jednym wierszu paska. Tytuł/aria zostają. */
    .view-seg .seg-label { display: none; }
    .view-seg .seg-btn { padding: 9px 11px; }
    .tile-modal-close { top: 8px; right: 10px; }
    :root[data-review-view="tiles"] .article-list .post-article.is-modal { top: 0; bottom: 0; width: 100vw; border-radius: 0; }
    /* Nagłówek karty społecznościowej: awatar + nazwa + plakietka platformy + „…" przy
       długiej nazwie sklepu mają min-content WIĘKSZE niż treść na 390px telefonie — a że
       nic tu nie mogło się skrócić, rozpychało kartę → `.wrap` → dokument i przeglądarka
       mobilna rozjeżdżała layout viewport (ten sam objaw co karuzela niżej w pliku).
       Nazwa profilu jest tu jedyną rzeczą, która może ustąpić: ucinamy ją wielokropkiem. */
    /* Pasek „Lubię to / Komentarz / Udostępnij" (podgląd FB) ma min-content 285px — o kilka
       pikseli za dużo na 320px telefonie, a jako flex row nie miał jak ustąpić. Ikona niesie
       znaczenie, więc zamiast łamać wiersz ściskamy odstępy i pozwalamy etykiecie zniknąć. */
    .sc-actions-fb { gap: 2px; }
    .sc-actions-fb button { min-width: 0; gap: 6px; padding-left: 2px; padding-right: 2px; overflow: hidden; }
    .sc-head { gap: 9px; padding: 12px; }
    .sc-name { display: flex; min-width: 0; }
    .sc-name, .sc-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sc-name > .verified { flex: 0 0 auto; }
    .emoji-btn { width: 38px; height: 38px; }
    .tone-ctrls button { width: 32px; height: 32px; }

    .caption-input, .modal-input, .modal-textarea, .cp-instruction { font-size: 16px; }
    .modal { padding: 20px 18px 18px; }
    /* Studio okładki: `.btn` jest z zasady `white-space: nowrap; overflow: hidden` — na 320px
       etykiety („Nowa wersja z tym produktem") zostawałyby PRZYCIĘTE. Tu wolno im się złamać. */
    .cs-reroll, .cs-actrow .btn, .cs-crop-btns .btn { white-space: normal; line-height: 1.25; }
  }
  @media (max-width: 420px) {
    /* Below this the three tab labels + counts no longer fit beside their icons, and a
       wrapped tab row costs more than the icons are worth. */
    .nav-btn .nav-ico { display: none; }
    .nav-btn { padding: 12px 8px; }
    .nav-btn .nav-label { display: none; }
    .nav-btn .nav-label-short { display: inline; }
    /* Pager dnia: „3 października 2026" + dwie strzałki to ~287px min-content, a na 320px
       telefonie zostaje ~262px (zmierzone: strona 345px). Ciaśniejsze strzałki i data, która
       wolno się złamać (es/pt „de septiembre de" są jeszcze dłuższe) — nic nie rozpycha. */
    .daynav-arrow { padding: 0 10px; }
    .daynav-label { padding: 8px 10px; }
    .daynav-date { white-space: normal; }
  }

  /* Plan próbki (generator/sample_plan.py): zachęta do bezpłatnego testu nad zakładką Harmonogram. */
  .cplan-sample-cta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
    margin: 16px 0; padding: 14px 18px; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, var(--card));
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--card));
  }
  .cplan-sample-text { margin: 0; flex: 1 1 320px; color: var(--ink); line-height: 1.5; }
  /* Tytuł banera większy od opisu (2026-11-20); blok zamiast <br>, żeby odstęp był z CSS. */
  .cplan-sample-title { display: block; margin-bottom: 4px; font-size: 1.3em; line-height: 1.3; }
  /* Pogrubione nazwy w opisie („Media Agent AI", „Czat AI", „Recepcja AI") nie łamią się w środku
     — na telefonie „AI" spadało samo do następnej linii. */
  .cplan-sample-text strong:not(.cplan-sample-title) { white-space: nowrap; }

  /* ==== Zakładka Harmonogram (plan contentu, 10-content-plan.js) ===========================
     Tablice: docs/superpowers/plans/harmonogram-v2-boards/*. Kolory wyłącznie z tokenów (ciemny
     motyw działa sam); wyjątkiem są kropki tematów przewodnich (inline z CLUSTER_COLORS) i
     fiolet zakładki. Pasek narzędzi, przełącznik i pager to żywe klasy .subbar/.seg/.daynav. */
  .cplan {
    --cp-link: var(--brand-strong);
    --cp-pil-ink: color-mix(in srgb, var(--accent) 72%, var(--ink));
    --cp-pil-tint: color-mix(in srgb, var(--accent) 15%, var(--card));
    --cp-neu-tint: color-mix(in srgb, var(--muted) 15%, var(--card));
    --cp-ok-ink: color-mix(in srgb, var(--ok) 72%, var(--ink));
    --cp-ok-tint: var(--ok-bg);
    --cp-warn-ink: var(--warn-ink);
    --cp-warn-tint: var(--warn-bg);
    --cp-seg: color-mix(in srgb, var(--ink) 5%, var(--card));
    display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px;
  }
  .cplan a { color: var(--cp-link); }
  .cplan a:hover { color: var(--brand); }
  .cplan .subbar { margin: 18px 0 2px; }
  .cplan-seg .seg-btn { padding: 7px 11px; gap: 6px; }
  .cplan-seg .seg-btn svg { flex: 0 0 14px; }
  .cplan-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
  .cplan-note > svg { flex: 0 0 17px; margin-top: 2px; }
  .cplan-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; display: inline-block; }

  /* Pasek tematu, gdy w filtrze Listy jest dokładnie jeden temat. */
  .cplan .cplan-cluster-strip {
    display: flex; flex-wrap: wrap; gap: 14px 30px; padding: 12px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: none;
  }

  /* Karta tematu — dziś już tylko szczegóły w Kalendarzu (detailCard); Lista ma wiersze (.cplan-row). */
  .cplan-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
    padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 140px;
  }
  .cplan-card.is-flash { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
  .cplan-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .cplan-pill {
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 6px; white-space: nowrap;
  }
  .cplan-pill.is-scheduled { background: var(--brand-ghost); color: var(--cp-link); }
  .cplan-pill.is-done { background: var(--cp-ok-tint); color: var(--cp-ok-ink); }
  .cplan-pill.is-pillar { background: var(--cp-pil-tint); color: var(--cp-pil-ink); }
  .cplan-pill.is-supporting { background: var(--cp-neu-tint); color: var(--ink-2); }
  .cplan-pill.is-custom { padding: 2px 6px; border: 1px solid var(--line); color: var(--ink-2); }
  .cplan-date { font-size: 12.5px; color: var(--muted); }
  .cplan-card-cluster { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .cplan-title { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
  .cplan-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
  .cplan-meta b { color: var(--ink-2); font-weight: 600; }
  .cplan-meta-phone { display: none; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
  .cplan-season { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
  .cplan-season-phone { display: none; font-size: 13px; }
  .cplan-warn {
    display: flex; gap: 9px; align-items: flex-start; border-radius: 11px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45;
    background: var(--cp-warn-tint); color: var(--cp-warn-ink);
  }
  .cplan-warn > svg { flex: 0 0 16px; margin-top: 1px; }
  .cplan .cplan-warn a { color: inherit; font-weight: 800; }
  .cplan-warn.is-pillar { align-items: center; flex-wrap: wrap; background: var(--cp-pil-tint); color: var(--cp-pil-ink); }
  .cplan-warn.is-pillar > span { flex: 1 1 260px; }
  .cplan-warn.is-muted { background: var(--cp-seg); color: var(--ink-2); }
  .cplan-warn-btn {
    appearance: none; font-family: inherit; cursor: pointer; min-height: 34px; padding: 0 12px; border-radius: 9px;
    border: 1px solid currentColor; background: transparent; color: inherit; font-size: 13px; font-weight: 800;
  }

  /* Wiersz działań: ▲ ▼ po lewej, „Więcej" przy prawej krawędzi (bez .tool-danger — ma margin-right:auto). */
  .cplan-actions {
    position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 2px;
  }
  .cplan-actions .btn { min-height: 40px; padding: 0 14px; }
  .cplan-actions .cplan-icon-btn { width: 40px; padding: 0; }
  .cplan-actions .btn:disabled { opacity: .45; }
  .cplan-more { margin-left: auto; }
  .cplan-more svg { transition: transform .15s; }
  .cplan-more.is-open { border-color: var(--brand-line); background: var(--brand-ghost); color: var(--ink); }
  .cplan-more.is-open svg { transform: rotate(180deg); }
  .cplan-saving { margin-left: auto; font-size: 12.5px; color: var(--muted); }
  .cplan-menu {
    position: absolute; right: 0; top: 56px; z-index: 6; width: 250px;
    display: flex; flex-direction: column; padding: 4px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .cplan-menu-item {
    appearance: none; font-family: inherit; cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px;
    background: transparent; color: var(--ink); font-size: 14px; font-weight: 600;
  }
  .cplan-menu-item:hover, .cplan-menu-item:focus-visible { background: var(--brand-ghost); outline: none; }
  .cplan-menu-item.is-danger { color: var(--err); }
  .cplan-menu-item.is-danger:hover, .cplan-menu-item.is-danger:focus-visible { background: var(--err-bg); }
  .cplan-menu-sep { height: 1px; background: var(--line-soft); margin: 4px 8px; }

  .cplan-empty {
    background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 28px;
    text-align: center; font-size: 15px; color: var(--muted);
  }
  .cplan-empty--state { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .cplan-empty--state p { margin: 0; }

  /* Szuflady pod listą (2026-11-05): karta jak tydzień (.cplan-week), wiersze jak na liście
     (.cplan-row--x: kafelek | tytuł + linijka tematu | działanie). Reguły w bloku „Tygodnie" niżej. */

  @media (prefers-reduced-motion: reduce) {
    .cplan-more svg { transition: none; }
  }
  /* Pasek Harmonogramu ma szersze sloty niż blogowy (trzy widoki + pigułka): trzy kolumny
     mieszczą się dopiero od ~1050 px, a niżej wchodziły na siebie (900 px: ~60 px). Do 720 px
     środek (pager / zakres) schodzi więc do drugiego rzędu; od 720 px w dół wszystko w kolumnie. */
  @media (min-width: 721px) and (max-width: 1100px) {
    .cplan .subbar { grid-template-columns: 1fr auto; grid-template-areas: "left right" "center center"; row-gap: 10px; }
    .cplan .subbar-left { grid-area: left; }
    .cplan .subbar-center { grid-area: center; }
    .cplan .subbar-right { grid-area: right; }
    /* Podsumowanie ma pusty środek (okno pokazuje nagłówek widoku) — bez pustego drugiego rzędu. */
    .cplan .cplan-bar--summary { grid-template-areas: "left right"; }
    .cplan .cplan-bar--summary .subbar-center { display: none; }
  }
  @media (max-width: 720px) {
    .cplan .subbar-right { justify-self: center; }
    .cplan .cplan-bar--summary .subbar-center { display: none; }
  }
  /* Telefon (tablica Mobile): jedna kolumna, cele 44 px, menu „Więcej" rozwija się pod rzędem. */
  @media (max-width: 640px) {
    .cplan-card { padding: 16px; gap: 9px; }
    .cplan-title { font-size: 18px; }
    .cplan-card-cluster, .cplan-meta { display: none; }
    .cplan-meta-phone { display: flex; }
    .cplan-season-phone { display: inline-flex; }
    .cplan-actions { gap: 6px; padding-top: 10px; }
    .cplan-actions .btn { min-height: 44px; }
    .cplan-actions .cplan-icon-btn { width: 44px; }
    .cplan-menu { position: static; width: 100%; flex-basis: 100%; background: var(--card-soft); box-shadow: none; }
    .cplan-menu-item { min-height: 44px; font-size: 15px; }
    .cplan-note { font-size: 13px; }
  }
  /* Błąd przypięcia dnia w „Przenieś na termin" (kalendarz, .cplan-mv). */
  .cplan-pin-error { font-size: 13px; font-weight: 700; color: var(--err); }
  .cplan-pill.is-pinned { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--brand-line); background: var(--brand-ghost); color: var(--ink-2); }
  .cplan-chip-pin { flex: none; color: var(--muted); }
  /* Zmiana tytułu w miejscu i pasek po usunięciu (tablice States / Main). */
  .cplan-edit { display: flex; flex-direction: column; gap: 6px; }
  .cplan-edit-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
  .cplan-edit-row .btn { min-height: 42px; }
  .cplan-edit-label { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
  .cplan-edit-input {
    height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--brand); background: var(--card-soft); color: var(--ink);
    font-family: var(--serif); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; min-width: 0;
  }
  .cplan-edit-input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
  .cplan-edit-count { font-size: 12.5px; color: var(--muted); }
  .cplan-removed {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px;
    background: var(--card); border: 1px solid var(--brand-line); border-radius: 14px; box-shadow: var(--shadow-sm);
  }
  .cplan-removed-text { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
  .cplan-removed .btn { min-height: 40px; }
  .cplan-removed-insert { max-width: 340px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 38px; padding: 0 16px; }
  .cplan-removed .cplan-icon-btn { width: 40px; padding: 0; }
  @media (max-width: 640px) {
    .cplan-edit-input { font-size: 16px; }
    .cplan-edit-row .btn, .cplan-removed .btn { min-height: 44px; }
    .cplan-removed-insert { max-width: 100%; flex: 1 1 auto; line-height: 42px; }
  }
  /* Własny temat i menu „Wstaw" z rezerwy (tablica Panels). */
  .cplan-add-open {
    appearance: none; font-family: inherit; cursor: pointer; width: 100%; min-height: 54px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px dashed var(--line); border-radius: 14px; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 700;
  }
  .cplan-add-open:hover { border-color: var(--brand-line); background: var(--brand-ghost); color: var(--ink); }
  .cplan-add {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
    padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
  }
  .cplan-add-title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
  .cplan-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .cplan-field-label { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); padding: 0; }
  .cplan-field-opt { margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
  .cplan-field-hint { font-size: 12.5px; color: var(--muted); }
  .cplan-input {
    height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--card-soft);
    color: var(--ink); font-family: inherit; font-size: 14.5px; min-width: 0; width: 100%; box-sizing: border-box;
  }
  .cplan-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
  .cplan-input--serif { font-family: var(--serif); font-size: 16.5px; font-weight: 700; }
  .cplan-roles { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .cplan-role-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cplan-role {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line); background: var(--card);
  }
  .cplan-role.is-on { border-color: var(--brand-line); background: var(--brand-ghost); }
  .cplan-role.is-disabled { cursor: default; opacity: .6; }
  .cplan-role input { margin: 3px 0 0; accent-color: var(--brand); }
  .cplan-role-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cplan-role-name { font-size: 14px; font-weight: 800; color: var(--ink); }
  .cplan-role-hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
  .cplan-add-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cplan-add-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
  .cplan-add-actions .btn { min-height: 42px; }
  .cplan-rins { position: relative; }
  .cplan-rmenu { left: auto; right: 0; top: 40px; width: 260px; }
  @media (max-width: 640px) {
    .cplan-add { padding: 16px; }
    .cplan-input { font-size: 16px; height: 44px; }
    .cplan-role-opts, .cplan-add-two { grid-template-columns: 1fr; }
    .cplan-add-actions .btn { min-height: 44px; }
    /* Telefon: „Wstaw" stoi pod linijką tematu (lewa krawędź), menu otwiera się w prawo. */
    .cplan-rmenu { position: absolute; left: 0; right: auto; top: 48px; width: min(260px, 80vw); background: var(--card); box-shadow: var(--shadow); }
  }
  /* Podsumowanie (makiety „Harmonogram publikacji", 2026-10-19). Sekcje to karty z wewnętrznymi
     polami w --card-soft, kwadraty ikon w stałych gradientach (białe ikony, oba motywy). Bloki bez
     danych z backendu: .is-placeholder + .cplan-ph (wyciszony szkielet) + .cplan-soon („Dane
     pojawią się wkrótce.") — układ zostaje pełny (D12). */
  .cplan-sec {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
    padding: 24px 26px; display: flex; flex-direction: column; gap: 18px;
  }
  .cplan-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
  .cplan-sec-lead { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
  .cplan-sec-heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .cplan-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
  .cplan-h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
  .cplan-h3 { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
  .cplan-sec-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 820px; }
  .cplan-sec-foot { margin: 0; font-size: 13.5px; color: var(--muted); }
  .cplan-ico {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--muted-2); box-shadow: 0 8px 18px -10px rgba(16, 24, 40, .55);
  }
  .cplan-ico--sm { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .cplan-ico.is-blue { background: linear-gradient(135deg, #3b9af0, #2563eb); }
  .cplan-ico.is-green { background: linear-gradient(135deg, #2cc56f, #15803d); }
  .cplan-ico.is-violet { background: linear-gradient(135deg, #a36bff, #7c3aed); }
  .cplan-ico.is-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
  .cplan-ico.is-grad { background: var(--brand-grad); }
  .cplan-arrowlink {
    appearance: none; border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 7px; min-height: 32px; align-self: flex-start;
    font-size: 14px; font-weight: 700; color: var(--cp-link);
  }
  .cplan-arrowlink svg { flex: 0 0 15px; transition: transform .15s ease; }
  .cplan-arrowlink:hover { color: var(--brand); }
  .cplan-arrowlink:hover svg { transform: translateX(3px); }
  .cplan-arrowlink.is-outline { min-height: 42px; padding: 0 16px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-ghost); }

  /* Nagłówek widoku: tytuł + okno harmonogramu (środek paska narzędzi jest w tym widoku pusty). */
  .cplan-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 24px; flex-wrap: wrap; padding: 4px 4px 0; }
  .cplan-hero-text { flex: 1 1 420px; min-width: 0; }
  .cplan-hero-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
  .cplan-hero-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 720px; }
  .cplan-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .cplan-range {
    display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm);
    font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap;
  }
  .cplan-range svg { flex: 0 0 17px; color: var(--cp-link); }
  .cplan-hero-meta { font-size: 12.5px; color: var(--muted); }

  /* Wybór tematu w nagłówku karty (mapa tematu, sezonowość) — menu jak „Więcej", ale z listą
     tematów; przy wielu tematach przewija się w środku. */
  .cplan-pick { position: relative; flex: 0 1 auto; min-width: 0; }
  /* Długi podtytuł nie spycha wyboru pod nagłówek: tekst się zwęża, wybór zostaje po prawej. */
  .cplan-sec-head:has(> .cplan-pick) > .cplan-sec-heading { flex: 1 1 320px; }
  .cplan-pick-btn {
    appearance: none; font-family: inherit; cursor: pointer; max-width: 340px;
    display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 12px 0 14px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700;
  }
  .cplan-pick-btn:hover, .cplan-pick.is-open .cplan-pick-btn { border-color: var(--brand-line); }
  .cplan-pick-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .cplan-pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cplan-pick-btn > svg { flex: 0 0 15px; color: var(--muted); transition: transform .15s; }
  .cplan-pick.is-open .cplan-pick-btn > svg { transform: rotate(180deg); }
  .cplan-pick-menu { top: calc(100% + 6px); width: 300px; max-height: 340px; overflow-y: auto; }
  .cplan-pick-menu[hidden] { display: none; }
  .cplan-pick-iname { flex: 1; min-width: 0; line-height: 1.3; padding: 8px 0; }
  .cplan-pick-n { font-size: 12px; font-weight: 800; color: var(--muted); }
  .cplan-pick-item > svg { flex: 0 0 15px; color: var(--cp-link); visibility: hidden; }
  .cplan-pick-item[aria-checked="true"] { background: var(--brand-ghost); }
  .cplan-pick-item[aria-checked="true"] > svg { visibility: visible; }

  /* Trzy liczby. */
  .cplan-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cplan-kpi {
    display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 20px 22px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  }
  .cplan-kpi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cplan-kpi-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
  .cplan-kpi-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
  .cplan-kpi-sub { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
  .cplan-kpi-note { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
  .cplan-kpi.is-placeholder .cplan-kpi-big { color: var(--muted); }
  /* Pasek pigułek pod podpisem (2026-11-19): ‹ pasek › — pasek jedzie powoli w lewo (JS, transform),
     krawędzie wygaszone maską; strzałki przewijają szybciej. Dwie identyczne listy, każda z odstępem na
     końcu równym `gap`, więc zawinięcie co szerokość jednej kopii jest bez szwu. */
  /* Pasek zawsze na dole pola (space-between przy wierszach, margin-top: auto przy kolumnie ≤900 px),
     więc w trzech polach stoi na tej samej wysokości, choćby podpis jednego miał linijkę więcej. */
  .cplan-kpi:has(> .cplan-kpi-tick) { flex-wrap: wrap; align-content: space-between; }
  /* Tekst zostaje obok ikony: z `auto` ciało pola brało szerokość treści i schodziło pod ikonę. */
  .cplan-kpi:has(> .cplan-kpi-tick) > .cplan-kpi-body { flex: 1 1 0%; }
  .cplan-kpi-tick { flex: 1 1 100%; margin-top: auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
  .cplan-kpi-tick-view {
    flex: 1 1 auto; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .cplan-kpi-tick-track { display: flex; width: max-content; will-change: transform; }
  .cplan-kpi-tick-set { list-style: none; margin: 0; padding: 0 6px 0 0; display: flex; gap: 6px; }
  .cplan-kpi-tick-set li {
    flex: none; padding: 4px 11px; border-radius: 999px; background: var(--card-soft); border: 1px solid var(--line-soft);
    font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  }
  .cplan-kpi-tick-set b { margin-left: 6px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .cplan-kpi-tick-btn {
    appearance: none; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--card); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
  }
  .cplan-kpi-tick-btn:hover { border-color: var(--brand-line); color: var(--cp-link); }
  .cplan-kpi-tick-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* Potencjał w Google: wykres (jedna seria, kolor --accent) + tematy z największym popytem. */
  .cplan-infobtn {
    appearance: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--brand-line);
    background: var(--brand-ghost); color: var(--cp-link); font-size: 13px; font-weight: 700;
  }
  .cplan-infobtn svg { flex: 0 0 15px; }
  .cplan-infobtn[aria-expanded="true"] { border-color: var(--cp-link); }
  .cplan-pot-info { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--cp-seg); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
  .cplan-pot { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
  .cplan-chart, .cplan-top { min-width: 0; padding: 18px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 14px; }
  .cplan-chart-body { display: flex; gap: 10px; padding-top: 34px; }
  .cplan-chart-y { position: relative; flex: 0 0 50px; height: 220px; }
  .cplan-chart-ylab { position: absolute; right: 0; transform: translateY(50%); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cplan-chart-col { flex: 1; min-width: 0; }
  .cplan-chart-plot { position: relative; height: 220px; color: var(--accent); }
  .cplan-chart-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line-soft); }
  .cplan-chart-grid.is-base { border-top-color: var(--line); }
  .cplan-chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .cplan-chart-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .cplan-chart-dot {
    position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 0 2px var(--card-soft); pointer-events: none;
  }
  .cplan-chart-dot.is-on { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .cplan-chart-end {
    position: absolute; transform: translate(-100%, calc(-100% - 10px)); pointer-events: none; white-space: nowrap;
    padding: 5px 10px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800;
  }
  .cplan-chart-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--muted-2); opacity: 0; pointer-events: none; }
  .cplan-chart-tip {
    --tx: 12px; --ty: -100%;
    position: absolute; z-index: 2; display: none; flex-direction: column; gap: 2px; width: max-content; max-width: 250px;
    transform: translate(var(--tx), var(--ty)); pointer-events: none; padding: 9px 12px; border-radius: 10px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.4; color: var(--muted);
  }
  .cplan-chart-tip.is-left { --tx: calc(-100% - 12px); }
  .cplan-chart-tip.is-low { --ty: 12px; }
  .cplan-chart-tip-v { font-size: 14px; color: var(--ink); }
  .cplan-chart-tip-t { color: var(--ink-2); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cplan-chart.is-hover .cplan-chart-cross { opacity: 1; }
  .cplan-chart.is-hover .cplan-chart-tip { display: flex; }
  .cplan-chart.is-hover .cplan-chart-end { opacity: .35; }
  .cplan-chart-hit { position: absolute; inset: -10px 0; cursor: crosshair; border-radius: 8px; }
  .cplan-chart-hit:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .cplan-chart-x { position: relative; height: 18px; margin-top: 10px; }
  .cplan-chart-x span { position: absolute; top: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .cplan-chart-empty { min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; color: var(--muted); }
  .cplan-top { display: flex; flex-direction: column; }
  .cplan-top-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
  .cplan-top-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(50px, 1fr) auto; gap: 12px; align-items: center; font-size: 13.5px; }
  .cplan-top-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cplan-top-track, .cplan-topic-track { display: block; height: 8px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--muted) 18%, transparent); }
  .cplan-top-bar, .cplan-topic-bar { display: block; height: 100%; border-radius: 99px; }
  .cplan-top-bar { background: var(--brand-grad); }
  .cplan-top-v { min-width: 52px; text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
  .cplan-top .cplan-arrowlink { margin-top: auto; }

  /* Wyniki Twojej analizy: cztery pola (same dane), pod nimi lejek i „dziś vs. po harmonogramie". */
  .cplan-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .cplan-box { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 14px; }
  .cplan-box-head { display: flex; align-items: center; gap: 12px; }
  .cplan-box-title { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); }
  .cplan-box-v { display: flex; flex-direction: column; gap: 2px; }
  .cplan-box-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
  .cplan-box-unit { font-size: 13.5px; color: var(--muted); }
  /* Lejek: kroki zwężają się o 14% (≤760 px o 4%), tło coraz mocniej w --accent, ostatni w gradiencie.
     Krok = przycisk; rozwinięcie (.cplan-fun-detail) ma pełną szerokość lejka, jedno naraz. */
  .cplan-funnel { padding: 18px; border-radius: 14px; background: var(--card-soft); border: 1px solid var(--line-soft); }
  .cplan-fun { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .cplan-fun-step { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .cplan-fun-row {
    appearance: none; border: 0; cursor: pointer; font-family: inherit;
    width: calc(100% - var(--i, 0) * 14%); min-height: 44px; padding: 6px 14px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; line-height: 1.3; text-align: center; color: var(--ink);
    transition: box-shadow .15s ease;
  }
  .cplan-fun-row b { flex: 0 0 auto; font-size: 20px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .cplan-fun-label { min-width: 0; }
  .cplan-fun-chev { flex: 0 0 16px; opacity: .6; transition: transform .15s ease; }
  .cplan-fun-row[aria-expanded="true"] .cplan-fun-chev { transform: rotate(180deg); opacity: 1; }
  .cplan-fun-row:hover, .cplan-fun-row[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--brand-line); }
  .cplan-fun-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .cplan-fun-step:nth-child(1) .cplan-fun-row { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
  .cplan-fun-step:nth-child(2) .cplan-fun-row { background: color-mix(in srgb, var(--accent) 17%, var(--card)); }
  .cplan-fun-step:nth-child(3) .cplan-fun-row { background: color-mix(in srgb, var(--accent) 24%, var(--card)); }
  .cplan-fun-step:nth-child(4) .cplan-fun-row { background: color-mix(in srgb, var(--accent) 31%, var(--card)); }
  .cplan-fun-step.is-last .cplan-fun-row { background: var(--brand-grad); color: #fff; }
  .cplan-fun-step.is-last .cplan-fun-row:hover, .cplan-fun-step.is-last .cplan-fun-row[aria-expanded="true"] { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
  .cplan-fun-detail {
    width: 100%; box-sizing: border-box; margin-bottom: 4px; padding: 14px 16px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line-soft);
    display: flex; flex-direction: column; gap: 10px; text-align: left;
  }
  .cplan-fun-detail[hidden] { display: none; }
  .cplan-fun-p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
  .cplan-fun-p.is-label { margin-bottom: -4px; font-size: 13px; font-weight: 700; color: var(--ink); }
  .cplan-fun-p.is-note { font-size: 13px; color: var(--muted); }
  .cplan-fun-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .cplan-fun-chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card-soft); font-size: 13px; color: var(--ink);
  }
  .cplan-fun-chip-k { font-weight: 600; }
  .cplan-fun-chip-v { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cplan-fun-chip.is-off { color: var(--muted); }
  .cplan-fun-chip.is-off .cplan-fun-chip-k { font-weight: 500; }
  .cplan-fun-chip.is-off .cplan-dot { box-shadow: inset 0 0 0 1.5px var(--muted-2); }
  .cplan-fun-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--muted) 22%, transparent); }
  .cplan-fun-split-keep { display: block; height: 100%; background: var(--accent); }
  .cplan-fun-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink-2); }
  .cplan-fun-leg { display: inline-flex; align-items: center; gap: 7px; }
  .cplan-fun-sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; background: color-mix(in srgb, var(--muted) 22%, var(--card)); }
  .cplan-fun-leg.is-keep .cplan-fun-sw { background: var(--accent); }
  .cplan-fun-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .cplan-fun-topics li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; }
  .cplan-fun-topic-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
  .cplan-fun-topic-meta { grid-column: 1 / -1; padding-left: 16px; font-size: 13px; color: var(--muted); }
  .cplan-fun-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .cplan-fun-items li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
  .cplan-fun-item-d { flex: 0 0 52px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cplan-fun-item-t { min-width: 0; color: var(--ink-2); }
  /* Dziś vs. po harmonogramie: dwie karty i strzałka; ≤760 px jedna pod drugą. */
  .cplan-vs { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; gap: 10px; }
  .cplan-vs-card { padding: 16px 18px; border-radius: 14px; background: var(--card-soft); border: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
  .cplan-vs-card.is-plan { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card-soft)); }
  .cplan-vs-eyebrow { font-size: 13px; font-weight: 700; color: var(--muted); }
  .cplan-vs-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
  .cplan-vs-sub { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
  .cplan-vs-card.is-placeholder .cplan-vs-big { color: var(--muted); }
  .cplan-vs-arrow { align-self: center; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-ghost); color: var(--cp-link); }
  .cplan-ph {
    display: inline-block; width: 2.6em; height: .95em; border-radius: 6px; vertical-align: -0.12em;
    background: color-mix(in srgb, var(--muted) 22%, var(--card)); animation: cplan-ph 1.6s ease-in-out infinite;
  }
  .cplan-ph.is-wide { width: 5.2em; }
  @keyframes cplan-ph { 50% { opacity: .55; } }
  .cplan-soon { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

  /* Konkurencja: wiersz = domena | pasek (tematy / sprawdzone frazy) | tematy | pozycja | ruch.
     Kolumny stałe w każdym wierszu, więc nagłówek (div, aria-hidden) stoi nad nimi bez tabeli. */
  .cplan-sec--comp { gap: 12px; }
  .cplan-sec--comp .cplan-sec-head { margin-bottom: 6px; }
  .cplan-comp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .cplan-comp-row {
    display: grid; grid-template-columns: minmax(110px, 1.1fr) minmax(80px, 2fr) 78px 90px 136px; gap: 10px 16px;
    align-items: center; font-size: 14px;
  }
  .cplan-comp-row.is-head { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
  .cplan-comp-dom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }
  .cplan-comp .cplan-top-track { height: 10px; }
  .cplan-comp.is-placeholder .cplan-top-bar { background: color-mix(in srgb, var(--muted) 22%, var(--card)); animation: cplan-ph 1.6s ease-in-out infinite; }
  .cplan-comp-n, .cplan-comp-pos, .cplan-comp-etv { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cplan-comp-call {
    display: flex; gap: 14px; align-items: center; margin-top: 6px; padding: 14px 16px; border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 10%, var(--card-soft)); border: 1px solid var(--line-soft);
  }
  .cplan-comp-call-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
  .cplan-comp-call-text strong { color: var(--ink); }
  .cplan-comp-call.is-placeholder { background: var(--card-soft); }
  .cplan-comp-call.is-placeholder .cplan-ico { background: var(--cp-seg); color: var(--muted-2); box-shadow: none; }
  .cplan-comp-call.is-placeholder .cplan-comp-call-text { color: var(--muted); }

  /* Zaplanowane publikacje (2026-10-22, D19): drzewo artykuły → kanały → Reels. Sekcja się zwija
     (.is-open): zwinięta = nagłówek z sumą + rząd kanałów, rozwinięta = drzewo. Kolor kanału = --pc
     (tło i obwódka karty); kwadraty ze znakami w gradientach marek (.badge--*), jak na kartach postów. */
  .cplan-pub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; cursor: pointer; }
  .cplan-pub-headtext { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .cplan-pub-total { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
  .cplan-pub-total strong { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
  /* „Rozwiń" na środku pod nagłówkiem: duży, w kolorze ikony sekcji, żeby przyciągał wzrok. Po
     rozwinięciu „Zwiń" na dole drzewa, już spokojny (obwódka, bez koloru). Ten sam przycisk zwija
     mapę tematu („Jak treści łączą się w temat"), więc stan idzie po aria-expanded, nie po sekcji. */
  .cplan-pub-toggle {
    appearance: none; align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 30px; border: 1px solid transparent; border-radius: 14px;
    background: linear-gradient(135deg, #a36bff, #7c3aed); color: #fff;
    font-family: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer;
    box-shadow: 0 14px 26px -14px rgba(124, 58, 237, .9); transition: transform .15s ease, box-shadow .15s ease;
  }
  .cplan-pub-toggle:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -14px rgba(124, 58, 237, 1); }
  .cplan-pub-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .cplan-pub-toggle[aria-expanded="true"] {
    min-height: 42px; padding: 0 22px; border-color: var(--line); background: var(--card); color: var(--ink-2);
    font-size: 14px; font-weight: 700; box-shadow: none;
  }
  .cplan-pub-toggle[aria-expanded="true"]:hover { transform: none; border-color: var(--brand-line); color: var(--cp-link); }
  .cplan-pub-toggle svg { flex: 0 0 18px; transition: transform .2s ease; }
  .cplan-pub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .cplan-pub-strip[hidden], .cplan-pub-body[hidden], .cplan-map[hidden] { display: none; }
  .cplan-sec-heading.is-toggle { cursor: pointer; }
  /* Kanały z liczbami w prawym górnym rogu (zwinięta); poniżej 1100 px schodzą pod tytuł. */
  .cplan-pub-strip { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .cplan-pub-strip li {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 4px; border-radius: 999px;
    background: var(--card-soft); border: 1px solid var(--line-soft);
    font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums;
  }
  .cplan-pub-strip .cplan-pub-ico { width: 30px; height: 30px; flex-basis: 30px; border-radius: 50%; box-shadow: none; }
  .cplan-pub-strip .cplan-pub-ico svg { width: 15px; height: 15px; }
  .cplan-pub-body { display: flex; flex-direction: column; gap: 18px; }
  .cplan-pub-ico {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -10px rgba(16, 24, 40, .55);
  }
  .cplan-pub-ico svg { width: 20px; height: 20px; }

  .cplan-tree { --tl: color-mix(in srgb, var(--accent) 32%, var(--line)); --gap: 16px; display: flex; flex-direction: column; align-items: center; }
  .cplan-tree-root { width: min(440px, 100%); }
  .cplan-node {
    --pc: var(--accent);
    position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px;
    border-radius: 16px; border: 1px solid color-mix(in srgb, var(--pc) 26%, var(--line));
    background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 10%, var(--card)), var(--card) 75%);
    box-shadow: var(--shadow-sm);
  }
  .cplan-node.is-fb { --pc: #1877f2; }
  .cplan-node.is-ig { --pc: #e1306c; }
  .cplan-node.is-tt { --pc: #fe2c55; }
  .cplan-node.is-yt { --pc: #ff0000; }
  .cplan-node-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .cplan-node-name { display: flex; flex-direction: column; min-width: 0; font-size: 16px; line-height: 1.2; color: var(--ink); }
  .cplan-node-meta { font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .cplan-node-stats { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .cplan-node-stat { font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
  .cplan-node-stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
  .cplan-node-desc { margin: 0; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.5; color: var(--muted); }
  /* Korzeń: nazwa i liczba w jednym rzędzie, zdanie pod spodem na całą szerokość. */
  .cplan-node.is-root { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 18px 20px; }
  .cplan-node.is-root .cplan-node-desc { grid-column: 1 / -1; }
  .cplan-node.is-root .cplan-pub-ico { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
  .cplan-node.is-root .cplan-node-stat b { font-size: 28px; }
  .cplan-node.is-reel { padding: 13px 14px; gap: 10px; }
  .cplan-node.is-reel .cplan-pub-ico { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .cplan-node.is-reel .cplan-pub-ico svg { width: 17px; height: 17px; }
  .cplan-node.is-reel .cplan-node-name { font-size: 15px; }
  .cplan-node.is-reel .cplan-node-stat b { font-size: 20px; }
  .cplan-node.is-reel .cplan-node-desc { padding-top: 9px; }
  /* Kanał poza pakietem / wyłączony: szara karta z przerywaną obwódką, znak w odcieniach szarości,
     zamiast liczb notka z kłódką (albo link do Ustawień); linia do niej przerywana, bez impulsu. */
  .cplan-node.is-dim { background: var(--card-soft); border-style: dashed; border-color: var(--line); box-shadow: none; }
  .cplan-node.is-dim .cplan-pub-ico { filter: grayscale(1); opacity: .45; box-shadow: none; }
  .cplan-node.is-dim .cplan-node-name { color: var(--muted); }
  .cplan-node-lock {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; min-height: 30px; padding: 5px 12px;
    border-radius: 12px; background: var(--cp-seg); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--muted);
  }
  .cplan-node-lock svg { flex: 0 0 14px; }
  .cplan-node-lock.is-off { color: var(--cp-link); text-decoration: none; }
  .cplan-node-lock.is-off:hover { background: var(--brand-ghost); }
  .cplan-tree-ln.is-dim { background: none; border-left: 2px dashed var(--line); width: 0; }
  .cplan-tree-ln.is-dim::after { display: none; }
  .cplan-pub-strip li.is-dim { color: var(--muted-2); }
  .cplan-pub-strip li.is-dim .cplan-pub-ico { filter: grayscale(1); opacity: .45; }
  .cplan-pub-strip li.is-dim svg:last-child { width: 15px; height: 15px; }
  /* Kanały w siatce o dwóch rzędach (subgrid): karty kanałów równej wysokości, Reels pod nimi —
     TikTok / YouTube bez Reels nie rozciągają się w dół. */
  .cplan-tree-kids {
    position: relative; list-style: none; margin: 0; padding: 40px 0 0; width: 100%;
    display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--gap);
  }
  .cplan-tree-kid { position: relative; min-width: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  /* Szyna: każdy kanał rysuje swój odcinek z połową odstępu po obu stronach, skrajne od środka
     (of-type: pierwszym dzieckiem listy jest pień, nie kanał). */
  .cplan-tree-kid::before {
    content: ""; position: absolute; top: -20px; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2);
    height: 2px; background: var(--tl);
  }
  .cplan-tree-kid:first-of-type::before { left: 50%; border-top-left-radius: 2px; }
  .cplan-tree-kid:last-of-type::before { right: 50%; }
  .cplan-tree-kid:only-of-type::before { display: none; }
  .cplan-tree-ln { position: absolute; left: calc(50% - 1px); top: -20px; width: 2px; height: 20px; background: var(--tl); overflow: hidden; }
  .cplan-tree-ln.is-stem { top: 0; }
  .cplan-tree-sub { position: relative; padding-top: 20px; display: flex; flex-direction: column; }
  .cplan-tree-sub > .cplan-tree-ln { top: 0; }
  .cplan-tree-ln::after {
    content: ""; position: absolute; left: 0; top: 100%; width: 2px; height: 12px; border-radius: 2px;
    background: linear-gradient(to top, transparent, var(--accent)); animation: cplan-flow 2.4s linear infinite;
    animation-delay: var(--d, 0s);
  }
  @keyframes cplan-flow { 0% { top: 100%; } 60%, 100% { top: -12px; } }
  .cplan-pub-flow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--cp-link); text-align: center; }
  .cplan-pub-flow svg { flex: 0 0 16px; }
  @media (prefers-reduced-motion: reduce) {
    .cplan-tree-ln::after { display: none; }
    .cplan-pub-toggle, .cplan-pub-toggle svg { transition: none; }
    .cplan-pub-toggle:hover { transform: none; }
  }
  @media (max-width: 1100px) {
    .cplan-pub-strip { flex-basis: 100%; margin-left: 62px; justify-content: flex-start; }
  }
  /* Poniżej 900 px drzewo staje pionowo: kanały pod artykułem, pień po lewej z „ząbkiem" do każdej
     karty, ostatni kanał kończy pień; Reels wcięte pod swoim kanałem. */
  @media (max-width: 900px) {
    .cplan-tree { align-items: stretch; }
    .cplan-tree-root { width: 100%; }
    .cplan-tree-kids { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 0 30px; }
    .cplan-tree-kid { display: flex; flex-direction: column; }
    .cplan-tree-ln.is-stem { display: none; }
    .cplan-tree-kid::before, .cplan-tree-kid:first-of-type::before, .cplan-tree-kid:last-of-type::before,
    .cplan-tree-kid:only-of-type::before {
      display: block; top: 34px; left: -12px; right: auto; width: 12px;
    }
    .cplan-tree-kid > .cplan-tree-ln { left: -13px; top: -12px; height: calc(100% + 12px); }
    .cplan-tree-kid:last-of-type > .cplan-tree-ln { height: 48px; }
    .cplan-tree-sub { padding: 10px 0 0 26px; }
    .cplan-tree-sub > .cplan-tree-ln { left: 11px; top: 0; height: 40px; }
    .cplan-tree-sub::before { content: ""; position: absolute; left: 11px; top: 38px; width: 15px; height: 2px; background: var(--tl); }
    .cplan-pub-flow { justify-content: flex-start; text-align: left; }
  }
  @media (max-width: 640px) {
    .cplan-pub-head { gap: 12px; }
    .cplan-pub-toggle { width: 100%; }
    .cplan-pub-total strong { font-size: 15px; }
    /* Zwinięta na telefonie: kanały w jednym rzędzie, znak nad liczbą. */
    .cplan-pub-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; margin-left: 0; }
    .cplan-pub-strip li { flex-direction: column; gap: 5px; padding: 8px 4px 7px; border-radius: 14px; font-size: 14px; }
    .cplan-node { padding: 14px; gap: 10px; }
    .cplan-node.is-root { padding: 14px 16px; }
    .cplan-node-stat b { font-size: 21px; }
    .cplan-node.is-root .cplan-node-stat b { font-size: 24px; }
  }

  /* Tematy zaplanowane w harmonogramie + legenda poziomów. */
  .cplan-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  /* Zwinięte do pierwszego rzędu; przycisk tylko, gdy jest drugi rząd (progi jak siatka: 3 / 2 ≤1100 / 1 ≤640). */
  .cplan-topics:not(.is-open) > .cplan-topic:nth-child(n+4) { display: none; }
  .cplan-topics-fold {
    display: none; align-self: center; appearance: none; min-height: 42px; padding: 0 22px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
    font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .cplan-topics-fold:hover { border-color: var(--brand-line); color: var(--cp-link); }
  .cplan-topics-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .cplan-sec:has(> .cplan-topics > .cplan-topic:nth-child(4)) > .cplan-topics-fold { display: inline-flex; align-items: center; }
  @media (max-width: 1100px) {
    .cplan-topics:not(.is-open) > .cplan-topic:nth-child(n+3) { display: none; }
    .cplan-sec:has(> .cplan-topics > .cplan-topic:nth-child(3)) > .cplan-topics-fold { display: inline-flex; align-items: center; }
  }
  @media (max-width: 640px) {
    .cplan-topics:not(.is-open) > .cplan-topic:nth-child(n+2) { display: none; }
    .cplan-sec:has(> .cplan-topics > .cplan-topic:nth-child(2)) > .cplan-topics-fold { display: inline-flex; align-items: center; width: 100%; justify-content: center; }
  }
  .cplan-topic { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 14px; }
  .cplan-topic-head { display: flex; align-items: center; gap: 12px; }
  .cplan-topic-name { margin: 0; flex: 1; min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); }
  .cplan-topic-n { font-size: 22px; font-weight: 800; color: var(--ink); }
  .cplan-topic-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .cplan-topic-items li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; color: var(--ink-2); }
  .cplan-topic-kw { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cplan-topic-kv { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .cplan-topic-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .cplan-topic-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cplan-topic-stat .cc-value { font-size: 14px; white-space: nowrap; }
  .cplan-topic-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .cplan-topic-pillar { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
  .cplan-topic-pillar > svg { flex: 0 0 14px; margin-top: 2px; }
  .cplan-topic .cplan-arrowlink { margin-top: auto; }
  /* Mniej niż 3 tematy (próbki): karty na całą szerokość rzędu, statystyki rozłożone na szerokość karty;
     jeden temat — karta w dwóch kolumnach (artykuły | liczby, przewodnik, link). */
  .cplan-topics.is-few-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cplan-topics.is-few-1 { grid-template-columns: minmax(0, 1fr); }
  /* auto-fit: na szerokiej karcie trzy równe kolumny, na węższej (2 karty przy ≤1100 px, telefon) zawija się. */
  .cplan-topics.is-few .cplan-topic-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .cplan-topics.is-few-1 > .cplan-topic { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 32px; row-gap: 12px; align-content: start; }
  .cplan-topics.is-few-1 > .cplan-topic > .cplan-topic-head,
  .cplan-topics.is-few-1 > .cplan-topic > .cplan-topic-track { grid-column: 1 / -1; }
  .cplan-topics.is-few-1 > .cplan-topic > .cplan-topic-items { grid-column: 1; grid-row: 3 / span 3; }
  .cplan-topics.is-few-1 > .cplan-topic > :is(.cplan-topic-stats, .cplan-topic-foot, .cplan-arrowlink) { grid-column: 2; }
  .cplan-topics.is-few-1 > .cplan-topic > .cplan-topic-stats { border-top: 0; padding-top: 0; }
  .cplan-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
  /* Legenda tylko z poziomów, które są na kartach: 2 → dwie kolumny, 1 → pigułka i opis w jednym wierszu
     (na telefonie pigułka nad opisem). */
  .cplan-levels.is-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cplan-levels.is-n1 { grid-template-columns: minmax(0, 1fr); }
  .cplan-levels.is-n1 > .cplan-level { flex-direction: row; align-items: center; gap: 12px; }
  .cplan-level { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
  .cplan-level-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
  .cplan-pill.is-quick { background: var(--cp-ok-tint); color: var(--cp-ok-ink); }
  .cplan-pill--xs { font-size: 9.5px; padding: 2px 6px; }

  /* Mapa tematu: wybór tematu w nagłówku (.cplan-pick) + mapa SVG; ≤900 px lista
     (.cplan-map-list) zamiast SVG. Kolory tematu idą z JS przez style. */
  .cplan-map { display: flex; flex-direction: column; gap: 14px; }
  .cplan-map-svg { display: block; width: 100%; height: auto; font-family: inherit; }
  .cplan-map-svg .ln { fill: none; stroke-width: 2; stroke-opacity: .55; }
  .cplan-map-svg .nd rect { fill: var(--card-soft); stroke: var(--line); }
  .cplan-map-svg .t1 { fill: var(--ink); font-size: 13px; font-weight: 700; }
  .cplan-map-svg .t2 { fill: var(--muted); font-size: 12px; }
  .cplan-map-svg .ctr text { fill: #fff; text-anchor: middle; }
  .cplan-map-svg .c1 { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; }
  .cplan-map-svg .c2 { font-size: 15px; font-weight: 800; }
  .cplan-map-svg .c3 { font-size: 12.5px; fill-opacity: .88; }
  .cplan-map-svg .ctr.is-missing rect { fill: var(--card-soft); stroke-width: 2; stroke-dasharray: 6 5; }
  .cplan-map-svg .ctr.is-missing text { fill: var(--ink-2); }
  .cplan-map-list { display: none; flex-direction: column; gap: 8px; }
  .cplan-map-center { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; color: #fff; font-size: 13px; }
  .cplan-map-center b { font-size: 15px; line-height: 1.35; }
  .cplan-map-center.is-missing { color: var(--ink-2); background: var(--card-soft); border: 2px dashed; }
  .cplan-map-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .cplan-map-sup { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
  .cplan-map-sup li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--card-soft); border: 1px solid var(--line-soft); }
  .cplan-map-sup b { font-size: 14px; line-height: 1.35; color: var(--ink); }
  .cplan-map-sup span { font-size: 12.5px; color: var(--muted); }

  /* Kiedy ludzie szukają tych tematów: jeden duży wykres + chipy tematów (wariant A makiety).
     SVG rysuje JS na szerokości pudełka; kolory tematu idą inline (fill/stroke). */
  .cplan-sec--season .cplan-soon { flex-basis: 100%; }
  .cplan-when { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .cplan-when-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--card-soft); border: 1px solid var(--line-soft); }
  .cplan-when-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cplan-when-p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
  /* contain: inline-size — SVG ma szerokość w px, bez tego trzymałby pudełko (i stronę) szerokie po
     zwężeniu okna i ResizeObserver nie dostałby mniejszej szerokości. */
  .cplan-when-chart { min-width: 0; contain: inline-size; }
  .cplan-when-svg { display: block; overflow: visible; font-family: inherit; border-radius: 6px; }
  .cplan-when-svg:focus { outline: none; }
  .cplan-when-svg:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
  .cplan-when-band { fill: color-mix(in srgb, var(--brand) 10%, transparent); }
  .cplan-when-band-lab { fill: var(--ink-2); font-size: 12px; font-weight: 800; }
  .cplan-when-grid { stroke: var(--line); stroke-opacity: .6; }
  .cplan-when-axis { stroke: var(--line); }
  .cplan-when-avg { stroke: var(--muted); stroke-opacity: .55; }
  .cplan-when-area { fill-opacity: .14; }
  .cplan-when-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .cplan-when-dot { stroke: var(--card); stroke-width: 2; }
  .cplan-when-cross { stroke: var(--ink); stroke-opacity: .35; }
  .cplan-when-tick { fill: var(--muted); font-size: 11px; text-anchor: end; font-variant-numeric: tabular-nums; }
  .cplan-when-lab { fill: var(--muted); font-size: 11px; text-anchor: middle; }
  .cplan-when-lab.is-plan { fill: var(--ink); font-weight: 800; }
  .cplan-when-year { fill: var(--muted-2); font-size: 10px; text-anchor: middle; }
  .cplan-when-note, .cplan-when-peak { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
  .cplan-when-note { fill: var(--muted); font-size: 11px; }
  .cplan-when-peak { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
  .cplan-when-hit { fill: transparent; }
  .cplan-when-skel { fill: color-mix(in srgb, var(--muted) 16%, var(--card)); animation: cplan-ph 1.6s ease-in-out infinite; }
  .cplan-when-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
  .cplan-when-legend > span { display: inline-flex; align-items: center; gap: 7px; }
  .cplan-when-key { display: inline-block; flex: none; }
  .cplan-when-key--band { width: 16px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--brand) 20%, transparent); }
  .cplan-when-key--avg { width: 18px; border-top: 1px solid color-mix(in srgb, var(--muted) 75%, transparent); }
  .cplan-when-key--dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
  .cplan-when-key--pillar { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
  .cplan-when-foot { margin: 0; font-size: 12.5px; color: var(--muted); }
  .cplan-when-tip { position: fixed; z-index: 100; pointer-events: none; max-width: 300px; padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.28); font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
  .cplan-when-tip[hidden] { display: none; }
  .cplan-when-tip-head { font-size: 12px; font-weight: 700; color: var(--muted); }
  .cplan-when-tip-row { display: flex; align-items: baseline; gap: 6px; }
  .cplan-when-tip-row b { color: var(--ink); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
  .cplan-when-tip-row b.is-wrap { white-space: normal; font-size: 13px; line-height: 1.35; }
  .cplan-when-tip-key { flex: 0 0 12px; height: 3px; border-radius: 2px; align-self: center; }

  /* Najbliższe publikacje: na komputerze sześć kolumn, pigułka i popyt to osobne kolumny
     (.cplan-up-meta ma display: contents); na telefonie data | tytuł | strzałka, meta pod tytułem. */
  .cplan-up { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .cplan-up-row {
    display: grid; grid-template-columns: 58px 40px minmax(0, 1fr) 118px 150px 40px; gap: 16px; align-items: center;
    padding: 12px 14px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 14px;
  }
  .cplan-up-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 12px; background: var(--cp-seg); }
  .cplan-up-day { font-size: 22px; font-weight: 800; line-height: 1; color: var(--ink); }
  .cplan-up-mon { margin-top: 3px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .cplan-up-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .cplan-up-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
  .cplan-up-cluster { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
  .cplan-up-meta { display: contents; }
  .cplan-up-vol { display: flex; flex-direction: column; gap: 3px; }
  .cplan-up-go {
    appearance: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
  }
  .cplan-up-go:hover { border-color: var(--brand-line); color: var(--cp-link); }

  /* Zakończenie („Harmonogram jest gotowy" + Co dalej? w jednej karcie). */
  .cplan-next {
    display: flex; flex-direction: column; gap: 24px; padding: 26px 28px; border-radius: 18px;
    border: 1px solid var(--brand-line);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--card)), color-mix(in srgb, var(--brand) 10%, var(--card)));
  }
  .cplan-next-head { display: flex; align-items: flex-start; gap: 16px; }
  .cplan-next-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .cplan-next-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
  .cplan-next-relax { color: var(--cp-link); }
  .cplan-next-lead { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 720px; }
  /* Zakładki z próbkami w „Co dalej?" nowego klienta — link wyróżnia sam kolor (`.cplan a`),
     bez pogrubienia i podkreślenia (Kacper 2026-11-20). */
  .cplan-next-tab { font-weight: inherit; text-decoration: none; }
  /* Oś kroków: numer w kółku, przerywana linia do następnego (dzieje się samo, po kolei). */
  .cplan-flow { --flow-gap: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--flow-gap); margin: 0; padding: 0; list-style: none; }
  .cplan-flow-step { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
  .cplan-flow-step:not(:last-child)::after {
    content: ""; position: absolute; top: 17px; left: 50px; right: calc(10px - var(--flow-gap));
    border-top: 2px dashed var(--brand-line);
  }
  .cplan-flow-n {
    width: 36px; height: 36px; flex: 0 0 36px; margin-bottom: 6px; border-radius: 50%; background: var(--brand-grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent);
  }
  .cplan-flow-step.is-placeholder .cplan-flow-n { background: color-mix(in srgb, var(--muted) 30%, var(--card)); color: var(--ink-2); box-shadow: none; }
  .cplan-flow-title { font-size: 16px; font-weight: 800; color: var(--ink); }
  .cplan-flow-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
  .cplan-next-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
    padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--brand-line) 60%, transparent);
  }
  .cplan-next-edit { flex: 1 1 300px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
  .cplan-next-acts { display: flex; gap: 10px; flex-wrap: wrap; }
  .cplan-next-cal svg { flex: 0 0 16px; }
  .cplan-caveat { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); line-height: 1.6; }
  @media (prefers-reduced-motion: reduce) {
    .cplan-ph, .cplan-comp.is-placeholder .cplan-top-bar, .cplan-when-skel { animation: none; }
    .cplan-arrowlink svg, .cplan-fun-chev, .cplan-fun-row { transition: none; }
  }
  @media (max-width: 1100px) {
    .cplan-boxes, .cplan-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cplan-up-row { grid-template-columns: 58px 40px minmax(0, 1fr) auto 120px 40px; }
  }
  @media (max-width: 900px) {
    .cplan-pot { grid-template-columns: 1fr; }
    .cplan-kpi { flex-direction: column; gap: 12px; padding: 18px; }
    /* W kolumnie z flex-wrap `flex-basis: 100%` paska to 100% WYSOKOŚCI pola, więc pasek nie mieścił się
       i zawijał do drugiej kolumny na prawo od pola — strona przewijała się w bok przy 761–900 px.
       W kolumnie bez zawijania i na szerokość pola; ≤760 px pole znów jest wierszem i wraca wrap. */
    .cplan-kpi:has(> .cplan-kpi-tick) { flex-wrap: nowrap; }
    .cplan-kpi-tick { flex: 0 0 auto; width: 100%; }
    /* Mapa tematu: SVG skaluje się z szerokością, poniżej 900 px napisy schodzą pod 10 px — lista. */
    .cplan-map-svg { display: none; }
    .cplan-map-list { display: flex; }
  }
  @media (max-width: 760px) {
    .cplan-kpis { grid-template-columns: 1fr; }
    .cplan-kpi { flex-direction: row; }
    .cplan-kpi:has(> .cplan-kpi-tick) { flex-wrap: wrap; }
    .cplan-kpi-tick { flex: 1 1 100%; }
    .cplan-hero-side { align-items: flex-start; }
    .cplan-up-row { grid-template-columns: 52px minmax(0, 1fr) 40px; grid-template-areas: "date main go" "date meta go"; gap: 8px 12px; padding: 12px; }
    .cplan-up-row > .cplan-ico { display: none; }
    .cplan-up-date { grid-area: date; width: 52px; height: 52px; align-self: start; }
    .cplan-up-main { grid-area: main; }
    .cplan-up-meta { grid-area: meta; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
    .cplan-up-vol { flex-direction: row; align-items: baseline; gap: 6px; }
    .cplan-up-go { grid-area: go; width: 44px; height: 44px; }
    .cplan-fun-row { width: calc(100% - var(--i, 0) * 4%); min-height: 44px; font-size: 13px; text-align: left; }
    .cplan-fun-label { flex: 1; }
    .cplan-fun-detail { padding: 12px 14px; }
    .cplan-fun-row b { font-size: 17px; }
    .cplan-vs { grid-template-columns: minmax(0, 1fr); }
    .cplan-vs-arrow { justify-self: center; transform: rotate(90deg); }
    .cplan-comp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dom n" "track track"; gap: 6px 12px; }
    .cplan-comp-dom { grid-area: dom; }
    .cplan-comp .cplan-top-track { grid-area: track; }
    .cplan-comp-n { grid-area: n; }
    .cplan-comp-row.is-head, .cplan-comp-pos, .cplan-comp-etv { display: none; }
    /* Oś kroków pionowo: numer po lewej, przerywana linia w dół do następnego. */
    .cplan-flow { --flow-gap: 18px; grid-template-columns: minmax(0, 1fr); }
    .cplan-flow-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; }
    .cplan-flow-n { grid-row: 1 / span 3; margin: 0; }
    .cplan-flow-step > :not(.cplan-flow-n) { grid-column: 2; }
    .cplan-flow-step:not(:last-child)::after { top: 46px; left: 17px; right: auto; bottom: calc(8px - var(--flow-gap)); border-top: 0; border-left: 2px dashed var(--brand-line); }
    .cplan-when-head { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
    .cplan-when-big { font-size: 28px; }
    .cplan-when-p { font-size: 14px; }
  }
  @media (max-width: 640px) {
    .cplan-sec { padding: 18px 16px; }
    .cplan-h2 { font-size: 19px; }
    .cplan-hero-title { font-size: 25px; }
    .cplan-kpi-big, .cplan-box-big { font-size: 27px; }
    .cplan-kpis { gap: 10px; }
    .cplan-kpi { padding: 14px 16px; gap: 14px; border-radius: 16px; }
    .cplan-kpi-big { font-size: 25px; }
    /* Tematy z największym popytem: fraza i liczba w rzędzie, pasek pod nimi na całą szerokość —
       w trzech kolumnach fraza dostawała ~84 px i ucinała się już przy 360 px. */
    .cplan-top-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name v" "track track"; gap: 5px 12px; }
    .cplan-top-name { grid-area: name; white-space: normal; }
    .cplan-top-v { grid-area: v; }
    .cplan-top-track { grid-area: track; }
    .cplan-ico { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
    .cplan-boxes, .cplan-topics, .cplan-levels, .cplan-topics.is-few-2, .cplan-levels.is-n2 { grid-template-columns: 1fr; }
    .cplan-topics.is-few-1 > .cplan-topic { display: flex; }
    .cplan-levels.is-n1 > .cplan-level { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cplan-topics.is-few-1 > .cplan-topic > .cplan-topic-stats { border-top: 1px solid var(--line-soft); padding-top: 12px; }
    .cplan-chart, .cplan-top { padding: 14px; }
    .cplan-chart-y { flex-basis: 40px; height: 180px; }
    .cplan-chart-plot { height: 180px; }
    .cplan-next { padding: 20px 16px; gap: 20px; }
    .cplan-next-head > .cplan-ico { display: none; }
    .cplan-next-title { font-size: 21px; }
    .cplan-next-acts, .cplan-next-acts .btn { width: 100%; }
    .cplan-next-acts .btn { min-height: 44px; }
    .cplan-arrowlink { min-height: 44px; }
    /* Wybór tematu na całą szerokość pod tytułem karty, menu pod nim w tym samym miejscu. */
    .cplan-sec-head > .cplan-pick { flex: 1 1 100%; }
    .cplan-pick-btn { width: 100%; max-width: none; min-height: 44px; }
    .cplan-pick-btn > svg { margin-left: auto; }
    .cplan-pick-menu { position: absolute; left: 0; right: 0; width: auto; background: var(--card); box-shadow: var(--shadow); }
  }
  /* Kalendarz — tylko podgląd (tablice Calendar / CalendarMobile). */
  .cplan-only-phone { display: none; }
  .cplan-today svg { flex: 0 0 15px; }
  .cplan .cplan-today { min-height: 40px; padding: 0 16px; }
  .cplan-legend { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 0 4px; font-size: 13px; color: var(--ink-2); }
  .cplan-legend > span { display: inline-flex; align-items: center; gap: 7px; }
  /* Legenda pod siatką jest tylko na telefon; samo .cplan-only-phone przegrywało z .cplan-legend wyżej. */
  .cplan-legend.cplan-only-phone { display: none; }
  .cplan-swatch-st { width: 14px; height: 14px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
  .cplan-swatch-st.is-scheduled { background: var(--brand-ghost); border: 1px solid var(--cp-link); }
  .cplan-swatch-st.is-done { background: var(--cp-ok-tint); color: var(--cp-ok-ink); border: 1px solid var(--cp-ok-ink); }
  .cplan-cal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 14px; }
  .cplan-cal-head, .cplan-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .cplan-cal-head { padding-bottom: 8px; }
  .cplan-cal-head span { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); padding-left: 8px; }
  .cplan-day {
    position: relative; min-height: 118px; min-width: 0; border-radius: 12px; padding: 7px;
    display: flex; flex-direction: column; gap: 5px; background: var(--card); border: 1px solid var(--line);
  }
  .cplan-day.is-other { background: transparent; border-color: transparent; opacity: .45; }
  .cplan-day.is-outside { background: var(--card-soft); border-style: dashed; }
  .cplan-day-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 24px; }
  .cplan-day-n { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
  .cplan-day.is-other .cplan-day-n { color: var(--muted-2); font-weight: 600; }
  .cplan-day.is-outside .cplan-day-n { color: var(--muted); font-weight: 600; }
  .cplan-day-n.is-today { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
  .cplan-day-edge { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cp-pil-ink); }
  .cplan-chip {
    appearance: none; font-family: inherit; cursor: pointer; text-align: left; width: 100%; min-width: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 7px; border: 0; border-radius: 8px;
    background: var(--brand-ghost); color: var(--ink);
  }
  .cplan-chip.is-done { background: var(--cp-ok-tint); }
  .cplan-chip.is-on { box-shadow: 0 0 0 2px var(--brand); }
  .cplan-chip-st { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cp-link); }
  .cplan-chip.is-done .cplan-chip-st { color: var(--cp-ok-ink); }
  .cplan-chip-st > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cplan-chip-st .cplan-dot { width: 7px; height: 7px; flex-basis: 7px; }
  .cplan-chip-title { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .cplan-chip .cplan-pill--xs { width: fit-content; font-size: 9px; padding: 1px 5px; }
  .cplan-day-btn { display: none; }
  .cplan-cal-below { flex-direction: column; gap: 12px; }
  .cplan-only-desk.cplan-cal-below { display: flex; }
  .cplan-cal-hint { border: 1px dashed var(--line); border-radius: 18px; padding: 18px; text-align: center; font-size: 14px; color: var(--muted); }
  .cplan-detail { border-color: var(--brand-line); }
  .cplan-detail-foot { justify-content: flex-end; }
  .cplan-detail-ro { flex: 1 1 240px; font-size: 13px; color: var(--muted); }
  .cplan-show-list { border-color: var(--brand-line); background: var(--brand-ghost); color: var(--ink); }
  .cplan-cal-dayhead { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); padding: 4px 2px 0; }
  @media (max-width: 640px) {
    .cplan-only-desk, .cplan-only-desk.cplan-cal-below { display: none; }
    .cplan-only-phone { display: inline; }
    .cplan-cal-below.cplan-only-phone { display: flex; }
    .cplan-legend { display: none; }
    .cplan-cal .cplan-legend.cplan-only-phone { display: flex; justify-content: center; gap: 14px; padding-top: 10px; font-size: 12px; }
    .cplan-cal { padding: 10px 8px; border-radius: 16px; }
    .cplan-cal-head, .cplan-cal-grid { gap: 4px; }
    .cplan-cal-head span { padding: 0; text-align: center; font-size: 10px; }
    .cplan-day { min-height: 52px; height: 52px; padding: 0; border-radius: 10px; border-color: var(--line-soft); align-items: center; }
    .cplan-day-top { justify-content: center; min-height: 0; padding-top: 7px; }
    .cplan-day-n { font-size: 13px; padding: 0; }
    .cplan-day-n.is-today { width: 22px; height: 22px; }
    .cplan-day-edge, .cplan-chip { display: none; }
    .cplan-day.has-topics { border: 0; }
    .cplan-day.has-topics .cplan-day-top { display: none; }
    .cplan-day-btn {
      appearance: none; font-family: inherit; cursor: pointer; position: absolute; inset: 0; border: 0; border-radius: 10px;
      display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 7px 0 0;
      background: var(--brand-ghost); color: var(--ink); font-size: 13px; font-weight: 800;
    }
    .cplan-day.is-done .cplan-day-btn { background: var(--cp-ok-tint); }
    .cplan-day.is-picked .cplan-day-btn { box-shadow: 0 0 0 2px var(--brand); }
    .cplan-day-dots { display: flex; gap: 3px; }
    .cplan-day-dots .cplan-dot { width: 7px; height: 7px; flex-basis: 7px; }
    .cplan-detail-foot .btn { min-height: 44px; }
  }
  /* ==== Lista Harmonogramu: cały harmonogram tygodniami + filtry (wariant D, 2026-11-05) =========
     Zamiast kart po 30 na stronę miesiąca i rzędu chipów tematów: wiersze w kartach tygodni,
     filtry w jednym rzędzie, „Przenieś na termin" jako kalendarz. Makieta:
     https://claude.ai/artifact/SFtGHZBU9dSETUfZa6d4dX (warianty A–D). */
  /* Filtry: tematy (kilka, z wyszukiwarką) · miesiąc · tylko przewodniki · wyczyść · liczba · szukanie. */
  .cplan-fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .cplan-fpick { position: relative; }
  .cplan-fbtn, .cplan-fchip {
    appearance: none; font-family: inherit; cursor: pointer; max-width: 340px;
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 700;
  }
  .cplan-fbtn:hover, .cplan-fchip:hover, .cplan-fpick.is-open .cplan-fbtn { border-color: var(--brand-line); }
  .cplan-fbtn.is-set, .cplan-fchip[aria-pressed="true"] { background: var(--brand-ghost); border-color: var(--brand-line); color: var(--ink); }
  .cplan-fbtn > svg, .cplan-fchip > svg { flex: 0 0 15px; color: var(--muted); }
  .cplan-fbtn > svg:last-child { transition: transform .15s; }
  .cplan-fpick.is-open .cplan-fbtn > svg:last-child { transform: rotate(180deg); }
  .cplan-fbtn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cplan-fbtn-n { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
  .cplan-fbtn:focus-visible, .cplan-fchip:focus-visible, .cplan-flink:focus-visible, .cplan-fitem:focus-visible,
  .cplan-row-ib:focus-visible, .cplan-mv-day:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .cplan-fmenu {
    position: absolute; left: 0; top: calc(100% + 6px); z-index: 12; width: 340px; max-height: 420px;
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .cplan-fmenu--sm { width: 260px; }
  .cplan-fsearch { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--card); }
  .cplan-fmenu .cplan-fsearch { margin: 8px 8px 4px; }
  .cplan-fsearch input { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
  .cplan-fsearch:focus-within { border-color: var(--brand); }
  .cplan-fsearch--bar { width: 280px; min-height: 40px; border-radius: 12px; }
  .cplan-fsearch--bar input { height: 38px; }
  .cplan-flist { overflow-y: auto; padding: 4px; display: flex; flex-direction: column; }
  .cplan-fitem {
    appearance: none; font-family: inherit; cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px;
    background: transparent; color: var(--ink); font-size: 14px; font-weight: 600;
  }
  .cplan-fitem:hover, .cplan-fitem[aria-checked="true"] { background: var(--brand-ghost); }
  .cplan-fitem-name { flex: 1; min-width: 0; line-height: 1.3; padding: 8px 0; }
  .cplan-fbox { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
  .cplan-fbox svg { visibility: hidden; }
  .cplan-fitem[aria-checked="true"] .cplan-fbox { background: var(--brand); border-color: var(--brand); }
  .cplan-fitem[aria-checked="true"] .cplan-fbox svg { visibility: visible; }
  .cplan-fcheck { flex: 0 0 15px; color: var(--cp-link); visibility: hidden; }
  .cplan-fitem[aria-checked="true"] .cplan-fcheck { visibility: visible; }
  .cplan-fempty { margin: 0; padding: 12px; font-size: 13.5px; color: var(--muted); }
  .cplan-ffoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--line-soft); }
  .cplan-ffoot .btn { min-height: 36px; }
  .cplan-flink {
    appearance: none; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--cp-link); font-size: 13.5px; font-weight: 750;
  }
  .cplan-flink:hover { background: var(--brand-ghost); }
  .cplan-fcount { margin-left: auto; font-size: 13.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
  .cplan-hl { background: color-mix(in srgb, #facc15 40%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
  .cplan-empty--filter { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .cplan-empty--filter p { margin: 0; }

  /* Tygodnie: karta z nagłówkiem (przyklejonym pod paskiem zakładek) i wierszami. */
  .cplan-weeks { display: flex; flex-direction: column; gap: 14px; }
  .cplan-week { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
  .cplan-week-head {
    position: sticky; top: calc(var(--topbar-h, 0px) + var(--cplan-nav-h, 0px)); z-index: 5;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 18px;
    background: var(--card-soft); border-bottom: 1px solid var(--line-soft); border-radius: 16px 16px 0 0;
  }
  .cplan-week-name { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
  .cplan-week-n { font-size: 12.5px; font-weight: 700; color: var(--muted); }
  /* Szuflady pod listą (Rezerwa, Już opisane, Już napisane): karta tygodnia, której pasek jest
     przyciskiem (klik rozwija); zwinięta = sam pasek. */
  .cplan-xds { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
  .cplan-xd-head {
    appearance: none; font-family: inherit; cursor: pointer; width: 100%; min-height: 50px; text-align: left; color: var(--ink);
    border: 0; border-bottom: 1px solid var(--line-soft); align-items: center; justify-content: flex-start;
  }
  .cplan-xd:not(.is-open) .cplan-xd-head { border-bottom: 0; border-radius: 16px; }
  .cplan-xd-head > svg { flex: 0 0 15px; color: var(--muted); transition: transform .15s; }
  .cplan-xd.is-open .cplan-xd-head > svg { transform: rotate(90deg); }
  .cplan-xd-head .cplan-week-name { font-size: 14.5px; }
  .cplan-xd-hint { min-width: 0; font-size: 13px; color: var(--muted); }
  .cplan-xd-head .cplan-week-n { margin-left: auto; white-space: nowrap; }
  .cplan-xd-head:hover { background: color-mix(in srgb, var(--brand) 4%, var(--card-soft)); }
  .cplan-xd-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  .cplan-xd-note { margin: 0; padding: 10px 18px 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); line-height: 1.5; }
  .cplan-xd-empty { margin: 0; padding: 14px 18px; font-size: 13.5px; color: var(--muted); }
  /* Kafelek bez terminu (rezerwa, już opisane) i znaczek na kafelku daty (napisany / pominięty). */
  .cplan-row--x .cplan-row-date { position: relative; }
  .cplan-row-date.is-none { background: transparent; border: 1px dashed var(--line); min-height: 52px; justify-content: center; box-sizing: border-box; }
  .cplan-row-date.is-none .cplan-row-d { color: var(--muted-2); font-weight: 700; }
  .cplan-tile-badge {
    position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: var(--cp-ok-ink); color: #fff; box-shadow: 0 0 0 2px var(--card);
  }
  .cplan-tile-badge.is-skipped { background: var(--cp-warn-ink); }
  .cplan-xstatus { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--cp-ok-ink); }
  .cplan-xstatus.is-skipped { color: var(--cp-warn-ink); }
  .cplan-row--x .cplan-row-meta a { color: var(--cp-link); font-weight: 650; }
  /* Działanie w wierszu szuflady („Wstaw ▾", „Przywróć"): niskie jak ▲▼ ⋯. */
  .cplan-xbtn {
    appearance: none; font-family: inherit; cursor: pointer; height: 34px; padding: 0 10px 0 12px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 13.5px; font-weight: 750;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  }
  .cplan-xbtn:hover:not(:disabled), .cplan-xbtn[aria-expanded="true"] { background: var(--brand-ghost); border-color: var(--brand-line); color: var(--ink); }
  .cplan-xbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .cplan-xbtn:disabled { opacity: .5; cursor: default; }
  @media (prefers-reduced-motion: reduce) {
    .cplan-xd-head > svg { transition: none; }
  }

  /* Wiersz: kafelek daty | tytuł + jedna linijka | ▲▼ ⋯. */
  .cplan-row {
    position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center;
    gap: 4px 16px; padding: 11px 12px 11px 14px; border-top: 1px solid var(--line-soft); scroll-margin-top: 180px;
  }
  .cplan-week-head + .cplan-row, .cplan-week > .cplan-row:first-child { border-top: 0; }
  .cplan-week > .cplan-row:last-child { border-radius: 0 0 16px 16px; }
  .cplan-week > .cplan-row:only-child { border-radius: 16px; }
  .cplan-row:hover { background: color-mix(in srgb, var(--brand) 3%, var(--card)); }
  .cplan-row:has(> .cplan-mv):hover { background: transparent; }
  .cplan-row.is-flash { background: var(--brand-ghost); box-shadow: inset 3px 0 0 var(--brand); }
  .cplan-row-date {
    display: flex; flex-direction: column; align-items: center; width: 48px; padding: 6px 0 5px; line-height: 1.05;
    border-radius: 11px; background: var(--card-soft); border: 1px solid var(--line-soft);
  }
  .cplan-row-wd { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .cplan-row-d { margin: 1px 0; font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
  .cplan-row-mo { font-size: 10.5px; font-weight: 700; color: var(--muted); }
  .cplan-row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .cplan-row-tl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
  .cplan-row-title { margin: 0; font-family: var(--serif); font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
  .cplan-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 13px; color: var(--muted); }
  .cplan-row-meta b { color: var(--ink-2); font-weight: 650; }
  .cplan-row-topic { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--ink-2); }
  .cplan-row-short { display: none; }
  .cplan-row-main .cplan-warn { margin-top: 4px; }
  .cplan-row-main .cplan-edit { margin: 2px 0; }
  .cplan-row-acts { display: flex; align-items: center; gap: 2px; }
  .cplan-row-ib {
    appearance: none; font-family: inherit; cursor: pointer; width: 34px; height: 34px; padding: 0; border-radius: 9px;
    border: 1px solid transparent; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  }
  .cplan-row-ib:hover:not(:disabled), .cplan-row-ib.is-open { background: var(--brand-ghost); border-color: var(--brand-line); color: var(--ink); }
  .cplan-row-ib:disabled { opacity: .3; cursor: default; }
  .cplan-row-acts .cplan-more { margin-left: 0; }
  .cplan-row > .cplan-menu { top: calc(100% - 8px); right: 10px; }
  .cplan-menu-phone { display: none; }
  .cplan-menu-item:disabled { opacity: .45; cursor: default; background: transparent; }

  /* „Przenieś na termin": kalendarz miesiąca + podgląd wybranego dnia, pod wierszem na całą szerokość. */
  .cplan-mv {
    grid-column: 1 / -1; margin-top: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; cursor: default;
    border: 1px solid var(--line); border-radius: 14px; background: var(--card-soft);
  }
  .cplan-mv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--ink); }
  .cplan-mv-body { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: 20px; align-items: start; }
  .cplan-mv-cal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 12px; }
  .cplan-mv-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
  .cplan-mv-nav b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
  .cplan-mv-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .cplan-mv-wd { padding: 4px 0; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
  .cplan-mv-day {
    appearance: none; font-family: inherit; cursor: pointer; height: 42px; padding: 0; border-radius: 9px;
    border: 1px solid transparent; background: transparent; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  }
  .cplan-mv-day.is-out { visibility: hidden; }
  .cplan-mv-n { font-size: 13.5px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
  .cplan-mv-dots { display: flex; align-items: center; gap: 2px; height: 7px; }
  .cplan-mv-dots .cplan-dot { width: 6px; height: 6px; flex-basis: 6px; }
  .cplan-mv-pin { color: var(--muted); }
  .cplan-mv-day:hover:not(:disabled):not(.is-sel) { background: var(--brand-ghost); border-color: var(--brand-line); }
  .cplan-mv-day:disabled { cursor: default; color: var(--muted-2); }
  .cplan-mv-day:disabled .cplan-mv-dots { opacity: .5; }
  .cplan-mv-day.is-today .cplan-mv-n { text-decoration: underline; text-underline-offset: 3px; }
  .cplan-mv-day.is-cur { border-color: var(--cp-link); box-shadow: inset 0 0 0 1px var(--cp-link); }
  .cplan-mv-day.is-sel { background: var(--brand); border-color: var(--brand); color: #fff; }
  .cplan-mv-day.is-sel .cplan-dot { box-shadow: 0 0 0 1.5px #fff; }
  .cplan-mv-day.is-sel .cplan-mv-pin { color: #fff; }
  .cplan-mv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
  .cplan-mv-legend > span { display: inline-flex; align-items: center; gap: 6px; }
  .cplan-mv-lg-cur { width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--cp-link); box-sizing: border-box; }
  .cplan-mv-prev { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
  .cplan-mv-prev h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
  .cplan-mv-prev p { margin: 0; }
  .cplan-mv-what { color: var(--ink); font-weight: 650; }
  .cplan-mv-note { color: var(--muted); }
  .cplan-mv-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
  .cplan-mv-art { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
  .cplan-mv-art .cplan-dot { margin-top: 7px; }
  .cplan-mv-art b { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.3; color: var(--ink); }
  .cplan-mv-art span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
  .cplan-mv-opts { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .cplan-mv-opts legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 750; color: var(--ink); }
  .cplan-mv-opt {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 11px; background: var(--card);
  }
  .cplan-mv-opt:hover { border-color: var(--brand-line); }
  .cplan-mv-opt.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
  .cplan-mv-opt.is-off { cursor: default; opacity: .6; }
  .cplan-mv-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
  .cplan-mv-opt input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); }
  .cplan-mv-opt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cplan-mv-opt-t > b { font-size: 14px; color: var(--ink); }
  .cplan-mv-opt-t > span { font-size: 13px; line-height: 1.4; color: var(--muted); }
  .cplan-mv-opt-t > .cplan-mv-art { padding: 0; border: 0; background: transparent; }
  .cplan-mv-changes { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
  .cplan-mv-ct { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
  .cplan-mv-changes > b { color: var(--cp-link); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cplan-mv-more { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
  .cplan-mv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
  .cplan-mv-acts .btn { min-height: 40px; }
  .cplan-mv-prev .cplan-flink { align-self: flex-start; padding-left: 0; }

  @media (prefers-reduced-motion: reduce) {
    .cplan-fbtn > svg:last-child { transition: none; }
  }
  /* 721–1100 px: pasek Listy bez pustego drugiego rzędu (środek jest pusty jak w Podsumowaniu). */
  @media (min-width: 721px) and (max-width: 1100px) {
    .cplan .cplan-bar--list { grid-template-areas: "left right"; }
    .cplan .cplan-bar--list .subbar-center { display: none; }
  }
  @media (max-width: 900px) {
    .cplan-fsearch--bar { width: 220px; }
  }
  /* Telefon: filtry jeden pod drugim, wiersz = data | tytuł + jedna linijka | „⋯" (▲▼ w menu). */
  @media (max-width: 720px) {
    .cplan .cplan-bar--list .subbar-center { display: none; }
  }
  @media (max-width: 640px) {
    .cplan-fpick { flex: 1 1 100%; }
    .cplan-fbtn { width: 100%; max-width: none; min-height: 44px; }
    .cplan-fbtn > svg:last-child { margin-left: auto; }
    .cplan-fmenu { right: 0; width: auto; }
    .cplan-fchip, .cplan-flink { min-height: 44px; }
    .cplan-fcount { margin-left: 0; }
    .cplan-fsearch--bar { width: 100%; flex: 1 1 100%; min-height: 44px; }
    .cplan-week-head { padding: 9px 14px; }
    .cplan-row { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px 12px; padding: 12px 8px 12px 12px; align-items: start; }
    .cplan-row-date { width: 44px; }
    .cplan-row-title { font-size: 15.5px; }
    .cplan-row-meta { gap: 2px 10px; font-size: 12.5px; }
    .cplan-row-meta .cplan-row-long { display: none; }
    .cplan-row-short { display: inline; }
    .cplan-row-acts .cplan-updown { display: none; }
    .cplan-row-ib { width: 44px; height: 44px; }
    .cplan-menu-phone { display: flex; }
    .cplan-row > .cplan-menu { grid-column: 1 / -1; }
    .cplan-mv { padding: 12px 10px; }
    .cplan-mv-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .cplan-mv-cal { padding: 8px 6px 10px; }
    .cplan-mv-day { height: 44px; }
    .cplan-mv-acts .btn { flex: 1 1 auto; min-height: 44px; }
    /* Szuflady: tytuł na całą szerokość, działanie pod linijką tematu. */
    .cplan-xd-hint { display: none; }
    .cplan-xd-head { min-height: 52px; }
    .cplan-row.cplan-row--x { grid-template-columns: 44px minmax(0, 1fr); }
    .cplan-row--x > .cplan-rins, .cplan-row--x > .cplan-xbtn { grid-column: 2; justify-self: start; margin-top: 4px; }
    .cplan-xbtn { height: 44px; padding: 0 14px 0 16px; }
  }
