/* css/chat.css */
/* Webomat — jeden czat w całej aplikacji (decyzja 04.10.2026): rozmowa wstępna, plan strony i poprawki
   wyglądają i działają tak samo. Okno wypełnia wysokość ekranu, rozmowa przewija się w środku.
   Tokeny wspólne dla frontu (site.css) i panelu (app.css): --blue, --line, --soft, --ink, --ink-2, --muted. */
.chat { --chat-line-2: var(--line-2, var(--line-strong, #c0c4d0)); --chat-col: 860px;
  display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; background: #fff; border-radius: 16px; }
.chat [hidden] { display: none !important; }

/* Wypełnienie wysokości: w panelu pod górnym paskiem, przyklejone przy przewijaniu strony. */
.chat--fill { position: sticky; top: calc(var(--top-h, 60px) + 16px); height: calc(100vh - var(--top-h, 60px) - 32px); height: calc(100dvh - var(--top-h, 60px) - 32px); }
@media (max-width: 1023px) { .chat--fill { position: relative; top: 0; height: calc(100dvh - var(--top-h, 60px) - 40px); min-height: 420px; } }

/* Nagłówek */
.chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-head-txt { flex: 1; min-width: 0; }
.chat-title { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.chat-sub { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.chat-head-aside { flex: none; display: flex; align-items: center; gap: 8px; }
.chat-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

.chat-ava { flex: none; width: 32px; height: 32px; border-radius: 9px; display: block; overflow: hidden; box-shadow: 0 6px 14px -10px rgba(42, 60, 255, .55); }
.chat-ava img { width: 100%; height: 100%; display: block; }

/* Rozmowa (przewija się w środku okna) */
.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 20px 18px 12px; display: flex; flex-direction: column; gap: 14px; background: var(--soft); scroll-behavior: smooth; }
.chat--wide .chat-log, .chat--wide .chat-dock { padding-inline: max(18px, calc((100% - var(--chat-col)) / 2)); }
.chat-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; }
.chat-msg--user { flex-direction: row-reverse; }
.chat-msg--user .chat-ava { display: none; }
.chat-body { display: grid; gap: 4px; min-width: 0; max-width: min(640px, 86%); }
.chat-msg--user .chat-body { justify-items: end; }
.chat-msg--wide .chat-body { max-width: min(720px, 100%); width: 100%; }
.chat-bubble { padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; color: var(--ink); background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.chat-text { white-space: pre-wrap; }
.chat-msg--user .chat-bubble { background: var(--blue); color: #fff; border-color: var(--blue); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; box-shadow: 0 8px 20px -12px rgba(42, 60, 255, .7); }
.chat-msg--user .chat-bubble a { color: #fff; text-decoration: underline; }
.chat-time { font-size: 11px; color: var(--muted); padding: 0 6px; }
.chat-msg--pending .chat-bubble { opacity: .7; }
.chat-msg.is-new { animation: chat-in .35s var(--ease, ease) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-sys { align-self: center; max-width: 92%; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-align: center; }

/* Pliki w wiadomości (miniatury zdjęć, PDF) */
.chat-media { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: min(420px, 100%); }
.chat-media li { position: relative; width: 96px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; background: #e9ebf3; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.chat-media li:only-child { width: min(240px, 100%); height: auto; aspect-ratio: 4 / 3; }
.chat-media a { cursor: zoom-in; }
.chat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-media a { display: block; width: 100%; height: 100%; }
.chat-media .chat-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 24, 40, .55); color: #fff; font-weight: 700; font-size: 15px; }
.chat-media .chat-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; padding: 6px; font-size: 11px; color: var(--ink-2); text-align: center; overflow: hidden; }
.chat-media .chat-pdf .ico { width: 22px; height: 22px; color: var(--blue); }
.chat-msg--user .chat-media { justify-self: end; justify-content: flex-end; }

/* Przeglądarka zdjęć z czatu (chat-ui.js): zdjęcie na całym ekranie, strzałki między zdjęciami wiadomości. */
.wlb { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.wlb::backdrop { background: rgba(10, 12, 24, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wlb-stage { position: absolute; inset: 56px 72px 64px; display: grid; place-items: center; }
.wlb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); background: #fff; }
.wlb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s; }
.wlb-btn:hover { background: rgba(255, 255, 255, .26); }
.wlb-close { top: 14px; right: 16px; }
.wlb-prev { left: 14px; top: 50%; margin-top: -23px; }
.wlb-next { right: 14px; top: 50%; margin-top: -23px; }
.wlb-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 14px; color: rgba(255, 255, 255, .85); font: 500 14px/1.4 var(--font, inherit); }
.wlb-bar a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .wlb-stage { inset: 56px 8px 64px; } .wlb-prev, .wlb-next { top: auto; bottom: 8px; margin: 0; } }

/* Karta w wiadomości agenta (plan strony, „zrozumiałem tak”) */
.chat-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.chat-bubble .chat-card { margin-top: 10px; padding: 12px; box-shadow: none; background: var(--soft); }
.chat-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chat-card-h b { font-size: 15px; }
.chat-card-h small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chat-card.is-old { opacity: .55; }
.chat-card.is-old .chat-card-act { display: none; }
.chat-card-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Agent pisze */
.chat-typing { display: flex; gap: 10px; align-items: flex-end; }
.chat-dots { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--chat-line-2, var(--line-2, var(--line-strong, #c0c4d0))); animation: chat-dot 1.1s ease-in-out infinite; }
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
.chat-dots em { margin-left: 6px; font-style: normal; font-size: 13px; color: var(--muted); }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Szybkie odpowiedzi */
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 42px; }
.chat-chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); background: #fff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.chat-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Pole wiadomości */
.chat-dock { flex: none; display: grid; gap: 6px; padding: 10px 18px 14px; background: var(--soft); border-top: 1px solid var(--line); }
.chat-box { display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 8px; background: #fff; border: 1px solid var(--chat-line-2, var(--line-2, var(--line-strong, #c0c4d0))); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.chat-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 60, 255, .12); }
.chat-box textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 180px; resize: none; border: 0; outline: none; background: none; padding: 9px 4px; font: inherit; font-size: 15.5px; line-height: 1.45; color: var(--ink); box-shadow: none; }
.chat-box textarea:focus, .chat-box textarea:focus-visible { outline: none; box-shadow: none; border: 0; }
.chat-box textarea:disabled { background: none; }
.chat-attach, .chat-send { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.chat-attach { border: 1px solid var(--line); background: var(--soft); color: var(--ink-2); }
.chat-attach:hover { background: #fff; color: var(--blue); border-color: var(--blue); }
.chat-attach .ico { width: 18px; height: 18px; }
.chat-send, .chat .chat-send, .ic .chat-send { border: 0; background: var(--blue); color: #fff; } /* .chat / .ic (czat wstępny) — mocniejsze niż `.app button { color: inherit }` w panelu */
.chat-send:hover { filter: brightness(.92); }
.chat-send:active { transform: scale(.95); }
.chat-send:disabled { background: var(--chat-line-2, var(--line-2, var(--line-strong, #c0c4d0))); cursor: default; filter: none; }
.chat-send .ico { width: 18px; height: 18px; transform: rotate(-90deg); }
.chat-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.chat-err { margin: 0; padding: 0 4px; font-size: 13.5px; color: var(--err, #d92d20); }
.chat-err:empty { display: none; }
.chat.is-drop .chat-box { border-color: var(--blue); border-style: dashed; background: color-mix(in srgb, var(--blue) 5%, #fff); }

/* Pliki przed wysłaniem (z paskiem wgrywania) */
.chat-tray { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chat-tray li { position: relative; flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; background: #e9ebf3; border: 1px solid var(--line); }
.chat-tray img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-tray .chat-pdf { display: grid; place-items: center; height: 100%; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.chat-tray-rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(16, 24, 40, .7); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.chat-tray .chat-prog { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.chat-tray .chat-prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.chat-tray li.is-done .chat-prog { display: none; }
.chat-tray li.is-bad { outline: 2px solid var(--err, #d92d20); outline-offset: -2px; }
.chat-tray-sum { flex: none; align-self: center; padding: 0 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

@media (max-width: 600px) {
  .chat-head { padding: 12px 14px; }
  .chat-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .chat-hint span + span { display: none; }
  .chat-log { padding: 16px 12px 10px; }
  .chat-dock { padding: 8px 10px 10px; }
  .chat-body { max-width: 90%; }
  .chat-chips { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-msg.is-new, .chat-dots i { animation: none; } .chat-log { scroll-behavior: auto; } }
.chat-hint .linkbtn { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.chat-hint .linkbtn:hover { text-decoration: underline; }

/* Pliki z podpisem (czat poprawek, 16.10.2026): miniatura + pole „Podpis linku” — tekst, pod którym plik będzie na stronie. */
.chat-tray li.chat-tray-item { width: auto; height: auto; display: flex; align-items: stretch; gap: 0; background: #fff; overflow: visible; border-radius: 12px; }
.chat-tray-thumb { position: relative; flex: none; width: 58px; height: 58px; border-radius: 11px 0 0 11px; overflow: hidden; background: #e9ebf3; }
.chat-tray-thumb .chat-pdf { display: grid; place-items: center; height: 100%; font-size: 10.5px; font-weight: 750; letter-spacing: .03em; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, #fff); }
.chat-tray-label { display: grid; align-content: center; gap: 2px; width: 196px; padding: 6px 30px 6px 10px; border-left: 1px solid var(--line); cursor: text; }
.chat-tray-cap { font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chat-tray-label input { width: 100%; min-width: 0; border: 0; outline: none; padding: 2px 0; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink); text-overflow: ellipsis; border-bottom: 1px dashed var(--chat-line-2, #c0c4d0); }
.chat-tray-label input:focus { border-bottom: 1px solid var(--blue); }
.chat-tray-item:focus-within { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.chat-tray-item .chat-tray-rm { top: 6px; right: 6px; }
.chat-tray li.chat-tray-item.is-bad { outline-offset: 0; }
.chat-media .chat-pdf .chat-pdf-ext { font-size: 10.5px; font-weight: 750; letter-spacing: .04em; color: var(--blue); }
.chat-media .chat-pdf span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
@media (max-width: 560px) { .chat-tray-label { width: 160px; } }
/* Szersze kafelki z podpisem nie mogą rozpychać doku (element siatki ma domyślnie min-width: auto) — pasek przewija się w poziomie. */
.chat-dock { grid-template-columns: minmax(0, 1fr); }
.chat-dock .chat-form, .chat-tray { min-width: 0; }
.chat-text--note { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, .08); }

/* css/intake.css */
/* Czat wstępny (/pl/start/czat). Tokeny z site.css. */
body.is-chat { background: var(--soft); }
body.is-chat .ftr { display: none; }
body.is-chat > main { display: flex; flex-direction: column; }

.ic { --col: 760px; flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
.ic [hidden] { display: none !important; }

/* Ten sam czat w panelu klienta (app.css nie ma tokenów landingu — mapujemy na tokeny panelu). */
.ic--panel {
  --hdr: var(--top-h, 60px); --gut: 0px; --col: 820px;
  --blue: var(--accent); --blue-d: var(--accent-hover); --violet: #7c5cff;
  --soft: var(--bg); --line-2: #c9cedb; --ink-2: #3a4256; --ok: #16794f; --warn: #b54708; --err: #c4320a;
  --r: 12px; --mono: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .16);
}
/* W panelu: okno czatu na całą wysokość (jak plan strony i poprawki), rozmowa przewija się w środku. */
.a-main:has(.ic--panel) { display: flex; flex-direction: column; height: calc(100vh - var(--top-h, 60px)); height: calc(100dvh - var(--top-h, 60px)); padding-top: 16px; padding-bottom: 16px; }
.ic--panel { flex: 1 1 auto; min-height: 0; background: #fff; border-radius: 16px; overflow: hidden; }
/* Ta sama szerokość co pozostałe kroki procesu (okno 980 px na środku, 05.10.2026). */
.ic--panel { width: 100%; max-width: 980px; margin-inline: auto; box-shadow: var(--shadow-2, 0 18px 40px -24px rgba(16, 24, 40, .25)); }
.a-main:has(.ic--panel) .ic-panel-head { max-width: 980px; margin-inline: auto; }
.ic--panel .ic-top { position: static; flex: none; border-bottom: 1px solid var(--line); background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ic--panel .ic-top-in { max-width: none; padding: 12px 18px; }
.ic--panel .ic-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; max-width: none; padding: 20px max(18px, calc((100% - var(--col)) / 2)) 12px; background: var(--soft); }
.ic--panel .ic-files { max-width: none; padding: 6px max(18px, calc((100% - var(--col)) / 2)) 0; background: var(--soft); }
.ic--panel .ic-compose { position: static; flex: none; padding: 10px max(18px, calc((100% - var(--col)) / 2)) 14px; background: var(--soft); border-top: 1px solid var(--line); }
.ic--panel .ic-hint { max-width: none; }
.a-main:has(.ic--panel) .ic-panel-head { flex: none; max-width: none; margin: 0 0 12px; }
.ic--panel { min-height: 0; }
/* Pole wiadomości ma własny stan fokusu (ramka całego paska) — bez obwódki panelu na samym textarea. */
.ic-panel-head { display: grid; gap: 14px; max-width: 820px; margin: 0 auto 6px; }
.ic-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Pasek postępu na górze — przyklejony pod nagłówkiem strony */
.ic-top { position: sticky; top: var(--hdr); z-index: 20; background: color-mix(in srgb, var(--soft) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.ic-top-in { max-width: var(--col); margin: 0 auto; padding: 14px var(--gut) 12px; display: grid; gap: 10px; }
.ic-meter { display: grid; gap: 10px; }
.ic-meter-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ic-ready { display: inline-flex; font-size: 13px; font-weight: 600; align-items: center; gap: 6px; color: var(--ok); }
.ic-ready::before { content: ""; width: 13px; height: 13px; 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.4' 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.4' 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; }

/* Tematy rozmowy = segmenty paska. Pusty segment szary, zebrany wypełnia się kolorem od lewej. */
.ic-need { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ic-need li { display: grid; gap: 7px; align-content: start; font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--muted); transition: color .3s; }
.ic-need li > i { position: relative; display: block; height: 6px; border-radius: 2px; background: #dfe3ec; overflow: hidden; }
.ic-need li > i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease), background .3s; }
.ic-need li.is-ok { color: var(--ink); }
.ic-need li.is-ok > i::after { transform: none; }
.ic-need li.is-ok .ic-need-l::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; background: var(--blue); -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.4' 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.4' 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; }
.ic.is-full .ic-need li > i::after, .ic.is-full .ic-need li.is-ok .ic-need-l::after { background: var(--ok); }

.ic-src { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.ic-src [data-src-host] { font-family: var(--mono); color: var(--ink-2); }
.ic-src-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.ic-src.is-wait .ic-src-dot { background: var(--warn); animation: ic-pulse 1.2s ease-in-out infinite; }
.ic-src.is-ok .ic-src-dot { background: var(--ok); }
.ic-src.is-fail .ic-src-dot, .ic-src.is-new .ic-src-dot { background: var(--blue); }
@keyframes ic-pulse { 50% { opacity: .35; } }

/* Rozmowa */
.ic-body { flex: 1 0 auto; width: 100%; max-width: var(--col); margin: 0 auto; padding: 26px var(--gut) 18px; }
.ic-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@keyframes ic-in { from { opacity: 0; transform: translateY(8px); } }

.ic-typing { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.ic-typing[hidden] { display: none; }
@keyframes ic-dot { 30% { transform: translateY(-4px); background: var(--blue); } }

/* Koniec rozmowy. „Generuj stronę” (i dalej e-mail / „sprawdź pocztę”) przykleja się do dołu okna, gdy tylko się
   pojawi — przewijanie rozmowy w górę go nie chowa. */
.ic-done { position: sticky; bottom: 0; z-index: 16; padding: 22px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--soft) 72%, color-mix(in srgb, var(--soft) 0%, transparent)); }
.ic-done { margin: 28px 0 0; display: grid; justify-items: center; text-align: center; gap: 14px; animation: ic-in .45s var(--ease) both; }
.ic-done[hidden] { display: none; }
.ic-gen { justify-self: center; gap: 12px; min-height: 64px; padding-inline: 38px; border-radius: 16px; font-size: 18.5px; font-weight: 650; }
.ic-gen .ico { width: 20px; height: 20px; }
/* Wyraźne „kliknij mnie”: delikatny puls (bez ikony przypominającej ładowanie). */
.ic-gen:not(:disabled) { animation: ic-gen-pulse 2.2s ease-in-out infinite; }
.ic-gen:hover .ico { transform: translateX(3px); }
.ic-gen .ico { transition: transform .2s; }
@keyframes ic-gen-pulse { 0%, 100% { box-shadow: 0 16px 36px -16px rgba(42, 60, 255, .9), 0 0 0 0 rgba(42, 60, 255, .35); } 50% { box-shadow: 0 16px 36px -16px rgba(42, 60, 255, .9), 0 0 0 10px rgba(42, 60, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .ic-gen:not(:disabled) { animation: none; } }
.ic-mail { padding: 18px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); display: grid; gap: 12px; }
.ic-mail[hidden], .ic-sent[hidden] { display: none; }
.ic-done > .ic-mail, .ic-done > .ic-sent { justify-self: stretch; width: 100%; margin-inline: auto; }
/* Przycisk „Generuj stronę” i formularz e-maila — na całą szerokość czatu, treść wyśrodkowana. */
.ic-done > .ic-gen { justify-self: stretch; width: 100%; justify-content: center; }
.ic-mail { text-align: center; }
.ic-mail-row { grid-template-columns: 1fr !important; }
.ic-mail .btn { width: 100%; justify-content: center; }
.ic-terms { justify-content: center; text-align: left; }
.ic-mail-lead { margin: 0; font-size: 15px; color: var(--ink-2); }
.ic-mail-row { display: grid; gap: 8px; }
@media (min-width: 560px) { .ic-mail-row { grid-template-columns: minmax(0, 1fr) auto; } }
.ic-mail input[type=email] { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.ic-mail input[type=email]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 60, 255, .14); }
.ic-mail .btn { height: 50px; }
.ic-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ic-terms input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.ic-terms a { color: var(--ink-2); }
.ic-mail-err { margin: 0; font-size: 14px; color: var(--err); }
.ic-sent { display: grid; justify-items: center; gap: 8px; padding: 30px 22px 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-align: center; }
.ic-sent-ico { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 6px; border-radius: 50%; background: linear-gradient(145deg, #eef0ff, #dfe3ff); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(42, 60, 255, .14); }
.ic-sent-ico .ico { width: 34px; height: 34px; stroke-width: 1.7; }
.ic-sent-ico i { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #fff; animation: ic-sent-ping 2s ease-out infinite; }
@keyframes ic-sent-ping { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(22, 163, 74, .45); } 70%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 12px rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .ic-sent-ico i { animation: none; } }
.ic-sent-h { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.ic-sent-txt { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ic-sent-next { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 2px; max-width: 48ch; padding: 10px 14px; border-radius: 12px; background: var(--blue-l, #eef0ff); color: var(--ink); font-size: 14px; line-height: 1.45; text-align: left; }
.ic-sent-next .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.ic-sent .linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.ic-sent .linkbtn:disabled { color: var(--muted); cursor: default; }

/* Pole wiadomości — przyklejone do dołu */
.ic-compose { position: sticky; bottom: 0; z-index: 15; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--soft) 70%, transparent); }
.ic-compose[hidden] { display: none; }
.ic-hint { max-width: var(--col); margin: 6px auto 0; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.ic-err { color: var(--err); }
.ic-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.ic-count.is-max { color: var(--warn); }

@media (max-width: 560px) {
  .ic-top-in { padding-top: 10px; gap: 8px; }
  .ic-need { gap: 6px; }
  .ic-need li { font-size: 11.5px; gap: 6px; }
  /* Wąsko: ptaszek spadałby do osobnej linii — wystarczy wypełniony segment i ciemniejszy podpis. */
  .ic-need li.is-ok .ic-need-l::after { display: none; }
  .ic-done { margin-top: 36px; }
  .ic-gen { justify-self: stretch; min-height: 58px; font-size: 17px; }
}
/* Szybkie odpowiedzi pod pierwszym pytaniem (scenariusz „mam stronę”): trzy karty z ilustracją i przyciskiem na dole.
   Wybrana karta zostaje zaznaczona w rozmowie, pozostałe przygasają. */
.ic-picks-li { list-style: none; margin-left: 42px; }
.ic-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Wejście tylko przy pierwszym pokazaniu — rozmowa przebudowuje listę przy każdej odpowiedzi. */
.ic-picks-li.is-new .ic-picks { animation: ic-in .35s var(--ease) both; }
.ic-pick { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease), opacity .25s; }
.ic-pick-art { display: block; border-radius: 12px; background: linear-gradient(180deg, #f7f8ff, #eef0fb); padding: 6px 4px 2px; }
.ic-pick-art .il { max-height: 120px; }
.ic-pick-txt { display: grid; gap: 4px; padding: 0 4px; flex: 1 1 auto; }
.ic-pick-txt strong { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.ic-pick-txt span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ic-pick-cta { display: block; padding: 0 4px; }
.ic-pick-go, .ic-pick-on { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 11px; font-size: 14.5px; font-weight: 600; }
.ic-pick-go { background: var(--blue-l, #eef0ff); color: var(--blue); transition: background .15s, color .15s; }
.ic-pick-go .ico { width: 16px; height: 16px; transition: transform .2s; }
.ic-pick-on { display: none; background: var(--blue); color: #fff; }
.ic-pick-on .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.ic-pick:not(:disabled):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--blue), 0 18px 34px -22px rgba(42, 60, 255, .55); }
.ic-pick:not(:disabled):hover .ic-pick-go { background: var(--blue); color: #fff; }
.ic-pick:not(:disabled):hover .ic-pick-go .ico { transform: translateX(3px); }
.ic-pick:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgba(42, 60, 255, .16); }
.ic-pick:disabled { cursor: default; }
.ic-pick.is-on { box-shadow: inset 0 0 0 2px var(--blue), 0 18px 34px -24px rgba(42, 60, 255, .6); }
.ic-pick.is-on .ic-pick-go { display: none; }
.ic-pick.is-on .ic-pick-on { display: flex; }
.ic-pick.is-on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 9px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 0 0 3px #fff; }
.ic-picks.has-choice .ic-pick:not(.is-on) { opacity: .45; }
.ic-picks.has-choice .ic-pick:not(.is-on) .ic-pick-art { filter: grayscale(.6); }
@media (max-width: 760px) {
  .ic-picks-li { margin-left: 0; }
  .ic-picks { grid-template-columns: 1fr; gap: 10px; }
  /* Wąsko: ilustracja z lewej, tekst i przycisk z prawej — trzy karty mieszczą się na ekranie telefonu. */
  .ic-pick { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px; row-gap: 10px; padding: 10px; }
  .ic-pick-art { grid-row: 1 / 3; align-self: stretch; display: grid; place-items: center; padding: 4px 2px; }
  .ic-pick-txt, .ic-pick-cta { padding: 0; }
  .ic-pick-txt strong { font-size: 15px; }
  .ic-pick-txt span { font-size: 13px; }
  .ic-pick-go, .ic-pick-on { height: 36px; justify-content: flex-start; padding: 0 12px; }
}

/* Załączniki: przycisk „+” w polu wiadomości, menu logo / zdjęcia, lista dodanych plików */
.ic-attach { position: relative; flex: none; align-self: flex-end; }
.ic-attach-menu { position: absolute; left: 0; bottom: calc(100% + 10px); min-width: 200px; padding: 6px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
.ic-attach-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14.5px; font-weight: 550; color: var(--ink); cursor: pointer; text-align: left; }
.ic-attach-menu button:hover { background: var(--soft); }
.ic-attach-menu .ico { width: 17px; height: 17px; color: var(--blue); }
.ic-files { list-style: none; width: 100%; max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.ic-file { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; height: 28px; padding: 0 10px; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--muted); }
.ic-file b { color: var(--ink-2); font-weight: 650; }
.ic-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-file::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .ic-src.is-wait .ic-src-dot { animation: none; }
  .ic-need li > i::after { transition: none; }
  .ic-done, .ic-picks { animation: none; }
  .ic-pick { transition: none; }
}

/* „Wystarczy — generuj stronę”: ręczne zakończenie rozmowy */
.ic-finish-row { display: flex; justify-content: flex-end; margin: 6px 0 2px; }
.ic-finish-row[hidden] { display: none; }
.ic-finish { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); background: #fff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.ic-finish:hover { background: color-mix(in srgb, var(--blue) 7%, #fff); border-color: var(--blue); }
.ic-finish:disabled { opacity: .55; cursor: default; }
.ic-finish .ico { width: 15px; height: 15px; }

/* Pole wiadomości: wspólny wygląd (chat.css .chat-box), tu tylko szerokość kolumny i cień na landingu. */
.ic-compose .chat-box { max-width: var(--col); margin: 0 auto; box-shadow: var(--shadow); }
.ic--panel .ic-compose .chat-box { max-width: none; box-shadow: none; }
.ic-typing { margin-top: 14px; }

/* ---------- Czat startowy dopasowany do reszty strony ----------
   Kwadratowe znaczniki, dymki i pole pisania bez obramowań i cieni. */
.ic-top { border-bottom: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); }
.ic-src-dot, .ic-file::before { border-radius: 2px; }
.chat-bubble { border: 0; border-radius: 16px; border-bottom-left-radius: 6px; }
.chat-msg--user .chat-bubble { border-radius: 16px; border-bottom-right-radius: 6px; box-shadow: none; }
.chat-ava { border-radius: 8px; box-shadow: none; }
.chat-sys { border: 0; border-radius: 8px; }
.chat-dots { border: 0; border-radius: 16px; border-bottom-left-radius: 6px; }
.chat-dots i { border-radius: 2px; }
.chat-chip { height: 36px; border: 0; border-radius: 10px; background: #fff; font-weight: 500; }
.chat-chip:hover { background: var(--blue); color: #fff; }
.chat-box, .ic-compose .chat-box { border: 0; border-radius: 16px; box-shadow: none; }
.chat-box:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(42, 60, 255, .12); }
.chat-attach { border: 0; background: var(--bg); }
.chat-attach:hover { background: var(--blue-l); color: var(--blue); }
.chat-tray li { border: 0; }
.ic-attach-menu { border: 0; box-shadow: 0 18px 40px -20px rgba(16, 24, 40, .3); }
.ic-finish { height: 36px; border: 0; border-radius: 10px; background: #fff; font-weight: 500; }
.ic-finish:hover { background: var(--blue-l); }
.ic-gen:not(:disabled) { animation: none; }
/* Asystent nie ma już pytań: „Wystarczy — generuj stronę” jako duże CTA przyklejone do dołu (jak „Generuj stronę”). */
.ic-finish-row.is-cta { position: sticky; bottom: 0; z-index: 16; margin: 22px 0 0; padding: 18px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--soft) 72%, color-mix(in srgb, var(--soft) 0%, transparent)); animation: ic-in .45s var(--ease) both; }
.ic-finish-row.is-cta .ic-finish { width: 100%; justify-content: center; gap: 12px; height: auto; min-height: 64px; padding: 0 38px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 18.5px; font-weight: 650; animation: ic-gen-pulse 2.2s ease-in-out infinite; }
.ic-finish-row.is-cta .ic-finish:hover { background: color-mix(in srgb, var(--blue) 88%, #000); }
.ic-finish-row.is-cta .ic-finish .ico { width: 20px; height: 20px; transition: transform .2s; }
.ic-finish-row.is-cta .ic-finish:hover .ico { transform: translateX(3px); }
@media (max-width: 559px) { .ic-finish-row.is-cta .ic-finish { min-height: 58px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .ic-finish-row.is-cta, .ic-finish-row.is-cta .ic-finish { animation: none; } }
.ic-mail, .ic-sent { border-radius: 20px; box-shadow: none; }
.ic-mail input[type=email] { border: 0; background: var(--bg); }
.ic-mail input[type=email]:focus { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(42, 60, 255, .12); }
.ic-sent-ico { border-radius: 20px; background: var(--blue-l); }
.ic-sent-ico i { border-radius: 3px; }


/* „Sprawdź pocztę” przyklejone do dołu razem z resztą końca rozmowy (16.10.2026) — niższe: ikona z lewej, tekst obok. */
@media (min-width: 640px) {
  .ic-sent { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 18px; row-gap: 6px; padding: 18px 22px; text-align: left; }
  .ic-sent-ico { grid-row: 1 / 3; width: 64px; height: 64px; margin: 0; }
  .ic-sent-ico .ico { width: 28px; height: 28px; }
  .ic-sent-h { font-size: 18px; }
  .ic-sent-txt { max-width: none; font-size: 14.5px; }
  .ic-sent-next { grid-column: 1 / -1; max-width: none; width: 100%; margin: 6px 0 0; }
  .ic-sent .linkbtn { grid-column: 1 / -1; justify-self: center; }
}
.ic-used { display: flex; align-items: flex-start; gap: 8px; margin: 0; max-width: 60ch; padding: 10px 14px; border-radius: 12px; background: #fff7e8; color: #7a4a00; font-size: 14px; line-height: 1.45; text-align: left; }
.ic-used[hidden] { display: none; }
.ic-used .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* css/intake-logo.css */
/* W8 — generator logo w czacie wstępnym (intake-logo.js). Tokeny z site.css / mapowanie panelu w intake.css. */
.lg-li { align-items: flex-start; }
.lg-li .chat-ava { margin-top: 4px; }
.lg-body { max-width: min(720px, 100%); width: 100%; }
.lg { position: relative; display: grid; gap: 14px; padding: 18px 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -30px rgba(16, 24, 40, .35); }
.lg--offered, .lg--describe { background: linear-gradient(160deg, #fff 55%, #f4f5ff); }
.lg-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nagłówek karty */
.lg-h { display: flex; gap: 12px; align-items: flex-start; }
.lg-badge { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, var(--blue), var(--violet, #7c5cff)); color: #fff; box-shadow: 0 10px 22px -12px rgba(42, 60, 255, .8); }
.lg-badge .lg-i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.lg-badge--ok { background: linear-gradient(145deg, #12b76a, #0e9f5c); box-shadow: 0 10px 22px -12px rgba(18, 183, 106, .8); }
.lg-badge--ok .lg-i { fill: none; stroke: currentColor; stroke-width: 3; }
.lg-badge--warn { background: linear-gradient(145deg, #f79009, #dc6803); }
.lg-badge--work { animation: lg-glow 1.8s ease-in-out infinite; }
.lg-badge--work .lg-i { animation: lg-twinkle 1.8s ease-in-out infinite; }
@keyframes lg-glow { 50% { box-shadow: 0 0 0 7px rgba(42, 60, 255, .12), 0 10px 22px -12px rgba(42, 60, 255, .8); } }
@keyframes lg-twinkle { 50% { transform: scale(.8) rotate(45deg); } }
.lg-h-tx { display: grid; gap: 4px; min-width: 0; padding-top: 1px; }
.lg-title { margin: 0; font-size: 16.5px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.lg-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Przyciski */
.lg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, box-shadow .2s, transform .15s var(--ease); }
.lg-btn:disabled { cursor: default; opacity: .55; }
.lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(42, 60, 255, .22); }
.lg-btn--pri { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -14px rgba(42, 60, 255, .9); }
.lg-btn--pri:not(:disabled):hover { background: var(--blue-d); transform: translateY(-1px); }
.lg-btn--sec { background: var(--blue-l, #eef0ff); color: var(--blue); }
.lg-btn--sec:not(:disabled):hover { background: #e2e5ff; }
.lg-btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.lg-btn--ghost:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.lg-btn--done { background: #e7f8ef; color: #0b7a47; opacity: 1 !important; }
.lg-btn--done .lg-i { stroke-width: 3; }
.lg-skip { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-align: left; }
.lg-skip b { font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.lg-skip:hover b { color: var(--blue); text-decoration-color: currentColor; }
.lg-err { margin: 0; font-size: 13.5px; color: var(--err); }
.lg-err:empty { display: none; }
.lg-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 13.5px; }

/* Opis: nazwa w logo + szybkie odpowiedzi */
.lg-name { display: grid; gap: 6px; }
.lg-name-l { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lg-name input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.lg-name input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 60, 255, .14); }
.lg-name input.is-bad { border-color: var(--err); box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.lg-name-h { font-size: 12.5px; color: var(--muted); }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: box-shadow .15s, color .15s, background .15s; }
.lg-chip:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); background: var(--blue-l, #eef0ff); }
.lg-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.lg-hint .lg-i { width: 16px; height: 16px; color: var(--blue); }

/* Pole wiadomości w kroku „opisz logo”: znacznik nad polem */
.lg-tag { max-width: var(--col, 760px); margin: 0 auto 8px; display: flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 18px -12px rgba(42, 60, 255, .9); animation: ic-in .3s var(--ease) both; }
.lg-tag .lg-i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.lg-tag-x { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; }
.lg-tag-x .lg-i { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.lg-tag-x:hover { background: rgba(255, 255, 255, .32); }
.ic.is-logo-describe .ic-compose-in { box-shadow: 0 0 0 2px var(--blue), 0 12px 28px -18px rgba(42, 60, 255, .7); }

/* Praca modelu: pasek, kroki, szkielety kart */
.lg-bar { position: relative; height: 6px; border-radius: 3px; background: #e7e9f4; overflow: hidden; }
.lg-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--violet, #7c5cff)); transform: scaleX(var(--lg-start, 0)); animation: lg-fill 70s cubic-bezier(.1, .6, .3, 1) forwards; }
@keyframes lg-fill { to { transform: scaleX(.94); } }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lg-steps li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--muted); opacity: .55; transition: color .3s, opacity .3s; }
.lg-steps li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .3s, background .3s; }
.lg-steps li.is-on { color: var(--ink); opacity: 1; }
.lg-steps li.is-on::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(42, 60, 255, .15); }
.lg-skel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lg-skel-c { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.lg-skel-c:nth-child(3) { display: none; }
.lg-skel-c i, .lg-skel-c b { display: block; border-radius: 12px; background: linear-gradient(100deg, #eef0f6 30%, #f8f9fd 50%, #eef0f6 70%) 0 0 / 300% 100%; animation: lg-shimmer 1.6s linear infinite; }
.lg-skel-c i { aspect-ratio: 2.1 / 1; }
.lg-skel-c i + i { background-color: #1b1e26; background-image: linear-gradient(100deg, #1b1e26 30%, #2a2e3a 50%, #1b1e26 70%); }
.lg-skel-c b { grid-column: 1 / -1; height: 12px; width: 55%; border-radius: 6px; }
@keyframes lg-shimmer { to { background-position: -150% 0; } }
.lg-working { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--blue-l, #eef0ff); color: var(--ink); font-size: 14px; font-weight: 550; }
.lg-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid rgba(42, 60, 255, .2); border-top-color: var(--blue); animation: lg-rot .8s linear infinite; }
@keyframes lg-rot { to { transform: rotate(1turn); } }

/* Propozycje: lista — każda propozycja w pełnej szerokości karty (logo ocenia się w realnej wielkości), jasne i ciemne tło obok siebie */
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lg-p { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top top" "tiles tiles" "meta act" "ref ref"; gap: 10px 14px; align-items: center; min-width: 0; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.lg-p:hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -24px rgba(16, 24, 40, .5); }
.lg-p.is-chosen { box-shadow: inset 0 0 0 2px #12b76a, 0 18px 34px -24px rgba(18, 183, 106, .7); }
.lg-p-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; padding: 0 2px; }
.lg-p-n { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.lg-p-ok { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: #e7f8ef; color: #0b7a47; font-size: 12px; font-weight: 650; }
.lg-p-ok .lg-i { width: 13px; height: 13px; stroke-width: 3; }
.lg-tiles { grid-area: tiles; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.lg-tile { margin: 0; position: relative; min-width: 0; aspect-ratio: 2.1 / 1; border-radius: 12px; overflow: hidden; }
.lg-tile img { position: absolute; inset: 9% 7%; width: 86%; height: 82%; object-fit: contain; }
.lg-tile--light { background: #fff; box-shadow: inset 0 0 0 1px #eceef4; background-image: radial-gradient(circle at 1px 1px, #eef0f5 1px, transparent 0); background-size: 12px 12px; }
.lg-tile--dark { background: #14161b; }
.lg-p-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); font-size: 14px; font-weight: 600; color: var(--ink); }
.lg-p-meta { grid-area: meta; display: flex; gap: 10px; align-items: center; min-width: 0; padding: 0 2px; }
.lg-ico { flex: none; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.lg-p-tx { display: grid; gap: 4px; min-width: 0; }
.lg-p-c { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.lg-p-sw { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.lg-p-sw i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .12); }
.lg-p-sw small { margin-left: 4px; font-size: 12px; color: var(--muted); }
.lg-p-act { grid-area: act; display: flex; gap: 8px; justify-content: flex-end; }
.lg-p-act .lg-btn { min-height: 42px; padding: 0 14px; white-space: nowrap; }
.lg-p-act .lg-btn--pri, .lg-p-act .lg-btn--done { min-width: 132px; }
.lg-p > .lg-ref { grid-area: ref; }
.lg-ref { display: flex; gap: 8px; }
.lg-ref[hidden] { display: none; }
.lg-ref input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; }
.lg-ref input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 60, 255, .14); }
.lg-ref .lg-btn { min-height: 42px; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.lg-left { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lg-btn .lg-left { margin-left: 2px; font-weight: 500; }
.lg-earlier { border-top: 1px dashed var(--line); padding-top: 10px; }
.lg-earlier summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); list-style: none; }
.lg-earlier summary::-webkit-details-marker { display: none; }
.lg-earlier summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform .2s; }
.lg-earlier[open] summary::before { transform: rotate(90deg); }
.lg-earlier .lg-grid { margin-top: 10px; }

/* Węższy czat (panel ma okno 980 px, landing 760 px): od 2 kolumn, telefon — jedna, karty na całą szerokość */
@media (max-width: 760px) {
  .lg-p { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "tiles" "meta" "act" "ref"; }
  .lg-p-act .lg-btn--pri, .lg-p-act .lg-btn--done { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .lg-li .chat-ava { display: none; }
  .lg-li { gap: 0; }
  .lg { padding: 14px 14px 12px; border-radius: 18px; }
  .lg-tiles { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lg-tile { aspect-ratio: 2.6 / 1; }
  .lg-row .lg-btn { flex: 1 1 100%; }
  .lg-skel-c { grid-template-columns: minmax(0, 1fr); }
  .lg-skel-c i { aspect-ratio: 2.6 / 1; }
  .lg-skel-c:nth-child(n+2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-badge--work, .lg-badge--work .lg-i, .lg-skel-c i, .lg-skel-c b, .lg-spin { animation: none; }
  .lg-bar i { animation-duration: .01s; }
}

