:root {
  --bg: #111113; --side: #0c0c0e; --panel: #17171a; --panel2: #1e1e22; --panel3: #26262b; --border: #27272c; --border2: #34343a;
  --text: #ececef; --muted: #8d8d97; --dim: #5d5d66;
  --blue: #4f8ef7; --blue-soft: rgba(79,142,247,.14); --green: #34c77b; --green-soft: rgba(52,199,123,.13);
  --amber: #f0a33a; --amber-soft: rgba(240,163,58,.13); --orange: #f2713c; --red: #ef5350; --red-soft: rgba(239,83,80,.13);
  --cyan: #38bdf8; --purple: #a78bfa; --pink: #e879f9;
  --me: #4f8ef7; --them: #26262b; --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 13.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.ico { flex-shrink: 0; vertical-align: -3px; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: #2c2c32; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* layout */
.layout { display: flex; height: 100vh; }
.sidebar { width: 232px; background: var(--side); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 10px 10px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border2); display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2a2a33, #0c0c0e); overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.brand b { display: block; font-size: 13.5px; letter-spacing: .06em; }
.brand small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.nav-label { font-size: 11px; color: var(--dim); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #c9c9cf; text-decoration: none; margin-bottom: 1px; }
.nav a:hover { background: var(--panel); }
.nav a.active { background: var(--panel2); color: #fff; }
.nav a .count { margin-left: auto; font-size: 11px; color: var(--muted); }
.nav a .dot-badge { margin-left: auto; background: var(--blue); color: #fff; border-radius: 10px; font-size: 10.5px; padding: 0 6px; font-weight: 600; }
.side-bottom { margin-top: auto; }
.account { display: flex; align-items: center; gap: 10px; padding: 10px 8px 4px; border-top: 1px solid var(--border); margin-top: 8px; }
.account b { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-toggle { display: inline-flex; align-items: center; gap: 0; border-radius: 20px; padding: 2px; background: var(--panel3); cursor: pointer; border: 1px solid var(--border2); font-size: 10px; font-weight: 700; }
.ai-toggle span { padding: 1px 7px; border-radius: 20px; color: var(--muted); }
.ai-toggle .st { background: #3a3a42; color: #ddd; }
.ai-toggle.on .st { background: var(--green); color: #052e16; }
.ai-toggle.on .lbl { color: var(--green); }
.side-meta { font-size: 11px; color: var(--dim); padding: 6px 10px 0; }
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.crumbs { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.crumbs b { color: var(--text); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }
main { flex: 1; overflow: auto; }
.page { padding: 22px 24px 40px; max-width: 1400px; }
.page.full { padding: 0; max-width: none; height: 100%; }
h1 { font-size: 20px; margin: 0 0 2px; font-weight: 600; } h2 { font-size: 14.5px; margin: 0 0 4px; font-weight: 600; } h3 { font-size: 13px; margin: 0 0 6px; font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 12.5px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12px; }

/* components */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card.pad0 { padding: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-head .link { font-size: 12px; color: var(--text); cursor: pointer; font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border2); background: var(--panel2); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-weight: 500; white-space: nowrap; font-size: 12.5px; }
.btn:hover { background: var(--panel3); }
.btn.primary { background: #ececef; color: #111; border-color: #ececef; } .btn.primary:hover { background: #fff; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.gold { background: rgba(240,163,58,.12); border-color: rgba(240,163,58,.45); color: #f6c46e; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--panel2); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 4px 9px; font-size: 12px; } .btn.icon { padding: 6px; }
.btn:disabled { opacity: .5; cursor: default; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], input[type=url], select, textarea { background: var(--panel2); border: 1px solid var(--border2); border-radius: 8px; padding: 8px 10px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #4b4b55; }
textarea { resize: vertical; line-height: 1.55; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-weight: 500; margin-bottom: 5px; font-size: 12.5px; color: #cfcfd5; }
.hint { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row > .grow { flex: 1; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #3a3a42; border-radius: 20px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(16px); }
.pill-on { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border2); border-radius: 20px; padding: 2px 4px 2px 10px; font-size: 11.5px; font-weight: 600; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.trow:last-child { border-bottom: 0; }
.trow .t b { display: block; font-weight: 500; } .trow .t small { color: var(--muted); font-size: 11.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid; white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.cyan { color: var(--cyan); border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.08); }
.chip.amber { color: var(--amber); border-color: rgba(240,163,58,.4); background: var(--amber-soft); }
.chip.orange { color: var(--orange); border-color: rgba(242,113,60,.45); background: rgba(242,113,60,.1); }
.chip.green { color: var(--green); border-color: rgba(52,199,123,.4); background: var(--green-soft); }
.chip.blue { color: var(--blue); border-color: rgba(79,142,247,.45); background: var(--blue-soft); }
.chip.red { color: var(--red); border-color: rgba(239,83,80,.4); background: var(--red-soft); }
.chip.purple { color: var(--purple); border-color: rgba(167,139,250,.4); background: rgba(167,139,250,.1); }
.chip.gray { color: #c8c8ce; border-color: var(--border2); background: var(--panel2); }
.chip.gray i { display: none; }
.badge-step { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--border2); color: #c8c8ce; white-space: nowrap; }
.badge-step.green { color: var(--green); border-color: rgba(52,199,123,.4); background: var(--green-soft); }
.badge-step.blue { color: var(--blue); border-color: rgba(79,142,247,.4); }
.badge-step.amber { color: var(--amber); border-color: rgba(240,163,58,.4); }
.badge-step.purple { color: var(--purple); border-color: rgba(167,139,250,.4); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 12.5px; border: 1px solid; }
.alert.err { background: var(--red-soft); border-color: rgba(239,83,80,.35); color: #fca5a5; }
.alert.warn { background: var(--amber-soft); border-color: rgba(240,163,58,.35); color: #fcd34d; }
.alert.info { background: var(--panel); border-color: var(--border); color: #c8c8ce; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; }
.tabs button { background: none; border: 0; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 12.5px; }
.tabs button.active { background: var(--panel3); color: var(--text); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
th { color: var(--muted); font-weight: 500; font-size: 11.5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.hl { color: #fff; font-weight: 600; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel2); }
.spark { width: 100%; display: block; }
.delta { font-size: 11.5px; font-weight: 600; } .delta.up { color: var(--green); } .delta.down { color: var(--red); }
.toast { position: fixed; bottom: 20px; right: 20px; background: #ececef; color: #111; padding: 10px 16px; border-radius: 10px; z-index: 99; max-width: 460px; box-shadow: 0 8px 30px rgba(0,0,0,.4); font-weight: 500; }
.toast.err { background: var(--red); color: #fff; }
.empty { color: var(--muted); text-align: center; padding: 50px 20px; }
.diff { font: 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel2); border-radius: 8px; padding: 10px; max-height: 280px; overflow: auto; white-space: pre-wrap; }
.diff .add { background: rgba(52,199,123,.16); display: block; } .diff .del { background: rgba(239,83,80,.13); text-decoration: line-through; display: block; color: #d6a2a2; }
.log { max-height: 280px; overflow: auto; font-size: 12px; }
.log div { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.log .t { color: var(--dim); margin-right: 6px; font-variant-numeric: tabular-nums; } .log .error { color: #fca5a5; } .log .warn { color: #fcd34d; }

/* overview */
.kpi .l { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 25px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.01em; }
.kpi-row { display: flex; align-items: flex-end; gap: 10px; }
.kpi-row > div:first-child { flex: 1; min-width: 0; }
.kpi-row .spark { width: 46%; }
.hero { background: radial-gradient(circle at 85% 30%, rgba(52,199,123,.18), transparent 45%), linear-gradient(135deg, #10251a, #121214 60%); border-color: #1f3a2a; }
.hero .v { font-size: 38px; font-weight: 600; letter-spacing: -.02em; }
.qitem { border-top: 1px solid var(--border); padding: 12px 0 2px; }
.qitem:first-of-type { border-top: 0; }
.qitem .q { font-weight: 600; margin-bottom: 6px; }

/* conversations */
.conv { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; height: 100%; }
.conv-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.conv-search { padding: 12px; display: flex; gap: 8px; }
.inp-ico { position: relative; flex: 1; } .inp-ico .ico { position: absolute; left: 10px; top: 9px; color: var(--muted); } .inp-ico input { padding-left: 32px; }
.conv-items { overflow: auto; flex: 1; padding: 0 8px 8px; }
.ci { display: flex; gap: 11px; padding: 10px; border-radius: 10px; cursor: pointer; margin-bottom: 2px; }
.ci:hover { background: var(--panel); } .ci.active { background: var(--panel2); }
.ci .body { flex: 1; min-width: 0; }
.ci .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ci .meta { display: flex; gap: 6px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.ci .time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ci .unread { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); display: inline-block; flex-shrink: 0; }
.conv-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { padding: 10px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.msgs { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: 68%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; }
.msg.lead { background: var(--them); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.me { background: var(--me); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.me.manual { background: #3b4a66; }
.msg.voice { font-style: italic; }
.msg-meta { font-size: 10.5px; color: var(--dim); margin: 1px 6px 8px; } .msg-meta.me { align-self: flex-end; } .msg-meta.lead { align-self: flex-start; }
.msg-meta .bot { color: var(--blue); }
.day-sep { align-self: center; font-size: 11px; color: var(--dim); margin: 10px 0; }
.composer { padding: 12px 18px; border-top: 1px solid var(--border); }
.composer-box { display: flex; align-items: flex-end; gap: 8px; background: var(--panel); border: 1px solid var(--border2); border-radius: 14px; padding: 6px 6px 6px 14px; }
.composer-box textarea { border: 0; background: transparent; padding: 7px 0; min-height: 34px; max-height: 160px; resize: none; }
.send-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #3a3a42; color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.send-btn:hover { background: var(--blue); }
.draft { margin: 0 18px 10px; border: 1px dashed var(--purple); border-radius: 12px; padding: 12px; background: rgba(167,139,250,.06); }
.conv-side { border-left: 1px solid var(--border); overflow: auto; }
.side-sec { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.side-sec h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.side-sec h4 > span { display: flex; align-items: center; gap: 7px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; } .kv span:first-child { color: var(--muted); } .kv span:last-child { text-align: right; font-weight: 500; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--panel2); border: 1px solid var(--border2); border-radius: 6px; padding: 1px 8px; font-size: 11.5px; display: inline-flex; gap: 5px; align-items: center; }
.tag button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.fu { border: 1px solid var(--border2); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 12.5px; }
.fu .between { margin-bottom: 4px; font-size: 11.5px; color: var(--muted); }
.timeline div { position: relative; padding: 0 0 8px 14px; font-size: 12px; color: #c8c8ce; }
.timeline div::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.timeline small { color: var(--dim); margin-left: 4px; }
.meeting { border: 1px solid rgba(52,199,123,.4); background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* setter */
.setter { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; }
.setter-edit { overflow: auto; padding: 20px 28px 60px; }
.setter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.slider3 { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.slider3 button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.slider3 button.active { background: var(--blue-soft); color: var(--blue); }
.psec { margin-bottom: 18px; }
.psec-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.psec-title input { background: none; border: 0; padding: 0; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #e8e8ec; width: auto; flex: 1; }
.psec-title .acts { opacity: 0; transition: .15s; display: flex; gap: 4px; }
.psec:hover .psec-title .acts { opacity: 1; }
.psec textarea { background: transparent; border: 1px solid transparent; padding: 6px 8px; margin: 2px -8px 0; color: #c9c9cf; resize: none; overflow: hidden; width: calc(100% + 16px); line-height: 1.6; }
.psec textarea:hover { border-color: var(--border); } .psec textarea:focus { border-color: var(--border2); background: var(--panel); color: var(--text); }
.psec.changed textarea { background: var(--green-soft); border-color: rgba(52,199,123,.35); color: #d6f5e3; }
.psec .changed-note { font-size: 11px; color: var(--green); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.setter-test { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.test-head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.test-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.test-msgs .msg { max-width: 82%; font-size: 13px; }
.sys-label { align-self: center; font-size: 11px; color: var(--muted); margin: 6px 0; }
.msg.old { opacity: .45; text-decoration: line-through; }
.msg.fresh { box-shadow: 0 0 0 2px var(--green); }
.bot-tools { align-self: flex-end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 4px 0 10px; font-size: 11px; }
.bot-tools .note { color: var(--muted); max-width: 100%; text-align: right; }
.fix-box { border: 1px solid var(--border2); border-radius: 12px; padding: 12px; background: var(--panel); margin: 6px 0 12px; }
.ok-label { align-self: flex-end; font-size: 11px; color: var(--green); margin: 2px 0; }

/* ask */
.ask { display: flex; flex-direction: column; height: 100%; }
.ask-body { flex: 1; overflow: auto; padding: 30px 20px; }
.ask-hero { text-align: center; padding-top: 6vh; }
.ask-logo { width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--border2); display: grid; place-items: center; margin: 0 auto 16px; background: radial-gradient(circle at 35% 30%, #2a2a33, #0c0c0e); }
.ask-hero small { letter-spacing: .14em; color: var(--muted); font-size: 11px; }
.ask-hero h1 { font-size: 30px; margin: 10px 0 6px; font-weight: 500; }
.sugg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 20px auto 0; }
.sugg button { border: 1px solid var(--border2); background: transparent; border-radius: 20px; padding: 7px 14px; cursor: pointer; color: #c9c9cf; }
.sugg button:hover { background: var(--panel); }
.ask-thread { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ask-msg { padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; line-height: 1.6; }
.ask-msg.user { background: var(--panel2); align-self: flex-end; max-width: 80%; }
.ask-msg.assistant { background: transparent; border: 1px solid var(--border); }
.ask-input { max-width: 760px; width: 100%; margin: 0 auto 8px; padding: 0 20px; }
.ask-input .composer-box { border-radius: 16px; padding: 10px 10px 10px 16px; }

/* automations / integrations */
.seq-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.seq-step:first-of-type { border-top: 0; }
.seq-num { width: 26px; height: 26px; border-radius: 50%; background: var(--panel3); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.seq-msg { display: flex; gap: 6px; margin-bottom: 6px; }
.seq-msg textarea { min-height: 38px; }
.int-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); } .status-dot.on { background: var(--green); }
@media (max-width: 1200px) { .conv { grid-template-columns: 270px minmax(0, 1fr); } .conv-side { display: none; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .setter { grid-template-columns: 1fr; } .setter-test { min-height: 600px; } }
@media (max-width: 800px) { .sidebar { display: none; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .conv { grid-template-columns: 1fr; } }

/* rozmowy, w których lead napisał ostatni i czeka na odpowiedź */
.ci.waiting { background: rgba(245, 166, 35, .07); box-shadow: inset 3px 0 0 #f5a623, 0 0 14px rgba(245, 166, 35, .18); animation: waitGlow 2.4s ease-in-out infinite; }
.ci.waiting.active { background: rgba(245, 166, 35, .13); }
.ci.waiting .name { color: #ffd38a; }
.badge-wait { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; color: #1a1205; background: #f5a623; }
@keyframes waitGlow { 0%, 100% { box-shadow: inset 3px 0 0 #f5a623, 0 0 8px rgba(245, 166, 35, .10); } 50% { box-shadow: inset 3px 0 0 #f5a623, 0 0 18px rgba(245, 166, 35, .30); } }
@media (prefers-reduced-motion: reduce) { .ci.waiting { animation: none; } }

/* wiadomości usunięte na Instagramie */
.msg.deleted { opacity: .45; text-decoration: line-through; border: 1px dashed var(--line, #444); background: transparent !important; }
.del-tag { color: #ff7a7a; font-weight: 600; }

/* Przegląd: ostatni obserwujący */
.fol-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.fol-main { min-width: 0; } .fol-main > div { font-size: 11px; color: var(--muted); margin-top: 1px; }
.fol-main a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fol-st { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.sent-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #3ddc84; }
.sent-ok svg { stroke: #3ddc84; }
.log .fol-row div { border: 0 !important; padding: 0 !important; }

.more-foot { padding: 14px 8px 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; border-top: 1px solid rgba(255,255,255,.06); margin-top: 6px; }

.fu-text { margin-top: 4px; }
.fu-act { gap: 6px; margin-top: 8px; }
.fu-form { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fu-form textarea { font-size: 12.5px; }

.badge-seen { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 7px; border-radius: 6px; color: #9fd0ff; background: rgba(79,142,247,.12); border: 1px solid rgba(79,142,247,.3); }
.seen-tag { color: #9fd0ff !important; display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: -2px; }

.next-strip { display: flex; align-items: center; gap: 8px; padding: 8px 18px 0; flex-wrap: wrap; }
.chip.pink { color: var(--pink); border-color: rgba(232,121,249,.4); background: rgba(232,121,249,.1); }

.bx { margin-left: 4px; padding: 0 3px; border-radius: 4px; cursor: pointer; opacity: .55; font-weight: 700; }
.bx:hover { opacity: 1; background: rgba(0,0,0,.25); }

#imp-top .more-foot { border-bottom: 1px solid var(--border2); border-top: none; margin-bottom: 4px; }

.conv-filters { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 8px; }
.conv-filters label { display: flex; align-items: center; gap: 8px; }
.conv-filters label span { width: 38px; font-size: 12px; color: var(--muted); flex: none; }
.conv-filters select { flex: 1; min-width: 0; padding: 6px 8px; }

.bulk { margin: 0 10px 8px; padding: 8px; border: 1px solid rgba(79,142,247,.4); border-radius: 10px; background: rgba(79,142,247,.08); display: flex; flex-direction: column; gap: 6px; }
.ci .sel-cb { margin-right: 6px; width: 16px; height: 16px; flex: none; align-self: center; }

/* ===== 3.5.4: dopracowany wygląd i animacje ===== */
:root { --ease: cubic-bezier(.2,.8,.2,1); --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.28); }
body { letter-spacing: -.005em; }
#main.enter > .page { animation: pageIn .32s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card { box-shadow: var(--shadow); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)) , var(--panel); }
.card.kpi:hover, .card.hero:hover { border-color: var(--border2); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px rgba(0,0,0,.35); }
.btn { transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { border-color: #45454d; }
.btn:active { transform: scale(.96); }
.btn.primary { box-shadow: 0 4px 14px rgba(255,255,255,.08); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,142,247,.35); }
input, select, textarea { transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: #45454d; }
.nav a { transition: background .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); position: relative; }
.nav a:active { transform: scale(.98); }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--blue); animation: barIn .25s var(--ease) both; }
@keyframes barIn { from { transform: scaleY(0); } to { transform: none; } }
/* przełączniki: sprężyste przesunięcie i delikatna poświata */
.switch span { transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.switch span::before { transition: transform .3s cubic-bezier(.34,1.56,.64,1), width .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.switch input:active + span::before { width: 18px; }
.switch input:checked:active + span::before { transform: translateX(12px); }
.switch input:checked + span { box-shadow: 0 0 0 3px rgba(52,199,123,.15); }
.ai-toggle { transition: transform .12s var(--ease); } .ai-toggle:active { transform: scale(.94); }
.ai-toggle span { transition: background .25s var(--ease), color .25s var(--ease); }
/* rozmowy: płynne wejście i podświetlenie */
.ci { transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.ci:active { transform: scale(.995); }
.chip, .badge-step, .badge-wait, .badge-seen { transition: transform .15s var(--ease), filter .15s var(--ease); }
.toast { animation: toastIn .35s cubic-bezier(.34,1.56,.64,1) both; border-radius: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
table tbody tr { transition: background .12s var(--ease); }
table tbody tr:hover { background: rgba(255,255,255,.025); }
.tabs button { transition: background .2s var(--ease), color .2s var(--ease); }
/* wykresy: kursor i dymek z wartością */
.spark-wrap { position: relative; cursor: crosshair; }
.spark-wrap .spark { display: block; width: 100%; }
.spark-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.35); opacity: 0; pointer-events: none; transition: opacity .15s; }
.spark-wrap:hover .spark-cursor { opacity: 1; }
.chart-tip { position: fixed; z-index: 200; pointer-events: none; background: rgba(24,24,28,.96); border: 1px solid var(--border2); border-radius: 9px; padding: 6px 10px; font-size: 12px; display: flex; gap: 10px; align-items: baseline; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; backdrop-filter: blur(6px); }
.chart-tip.on { opacity: 1; transform: none; }
.chart-tip span { color: var(--muted); } .chart-tip b { font-size: 13px; }
/* etapy w Przeglądzie: nazwa nie nachodzi na pasek */
.stage-row { gap: 12px; }
.stage-row .stage-lbl { flex: 0 0 190px; min-width: 0; }
.stage-row .stage-lbl .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.deal-form { display: flex; flex-direction: column; gap: 7px; }
.deal-form input, .deal-form select { padding: 6px 8px; font-size: 12.5px; }

.pattern { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; }
.proposal { padding: 10px 12px; border: 1px solid var(--border2); border-radius: 10px; margin-bottom: 8px; }
.proposal.dismissed { opacity: .55; }
.proposal.applied { border-color: rgba(52,199,123,.4); }

/* sekcje po prawej w rozmowie: zwijane */
.side-sec.coll > h4 { cursor: pointer; user-select: none; }
.side-sec.coll > h4 > span:first-child::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.side-sec.coll.closed > h4 > span:first-child::after { transform: rotate(-45deg); }
.side-sec.coll.closed > :not(h4) { display: none !important; }
.side-sec.coll.closed > h4 { margin-bottom: 0; }
.side-sec.coll > h4:hover > span:first-child { color: #fff; }
input[type="date"], input[type="datetime-local"], input[type="time"] { color-scheme: dark; background: var(--panel2); border: 1px solid var(--border2); border-radius: 8px; padding: 7px 10px; color: var(--text); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } @media (max-width: 1250px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* usuwanie własnej wiadomości z panelu */
.msg { position: relative; }
.msg-del { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border2); background: var(--panel); color: var(--muted); display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.msg:hover .msg-del { display: flex; }
.msg-del:hover { color: #ff7a7a; border-color: #ff7a7a; }
.alert.ok { background: var(--green-soft); border-color: rgba(52,199,123,.35); color: #86efac; }

.msg-quote { font-size: 11.5px; color: var(--muted); max-width: 70%; padding: 4px 10px; border-left: 2px solid var(--border2); margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-start; }
.msg-quote.me { align-self: flex-end; border-left: 0; border-right: 2px solid var(--blue); text-align: right; }


/* ---------- 3.8.0: checkboxy, wybór daty/godziny, szybkie wyszukiwanie ---------- */
input[type="checkbox"]:not(.switch input) { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex-shrink: 0; border: 1.5px solid #4a4a52; border-radius: 5px; background: var(--panel2); display: inline-grid; place-content: center; cursor: pointer; vertical-align: -3px; transition: background .15s, border-color .15s, box-shadow .15s; }
input[type="checkbox"]:not(.switch input):hover { border-color: #6a6a74; }
input[type="checkbox"]:not(.switch input):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
input[type="checkbox"]:not(.switch input)::after { content: ""; width: 8px; height: 4.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(.4); opacity: 0; transition: .15s; }
input[type="checkbox"]:not(.switch input):checked { background: var(--blue); border-color: var(--blue); }
input[type="checkbox"]:not(.switch input):checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
label:has(> input[type="checkbox"]:not(.switch input)) { cursor: pointer; user-select: none; }

.dp-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 140px; background: var(--panel2); border: 1px solid var(--border2); border-radius: 8px; padding: 7px 11px; color: var(--text); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.dp-btn:hover { border-color: #4a4a52; background: var(--panel3); }
.dp-btn .ph { color: var(--dim); }
.dp-btn .ico { color: var(--muted); }
.dp-btn.grow { flex: 1; }
.dp-pop { position: fixed; z-index: 1000; background: #1b1b1f; border: 1px solid var(--border2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 12px; width: 296px; animation: dpIn .14s ease-out; }
@keyframes dpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dp-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dp-quick button, .dp-hours button, .dp-mins button { background: var(--panel2); border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-size: 12px; color: #d4d4da; cursor: pointer; }
.dp-quick button:hover, .dp-hours button:hover, .dp-mins button:hover { border-color: var(--border2); background: var(--panel3); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-head b { font-size: 13px; text-transform: capitalize; }
.dp-nav { background: none; border: 0; color: var(--muted); font-size: 18px; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.dp-nav:hover { background: var(--panel3); color: #fff; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid i { font-style: normal; font-size: 10.5px; color: var(--dim); padding: 4px 0; }
.dp-grid button { background: none; border: 0; height: 32px; border-radius: 8px; color: #d4d4da; cursor: pointer; font-size: 12.5px; }
.dp-grid button:hover:not(:disabled) { background: var(--panel3); }
.dp-grid button.today { color: var(--blue); font-weight: 700; }
.dp-grid button.sel, .dp-hours button.sel, .dp-mins button.sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.dp-grid button:disabled { color: #3c3c44; cursor: default; }
.dp-time { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 8px; }
.dp-pop > .dp-time:first-child { border: 0; margin: 0; padding: 0; }
.dp-tl { font-size: 11px; color: var(--dim); margin: 4px 0; }
.dp-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.dp-mins { display: flex; gap: 4px; align-items: center; color: var(--muted); }
.dp-mins input { width: 46px !important; padding: 4px 6px !important; font-size: 12px; text-align: center; }
.dp-mins .dp-hin { margin-left: auto; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 12px; }

.nav-search { color: var(--muted) !important; border: 1px solid var(--border); margin-bottom: 8px !important; }
.nav-search kbd, .kp-in kbd { margin-left: auto; font-size: 10px; line-height: 1; font-family: inherit; color: var(--dim); border: 1px solid var(--border2); border-radius: 5px; padding: 3px 5px; }
.kp-wrap { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: dpIn .12s ease-out; }
.kp { width: min(620px, 92vw); background: #1b1b1f; border: 1px solid var(--border2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.kp-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.kp-in input { flex: 1; background: none !important; border: 0 !important; padding: 0 !important; font-size: 15px; color: var(--text); outline: none; }
.kp-list { max-height: 50vh; overflow: auto; padding: 6px; }
.kp-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.kp-item b { color: var(--text); font-weight: 600; }
.kp-item span { font-size: 12px; color: var(--dim); margin-left: auto; }
.kp-item.sel { background: var(--panel3); }
.kp-empty { padding: 18px; color: var(--dim); text-align: center; }

.ab-v { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--panel3); font-weight: 700; white-space: nowrap; font-size: 12.5px; }
.ab-v.wide { padding: 0 10px; font-weight: 600; }
.ab-win .ab-v { background: var(--green); color: #052e16; }
.ab-win td { background: rgba(52,199,123,.05); }
.ab-bar { flex: 1; height: 7px; border-radius: 6px; background: var(--panel3); overflow: hidden; min-width: 60px; }
.ab-bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.ab-win .ab-bar i { background: var(--green); }

.au-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; position: sticky; top: 0; z-index: 5; }
.au-tabs button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.au-tabs button:hover { background: var(--panel2); color: var(--text); }
.au-tabs button.active { background: var(--panel3); color: #fff; }
.au-tabs button i { width: 7px; height: 7px; border-radius: 50%; background: #4a4a52; }
.au-tabs button i.on { background: var(--green); }
.seq-card .seq-step { padding: 10px 0; border-bottom: 1px solid var(--border); }
.seq-card .seq-step:last-of-type { border-bottom: 0; }

.fu-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 10px; }
.fu-legend label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c9c9cf; cursor: pointer; }
.fu-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fu-legend b { color: var(--text); }
.fu-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 150px; align-items: end; }
.fu-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; }
.fu-stack { width: 100%; height: calc(100% - 16px); display: flex; flex-direction: column-reverse; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.025); }
.fu-stack i { display: block; width: 100%; transition: height .3s; }
.fu-col span { font-size: 10px; color: var(--dim); height: 16px; line-height: 16px; }
.fu-col.now .fu-stack { box-shadow: inset 0 0 0 1px rgba(79,142,247,.5); }
.fu-col:hover .fu-stack { background: rgba(255,255,255,.06); }

.msg-react { position: absolute; right: -8px; bottom: -10px; font-size: 12px; background: var(--panel2); border: 1px solid var(--border2); border-radius: 10px; padding: 0 4px; line-height: 18px; }

/* 3.9.2: marka Acq AI – logo w kółku + napis obok */
.brand { padding: 6px 8px 18px; gap: 11px; }
.brand-logo { width: 38px !important; height: 38px !important; border: 1px solid var(--border2); background: #0e0e11; flex-shrink: 0; }
.brand-txt b { font-size: 13.5px; letter-spacing: .12em; font-weight: 700; color: #fff; }
.brand-txt small { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); margin-top: 1px; }

/* ---------- 3.9.2: Przegląd w stylu pulpitu ---------- */
.ov-page { max-width: none; }
.ov-wrap { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 22px; align-items: start; }
.ov-nav { position: sticky; top: 0; padding-top: 4px; }
.ov-nav h2 { margin: 0 0 4px; font-size: 16px; }
.ov-nav .ov-sub { margin-bottom: 14px; }
.ov-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: #c9c9cf; cursor: pointer; margin-bottom: 2px; border: 1px solid transparent; }
.ov-nav a:hover { background: var(--panel); }
.ov-nav a.active { background: var(--panel2); border-color: var(--border2); color: #fff; }
.ov-gap { margin-bottom: 14px; }
.ov-card { border-radius: 14px; }
.ov-card h3, .ov-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.ov-head { display: flex; justify-content: space-between; align-items: center; }
.ov-sub { color: var(--muted); font-size: 12px; margin: 3px 0 10px; }
.ov-badge { font-size: 11px; background: var(--panel3); border-radius: 6px; padding: 1px 6px; margin-left: 4px; color: var(--muted); }
.ov-empty { color: var(--dim); font-size: 12.5px; padding: 14px 0; }
.ov-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 12.5px; }
.ov-l { color: var(--muted); font-size: 12px; }
.ov-v { font-size: 24px; font-weight: 500; letter-spacing: -.01em; margin: 2px 0; }
.ov-v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.ov-big { font-size: 34px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0; }
.ov-hero-row { grid-template-columns: 1.25fr 1fr 1fr; }
.ov-hero { position: relative; overflow: hidden; border-radius: 14px; background: radial-gradient(120% 140% at 100% 0%, rgba(52,199,123,.22), transparent 55%), linear-gradient(180deg, #13201a, #121214); border-color: rgba(52,199,123,.25); }
.ov-hero-sm .ov-orb { width: 90px; height: 90px; right: -10px; top: -10px; }
.ov-orb { position: absolute; right: 14px; top: 10px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(134,239,172,.55), rgba(34,197,94,.15) 45%, transparent 70%); filter: blur(2px); pointer-events: none; }
.ov-kpi .ov-kpi-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.ov-kpi-chart { width: 46%; }
.ov-two { grid-template-columns: 1.4fr 1fr; }
.ov-two2 { grid-template-columns: 1fr 1.25fr; }
.ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.ov-qbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--panel3); gap: 2px; margin-top: 8px; }
.ov-qbar i { display: block; height: 100%; position: relative; }
.ov-qbar em { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; color: #0b0b0d; font-weight: 600; }
.ov-stagebars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; align-items: end; height: 210px; padding-top: 10px; }
.ov-sb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.ov-sb b { font-size: 12px; }
.ov-sb-bar { width: 58%; max-width: 54px; border-radius: 6px 6px 3px 3px; }
.ov-sb span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; min-height: 26px; }
.ov-src { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; }
.ov-donut { position: relative; width: 160px; height: 160px; display: grid; place-items: center; }
.ov-donut svg { position: absolute; inset: 5px; }
.ov-donut-c { text-align: center; display: flex; flex-direction: column; font-size: 10.5px; color: var(--muted); }
.ov-donut-c b { font-size: 22px; color: var(--text); font-weight: 500; }
.ov-tbl { width: 100%; font-size: 12.5px; }
.ov-tbl th { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.ov-srcbar { height: 3px; border-radius: 2px; margin-top: 5px; max-width: 160px; }
.ov-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ov-step { text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.ov-step b { font-size: 24px; font-weight: 500; color: var(--text); }
.ov-step.on { background: var(--panel2); border-color: var(--border2); }
.ov-step-n { font-size: 10px; border: 1px solid var(--border2); border-radius: 4px; padding: 0 4px; width: fit-content; }
.ov-funnel { margin: 6px -4px 0; }
.ov-inner { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.ov-cyc { border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent); border-radius: 12px; padding: 14px; font-size: 12.5px; }
.ov-cyc .ov-v { color: var(--c); font-size: 30px; }
.ov-rev { padding: 8px 0; font-size: 12.5px; }
.ov-rev-bar { height: 6px; background: var(--panel3); border-radius: 4px; overflow: hidden; margin: 6px 0 3px; }
.ov-rev-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 4px; }
.ov-fus { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ov-fu { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--panel2); font-size: 12px; }
.ov-fu.on { border-color: rgba(52,199,123,.45); background: linear-gradient(180deg, rgba(52,199,123,.08), var(--panel2)); }
.ov-fu-bar { height: 4px; background: var(--panel3); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.ov-fu-bar i { display: block; height: 100%; background: #34c77b; }
.ppl { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px 2px; margin: 10px 0 12px; justify-items: center; }
.pp { display: block; line-height: 0; transition: transform .15s; }
.pp:hover { transform: scale(1.25); }
@media (max-width: 1300px) { .ov-wrap { grid-template-columns: 1fr; } .ov-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ov-nav h2, .ov-nav .ov-sub { display: none; } .ov-hero-row, .ov-two, .ov-two2 { grid-template-columns: 1fr; } .ov-stagebars { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); height: auto !important; row-gap: 20px; } .ov-stagebars .ov-sb { height: 200px; } .ov-steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 4.0.1: Przegląd – dopracowany wygląd ---------- */
.ov-page { padding-top: 22px; }
.ov-wrap { max-width: 1480px; margin: 0 auto; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
.ov-main { min-width: 0; }
.ov-main .card { background: #141416; border: 1px solid #222227; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.ov-main .card:hover { border-color: #2a2a30; }
.ov-l { font-size: 12.5px; color: #8f8f99; font-weight: 500; }
.ov-v { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.ov-big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.ov-card h3, .ov-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.ov-sub { font-size: 12px; color: #7d7d87; }
.ov-ranges { background: #141416; border: 1px solid #222227; border-radius: 11px; padding: 3px; }
.ov-ranges button { border-radius: 8px; font-size: 12.5px; }
.ov-hero { background: radial-gradient(110% 130% at 85% 20%, rgba(52,199,123,.20), transparent 55%), linear-gradient(160deg, #0f1f17 0%, #121214 70%) !important; border-color: rgba(52,199,123,.28) !important; min-height: 190px; }
.ov-coins { position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotateX(18deg); width: 170px; height: 170px; filter: drop-shadow(0 8px 24px rgba(34,197,94,.25)); opacity: .95; pointer-events: none; }
.ov-hero-sm .ov-coins { width: 96px; height: 96px; right: 8px; }
.ov-hero .ov-big, .ov-hero .ov-l, .ov-hero .row { position: relative; z-index: 1; }
.ov-kpi .ov-kpi-row { align-items: center; }
.ov-kpi .ov-v { font-size: 26px; }
.ov-kpi-chart { width: 52%; }
.ov-chart .spark { display: block; width: 100%; }
.delta { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; display: inline-block; }
.delta.up { color: #4ade80; background: rgba(74,222,128,.10); }
.delta.down { color: #f87171; background: rgba(248,113,113,.10); }
.ov-stats > div { padding-right: 8px; }
.ov-qbar { height: 7px; border-radius: 5px; }
.ov-stagebars { gap: 18px; height: 230px; }
.ov-sb-bar { width: 64%; max-width: 64px; border-radius: 9px 9px 4px 4px; box-shadow: 0 -6px 18px -8px currentColor; }
.ov-sb b { font-size: 13px; font-weight: 600; }
.ov-sb span { font-size: 11.5px; }
.ov-tbl td, .ov-tbl th { padding: 9px 6px; border-bottom: 1px solid #1f1f24; }
.ov-tbl tr:last-child td { border-bottom: 0; }
.ov-nav a { font-size: 13px; padding: 9px 12px; }
.ov-nav a.active { background: #1a1a1d; border-color: #2a2a30; }
@media (min-width: 1700px) { .ov-wrap { max-width: 1560px; } }

/* 4.0.8: animowany znak „$” w karcie sprzedaży */
.ov-dollar { transform: translateY(-50%) !important; width: 168px !important; height: 168px !important; filter: drop-shadow(0 0 18px rgba(34,197,94,.35)) !important; }
.ov-hero-sm .ov-dollar { width: 100px !important; height: 100px !important; }
.ov-dollar .d-ring1, .ov-dollar .d-ring2, .ov-dollar .d-ticks, .ov-dollar .d-orbit, .ov-dollar .d-pulse, .ov-dollar .d-halo, .ov-dollar .d-sign { transform-origin: 80px 80px; transform-box: view-box; }
.ov-dollar .d-ring1 { animation: dspin 14s linear infinite; }
.ov-dollar .d-ring2 { animation: dspin 22s linear infinite reverse; }
.ov-dollar .d-ticks { animation: dspin 60s linear infinite; }
.ov-dollar .d-orbit { animation: dspin 9s linear infinite; }
.ov-dollar .d-halo { animation: dhalo 3.6s ease-in-out infinite; }
.ov-dollar .d-pulse { animation: dpulse 2.8s ease-out infinite; }
.ov-dollar .d-sign { animation: dsign 3.6s ease-in-out infinite; }
@keyframes dspin { to { transform: rotate(360deg); } }
@keyframes dhalo { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes dpulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes dsign { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }


/* 4.1.0: „$” powoli pływa */
.ov-dollar { animation: dfloat 16s ease-in-out infinite; }
@keyframes dfloat {
  0%   { translate: 0 0; rotate: 0deg; }
  20%  { translate: -7px -5px; rotate: -2deg; }
  40%  { translate: 4px -9px; rotate: 1.5deg; }
  60%  { translate: 8px 3px; rotate: 2deg; }
  80%  { translate: -3px 7px; rotate: -1deg; }
  100% { translate: 0 0; rotate: 0deg; }
}


/* 4.1.1: „$” – wyraźniejsze, ale spokojne pływanie */
.ov-dollar { animation: dfloat2 14s ease-in-out infinite !important; }
@keyframes dfloat2 {
  0%   { translate: 0 0; rotate: 0deg; }
  25%  { translate: -10px -7px; rotate: -3deg; }
  50%  { translate: 6px -11px; rotate: 2deg; }
  75%  { translate: 10px 6px; rotate: 3deg; }
  100% { translate: 0 0; rotate: 0deg; }
}

/* 4.1.1: „Kiedy leady się umawiają” */
.wb-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 5px; height: 190px; align-items: end; margin-top: 12px; }
.wb-h { height: 100%; display: flex; align-items: flex-end; cursor: default; }
.wb-h i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #3a3a40; }
.wb-h.off i { background: linear-gradient(180deg, #ffffff, #9aa4b8); }
.wb-h.top i { box-shadow: 0 0 22px rgba(255,255,255,.35); }
.wb-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 6px; }
.wb-day { display: grid; grid-template-columns: 34px 1fr 44px; align-items: center; gap: 10px; margin: 11px 0; font-size: 12.5px; color: var(--muted); }
.wb-day b { text-align: right; color: var(--text); font-weight: 600; }
.wb-bar { height: 16px; background: #1d1d21; border-radius: 6px; overflow: hidden; }
.wb-bar i { display: block; height: 100%; background: #3a3a40; border-radius: 6px; }
.wb-day.top { color: #fff; font-weight: 600; }
.wb-day.top .wb-bar i { background: linear-gradient(90deg, #9aa4b8, #ffffff); box-shadow: 0 0 18px rgba(255,255,255,.25); }

/* 4.1.3: zaplanowane wiadomości w czacie */
.pl-wrap { display: flex; flex-direction: column; align-items: flex-end; margin-top: 6px; }
.msg.pl-ghost { background: transparent !important; border: 1.5px dashed rgba(122,167,247,.55); color: #b9c7e6; opacity: .9; }
.msg.pl-ghost.pl-ai { font-style: italic; color: #8f9bb3; border-color: rgba(143,155,179,.45); }
.pl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; color: #8f9bb3 !important; }
.pl-meta a { cursor: pointer; color: #7aa7f7; text-decoration: none; }
.pl-meta a:hover { text-decoration: underline; }
.pl-meta a.pl-del { color: #f87171; }
.pl-form { width: min(520px, 90%); margin-top: 6px; }
.pl-form textarea { font-size: 12.5px; }

/* „⋯” przy wiadomości: reakcje i odpowiedź z cytatem */
.msg { position: relative; }
.msg-more { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border2); background: var(--panel); color: var(--muted); display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; z-index: 3; }
.msg.lead .msg-more { right: -32px; }
.msg.me .msg-more { left: -32px; }
.msg:hover .msg-more { display: flex; }
.msg-more:hover { color: var(--text); border-color: var(--blue); }
.msg-menu { position: absolute; top: calc(100% + 4px); z-index: 20; display: flex; gap: 2px; align-items: center; background: var(--panel); border: 1px solid var(--border2); border-radius: 22px; padding: 4px 6px; box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; }
.msg.lead .msg-menu { left: 0; }
.msg.me .msg-menu { right: 0; }
.msg-menu.hidden { display: none; }
.msg-menu button { background: none; border: 0; cursor: pointer; font-size: 18px; padding: 2px 4px; border-radius: 8px; color: var(--text); }
.msg-menu button:hover, .msg-menu button.on { background: var(--panel2); }
.msg-menu .mm-txt { font-size: 12px; color: var(--muted); padding: 4px 8px; display: inline-flex; gap: 4px; align-items: center; }
.msg-menu .mm-txt:hover { color: var(--text); }
.reply-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 6px 10px; margin-bottom: 6px; border-left: 2px solid var(--blue); background: var(--panel2); border-radius: 6px; }
.reply-bar button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
/* 4.1.19: „⋯” nie znika, gdy jedziesz do niego kursorem – niewidzialny „mostek” między dymkiem a przyciskiem */
.msg-more::before { content: ''; position: absolute; top: -10px; bottom: -10px; left: -14px; right: -14px; }
.msg.lead .msg-more { right: -30px; }
.msg.me .msg-more { left: -30px; }
.msg:has(.msg-menu:not(.hidden)) .msg-more { display: flex; color: var(--text); border-color: var(--blue); }

/* „dlaczego tak?” pod wiadomością bota */
.why-box { max-width: 70%; margin: 2px 0 0; font-size: 11.5px; }
.why-box.me { align-self: flex-end; text-align: left; }
.why-box summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-flex; gap: 4px; align-items: center; opacity: .75; }
.why-box summary::-webkit-details-marker { display: none; }
.why-box summary:hover { opacity: 1; color: var(--text); }
.why-in { margin-top: 6px; background: var(--panel2); border: 1px solid var(--border2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 5px; }
.why-in > div { line-height: 1.4; color: var(--text); }
.why-in span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 1px; }
.why-toggle.on { color: var(--blue); border-color: var(--blue); }

/* Kolejka: grupy teraz / dziś / jutro / później */
.tq-group td { background: var(--panel2); cursor: pointer; padding-top: 9px !important; padding-bottom: 9px !important; user-select: none; }
.tq-group:hover td { background: color-mix(in srgb, var(--panel2) 80%, var(--blue) 20%); }
.tq-caret { display: inline-block; width: 12px; color: var(--muted); }
.tq-count { display: inline-block; min-width: 22px; text-align: center; padding: 0 7px; margin-left: 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border2); font-size: 11.5px; font-weight: 600; }
.tq-ab { color: var(--blue); font-weight: 600; }

/* Testy bota */
.bt-card.bt-fail { border-color: rgba(255,90,90,.35); }
.bt-card.bt-ok { border-color: rgba(61,220,132,.25); }
.bt-body { margin-top: 12px; border-top: 1px solid var(--border2); padding-top: 12px; }
.bt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .bt-cols { grid-template-columns: 1fr; } }
.bt-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.bt-conv { display: flex; flex-direction: column; gap: 5px; background: var(--panel2); border-radius: 12px; padding: 10px; max-height: 360px; overflow: auto; }
.bt-msg { max-width: 85%; padding: 6px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; }
.bt-msg.lead { align-self: flex-start; background: var(--panel); border: 1px solid var(--border2); }
.bt-msg.me { align-self: flex-end; background: var(--blue); color: #fff; }
.bt-checks { display: grid; gap: 6px; }
.bt-checks > div { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: var(--panel2); }
.bt-checks > div.bad { background: rgba(255,90,90,.08); }
/* Mapa rozmów */
.fm-svg { width: 100%; height: auto; display: block; }
.fm-flow { fill: rgba(91,140,255,.10); }
.fm-bar { fill: rgba(91,140,255,.28); transition: fill .15s; }
.fm-ans { fill: url(#fmg); }
.fm-bar.win { fill: rgba(61,220,132,.3); }
.fm-ans.win { fill: url(#fmw); }
.fm-hit { fill: transparent; cursor: pointer; }
.fm-col:hover .fm-bar, .fm-col.sel .fm-bar { fill: rgba(91,140,255,.45); }
.fm-col.sel .fm-lbl { fill: var(--text); font-weight: 700; }
.fm-num { fill: var(--text); font-size: 15px; font-weight: 700; text-anchor: middle; }
.fm-lbl { fill: var(--muted); font-size: 12.5px; text-anchor: middle; }
.fm-conv { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.fm-dead { fill: rgba(255,90,90,.22); stroke: #ff5a5a; stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.fm-dead.sel, .fm-deadg:hover .fm-dead { fill: rgba(255,90,90,.45); }
.fm-deadn { fill: #ffb3b3; font-size: 12px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.fm-deadg { cursor: pointer; }
.fm-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.fm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-bar { background: rgba(91,140,255,.35); } .lg-ans { background: #4a73ec; } .lg-dead { background: rgba(255,90,90,.6); border-radius: 50% !important; }
.fm-tx { font-size: 12.5px; margin: 4px 0; display: flex; gap: 8px; align-items: center; }

/* strony osadzone jako pod-zakładki (Mapa rozmów, Testy A/B w Przeglądzie; Testy bota w Setter AI) */
.ov-embed > .page { padding: 0; max-width: none; margin: 0; }
.ov-embed > .page > h1 { display: none; }
.st-subtabs { margin-right: 6px; }
.st-subtabs button { display: inline-flex; gap: 5px; align-items: center; }

/* ---------- telefon (też wersja na stronę) ---------- */
.m-menu, .m-only { display: none; }
@media (max-width: 800px) {
  .m-menu { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: inherit; font-size: 18px; flex: none; }
  .m-only { display: inline-flex; }
  .layout { height: 100dvh; }
  .sidebar { display: flex !important; position: fixed; inset: 0 auto 0 0; z-index: 60; width: 260px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .layout.menu-open .sidebar { transform: none; }
  .layout.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
  .topbar { padding: 0 10px; gap: 8px; }
  .top-actions { overflow-x: auto; max-width: 55vw; }
  .page { padding: 12px !important; }
  .page.full { padding: 0 !important; }
  .conv { grid-template-columns: 1fr !important; }
  .conv.has-lead .conv-list { display: none; }
  .conv:not(.has-lead) .conv-chat { display: none; }
  .conv .conv-side { display: none; }
  .conv.has-lead.show-side .conv-chat { display: none; }
  .conv.has-lead.show-side .conv-side { display: block; border-left: 0; }
  .chat-head { flex-wrap: wrap; gap: 6px; }
  .chat-head .row { flex-wrap: wrap; }
  .msg { max-width: 88% !important; }
  .g5 { grid-template-columns: 1fr 1fr !important; }
  table { display: block; overflow-x: auto; }
  .ov-wrap { grid-template-columns: 1fr !important; gap: 12px; }
  .ov-nav { position: static !important; display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .ov-nav h2, .ov-nav .ov-sub { display: none; }
  .ov-nav a, .ov-nav button { white-space: nowrap; flex: none; }
  .ov-hero-row, .ov-two, .ov-two2, .ov-steps, .ov-stats { grid-template-columns: 1fr !important; }
  /* nic nie może poszerzać strony (inaczej na iPhonie cała strona „pływa” w bok) */
  html, body, .layout, .content, #main { overflow-x: hidden; max-width: 100vw; }
  .page { max-width: 100vw; overflow-x: hidden; }
  .tabs { display: flex; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { white-space: nowrap; flex: none; }
  .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  /* górny pasek: tylko nazwa strony + same ikony akcji */
  .crumbs { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
  .crumbs > span:nth-child(1), .crumbs > span:nth-child(2) { display: none; }
  .top-actions { max-width: none; overflow: visible; gap: 4px; flex: none; }
  .top-actions .btn { font-size: 0; padding: 8px; gap: 0; }
  .top-actions .btn svg { margin: 0; }
}

/* wersja na telefon: integracje (tokeny) są tylko na głównym komputerze */
.web-mode .nav a[data-page="integrations"] { display: none; }
.web-mode #login-btn { display: none !important; }

.ov-avg { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }

/* Kampanie */
.camp-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.camp-k { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.camp-k .l { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-k .v { font-size: 22px; font-weight: 650; margin-top: 2px; letter-spacing: -.01em; }
.camp-posts { display: grid; gap: 8px; margin-top: 8px; max-height: 330px; overflow: auto; padding-right: 4px; }
.camp-post { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--panel2); }
.camp-post:hover { border-color: #3a3a44; }
.camp-post.sel { border-color: var(--blue, #4f8ef7); box-shadow: 0 0 0 1px var(--blue, #4f8ef7) inset; }
.camp-post img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
@media (max-width: 1100px) { .camp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .camp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* spójność: kafelki etapów, wykres kosztów */
.stage-kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.stage-kpis > .card.kpi { flex: 1 1 178px; min-width: 0; }
.stage-kpis .chip { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-kpis .card.kpi { padding: 14px 16px; }
.u-title { font-size: 12px; color: var(--muted); margin: 18px 0 8px; }
.u-days { display: flex; align-items: flex-end; gap: 6px; height: 150px; overflow-x: auto; padding-bottom: 2px; }
.u-day { flex: 1 0 26px; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.u-day b { font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.u-day i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #a78bfa, #a78bfa33); min-height: 2px; }
.u-day span { font-size: 10px; color: var(--muted); white-space: nowrap; }


/* ===== 4.3.24: ruch – spokojny, krótki, tylko tam, gdzie pomaga ===== */
:root { --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.16,1,.3,1); }
/* Wejście na zakładkę: elementy pojawiają się kaskadą (staggering), z miękkim hamowaniem (slow in, slow out).
   Tylko przy zmianie zakładki – odświeżenie danych niczego nie animuje (frequency of use). */
#main.enter > .page { animation: pageFade .22s var(--ease) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#main.enter > .page:not(.full) > * { animation: riseIn .44s var(--out) both; }
#main.enter > .page:not(.full) > *:nth-child(2) { animation-delay: 40ms; }
#main.enter > .page:not(.full) > *:nth-child(3) { animation-delay: 80ms; }
#main.enter > .page:not(.full) > *:nth-child(4) { animation-delay: 120ms; }
#main.enter > .page:not(.full) > *:nth-child(5) { animation-delay: 160ms; }
#main.enter > .page:not(.full) > *:nth-child(n+6) { animation-delay: 200ms; }
#main.enter .grid > * { animation: riseIn .46s var(--out) both; }
#main.enter .grid > *:nth-child(1) { animation-delay: 30ms; } #main.enter .grid > *:nth-child(2) { animation-delay: 70ms; }
#main.enter .grid > *:nth-child(3) { animation-delay: 110ms; } #main.enter .grid > *:nth-child(4) { animation-delay: 150ms; }
#main.enter .grid > *:nth-child(5) { animation-delay: 190ms; } #main.enter .grid > *:nth-child(6) { animation-delay: 230ms; }
#main.enter .grid > *:nth-child(n+7) { animation-delay: 270ms; }
/* listy i tabele: pierwsze wiersze po kolei, reszta od razu */
#main.enter .ci:nth-child(-n+12) { animation: slideIn .34s var(--out) both; }
#main.enter .ci:nth-child(2) { animation-delay: 25ms; } #main.enter .ci:nth-child(3) { animation-delay: 50ms; } #main.enter .ci:nth-child(4) { animation-delay: 75ms; }
#main.enter .ci:nth-child(5) { animation-delay: 100ms; } #main.enter .ci:nth-child(6) { animation-delay: 125ms; } #main.enter .ci:nth-child(7) { animation-delay: 150ms; }
#main.enter .ci:nth-child(8) { animation-delay: 175ms; } #main.enter .ci:nth-child(n+9) { animation-delay: 200ms; }
#main.enter table tbody tr:nth-child(-n+12) { animation: fadeIn .34s var(--ease) both; }
#main.enter table tbody tr:nth-child(2) { animation-delay: 20ms; } #main.enter table tbody tr:nth-child(3) { animation-delay: 40ms; } #main.enter table tbody tr:nth-child(4) { animation-delay: 60ms; }
#main.enter table tbody tr:nth-child(5) { animation-delay: 80ms; } #main.enter table tbody tr:nth-child(6) { animation-delay: 100ms; } #main.enter table tbody tr:nth-child(n+7) { animation-delay: 120ms; }
#main.enter .alert { animation: riseIn .4s var(--out) both; }
/* wykresy: słupki rosną od dołu, paski od lewej (exaggeration + follow-through – lekkie przestrzelenie na końcu) */
@keyframes growY { from { transform: scaleY(0); } 70% { transform: scaleY(1.04); } to { transform: none; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: none; } }
#main.enter .ov-sb-bar, #main.enter .u-day i, #main.enter .fu-stack { transform-origin: 50% 100%; animation: growY .6s var(--out) both; }
#main.enter .ov-sb:nth-child(2) .ov-sb-bar, #main.enter .u-day:nth-child(2) i { animation-delay: 40ms; } #main.enter .ov-sb:nth-child(3) .ov-sb-bar, #main.enter .u-day:nth-child(3) i { animation-delay: 80ms; }
#main.enter .ov-sb:nth-child(4) .ov-sb-bar, #main.enter .u-day:nth-child(4) i { animation-delay: 120ms; } #main.enter .ov-sb:nth-child(5) .ov-sb-bar, #main.enter .u-day:nth-child(5) i { animation-delay: 160ms; }
#main.enter .ov-sb:nth-child(6) .ov-sb-bar, #main.enter .u-day:nth-child(6) i { animation-delay: 200ms; } #main.enter .ov-sb:nth-child(n+7) .ov-sb-bar, #main.enter .u-day:nth-child(n+7) i { animation-delay: 240ms; }
#main.enter .stage-row .grow > div { transform-origin: 0 50%; animation: growX .7s var(--out) both; animation-delay: 120ms; }
/* okienka wyrastają z miejsca, w którym je otwierasz (origin awareness) */
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(-4px); } to { opacity: 1; transform: none; } }
.dp-pop { transform-origin: 20px 0; animation: popIn .2s var(--out) both; }
.msg-menu:not(.hidden) { animation: popIn .16s var(--out) both; }
.msg.lead .msg-menu { transform-origin: 0 0; } .msg.me .msg-menu { transform-origin: 100% 0; }
.kp-wrap { animation: fadeIn .16s var(--ease) both; }
.kp { transform-origin: 50% 0; animation: popIn .24s var(--out) both; }
.chart-tip { transform-origin: 50% 100%; }
/* dotyk: przycisk ugina się pod kliknięciem i wraca sprężyście (squash and stretch, anticipation) */
.btn { transition: background .15s var(--ease), border-color .15s var(--ease), transform .28s var(--spring), box-shadow .15s var(--ease); }
.btn:active { transform: scale(.955); transition-duration: .06s; }
.tabs button { transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--spring); }
.tabs button:active { transform: scale(.95); transition-duration: .06s; }
.nav a { transition: background .15s var(--ease), color .15s var(--ease), transform .25s var(--spring); }
.chip { transition: transform .2s var(--spring), filter .15s var(--ease); }
input[type="checkbox"]:not(.switch input):checked::after { animation: tickIn .22s var(--spring) both; }
@keyframes tickIn { from { opacity: 0; transform: rotate(-45deg) scale(.3); } to { opacity: 1; transform: rotate(-45deg) scale(1); } }
/* koniec akcji: krótki „oddech” przycisku po udanym zapisie / wysłaniu (peak-end rule) */
@keyframes doneRing { from { box-shadow: 0 0 0 0 rgba(52,199,123,.55); } to { box-shadow: 0 0 0 12px rgba(52,199,123,0); } }
.btn.done { animation: doneRing .7s var(--out) both; }
/* powiadomienie: wjeżdża sprężyście, znika miękko (zamiast urywać się) */
.toast.out { animation: toastOut .22s var(--ease) both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
/* karty z liczbami reagują na kursor odrobinę wyraźniej */
.card.ov-kpi { transition: border-color .2s var(--ease), transform .3s var(--out), box-shadow .2s var(--ease); }
.card.ov-kpi:hover { transform: translateY(-2px); border-color: var(--border2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* telefon: powrót z ustawień rozmowy + płynniejsze menu boczne */
.m-side-back { display: none; }
@media (max-width: 800px) {
  .conv { position: relative; }
  .conv.has-lead.show-side .m-side-back { display: inline-flex; position: absolute; top: 8px; left: 10px; z-index: 6; background: var(--panel2); }
  .conv.has-lead.show-side .conv-side { padding-top: 52px; }
  .sidebar { transition: transform .32s cubic-bezier(.16,1,.3,1); will-change: transform; }
  .layout.menu-open::after { animation: fadeIn .2s ease both; }
}

/* Ask Setter AI: historia rozmów (wspólna dla wszystkich urządzeń) */
.ask-wrap { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100%; min-height: 0; }
.ask-wrap > .ask { min-width: 0; min-height: 0; }
.ask-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-right: 1px solid var(--border); background: rgba(255,255,255,.012); min-height: 0; }
.ask-list-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 8px 4px 0; }
.ask-chats { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.ask-chat { position: relative; padding: 9px 30px 9px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s var(--ease); }
.ask-chat:hover { background: var(--panel); }
.ask-chat.active { background: var(--panel2); border-color: var(--border2); }
.ask-chat-t { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-chat-m { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ask-chat-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.ask-chat:hover .ask-chat-x, .ask-chat.active .ask-chat-x { opacity: 1; }
.ask-chat-x:hover { background: var(--red-soft); color: #ff8f8f; }
.ask-top { padding: 8px 12px 0; gap: 6px; justify-content: space-between; }
.ask-wait { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; }
#main.enter .ask-chat:nth-child(-n+12) { animation: slideIn .34s var(--out) both; }
@media (max-width: 800px) {
  .ask-wrap { grid-template-columns: 1fr; }
  .ask-list { display: none; border-right: 0; }
  .ask-wrap.show-list .ask-list { display: flex; }
  .ask-wrap.show-list > .ask { display: none; }
  .ask-chat-x { opacity: 1; }
  .ask-top { display: flex !important; }
}

/* Setter AI / Ustawienia: strony w podzakładkach – tytuł jest po lewej */
.hub-embed h1 { display: none; }
.hub-embed .st-subtabs { display: none; }
.hub-embed > .page > .sub:first-of-type { margin-top: 0; }

/* lista rozmów: długi „następny krok” skracany wielokropkiem, nie wychodzi poza kartę */
.ci .body { min-width: 0; }
.ci .meta { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.ci .meta .badge-step { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.ci .meta .badge-step svg { vertical-align: -2px; margin-right: 4px; }

/* kafelki clean: kolorowa linia u dołu, etykieta drobnymi wersalikami (jak w nagłówkach tabel) */
.card.ov-kpi, .card.kpi { position: relative; overflow: hidden; }
.card.ov-kpi::after, .card.kpi::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--kc, #4f8ef7); opacity: .9; }
.grid > .card.ov-kpi:nth-child(4n+1), .grid > .card.kpi:nth-child(4n+1) { --kc: #4f8ef7; }
.grid > .card.ov-kpi:nth-child(4n+2), .grid > .card.kpi:nth-child(4n+2) { --kc: #3ddc84; }
.grid > .card.ov-kpi:nth-child(4n+3), .grid > .card.kpi:nth-child(4n+3) { --kc: #a78bfa; }
.grid > .card.ov-kpi:nth-child(4n+4), .grid > .card.kpi:nth-child(4n+4) { --kc: #f0a33a; }
.card.ov-kpi .ov-l, .card.kpi .l { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 600; color: #8a8a94; }
.card.ov-kpi .ov-v, .card.kpi .v { font-weight: 600; letter-spacing: -.02em; }
.card.ov-kpi:hover::after, .card.kpi:hover::after { opacity: 1; }
/* kalendarz spotkań */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-h { padding: 8px 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #8a8a94; font-weight: 600; border-bottom: 1px solid var(--border); background: var(--panel2); }
.cal-cell { min-height: 104px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { opacity: .4; }
.cal-d { font-size: 12px; font-weight: 600; color: #c9c9cf; }
.cal-cell.today .cal-d { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; }
.cal-ev { font-size: 11.5px; padding: 3px 6px 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); border-left: 2px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.cal-ev .cal-o { color: var(--muted); margin-left: 5px; }
.cal-more { font-size: 11px; color: var(--muted); }
@media (max-width: 800px) { .cal-cell { min-height: 64px; padding: 4px; } .cal-ev { font-size: 10px; padding: 2px 4px; } .cal-ev .cal-o { display: none; } .cal-h { padding: 6px 4px; } }
/* trend jakości – słupki */
.dq-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 110px; align-items: end; margin-top: 12px; }
.dq-col { height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 3px; overflow: hidden; background: var(--panel2); }
.dq-col span { display: block; width: 100%; }

/* setter profil (Tożsamość, Problemy i cele, …) – czyste karty */
.sp-card { padding: 18px 20px; }
.sp-head { display: flex; gap: 12px; align-items: flex-start; }
.sp-head h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.sp-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--border2); color: #c9c9cf; flex: none; }
.sp-list { margin-top: 10px; }
.sp-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sp-item:last-child { border-bottom: 0; }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.sp-hint { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); border-radius: 0 8px 8px 0; font-size: 12.5px; color: #b9b9c2; }
.sp-seg button { flex: 1; }

/* ---------- podzakładki jako druga kolumna przy lewym menu (jak w Setor) – treść na całą szerokość ---------- */
@media (min-width: 1200px) {
  .layout:has(.ov-nav) .content { margin-left: 216px; }
  #main.enter > .ov-page { animation-name: fadeIn; } /* bez przesunięcia – inaczej kolumna podskakuje przy wejściu */
  .ov-page { padding: 22px clamp(18px, 2vw, 34px) 40px !important; max-width: none !important; }
  .ov-wrap { display: block !important; max-width: none !important; margin: 0 !important; }
  .ov-nav { position: fixed !important; top: 0; bottom: 0; left: 232px; width: 216px; z-index: 30; display: block !important;
    background: var(--side); border-right: 1px solid var(--border); padding: 18px 12px !important; overflow-y: auto; }
  .ov-nav h2 { display: block !important; font-size: 15px; margin: 2px 4px 4px; }
  .ov-nav .ov-sub { display: block !important; margin: 0 4px 16px; font-size: 11.5px; line-height: 1.45; }
  .ov-nav a { margin-bottom: 3px; }
}

/* konto w lewym dolnym rogu: zdjęcie + pełny nick, pod spodem przełącznik na całą szerokość */
.account { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 8px 6px; }
.acc-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-row b { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#acc-avatar { flex: none; }
.ai-toggle { display: flex; justify-content: space-between; width: 100%; padding: 3px; font-size: 11px; box-sizing: border-box; }
.ai-toggle .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 8px; }
.ai-toggle .st { flex: none; padding: 2px 10px; }
/* podgląd (Windows, telefon): niebieski zamiast zielonego */
.ai-toggle.viewer.on .st { background: #4f8ef7; color: #fff; }
.ai-toggle.viewer.on .lbl { color: #7aa8ff; }

/* przełącznik AI: zwarty (nie na całą szerokość), pod zdjęciem i nickiem */
.account { align-items: flex-start; }
.ai-toggle { display: inline-flex; width: auto; max-width: 100%; justify-content: flex-start; }
.ai-toggle .lbl { flex: 0 1 auto; }

/* podmenu przy zmianie zakładki: animacja wejścia nie może przesuwać bloku strony (kolumna z podmenu skakała na środek) */
@media (min-width: 1200px) {
  #main.enter > .ov-page, #main.enter > .ov-page > .ov-wrap { animation: fadeIn .22s var(--ease) both !important; transform: none !important; }
}

/* Sekwencje i zasady: pasek zakładek w jednej linii (na węższym ekranie przewija się w bok zamiast łamać do drugiej linii) */
.au-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.au-tabs::-webkit-scrollbar { display: none; }
.au-tabs button { flex: none; white-space: nowrap; padding: 8px 10px; }

/* zwykłe strony (Obserwujący, Follow-upy, Kolejka AI…) na całą szerokość na dużych ekranach – bez ucinania w połowie */
@media (min-width: 1200px) { .page { max-width: none; } }

.au-tabs { gap: 2px; }
.au-tabs button { padding: 8px 9px; font-size: 13px; gap: 6px; }

/* zdjęcie profilowe konta: cienka biała obwódka */
#acc-avatar img { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }

/* zdjęcie profilowe: delikatna obwódka (cieńsza i półprzezroczysta) */
#acc-avatar img { box-shadow: 0 0 0 1px rgba(255,255,255,.42); }

/* kafelki liczb (Obserwujący, Follow-upy i inne strony z .grid > .card.kpi): lekki gradient w kolorze kafelka, jak w Setor – bez kolorowych kresek */
.grid > .card.kpi::after { display: none; }
.grid > .card.kpi {
  background: linear-gradient(135deg, color-mix(in srgb, var(--kc, #4f8ef7) 15%, transparent) 0%, color-mix(in srgb, var(--kc, #4f8ef7) 4%, transparent) 55%, transparent 100%), #131316;
  border-color: color-mix(in srgb, var(--kc, #4f8ef7) 26%, #232329);
}
.grid > .card.kpi:hover { border-color: color-mix(in srgb, var(--kc, #4f8ef7) 42%, #2a2a30); }
.grid > .card.kpi .v::after { content: ''; display: block; width: 26px; height: 2px; border-radius: 2px; margin-top: 8px; background: var(--kc, #4f8ef7); opacity: .85; }

/* Kontakty i sprzedaż: pełne nazwy etapów (bez ucinania) */
.stage-kpis .chip { white-space: normal; overflow: visible; text-overflow: clip; font-size: 10px; line-height: 1.3; letter-spacing: .03em; max-width: 100%; }

/* logo: powoli płynący połysk na metalowym tle (czarne elementy bez zmian) */
.brand-logo { position: relative; overflow: hidden; isolation: isolate; }
.brand-logo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.55) 38%, rgba(140,190,255,.35) 46%, rgba(255,170,230,.25) 54%, transparent 72%);
  background-size: 260% 260%; animation: logoFlow 10s ease-in-out infinite alternate; }
@keyframes logoFlow { from { background-position: 100% 0; } to { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .brand-logo::after { animation: none; opacity: .35; } }
/* logo: wyraźniejszy, szybszy połysk */
.brand-logo::after {
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.95) 42%, rgba(150,200,255,.75) 48%, rgba(255,160,235,.6) 54%, transparent 66%);
  background-size: 300% 300%; animation-duration: 6s; mix-blend-mode: overlay;
}

/* Setter AI: testowy czat przyklejony do ekranu (prompt bywa bardzo długi – pole do pisania i „Powitanie” zawsze widoczne) */
@media (min-width: 1201px) {
  .setter { height: auto; align-items: start; }
  .setter-test { position: sticky; top: 0; height: calc(100vh - 84px); max-height: calc(100vh - 84px); }
  .setter-test .test-head { flex-wrap: wrap; gap: 8px; }
}

/* Rozmowy: nick ucinany „…”, znaczek A/B zawsze cały */
.ci .name .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci .name .ab-chip { flex: none; padding: 0 5px; font-size: 10px; line-height: 16px; }
