/* Konsultacje czat — page-only styles. Shared chrome: ig-style.css + ig-body.css; shared helpers from
   invoice-generator.css; pricing cards, topic network and the order drawer shell (.klb*) from consultations.css. */

.ch-i{display:block;width:24px;height:24px;flex:none}

/* ===== Hero: animated chat thread (inside the browser mockup on desktop, standalone card on mobile) ===== */
.ch-screen{background:#0B1A24}
.ch-thread{position:absolute;inset:0;display:flex;flex-direction:column;color:#F3F7F9;font-size:13px;line-height:1.35;
  background:radial-gradient(120% 70% at 100% 0%,rgba(19,184,238,.12),transparent 60%),radial-gradient(90% 60% at 0% 100%,rgba(104,226,180,.08),transparent 60%),#0B1A24}
.ch-th-head{flex:none;display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.ch-th-ava{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#3FCBF5,#0E9FD3)}
.ch-th-ava svg{width:19px;height:19px}
.ch-th-who{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ch-th-who b{font-size:13.5px;font-weight:750;letter-spacing:-.01em}
.ch-th-who small{display:flex;align-items:center;font-size:11px;color:#9FB2BC;white-space:nowrap}
.ch-th-who .kl-live{width:7px;height:7px;margin-right:6px}
.ch-th-pkg{flex:none;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#13B8EE;padding:5px 9px;border-radius:999px;
  background:rgba(19,184,238,.12);border:1px solid rgba(19,184,238,.28)}
.ch-th-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;padding:12px 16px;overflow:hidden}
.ch-th-sys{order:-1;margin:0 auto auto;display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:650;color:#9FB2BC;
  padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.ch-th-sys svg{width:12px;height:12px}
.ch-msg{display:flex;align-items:flex-end;gap:8px;max-width:78%;opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease,margin .35s ease,max-height .35s ease;max-height:140px}
.ch-msg.on{opacity:1;transform:none}
.ch-msg.gone{opacity:0;max-height:0;margin-top:-9px;transform:translateY(-8px)}
.ch-msg p{margin:0}
.ch-msg.me{align-self:flex-end;flex-direction:column;align-items:flex-end;gap:4px}
.ch-msg.me p{padding:8px 12px;border-radius:14px 14px 4px 14px;background:#13B8EE;color:#04202C;font-weight:650}
.ch-att{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:#CFE9F4;padding:4px 9px;border-radius:9px;background:rgba(19,184,238,.14);border:1px solid rgba(19,184,238,.3)}
.ch-att svg{width:12px;height:12px}
.ch-tick{display:flex;color:#6F8590;transition:color .3s}
.ch-tick svg{width:14px;height:14px}
.ch-msg.read .ch-tick{color:#68E2B4}
.ch-msg.them{align-self:flex-start}
.ch-ava{flex:none;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;color:#68E2B4;background:rgba(104,226,180,.14);border:1px solid rgba(104,226,180,.3)}
.ch-ava svg{width:14px;height:14px}
.ch-typing,.ch-skel{padding:10px 12px;border-radius:14px 14px 14px 4px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}
.ch-typing{display:flex;gap:4px}
.ch-typing i{width:6px;height:6px;border-radius:50%;background:#9FB2BC;animation:chDot 1.1s ease-in-out infinite}
.ch-typing i:nth-child(2){animation-delay:.15s}.ch-typing i:nth-child(3){animation-delay:.3s}
@keyframes chDot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.ch-skel{display:flex;flex-direction:column;gap:6px;width:200px;max-width:100%}
.ch-skel i{display:block;height:7px;border-radius:4px;background:linear-gradient(90deg,rgba(104,226,180,.35),rgba(19,184,238,.25))}
.ch-th-compose{flex:none;display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08)}
.ch-th-btn,.ch-th-send{flex:none;width:30px;height:30px;border-radius:10px;display:grid;place-items:center}
.ch-th-btn{color:#9FB2BC;background:rgba(255,255,255,.05)}
.ch-th-send{color:#fff;background:#13B8EE}
.ch-th-btn svg,.ch-th-send svg{width:16px;height:16px}
.ch-th-input{flex:1;min-width:0;height:30px;display:flex;align-items:center;padding:0 12px;border-radius:10px;font-size:12px;color:#7F949E;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-th-input.typing{color:#F3F7F9;border-color:rgba(19,184,238,.45)}
.ch-hero-mob{display:none}
@media (min-width:769px) and (max-width:1100px){.ch-thread{font-size:12px}.ch-th-pkg{display:none}}
@media (max-width:768px){
  .ch-hero .hero-visual{display:none}
  .ch-hero-mob{display:block;position:relative;width:100%}
  .ch-thread-mob{position:relative;inset:auto;height:330px;border-radius:22px;border:1px solid rgba(255,255,255,.12);overflow:hidden;
    box-shadow:0 14px 34px rgba(0,0,0,.3)}
  .ch-thread-mob .ch-th-pkg{display:none}
  .ch-thread-mob .ch-msg{max-width:84%}
}
@media (prefers-reduced-motion:reduce){.ch-msg{transition:none}.ch-typing i{animation:none}}

/* ===== Pricing: 4 packages, rising 1 → 25 ===== */
.ch-stairs{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ch-stairs .kl-stairs-line{bottom:40%;transform:rotate(-6deg)}
.ch-card.c1{margin-bottom:0}
.ch-card.c2{margin-bottom:30px}
.ch-card.c3{margin-bottom:60px;border-color:rgba(255,255,255,.1);box-shadow:0 20px 50px rgba(0,0,0,.35),inset 0 3px 0 var(--acc)}
.ch-card.c4{margin-bottom:90px;border-color:rgba(255,160,79,.45);box-shadow:0 24px 60px rgba(255,160,79,.14),0 0 0 1px rgba(255,160,79,.2),inset 0 3px 0 #FFA04F}
.ch-card.c4 .btn-primary{background:#FFA04F;color:#3A1D02}
.ch-card.c4 .btn-primary:hover{background:#ffb06a}
.ch-card .kl-card-top{margin-bottom:22px}
.ch-card .kl-level{font-size:12.5px}
.ch-card .kl-price{margin-bottom:4px}
.ch-per{margin:0 0 16px;font-size:13px;color:var(--b-muted)}
.ch-feat li{gap:10px;padding:5px 0}
.ch-feat li b{color:#fff;font-weight:700}
.ch-feat .kl-ic-ft svg{width:16px;height:16px}
@media (max-width:1100px) and (min-width:769px){
  .ch-stairs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .ch-card.c1,.ch-card.c2,.ch-card.c3,.ch-card.c4{margin-bottom:0}
  .ch-stairs .kl-stairs-line{display:none}
}
@media (max-width:768px){
  .ch-card,.ch-card.c1,.ch-card.c2,.ch-card.c3,.ch-card.c4{flex:0 0 calc(100% - 44px);max-width:340px;margin:0}
  .ch-card.c3{box-shadow:0 10px 22px rgba(0,0,0,.26),inset 0 3px 0 var(--acc)}
  .ch-card.c4{box-shadow:0 10px 24px rgba(255,160,79,.10),0 0 0 1px rgba(255,160,79,.2),inset 0 3px 0 #FFA04F}
  .ch-card.c4 .btn-primary{box-shadow:0 6px 16px rgba(255,160,79,.22)}
}

/* ===== Zalety: Lucide icons in tinted tiles ===== */
.ch-zal .zt-ic svg{width:26px;height:26px}
.ch-zal .zt-ic.zt-cyan{background:rgba(19,184,238,.12);color:#13B8EE}
.ch-zal .zt-ic.zt-orange{background:rgba(255,160,79,.12);color:#FFA04F}
.ch-zal .zt-ic.zt-lime{background:rgba(104,226,180,.12);color:#68E2B4}

/* ===== Zespół: 3 cards (owner, worker, add) ===== */
.ch-emp .ig-team-add{bottom:10%}

/* ===== Tematy ===== */
.ch-tc-ic{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#13B8EE;background:rgba(19,184,238,.12);border:1px solid rgba(19,184,238,.25)}
.ch-tc-ic svg{width:22px;height:22px}
.ch-topics .kl-tc:nth-of-type(3n+2) .ch-tc-ic{color:#68E2B4;background:rgba(104,226,180,.12);border-color:rgba(104,226,180,.28)}
.ch-topics .kl-tc:nth-of-type(3n) .ch-tc-ic{color:#FFA04F;background:rgba(255,160,79,.12);border-color:rgba(255,160,79,.3)}
@media (max-width:640px){.ch-tc-ic{width:38px;height:38px;border-radius:12px}.ch-tc-ic svg{width:20px;height:20px}}

.ch-pricing,.ch-topics,.ch-zal{background-color:transparent}

/* ===== Order drawer (shell = .klb from consultations.css) ===== */
.ch-pkg-ic{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(140deg,var(--acc),color-mix(in srgb,var(--acc) 55%,#0B1C28));box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.ch-pkg-ic svg{width:24px;height:24px}
.ch-pkg-ic.sm{width:44px;height:44px;border-radius:13px}
.ch-pkg-ic.sm svg{width:20px;height:20px}
.ch-ord .klb-spec-price{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-ord .klb-spec-tx b{font-size:16px}
.ch-tiles2{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}
.ch-tiles2 button{min-height:84px}
.ch-fields{display:grid;gap:12px}
.ch-fields[hidden]{display:none}
.ch-field{display:flex;flex-direction:column;gap:6px}
.ch-field .klb-lbl{margin:0}
.ch-ord input:not([type="checkbox"]){display:block;width:100%;box-sizing:border-box;min-height:50px;padding:0 14px;border-radius:14px;font:500 16px/1.2 Geist,system-ui,sans-serif;
  color:#fff;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.14);transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none}
.ch-ord input::placeholder{color:#8FA3AD}
.ch-ord input:focus{outline:none;border-color:rgba(19,184,238,.7);box-shadow:0 0 0 3px rgba(19,184,238,.16)}
.ch-note{display:flex;align-items:flex-start;gap:10px;margin:0;padding:14px;border-radius:14px;font-size:14px;line-height:1.45;color:var(--b-ink2,#D0DADF);
  background:rgba(104,226,180,.08);border:1px solid rgba(104,226,180,.25)}
.ch-note[hidden]{display:none}
.ch-note svg{flex:none;width:18px;height:18px;color:#68E2B4;margin-top:1px}
.ch-total{background:rgba(19,184,238,.07)}
.ch-total dd{font-size:15px}
.ch-total dd b{font-size:20px;font-weight:800;letter-spacing:-.02em}
.ch-consent{position:relative;display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:14px;border-radius:14px;cursor:pointer;
  font-size:14px;line-height:1.45;color:var(--b-ink2,#D0DADF);background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.1)}
.ch-consent input{position:absolute;opacity:0;width:24px;height:24px;margin:0;left:14px;top:14px;cursor:pointer}
.ch-cb{flex:none;width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:transparent;border:1.5px solid rgba(255,255,255,.35);transition:background .15s,border-color .15s,color .15s}
.ch-cb svg{width:14px;height:14px}
.ch-consent input:checked + .ch-cb{background:#13B8EE;border-color:#13B8EE;color:#fff}
.ch-consent input:focus-visible + .ch-cb{outline:2px solid #13B8EE;outline-offset:2px}
.ch-consent a{color:#13B8EE;text-decoration:underline;text-underline-offset:2px}
.ch-hint{display:flex;align-items:flex-start;gap:8px}
.ch-hint svg{flex:none;width:16px;height:16px;margin-top:2px;color:#13B8EE}
.ch-pop-it .klb-pop-tx b{font-size:14px;font-weight:650;color:var(--b-ink2,#D0DADF)}
.ch-pop-it .klb-pop-tx .klb-level{font-size:11.5px}
@media (max-width:900px){
  .ch-pkg-ic{width:46px;height:46px;border-radius:14px}
  .ch-ord .klb-spec{padding-right:52px}
  .ch-pop-it{grid-template-columns:40px minmax(0,1fr) auto 18px}
  .ch-pkg-ic.sm{width:40px;height:40px}
}
/* desktop: keep the thread clear of the phone mockup that overlaps the browser's right side */
@media (min-width:769px){
  .ch-screen .ch-th-body,.ch-screen .ch-th-compose{padding-right:calc(27% + 14px)}
  .ch-screen .ch-th-sys{margin-left:0}
}
/* order drawer: near-opaque panel so the pricing cards behind never show through (WebKit may skip the blur) */
.ch-ord,.ch-ord.is-open{background:radial-gradient(120% 30% at 100% 0%,rgba(19,184,238,.14),transparent 62%),#0B1C28!important}
/* mobile: long live-typed topics must never widen the hero grid */
@media (max-width:1100px){.ch-hero .hero-grid{grid-template-columns:minmax(0,1fr)}.ch-hero .hero-copy,.ch-hero-mob,.ch-thread-mob{min-width:0;max-width:100%}}
