/* =====================================================================
   Davision Intelligence page (/intelligence/)
   Every class here is namespaced pg-intelligence-. The product screens
   carry no data: chips and UI states only.
   The dashboard is drawn on a 1200-unit canvas: 1u = 1/1200 of the frame.
   ===================================================================== */
.pg-intelligence-page { --u: 1px; }

/* ---------------------------------------------------------------------
   dashboard shell
   --------------------------------------------------------------------- */
.pg-intelligence-frame.pg-intelligence-wide .dv-screen { aspect-ratio: 1200 / 640; }
.pg-intelligence-db { --u: 0.08333cqw; display: grid; grid-template-columns: calc(196 * var(--u)) minmax(0, 1fr); background: radial-gradient(ellipse at 70% -10%, rgba(76,79,215,0.16), transparent 55%), #08090e; color: #e8e8ef; font-size: calc(12.5 * var(--u)); line-height: 1.4; }
.pg-intelligence-db.has-ask { grid-template-columns: calc(196 * var(--u)) minmax(0, 1fr) calc(282 * var(--u)); }
.pg-intelligence-db svg { display: block; flex-shrink: 0; }

.pg-intelligence-side { display: flex; flex-direction: column; gap: calc(3 * var(--u)); min-width: 0; padding: calc(18 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u)); background: #0b0c13; border-right: 1px solid rgba(255,255,255,0.06); }
.pg-intelligence-brand { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: 0 calc(8 * var(--u)) calc(16 * var(--u)); }
.pg-intelligence-brand img { height: calc(13 * var(--u)); width: auto; filter: invert(1); }
.pg-intelligence-brand span { font-size: calc(8.5 * var(--u)); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #a9abff; }
.pg-intelligence-who { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(8 * var(--u)); margin-bottom: calc(10 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.pg-intelligence-who img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.pg-intelligence-who b { display: block; font-size: calc(12.5 * var(--u)); }
.pg-intelligence-who small { display: block; font-size: calc(10 * var(--u)); color: #8c8c97; white-space: nowrap; }
.pg-intelligence-navs { display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.pg-intelligence-nav { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(7.5 * var(--u)) calc(10 * var(--u)); border-radius: calc(9 * var(--u)); color: #8f8f9b; font-size: calc(11.5 * var(--u)); white-space: nowrap; }
.pg-intelligence-nav svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.pg-intelligence-nav em { font-style: normal; }
.pg-intelligence-nav.on { background: rgba(106,108,255,0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(106,108,255,0.28); }
.pg-intelligence-nav.on svg { color: #b9baff; }
.pg-intelligence-badge { margin-left: auto; width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #f6c46f; box-shadow: 0 0 calc(8 * var(--u)) rgba(246,196,111,0.8); }
.pg-intelligence-safe { margin-top: auto; display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(9 * var(--u)) calc(10 * var(--u)); border-radius: calc(10 * var(--u)); font-size: calc(10.5 * var(--u)); font-weight: 600; color: #67e8a3; background: rgba(61,220,132,0.07); border: 1px solid rgba(61,220,132,0.2); }
.pg-intelligence-safe svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }

.pg-intelligence-main { display: flex; flex-direction: column; gap: calc(14 * var(--u)); min-width: 0; min-height: 0; padding: calc(16 * var(--u)) calc(20 * var(--u)) calc(18 * var(--u)); overflow: hidden; }
.pg-intelligence-top { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); }
.pg-intelligence-ttl { min-width: 0; }
.pg-intelligence-ttl b { display: block; font-family: var(--font-display); font-size: calc(20 * var(--u)); font-weight: 600; letter-spacing: 0.01em; }
.pg-intelligence-ttl small { display: block; font-size: calc(10.5 * var(--u)); color: #8c8c97; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-intelligence-tright { display: flex; align-items: center; gap: calc(8 * var(--u)); flex-shrink: 0; }
.pg-intelligence-seg { display: inline-flex; padding: calc(3 * var(--u)); border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); }
.pg-intelligence-seg span { font-size: calc(10 * var(--u)); font-weight: 600; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 100px; color: #9a9aa6; white-space: nowrap; }
.pg-intelligence-seg span.on, .pg-intelligence-seg .pg-intelligence-swapon { background: #fff; color: #111; }
.pg-intelligence-btn { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(6 * var(--u)) calc(11 * var(--u)); border-radius: 100px; border: 1px solid rgba(255,255,255,0.12); font-size: calc(10 * var(--u)); font-weight: 600; color: #dcdce4; white-space: nowrap; }
.pg-intelligence-btn svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }

.pg-intelligence-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(12 * var(--u)); align-content: start; }
.pg-intelligence-two .pg-intelligence-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); grid-template-rows: minmax(0, 1fr); align-content: stretch; }
.pg-intelligence-rep .pg-intelligence-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); }
.pg-intelligence-wide { grid-column: 1 / -1; }
.pg-intelligence-card { display: flex; flex-direction: column; gap: calc(10 * var(--u)); min-width: 0; min-height: 0; padding: calc(13 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); overflow: hidden; }
.pg-intelligence-detail { background: linear-gradient(170deg, rgba(106,108,255,0.08), rgba(255,255,255,0.03) 45%); border-color: rgba(169,171,255,0.2); }
.pg-intelligence-ch { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); }
.pg-intelligence-ch > b { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-intelligence-note { margin: 0; font-size: calc(10.5 * var(--u)); line-height: 1.5; color: #8c8c97; }

.pg-intelligence-pill { display: inline-flex; align-items: center; flex-shrink: 0; font-size: calc(9.5 * var(--u)); font-weight: 600; padding: calc(4 * var(--u)) calc(9 * var(--u)); border-radius: 100px; white-space: nowrap; color: #c9caff; background: rgba(106,108,255,0.12); border: 1px solid rgba(106,108,255,0.28); }
.pg-intelligence-pill.warn { color: #f6c46f; background: rgba(246,196,111,0.1); border-color: rgba(246,196,111,0.3); }
.pg-intelligence-pill.ok { color: #67e8a3; background: rgba(61,220,132,0.1); border-color: rgba(61,220,132,0.3); }
.pg-intelligence-pill.acc { color: #fff; background: linear-gradient(140deg, #6a6cff, #3d40c8); border-color: transparent; }

.pg-intelligence-mask { display: inline-block; vertical-align: middle; width: 4em; height: 0.7em; border-radius: 3px; background: repeating-linear-gradient(90deg, currentColor 0 0.32em, transparent 0.32em 0.48em); opacity: 0.38; }

.pg-intelligence-chips { display: flex; flex-wrap: wrap; gap: calc(5 * var(--u)); }
.pg-intelligence-chips span { font-size: calc(10 * var(--u)); font-weight: 600; padding: calc(4 * var(--u)) calc(9 * var(--u)); border-radius: 100px; color: #a3a3ae; border: 1px solid rgba(255,255,255,0.1); }
.pg-intelligence-chips span.on { color: #fff; background: rgba(106,108,255,0.18); border-color: rgba(106,108,255,0.45); }

/* topics */
.pg-intelligence-cloud { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); align-content: flex-start; }
.pg-intelligence-tp { padding: calc(6 * var(--u)) calc(11 * var(--u)); border-radius: calc(9 * var(--u)); border: 1px solid; white-space: nowrap; color: #e6e6ee; }
.pg-intelligence-tp.l1 { font-size: calc(14.5 * var(--u)); font-weight: 600; background: rgba(106,108,255,0.26); border-color: rgba(106,108,255,0.5); color: #fff; }
.pg-intelligence-tp.l2 { font-size: calc(13 * var(--u)); font-weight: 500; background: rgba(106,108,255,0.16); border-color: rgba(106,108,255,0.34); }
.pg-intelligence-tp.l3 { font-size: calc(12 * var(--u)); background: rgba(106,108,255,0.09); border-color: rgba(106,108,255,0.22); }
.pg-intelligence-tp.l4 { font-size: calc(11.5 * var(--u)); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); color: #b9b9c4; }
.pg-intelligence-tp.pg-intelligence-pick { background: #6a6cff; border-color: #a9abff; color: #fff; box-shadow: 0 0 0 calc(3 * var(--u)) rgba(106,108,255,0.25), 0 0 calc(18 * var(--u)) rgba(106,108,255,0.6); }
.is-run .pg-intelligence-pick { animation: pgiPick 0.6s ease var(--d, 0s) both; }
@keyframes pgiPick { from { background: rgba(106,108,255,0.26); border-color: rgba(106,108,255,0.5); box-shadow: none; } }
.pg-intelligence-tall .pg-intelligence-tp.l1 { font-size: calc(16 * var(--u)); }
.pg-intelligence-tall .pg-intelligence-tp.l2 { font-size: calc(14 * var(--u)); }
.pg-intelligence-tall .pg-intelligence-cloud { gap: calc(7 * var(--u)); }

/* languages */
.pg-intelligence-langs { display: flex; flex-direction: column; gap: calc(5 * var(--u)); }
.pg-intelligence-lang { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(5.5 * var(--u)) calc(8 * var(--u)); border-radius: calc(9 * var(--u)); background: rgba(255,255,255,0.03); }
.pg-intelligence-lang b { font-size: calc(12 * var(--u)); font-weight: 500; }
.pg-intelligence-lang em { margin-left: auto; font-style: normal; font-size: calc(9.5 * var(--u)); font-weight: 600; color: #c9caff; background: rgba(106,108,255,0.14); padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 100px; }
.pg-intelligence-flag { width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.pg-intelligence-flag svg { width: 100%; height: 100%; }
.pg-intelligence-flag.is-code { background: #1d1e2c; color: #c9caff; font-size: calc(7.5 * var(--u)); font-weight: 700; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px rgba(169,171,255,0.3); }

/* channels */
.pg-intelligence-chans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(6 * var(--u)); }
.pg-intelligence-chan { position: relative; display: flex; flex-direction: column; gap: calc(7 * var(--u)); padding: calc(9 * var(--u)); border-radius: calc(10 * var(--u)); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); min-width: 0; }
.pg-intelligence-chan > i { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(8 * var(--u)); display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #6a6cff, #3d40c8); }
.pg-intelligence-chan > i svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.pg-intelligence-chan b { display: block; font-size: calc(11.5 * var(--u)); font-weight: 600; }
.pg-intelligence-chan small { display: block; font-size: calc(9.5 * var(--u)); color: #8c8c97; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-intelligence-live { position: absolute; top: calc(10 * var(--u)); right: calc(10 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #3ddc84; box-shadow: 0 0 calc(7 * var(--u)) #3ddc84; }
.pg-intelligence-tall .pg-intelligence-chans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
.pg-intelligence-tall .pg-intelligence-chan { flex-direction: row; align-items: center; padding: calc(11 * var(--u)); }

/* rows: gaps, conversations, requests */
.pg-intelligence-rows { display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.pg-intelligence-row { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(7.5 * var(--u)) calc(10 * var(--u)); border-radius: calc(10 * var(--u)); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.pg-intelligence-ic { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(8 * var(--u)); display: grid; place-items: center; flex-shrink: 0; color: #b9baff; background: rgba(106,108,255,0.12); }
.pg-intelligence-ic svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.pg-intelligence-ic.warn { color: #f6c46f; background: rgba(246,196,111,0.12); }
.pg-intelligence-q { flex: 1; min-width: 0; }
.pg-intelligence-q b { display: block; font-size: calc(11.8 * var(--u)); font-weight: 500; line-height: 1.35; color: #f0f0f5; }
.pg-intelligence-q small { display: flex; align-items: center; gap: calc(5 * var(--u)); font-size: calc(10 * var(--u)); color: #8c8c97; margin-top: calc(1 * var(--u)); }
.pg-intelligence-new { border-color: rgba(246,196,111,0.4); background: rgba(246,196,111,0.06); }
.is-run .pg-intelligence-row.pg-intelligence-new[data-in] { animation: inUp 0.55s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) both, pgiGlow 2.4s ease calc(var(--d, 0s) + 0.4s) 2; }
@keyframes pgiGlow { 50% { box-shadow: 0 0 0 calc(3 * var(--u)) rgba(246,196,111,0.18), 0 0 calc(20 * var(--u)) rgba(246,196,111,0.25); } }
.pg-intelligence-row.pg-intelligence-sel { border-color: rgba(106,108,255,0.5); background: rgba(106,108,255,0.1); }

/* the Ask panel */
.pg-intelligence-ask { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #0b0c13; border-left: 1px solid rgba(255,255,255,0.06); }
.pg-intelligence-ask-h { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(13 * var(--u)) calc(14 * var(--u)); border-bottom: 1px solid rgba(255,255,255,0.06); }
.pg-intelligence-ask-h img { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; object-fit: cover; object-position: 50% 24%; box-shadow: 0 0 0 calc(2 * var(--u)) rgba(106,108,255,0.5); }
.pg-intelligence-ask-h b { display: block; font-size: calc(13 * var(--u)); }
.pg-intelligence-ask-h small { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(10 * var(--u)); color: #8c8c97; }
.pg-intelligence-ask-h .ui-dot { width: calc(6 * var(--u)); height: calc(6 * var(--u)); }
.pg-intelligence-ask-b { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); overflow: hidden; }
.pg-intelligence-a { align-self: flex-start; font-size: calc(12 * var(--u)); line-height: 1.5; color: #e6e6ee; }
.pg-intelligence-me { align-self: flex-end; max-width: 88%; font-size: calc(12 * var(--u)); line-height: 1.45; padding: calc(8 * var(--u)) calc(11 * var(--u)); border-radius: calc(13 * var(--u)) calc(13 * var(--u)) calc(4 * var(--u)) calc(13 * var(--u)); background: #2b2c3a; color: #fff; }
.pg-intelligence-ask-card { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(9 * var(--u)) calc(11 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(246,196,111,0.08); border: 1px solid rgba(246,196,111,0.3); }
.pg-intelligence-ask-card > i { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(8 * var(--u)); display: grid; place-items: center; color: #f6c46f; background: rgba(246,196,111,0.15); flex-shrink: 0; }
.pg-intelligence-ask-card > i svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.pg-intelligence-ask-card span { flex: 1; min-width: 0; }
.pg-intelligence-ask-card small { display: block; font-size: calc(9 * var(--u)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f6c46f; }
.pg-intelligence-ask-card b { display: block; font-size: calc(12 * var(--u)); }
.pg-intelligence-ask-card > svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: #f6c46f; }
.pg-intelligence-ask-f { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(36 * var(--u)); margin: 0 calc(12 * var(--u)) calc(12 * var(--u)); padding: 0 calc(5 * var(--u)) 0 calc(13 * var(--u)); border-radius: 100px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-size: calc(10.5 * var(--u)); color: #8a8a95; }
.pg-intelligence-ask-f span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-intelligence-ask-f i { width: calc(27 * var(--u)); height: calc(27 * var(--u)); border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #6a6cff, #3d40c8); }
.pg-intelligence-ask-f i svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }

/* ---------------------------------------------------------------------
   page sections
   --------------------------------------------------------------------- */
.pg-intelligence-dash { padding-top: 110px; }
.pg-intelligence-over { padding-bottom: 40px; }
.pg-intelligence-over .cx-cap span { font-size: 14px; }

/* one conversation, light console */
.pg-intelligence-conv { padding-top: 80px; }
.pg-intelligence-split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.pg-intelligence-list li { color: #3f3f46; }
.pg-intelligence-list li::before { box-shadow: none; }
.pg-intelligence-cv { --u: 1px; position: relative; border-radius: 24px; overflow: hidden; background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 40px 100px rgba(0,0,0,0.12); }
.pg-intelligence-cv-top { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: #f7f7f9; border-bottom: 1px solid rgba(0,0,0,0.07); }
.pg-intelligence-cv-dots { display: flex; gap: 6px; }
.pg-intelligence-cv-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,0.12); }
.pg-intelligence-cv-top b { font-size: 14px; font-weight: 600; }
.pg-intelligence-cv-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #13854a; background: rgba(19,133,74,0.08); border: 1px solid rgba(19,133,74,0.22); padding: 6px 11px; border-radius: 100px; white-space: nowrap; }
.pg-intelligence-cv-chip svg, .pg-intelligence-cv svg { width: 14px; height: 14px; flex-shrink: 0; }
.pg-intelligence-cv-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.pg-intelligence-cv-tx { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-right: 1px solid rgba(0,0,0,0.07); background: #fbfbfc; }
.pg-intelligence-cv-who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pg-intelligence-cv-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.pg-intelligence-cv-who b { display: block; font-size: 14px; }
.pg-intelligence-cv-who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #7c7c84; }
.pg-intelligence-cv-msg { max-width: 90%; font-size: 14px; line-height: 1.5; padding: 10px 13px; border-radius: 16px; }
.pg-intelligence-cv-msg.me { align-self: flex-end; background: #15151b; color: #fff; border-bottom-right-radius: 4px; }
.pg-intelligence-cv-msg.ag { align-self: flex-start; background: #efeff3; color: #222; border-bottom-left-radius: 4px; }
.pg-intelligence-cv-side { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.pg-intelligence-cv-side small { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #7c7c84; }
.pg-intelligence-cv-side small svg { width: 13px; height: 13px; color: #4c4fd7; }
.pg-intelligence-cv-sum p { margin: 7px 0 0; font-size: 15px; line-height: 1.5; font-weight: 500; color: #111; }
.pg-intelligence-cv-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-intelligence-cv-kv div { padding: 9px 11px; border-radius: 12px; background: #f4f4f7; }
.pg-intelligence-cv-kv small { font-size: 9.5px; }
.pg-intelligence-cv-kv b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.pg-intelligence-sent { display: flex; gap: 6px; margin-top: 7px; }
.pg-intelligence-sent i { font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.1); color: #8a8a90; }
.pg-intelligence-sent i.on { color: #13854a; background: rgba(19,133,74,0.08); border-color: rgba(19,133,74,0.25); font-weight: 600; }
.pg-intelligence-cv-kpi ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pg-intelligence-cv-kpi li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #2a2a30; }
.pg-intelligence-cv-kpi li svg { width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; color: #13854a; background: rgba(19,133,74,0.1); }
.pg-intelligence-cv-out { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; background: rgba(76,79,215,0.06); border: 1px dashed rgba(76,79,215,0.3); }
.pg-intelligence-cv-out > svg { width: 20px; height: 20px; color: #4c4fd7; }
.pg-intelligence-cv-out b { display: block; font-size: 14px; margin-top: 2px; }

/* ask Leo */
.pg-intelligence-ap .tx-body { min-height: 380px; }
.pg-intelligence-gapc, .pg-intelligence-repc { --u: 1.1px; }
.pg-intelligence-gapc { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(246,196,111,0.07); border: 1px solid rgba(246,196,111,0.3); }
.pg-intelligence-gapc small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #f6c46f; }
.pg-intelligence-gapc b { display: block; font-size: 14px; font-weight: 500; color: #fff; margin-top: 4px; }
.pg-intelligence-repc { align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.pg-intelligence-repc > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(140deg, #6a6cff, #3d40c8); }
.pg-intelligence-repc > i svg { width: 19px; height: 19px; }
.pg-intelligence-repc > span { flex: 1; min-width: 0; }
.pg-intelligence-repc b { display: block; font-size: 14px; color: #fff; }
.pg-intelligence-repc small { display: block; font-size: 12px; color: #9a9aa3; }
.pg-intelligence-repc em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 100px; color: #dcdcff; border: 1px solid rgba(169,171,255,0.35); }

/* loop: the five steps above the example */
.pg-intelligence-loop .lp-head { margin-bottom: 48px; }
.pg-intelligence-cycle { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pg-intelligence-cycle li { position: relative; display: flex; flex-direction: column; padding: 20px 18px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.15); }
.pg-intelligence-cycle li:not(:last-child)::after { content: ''; position: absolute; z-index: 2; top: 50%; right: -11px; width: 8px; height: 8px; border-top: 1.5px solid #9a9ab0; border-right: 1.5px solid #9a9ab0; transform: translateY(-50%) rotate(45deg); }
.pg-intelligence-cycle li:last-child { background: #111114; border-color: #111114; }
.pg-intelligence-cy-n { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: #4c4fd7; }
.pg-intelligence-cycle li > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin: 14px 0 16px; color: #4c4fd7; background: rgba(76,79,215,0.08); }
.pg-intelligence-cycle li > i svg { width: 20px; height: 20px; }
.pg-intelligence-cycle b { display: block; font-size: 15.5px; line-height: 1.3; color: #111; margin-bottom: 6px; }
.pg-intelligence-cycle span:not(.pg-intelligence-cy-n) { font-size: 13.5px; line-height: 1.5; color: #62626a; }
.pg-intelligence-cycle li:last-child .pg-intelligence-cy-n { color: #a9abff; }
.pg-intelligence-cycle li:last-child > i { color: #fff; background: linear-gradient(140deg, #6a6cff, #3d40c8); }
.pg-intelligence-cycle li:last-child b { color: #fff; }
.pg-intelligence-cycle li:last-child span:not(.pg-intelligence-cy-n) { color: #a6a6b0; }
.pg-intelligence-loop .cx-illus { margin-top: 22px; }

/* privacy */
.pg-intelligence-priv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pg-intelligence-md { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 26px; background: linear-gradient(160deg, rgba(30,30,42,0.62), rgba(11,11,16,0.78)); border: 1px solid rgba(255,255,255,0.08); }
.pg-intelligence-md-row small { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8c8c94; }
.pg-intelligence-md-row p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.65; color: #cfcfd6; }
.pg-intelligence-md-row.is-after p { color: #fff; }
.pg-intelligence-pii { padding: 1px 7px; border-radius: 7px; color: #f6c46f; background: rgba(246,196,111,0.1); border: 1px dashed rgba(246,196,111,0.4); white-space: nowrap; }
.pg-intelligence-tok { display: inline-block; padding: 0 9px; border-radius: 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c9caff; background: rgba(106,108,255,0.18); border: 1px solid rgba(106,108,255,0.45); vertical-align: 1px; }
.pg-intelligence-md-arrow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: #67e8a3; }
.pg-intelligence-md-arrow svg { width: 16px; height: 16px; }
.pg-intelligence-md-arrow::before, .pg-intelligence-md-arrow::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.pg-intelligence-priv .cx-trust { margin-top: 64px; }

/* in the field */
.pg-intelligence-cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.pg-intelligence-case { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(160deg, rgba(30,30,42,0.62), rgba(11,11,16,0.8)); border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease; }
.pg-intelligence-case:hover { border-color: rgba(106,108,255,0.45); transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,0.4); }
.pg-intelligence-case-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pg-intelligence-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.pg-intelligence-case:hover .pg-intelligence-case-img img { transform: scale(1.05); }
.pg-intelligence-case-img::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(10,10,15,0.85)); }
.pg-intelligence-case-sec { position: absolute; z-index: 2; top: 16px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pg-intelligence-case-tx { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; }
.pg-intelligence-case-cl { display: flex; align-items: center; gap: 12px; }
.pg-intelligence-case-cl img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.pg-intelligence-case-cl em { font-style: normal; font-size: 12.5px; color: #8c8c94; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.14); }
.pg-intelligence-case-tx > b { font-family: var(--font-display); font-size: 30px; line-height: 1; font-weight: 700; }
.pg-intelligence-case-p { font-size: 14.5px; line-height: 1.6; color: #a3a3ab; }
.pg-intelligence-case .aw-badge { align-self: flex-start; padding: 7px 14px 7px 8px; gap: 10px; }
.pg-intelligence-case .aw-ic { width: 32px; height: 32px; }
.pg-intelligence-case .aw-ic svg { width: 22px; height: 22px; }
.pg-intelligence-case .aw-txt small { font-size: 9.5px; }
.pg-intelligence-case .aw-txt b { font-size: 13.5px; }
.pg-intelligence-case-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pg-intelligence-case-go svg { width: 15px; height: 15px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.pg-intelligence-case:hover .pg-intelligence-case-go svg { transform: translateX(4px); }
.pg-intelligence-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.pg-intelligence-sectors > span { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8c8c94; margin-right: 8px; }
.pg-intelligence-sectors a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; font-size: 14.5px; font-weight: 500; color: #e6e6ec; text-decoration: none; border: 1px solid rgba(255,255,255,0.14); transition: border-color 0.3s ease, background 0.3s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.pg-intelligence-sectors a svg { width: 14px; height: 14px; opacity: 0.55; transition: transform 0.4s ease, opacity 0.3s ease; }
.pg-intelligence-sectors a:hover { border-color: #6a6cff; background: rgba(106,108,255,0.1); transform: translateY(-2px); }
.pg-intelligence-sectors a:hover svg { opacity: 1; transform: translateX(3px); }

/* ---------------------------------------------------------------------
   responsive
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pg-intelligence-cycle { grid-template-columns: 1fr; gap: 10px; max-width: 700px; }
  .pg-intelligence-cycle li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 16px 18px; }
  .pg-intelligence-cycle li > i { grid-row: span 2; margin: 0; }
  .pg-intelligence-cycle .pg-intelligence-cy-n { display: none; }
  .pg-intelligence-cycle b { margin: 0 0 2px; }
  .pg-intelligence-cycle li:not(:last-child)::after { top: auto; right: auto; bottom: -9px; left: 38px; transform: rotate(135deg); }
}
@media (max-width: 1000px) {
  .pg-intelligence-split, .pg-intelligence-priv-head { grid-template-columns: 1fr; gap: 40px; }
  .pg-intelligence-cases-grid { grid-template-columns: 1fr; max-width: 640px; }
  .pg-intelligence-case-img { aspect-ratio: 16 / 8; }
}
@media (max-width: 880px) {
  .pg-intelligence-dash { padding-top: 80px; }
  .pg-intelligence-conv { padding-top: 40px; }
}
@media (max-width: 640px) {
  .pg-intelligence-cv-in { grid-template-columns: 1fr; }
  .pg-intelligence-cv-tx { border-right: 0; border-bottom: 1px solid rgba(0,0,0,0.07); }
  .pg-intelligence-cv-top b { display: none; }
  .pg-intelligence-md { padding: 20px; }
  .pg-intelligence-md-row p { font-size: 15.5px; }
  .pg-intelligence-sectors a { font-size: 13.5px; padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-run .pg-intelligence-pick, .is-run .pg-intelligence-new, .is-run .pg-intelligence-band-sel, .is-run .pg-intelligence-swapon { animation: none !important; }
}

/* tab views are drawn on a 1000-unit canvas, so they read larger */
@container (min-width: 621px) { .pg-intelligence-frame:not(.pg-intelligence-wide) .pg-intelligence-db { --u: 0.1cqw; } .pg-intelligence-frame:not(.pg-intelligence-wide) .dv-screen { aspect-ratio: 16 / 9; } }
.pg-intelligence-cases { padding-top: 40px; }
.pg-intelligence-cv-bk { align-self: flex-end; width: 78%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 10px 26px rgba(0,0,0,0.06); }
.pg-intelligence-cv-bk > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #4c4fd7; background: rgba(76,79,215,0.08); }
.pg-intelligence-cv-bk > i svg { width: 17px; height: 17px; }
.pg-intelligence-cv-bk span { flex: 1; min-width: 0; }
.pg-intelligence-cv-bk b { display: block; font-size: 13.5px; }
.pg-intelligence-cv-bk small { display: block; font-size: 12px; color: #7c7c84; }
.pg-intelligence-cv-bk em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #13854a; background: rgba(19,133,74,0.08); padding: 5px 9px; border-radius: 100px; }
.pg-intelligence-cv-bk em svg { width: 12px; height: 12px; }
.pg-intelligence-seg { flex-shrink: 0; }
.pg-intelligence-ins { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.pg-intelligence-ins > span { display: grid; grid-template-columns: calc(26 * var(--u)) 1fr; gap: 0 calc(9 * var(--u)); align-items: center; padding: calc(9 * var(--u)) calc(10 * var(--u)); border-radius: calc(10 * var(--u)); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.pg-intelligence-ins i { grid-row: span 2; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(8 * var(--u)); display: grid; place-items: center; }
.pg-intelligence-ins i svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.pg-intelligence-ins i.warn { color: #f6c46f; background: rgba(246,196,111,0.12); }
.pg-intelligence-ins i.ok { color: #67e8a3; background: rgba(61,220,132,0.12); }
.pg-intelligence-ins small { font-size: calc(9 * var(--u)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8c8c97; }
.pg-intelligence-ins b { font-size: calc(11.5 * var(--u)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-intelligence-seg { flex-direction: row; white-space: nowrap; }
.pg-intelligence-seg span { display: inline-block; }
@media (max-width: 640px) { .pg-intelligence-cv-bk { width: 100%; } }

/* ---------- the live Leo Dashboard (owner, 18 Oct 2026): the real console with example conversations ---------- */
.pg-intelligence-console .sh-pane { grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; }
.pg-intelligence-console .sh-tab { cursor: pointer; }
.pg-intelligence-console-dev .dv-screen { aspect-ratio: 16 / 11.2; }
.pg-intelligence-console-view { position: absolute; inset: 0; overflow: hidden; background: #0b0c12; }
.pg-intelligence-console-view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 100%; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity 0.4s ease; background: #0b0c12; }
.pg-intelligence-console.is-ready .pg-intelligence-console-view iframe { opacity: 1; }
.pg-intelligence-console-wait { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.14); border-top-color: rgba(255,255,255,0.6); animation: pgiSpin 0.9s linear infinite; }
.pg-intelligence-console.is-ready .pg-intelligence-console-wait { display: none; }
@keyframes pgiSpin { to { transform: rotate(360deg); } }
.pg-intelligence-cap[hidden] { display: none; }
.pg-intelligence-cap.is-on { animation: pgiCap 0.35s ease both; }
@keyframes pgiCap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .pg-intelligence-console .sh-pane { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 700px) { .pg-intelligence-console-dev .dv-screen { aspect-ratio: 3 / 4; } }
@media (prefers-reduced-motion: reduce) { .pg-intelligence-console-wait { animation: none; } .pg-intelligence-cap.is-on { animation: none; } }

/* Phones (owner, 18 Oct 2026): the page keeps its main messages; interface demos that a phone cannot show
   well, and sections that repeat another page, are left out. */
@media (max-width: 767px) {
  #dashboard, #conversation, #ask, #loop, #cases { display: none; }
}
