/* Ignyte IQ Slack-style thread. Light theme, Slack-like hierarchy, Ignyte IQ accents. */
@font-face{font-family:"Lato";src:url(../assets/fonts/lato-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Lato";src:url(../assets/fonts/lato-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Lato";src:url(../assets/fonts/lato-latin-900-normal.woff2) format("woff2");font-weight:900;font-display:swap}

.iq-demo{
  --ink:#1d1c1d;--muted:#616061;--line:#e3e2e7;--indigo:#4e58b7;--indigo-ink:#3b438f;--indigo-tint:#eef0fd;
  --orange:#f78b1f;--orange-ink:#8f3f06;--green:#0b7a4b;--red:#b23b3b;--night:#160042;
  --pane-h:clamp(520px,calc(100vh - 150px),780px);
  position:relative;max-width:1040px;margin:0 auto;font-family:Lato,"Helvetica Neue",Arial,sans-serif;color:var(--ink);
  -webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;text-align:left
}
.iq-demo *{box-sizing:border-box}
.iq-demo svg{font-family:Lato,"Helvetica Neue",Arial,sans-serif}

/* top bar: brand, controls */
.iq-topbar{display:flex;align-items:center;gap:14px;background:var(--night);color:#fff;padding:10px 12px 10px 18px;border-radius:12px 12px 0 0}
.iq-brand{font-weight:900;font-size:16px;white-space:nowrap;display:flex;align-items:center;gap:8px}
.iq-mark{width:18px;height:18px;border-radius:4px;background:url(/favicon.png) center/contain no-repeat}
.iq-in{font-weight:400;color:#c3c8f1;font-size:14px}
.iq-controls{margin-left:auto;display:flex;gap:6px}
.iq-btn{font:inherit;font-size:13.5px;font-weight:700;color:#fff;background:transparent;border:1px solid #565c9e;border-radius:7px;padding:6px 11px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.iq-btn:hover:not(:disabled){background:#2a1f63}.iq-btn:disabled{opacity:.4;cursor:default}
.iq-btn:focus-visible,.iq-chip:focus-visible,.iq-pane:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.ic{width:12px;height:12px;display:inline-block;position:relative}
.ic-pause:before,.ic-pause:after{content:"";position:absolute;top:1px;width:3.5px;height:10px;background:currentColor;border-radius:1px}.ic-pause:before{left:2px}.ic-pause:after{right:2px}
.ic-play:before{content:"";position:absolute;left:2px;top:1px;border-left:9px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}
.ic-replay{border:2px solid currentColor;border-radius:50%;border-top-color:transparent;transform:rotate(-30deg)}
.ic-replay:after{content:"";position:absolute;right:-4px;top:-3px;border-left:5px solid currentColor;border-top:3px solid transparent;border-bottom:3px solid transparent;transform:rotate(70deg)}

/* Slack-like thread window */
.iq-window{background:#fff;border:1px solid #dddce4;border-top:0;border-radius:0 0 12px 12px;display:flex;flex-direction:column;height:var(--pane-h);overflow:hidden;box-shadow:0 10px 30px -18px rgba(22,0,66,.35)}
.iq-thread-head{display:flex;align-items:baseline;gap:8px;padding:12px 20px;border-bottom:1px solid var(--line)}
.iq-thread-head strong{font-size:18px;font-weight:900}.iq-thread-head span{font-size:13px;color:var(--muted)}
.iq-pane{flex:1;overflow-y:auto;overflow-x:hidden;padding:10px 20px 6px;overscroll-behavior:contain}
.iq-msg{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;padding:8px 0}
.iq-msg+.iq-msg{border-top:1px solid #f1f0f4}
.iq-reply{background:linear-gradient(#fbfbfd,#fff 120px);margin:0 -20px;padding:10px 20px 8px}
.iq-av{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;font-weight:900;font-size:14px}
.iq-av-user{background:#fbe0c8;color:var(--orange-ink)}
.iq-av-agent{background:#5c69d4;color:#fff;font-size:16px;letter-spacing:-.02em}
.iq-who{font-weight:900;font-size:15px;line-height:1.3;display:flex;align-items:center;flex-wrap:wrap;gap:0 7px}
.iq-badge{font-size:10px;font-weight:700;letter-spacing:.04em;background:#e8e8ea;color:#5e5d63;border-radius:3px;padding:1px 4px}
.iq-time{font-size:12px;font-weight:400;color:var(--muted)}
.iq-text{font-size:15px;line-height:1.5;margin:2px 0 0;max-width:76ch}
.iq-mention{color:var(--indigo-ink);background:var(--indigo-tint);border-radius:3px;padding:0 3px;font-weight:700}
.iq-rhead{font-size:19px;font-weight:900;letter-spacing:-.01em;margin:3px 0 10px}
.iq-period{display:block;font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:1px}

.iq-kpis{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));background:#f7f7fa;border:1px solid #ebeaf0;border-radius:8px;padding:12px 0;max-width:820px}
.iq-kpi{padding:0 16px;border-left:1px solid #e4e3ea;min-width:0}.iq-kpi:first-child{border-left:0}
.iq-kl{font-size:13px;color:var(--muted)}
.iq-kv{font-size:24px;font-weight:900;letter-spacing:-.01em;line-height:1.25;white-space:nowrap}
.iq-kd{font-size:12.5px;color:var(--muted);white-space:nowrap}
.is-up{color:var(--green);font-weight:900}.is-down{color:var(--red);font-weight:900}.is-flat{color:#4a4855;font-weight:900}
.iq-kpinote{font-size:12px;color:var(--muted);margin:6px 0 0}
.iq-lead{margin-top:12px}
.iq-sec{margin-top:12px}
.iq-sec h4,.iq-note h4{font-size:15px;font-weight:900;margin:0}
.iq-note{margin-top:12px;border-left:3px solid var(--orange);padding-left:10px}

.iq-chart{margin:10px 0 2px;border:1px solid var(--line);border-radius:8px;padding:12px 14px 10px;max-width:720px;background:#fff}
.iq-chart figcaption h5{font-size:15px;font-weight:900;margin:0}
.iq-chart figcaption p{font-size:12.5px;color:var(--muted);margin:2px 0 4px}
.iq-chart-body svg{display:block;overflow:visible}
.iq-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;margin-top:4px}
.iq-legend span{display:inline-flex;align-items:center;gap:6px}
.iq-legend i{width:9px;height:9px;border-radius:50%}
.iq-legend .iq-legend-note{color:var(--muted)}

.iq-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px}
.iq-chips-lbl{font-size:12px;color:var(--muted);width:100%}
.iq-chip{font:inherit;font-size:13.5px;font-weight:700;color:var(--ink);background:#fff;border:1px solid #c6c5ce;border-radius:6px;padding:7px 12px;cursor:pointer;text-align:left}
.iq-chip:hover:not(:disabled),.iq-chip.is-hover{border-color:var(--indigo);color:var(--indigo-ink);background:var(--indigo-tint)}
.iq-chip.is-press{transform:translateY(1px);background:#e2e0fa}
.iq-chip:disabled{cursor:default;opacity:.45}
.iq-chip.is-chosen{opacity:1;border-color:var(--indigo);background:var(--indigo-tint);color:var(--indigo-ink)}
.iq-end{font-size:13px;color:var(--muted);margin:0;width:100%}

.iq-dots{display:flex;gap:4px;padding:8px 0 4px}.iq-dots i{width:7px;height:7px;border-radius:50%;background:#8d8b96}

.iq-composer{padding:8px 20px 12px;border-top:1px solid var(--line)}
.iq-composer-box{border:1px dashed #c6c5ce;border-radius:8px;padding:10px 12px;color:#76747f;font-size:13.5px;background:#f6f6f8;display:flex;align-items:center;gap:9px;cursor:default;user-select:none}
.iq-lock{width:11px;height:9px;border-radius:2px;background:#9a98a3;position:relative;margin-top:4px;flex:none}.iq-lock:before{content:"";position:absolute;left:2px;top:-6px;width:7px;height:7px;border:2px solid #9a98a3;border-bottom:0;border-radius:5px 5px 0 0;box-sizing:border-box}
.iq-composer-hint{font-size:12px;color:var(--muted);margin:4px 20px 10px}
.iq-caption{font-size:12px;color:var(--muted);text-align:center;margin:10px 0 0}
.iq-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.iq-cursor{display:none;position:absolute;left:0;top:0;width:24px;height:24px;pointer-events:none;z-index:5;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.iq-hidden{opacity:0}
.iq-demo.is-paused .iq-window{box-shadow:0 0 0 2px #c3c8f1}

/* static (fallback image / recreation): whole thread, no inner scroll */
.iq-demo.is-static .iq-window{height:auto}
.iq-demo.is-static .iq-pane{overflow:visible}
.iq-demo.is-static .iq-composer-hint{display:none}

@media (max-width:640px){
  .iq-demo{--pane-h:clamp(480px,calc(100vh - 200px),720px)}
  .iq-topbar{flex-wrap:wrap;gap:8px 10px;padding:10px 12px;border-radius:10px 10px 0 0}
  .iq-btn{padding:7px 9px}.iq-btn .lbl{display:none}.iq-in{display:none}
  .iq-thread-head{padding:10px 14px}
  .iq-pane{padding:8px 12px 4px}
  .iq-reply{margin:0 -12px;padding:10px 12px 8px}
  .iq-msg{grid-template-columns:32px minmax(0,1fr);column-gap:9px}.iq-av{width:32px;height:32px;font-size:13px}
  .iq-text{font-size:14.5px}.iq-rhead{font-size:17px}
  .iq-kpis{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px;padding:10px 0}
  .iq-kpi{padding:0 10px}.iq-kpi:nth-child(odd){border-left:0}
  .iq-kv{font-size:21px}.iq-kd{font-size:11.5px;white-space:normal}
  .iq-chart{padding:10px 8px 8px}
  .iq-reply .iq-kpis,.iq-reply .iq-chart,.iq-reply .iq-text,.iq-reply .iq-sec,.iq-reply .iq-note,.iq-reply .iq-chips,.iq-reply .iq-kpinote{margin-left:-41px}
  .iq-reply .iq-sec .iq-text,.iq-reply .iq-note .iq-text{margin-left:0}
  .iq-composer{padding:8px 12px 10px}.iq-composer-box{font-size:12.5px}
  .iq-topbar{flex-wrap:nowrap}
  .iq-rhead{margin-bottom:8px}
}
@media (prefers-reduced-motion:reduce){.iq-chip.is-press{transform:none}}

/* promotional cut: fills the frame, no controls or composer */
body.promo{margin:0;background:#f1f0f7;padding:12px 18px;height:100vh;box-sizing:border-box;overflow:hidden}
.iq-demo.is-promo{max-width:none;height:100%;display:flex;flex-direction:column}
.iq-demo.is-promo .iq-window{flex:1;min-height:0;height:auto}
.iq-demo.is-promo .iq-pane{overflow:hidden}
.iq-demo.is-promo-desktop .iq-text{max-width:118ch}
.iq-demo.is-promo-desktop .iq-chart{max-width:860px;margin-top:8px;padding:10px 14px 8px}
.iq-demo.is-promo .iq-chips-lbl{display:none}
.iq-demo.is-promo .iq-chips{margin-top:10px}
.iq-demo.is-promo .iq-thread-head{padding:9px 20px}
.iq-demo.is-promo .iq-lead{margin-top:9px}
.iq-demo.is-promo-desktop .iq-feed{padding-bottom:200px}
body.promo.promo-mobile{padding:10px 8px}
.iq-demo.is-promo-mobile .iq-feed{padding-bottom:120px}
.iq-demo.is-promo-mobile .iq-chips{margin-top:10px}
@media (max-width:480px){
  .iq-demo:not(.is-promo) .iq-topbar{flex-wrap:wrap;row-gap:6px;padding:8px 10px}
}

/* ---------- V4 flexible blocks ---------- */
/* inline metric highlights: small, sentence-level, not a KPI header */
.iq-hl{display:flex;flex-wrap:wrap;gap:6px 8px;margin:10px 0 2px;max-width:820px}
.iq-hl-item{display:inline-flex;align-items:baseline;gap:4px;font-size:13.5px;background:#f6f5fb;border:1px solid #e8e6f2;border-radius:999px;padding:4px 11px;white-space:nowrap}
.iq-hl-l{color:var(--muted)}.iq-hl-item b{font-weight:900}.iq-hl-vs{color:var(--muted);font-size:12px}
.iq-hl.is-lg .iq-hl-item{font-size:14.5px;padding:6px 13px}
/* bullets */
.iq-bullets{margin:6px 0 0;padding-left:20px;max-width:76ch}
.iq-bullets li{font-size:15px;line-height:1.5;margin:4px 0;padding-left:2px}
.iq-bullets li::marker{color:var(--indigo);font-weight:900}
/* hero chart */
.iq-chart.is-hero{max-width:860px;padding:14px 16px 10px}
.iq-chart.is-hero figcaption h5{font-size:16px}
/* tables (attachment-style) */
.iq-tablecard{max-width:720px}
.iq-table-wrap{overflow-x:auto;margin-top:6px}
.iq-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.iq-table th,.iq-table td{padding:9px 12px;text-align:right;border-bottom:1px solid #eeedf3;vertical-align:top;white-space:nowrap}
.iq-table thead th{font-size:12.5px;color:var(--muted);font-weight:700;border-bottom:1.5px solid #d9d7e4;padding-top:4px}
.iq-table thead th span,.iq-table tbody th span{display:block;font-weight:400;font-size:11.5px;color:var(--muted)}
.iq-table tbody th{text-align:left;font-weight:700;color:var(--ink)}
.iq-table thead th:first-child{text-align:left}
.iq-table tr:last-child th,.iq-table tr:last-child td{border-bottom:0}
.iq-td-v{display:block;font-weight:700}
.iq-td-sub{display:block;font-size:11.5px;color:var(--muted);margin-top:1px}
.iq-table td.is-win .iq-td-v{color:var(--indigo-ink);font-weight:900}
.iq-table td.is-win .iq-td-v::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-left:6px;vertical-align:2px}
.iq-table-compare thead th:nth-child(2){color:var(--indigo-ink)}.iq-table-compare thead th:nth-child(3){color:#a84c0b}
.iq-table-cohort td.is-heat{background:rgba(75,63,196,calc(var(--heat) * .32))}
.iq-table-cohort td.is-heat .iq-td-v{color:#1d1c1d}
.iq-table-cohort td.is-empty{background:repeating-linear-gradient(135deg,#f6f6f8 0 6px,#fff 6px 12px);color:#8b8a94;text-align:center}
.iq-table-cohort td.is-muted .iq-td-v{color:#8b8a94;font-weight:400}
.iq-table-foot{font-size:12px;color:var(--muted);margin:8px 0 0}
/* compact conversational replies */
.iq-reply.is-compact{background:none}
.iq-reply.is-compact .iq-text{margin-top:2px}
@media (max-width:640px){
  .iq-reply .iq-hl,.iq-reply .iq-bullets,.iq-reply .iq-tablecard{margin-left:-41px}
  .iq-reply .iq-bullets{padding-left:18px;margin-left:-41px}
  .iq-hl-item{font-size:12.5px;padding:3px 9px}
  .iq-table{font-size:13px}.iq-table th,.iq-table td{padding:8px 6px}
  .iq-reply .iq-who{min-height:32px}
  .iq-table thead th span{font-size:10.5px}
  .iq-bullets li{font-size:14.5px}
}

.iq-demo.is-promo-desktop .iq-bullets{max-width:110ch}
