/* ==========================================================================
   pages/collaboration.css - Chat, video, texting, fax and voicemail. Only what this page adds to v1's vocabulary (components.css):
   the hero float cards, the chat / video / texting / transcript / alert demo consoles, and a few small layout helpers.
   Tokens only; hard-coded colors appear only on always-dark surfaces (video tiles, the phone screen, the share window).
   Every demo ships its finished state in the markup, so this file never has to hide anything.
   ========================================================================== */

.console [hidden] { display: none !important; }
.cx-label { font: 600 13px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cx-link { background: none; border: 0; padding: 0; color: var(--blue-text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cx-link:hover { color: var(--text); }
.cx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.cx-foot__btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.console { --cx-caller: var(--green); --cx-agent: var(--blue-text); }
:root[data-theme="light"] .console { --cx-caller: #1f7a33; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .console { --cx-caller: #1f7a33; } }

/* ---- hero: the framed chat thread with two floating cards ---------------------------------------------------------- */
.cx-hero__fig { position: relative; }
.cx-hero .page-hero__media .browser { box-shadow: var(--shadow), 0 0 120px -30px var(--glow-blue); }
.cx-hero .hero-trust { justify-content: flex-start; gap: 10px 22px; }
.cx-call-card, .cx-text-card { padding: 14px 16px; display: grid; gap: 2px; }
.cx-call-card { left: -34px; top: 74px; width: 236px; animation: bob 7s ease-in-out infinite; }
.cx-text-card { right: -26px; bottom: -34px; width: 270px; animation: bob 8s ease-in-out infinite; animation-delay: -3s; }
.cx-call-card b, .cx-text-card b { font: 700 17px/1.25 var(--display); color: #eaf0fb; }
.cx-call-card > span, .cx-text-card > span { font-size: 12.5px; line-height: 1.4; color: #b3c1dc; }
.cx-call-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: #b3c1dc; }
.cx-call-card__top .chip { margin-left: auto; }
.cx-call-card__ring { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(115, 191, 105, .16); color: #73bf69; }
.cx-call-card__ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #73bf69; animation: ping 1.6s ease-out infinite; }
.cx-call-card__ring--gold { background: rgba(255, 187, 46, .16); color: #ffcb52; }
.cx-call-card__ring--gold::after { border-color: #ffbb2e; }
.cx-jump { padding: 6px 0 4px; }
.cx-jump .chiplist { justify-content: center; }
.cx-jump .chip { min-height: 44px; }

/* ---- small layout helpers ------------------------------------------------------------------------------------------ */
.cx-more { margin-top: 22px; }
#chat .cx-more { text-align: center; }
.cx-points { margin-top: 48px; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cx-aside { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14.5px; color: var(--text-2); }
.cx-aside .chip { flex-shrink: 0; margin-top: 1px; }
.cx-aside b { color: var(--text); font-weight: 600; }
.cx-h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.cx-real { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; }
.cx-real > * { min-width: 0; }
.cx-real__head { max-width: 760px; text-align: center; display: grid; gap: 14px; }
.cx-real .cx-points { margin-top: 0; width: 100%; }
.cx-real .cx-more { text-align: center; margin-top: 0; }
.cx-shot { min-width: 0; width: 100%; max-width: 1000px; margin: 0 auto; }
.cx-points--3 { grid-template-columns: repeat(3, 1fr); max-width: 1000px; }
.stats .stat b em { font-size: .42em; margin-left: .3em; letter-spacing: 0; }
.cx-wideTile { min-height: 0; }
.cx-wideTile__copy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: end; }
.cx-wideTile__copy p { margin-top: 10px; }
.cx-wideTile__side { display: grid; gap: 14px; justify-items: start; align-content: end; }
.cx-wideTile .badge-row { margin-top: 0; padding-top: 0; }
.cx-wideTile .link-more { margin-top: 0; padding-top: 0; }
.cx-wideTile .tile-media { margin: 14px 0 0; min-height: 0; flex: none; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cx-wideTile .tile-media img { position: static; width: 100%; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.cx-crop-mms img { left: -46%; width: 150%; }
.cx-crop-later img { left: -44%; width: 150%; }
.cx-lgroup { margin-top: 44px; display: grid; gap: 18px; }
.cx-bento { margin-top: 40px; }
.cx-wide { width: 100%; }
.pan .cx-wide { max-width: 100%; }
.cx-phonechip { position: relative !important; top: auto !important; right: auto !important; order: -1; justify-self: center; margin-bottom: 18px; }
.al__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.al__how { margin: 18px 0 0; gap: 10px; font-size: 14.5px; }
.cx-phone { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7), 0 0 100px -20px var(--glow-blue), inset 0 0 0 2px #1d2230; }
.cx-phone img { aspect-ratio: 360 / 800; }

/* ==========================================================================
   team chat
   ========================================================================== */
.cx-chat__body { display: grid; grid-template-columns: 292px minmax(0, 1fr); height: 640px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); }
.cx-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--card); }
.cx-find { padding: 12px; border-bottom: 1px solid var(--line); }
.cx-find input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 16px var(--font); outline: 0; transition: border-color .2s, box-shadow .2s; }
.cx-find input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow-blue); }
.cx-list__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; }
.cx-list__h { padding: 12px 10px 4px; font: 700 11.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cx-list__none { padding: 16px 10px; color: var(--muted); font-size: 14px; }
.cx-conv { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%; min-height: 58px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: none; text-align: left; transition: background-color .2s, border-color .2s; }
.cx-conv:hover { background: var(--card-2); }
.cx-conv.is-current { background: rgba(77, 124, 255, .14); border-color: rgba(77, 124, 255, .45); }
.cx-conv--pin { margin-bottom: 4px; background: linear-gradient(135deg, rgba(255, 187, 46, .1), transparent 70%); border-color: rgba(255, 187, 46, .28); }
.cx-conv--pin.is-current { background: rgba(77, 124, 255, .14); border-color: rgba(77, 124, 255, .45); }
.cx-conv__t { display: grid; min-width: 0; gap: 1px; }
.cx-conv__t b { font: 700 14.5px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-conv__t small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cx-av { position: relative; display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; font: 700 13.5px/1 var(--display); letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #3f6cee, #2a55d6); }
.cx-av--a { background: linear-gradient(135deg, #7c5cf0, #5a3fd0); }
.cx-av--b { background: linear-gradient(135deg, #ffcb52, #f59e0b); color: #1a1200; }
.cx-av--c { background: linear-gradient(135deg, #3fb37a, #2a8a5a); }
.cx-av--room { background: var(--bg-3); color: var(--blue-text); border: 1px solid var(--line-2); font-size: 18px; }
.cx-av--brand { background: #fff; padding: 5px; box-shadow: 0 0 0 1px var(--line-2); }
.cx-av--brand img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.cx-av--lg { width: 64px; height: 64px; font-size: 22px; }
.cx-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg-2); background: var(--green); }
.cx-dot--call { background: var(--gold); }
.cx-badge { display: inline-flex !important; align-items: center; gap: 5px; justify-self: start; margin-top: 2px; padding: 1px 8px 1px 6px; border-radius: 999px; background: rgba(255, 187, 46, .14); border: 1px solid rgba(255, 187, 46, .4); color: var(--gold-text) !important; font-size: 11.5px !important; font-weight: 700; line-height: 1.5 !important; }
.cx-unread { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue-2); color: #fff; font: 700 12px/1 var(--font); }

.cx-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.cx-thread { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.cx-thread[hidden] { display: none; }
.cx-thread__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.cx-thread__who { display: grid; flex: 1 1 auto; min-width: 0; }
.cx-thread__who b { font: 700 15.5px/1.3 var(--display); }
.cx-pres { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cx-pres--call { color: var(--gold-text); font-weight: 600; }
.cx-thread__acts { display: flex; gap: 8px; }
.cx-msgs { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; margin: 0; list-style: none; }
.cx-msgs:focus-visible { outline-offset: -3px; }
.cx-day { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 700 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.cx-day::before, .cx-day::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.cx-msg { display: flex; align-items: flex-end; gap: 10px; max-width: min(100%, 540px); }
.cx-msg--in { align-items: flex-start; }
.cx-msg--out { align-self: flex-end; flex-direction: row-reverse; }
.cx-msg__main { display: grid; gap: 5px; min-width: 0; justify-items: start; position: relative; }
.cx-msg--out .cx-msg__main { justify-items: end; }
.cx-msg__who { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.cx-msg__who b { font-weight: 700; }
.cx-msg__who time { color: var(--muted); font-size: 12px; }
.cx-bub { max-width: 100%; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: var(--card-2); border: 1px solid var(--line-2); line-height: 1.5; font-size: 15px; overflow-wrap: anywhere; }
.cx-msg--out .cx-bub { border-radius: 16px 16px 5px 16px; background: linear-gradient(180deg, var(--btn-1), var(--btn-2)); border-color: transparent; color: #fff; }
.cx-bub .i { display: inline-block; vertical-align: -.2em; color: var(--gold); }
.cx-bub code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); font-size: .88em; }
.cx-msg--in .cx-bub code { background: var(--bg-3); color: var(--gold-text); }
.cx-meta { font-size: 12px; color: var(--muted); }
.cx-at { font-weight: 700; color: var(--blue-text); }
.cx-edited { font-size: 12px; opacity: .85; }
.cx-quote { display: block; margin-bottom: 8px; padding: 6px 10px; border-left: 3px solid rgba(255, 255, 255, .6); border-radius: 4px 8px 8px 4px; background: rgba(255, 255, 255, .13); font-size: 13px; line-height: 1.4; }
.cx-quote b { display: block; font-weight: 700; }
.cx-reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-rx { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font: 600 13px var(--font); transition: background-color .2s, border-color .2s; }
.cx-rx .i { color: var(--gold); }
.cx-rx:hover { border-color: var(--blue); }
.cx-rx[aria-pressed="true"] { background: rgba(77, 124, 255, .18); border-color: rgba(77, 124, 255, .6); color: var(--text); }
.cx-addrx { position: absolute; right: -34px; top: 22px; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 14px/1 var(--font); opacity: 0; transition: opacity .2s, border-color .2s; }
.cx-msg:hover .cx-addrx, .cx-addrx:focus-visible { opacity: 1; }
.cx-addrx:hover { border-color: var(--blue); color: var(--text); }
.cx-typing { display: flex; align-items: center; gap: 10px; }
.cx-bub--typing { display: inline-flex; gap: 5px; padding: 14px; }
.cx-bub--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: cx-pulse 1.2s ease-in-out infinite; }
.cx-bub--typing i:nth-child(2) { animation-delay: .18s; }
.cx-bub--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes cx-pulse { 0%, 70%, 100% { opacity: .3; } 35% { opacity: 1; } }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.is-pending { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="reduced"]) .is-new { animation: cx-in .4s cubic-bezier(.2, .7, .1, 1) both; } }
html[data-motion="reduced"] .cx-bub--typing i, html[data-motion="reduced"] .cx-live { animation: none; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .cx-bub--typing i, .cx-live { animation: none; opacity: .7; } }

.cx-compose { display: grid; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--card); }
.cx-compose__edit { font-size: 13.5px; font-weight: 600; color: var(--gold-text); }
.cx-compose__row { display: flex; gap: 10px; }
.cx-compose textarea { flex: 1; min-width: 0; min-height: 48px; height: 48px; max-height: 120px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 16px/1.4 var(--font); resize: none; outline: 0; transition: border-color .2s, box-shadow .2s; }
.cx-compose textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow-blue); }
.cx-send { flex: none; width: 52px; height: 48px; padding: 0; border-radius: 12px; }
.cx-compose__hint { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   video call: dark tiles (a camera surface is always dark), the speaker gets a green ring
   ========================================================================== */
.cx-vstage { display: grid; gap: 14px; }
.cx-vstatus { display: flex; align-items: center; gap: 10px; font: 600 14px var(--font); color: var(--text-2); }
.cx-vstatus time { margin-left: auto; font: 500 13px var(--mono); color: var(--muted); }
.cx-live { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(242, 73, 92, .2); animation: cx-pulse 1.6s ease-in-out infinite; }
.cx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-tile { position: relative; display: grid; place-items: center; min-height: 158px; padding: 14px 14px 46px; border-radius: 14px; color: #eaf0fb; background: radial-gradient(120% 90% at 50% 0%, rgba(77, 124, 255, .22), transparent 60%), #0d121c; border: 1px solid rgba(148, 170, 220, .22); transition: border-color .25s, box-shadow .25s; }
.cx-tile .cx-av { color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.cx-tile .cx-av--b { color: #1a1200; }
.cx-tile.is-speaking { border-color: #73bf69; box-shadow: 0 0 0 2px rgba(115, 191, 105, .55), 0 0 32px -6px rgba(115, 191, 105, .55); }
.cx-tile.is-ringing { border-style: dashed; }
.cx-tile.is-ringing .cx-av { animation: ping 1.6s ease-out infinite; }
.cx-tile__n { position: absolute; left: 10px; right: 54px; bottom: 10px; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px; width: fit-content; max-width: calc(100% - 64px); border-radius: 999px; background: rgba(0, 0, 0, .5); font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #eaf0fb; }
.cx-tile__n .i { flex: none; color: #9fb0cc; }
.cx-tile__st { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: rgba(242, 73, 92, .25); color: #ffb3bd; font: 700 11px/1.5 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.cx-tile__cam { position: absolute; top: 10px; left: 10px; display: none; padding: 1px 8px; border-radius: 999px; background: rgba(77, 124, 255, .3); font: 700 11px/1.5 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.cx-tile--you.has-cam .cx-tile__cam { display: block; }
.cx-lv { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.cx-lv i { width: 4px; height: 36%; border-radius: 2px; background: #73bf69; opacity: .5; transform-origin: bottom; }
.cx-tile.is-speaking .cx-lv i { opacity: 1; animation: cx-lv .8s ease-in-out infinite alternate; }
.cx-tile.is-speaking .cx-lv i:nth-child(1) { height: 70%; animation-delay: -.2s; }
.cx-tile.is-speaking .cx-lv i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.cx-tile.is-speaking .cx-lv i:nth-child(3) { height: 55%; animation-delay: -.1s; }
.cx-tile.is-speaking .cx-lv i:nth-child(4) { height: 85%; animation-delay: -.4s; }
@keyframes cx-lv { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.cx-tile.is-muted .cx-lv i { height: 14% !important; animation: none !important; background: #ff7a8a; }
[data-paused] .cx-lv i { animation-play-state: paused !important; }
html[data-motion="reduced"] .cx-lv i, html[data-motion="reduced"] .cx-tile.is-ringing .cx-av { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .cx-lv i, .cx-tile.is-ringing .cx-av { animation: none !important; } }
.cx-tile--screen { grid-column: 1 / -1; align-content: center; min-height: 176px; padding: 12px 12px 42px; background: #0a0e18; }
.cx-share__win { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid rgba(148, 170, 220, .25); background: #111827; }
.cx-share__bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: #0f1218; border-bottom: 1px solid rgba(255, 255, 255, .06); font: 600 11px/1 var(--font); color: #9fb0cc; }
.cx-share__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3f4a; }
.cx-share__bar i:nth-child(1) { background: #ff5f57; } .cx-share__bar i:nth-child(2) { background: #febc2e; } .cx-share__bar i:nth-child(3) { background: #28c840; }
.cx-share__bar span { margin-left: 8px; }
.cx-share__body { padding: 10px 12px 8px; }
.cx-share__bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.cx-share__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4d7cff, #2f5fe0); }
.cx-share__bars i:nth-child(4) { background: linear-gradient(180deg, #ffbb2e, #f59e0b); }
.cx-share__ax { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 11px; font-weight: 600; color: #9fb0cc; }
.cx-vstage.is-sharing .cx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-vstage.is-sharing .cx-tile:not(.cx-tile--screen) { min-height: 96px; padding: 8px 8px 36px; }
.cx-vstage.is-sharing .cx-tile:not(.cx-tile--screen) .cx-av { width: 36px; height: 36px; font-size: 13px; }
.cx-vstage.is-sharing .cx-tile:not(.cx-tile--screen) .cx-tile__n { left: 6px; right: 6px; bottom: 6px; display: block; max-width: calc(100% - 12px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; padding: 2px 8px; }
.cx-vstage.is-sharing .cx-tile:not(.cx-tile--screen) .cx-tile__n .i, .cx-vstage.is-sharing .cx-tile:not(.cx-tile--screen) .cx-lv { display: none; }
.cx-left { padding: 56px 16px; border-radius: 14px; border: 2px dashed var(--line-2); text-align: center; font-weight: 600; color: var(--text-2); }
.cx-vbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cx-vbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font: 600 14px/1 var(--font); transition: background-color .2s, border-color .2s, color .2s; }
.cx-vbtn:hover:not(:disabled) { border-color: var(--blue); color: var(--text); }
.cx-vbtn[aria-pressed="true"] { background: rgba(77, 124, 255, .18); border-color: rgba(77, 124, 255, .6); color: var(--text); }
.cx-vbtn--end { background: #d93a40; border-color: #d93a40; color: #fff; }
.cx-vbtn--end:hover:not(:disabled) { background: #c42f35; border-color: #c42f35; color: #fff; }
.cx-vbtn:disabled { opacity: .45; cursor: not-allowed; }

/* ==========================================================================
   texting: controls, then the thread on an Android-style phone screen (always dark)
   ========================================================================== */
.cx-sms__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.cx-sms__ctl { display: grid; gap: 16px; align-content: center; }
.cx-hint { font-size: 14.5px; color: var(--text-2); }
.cx-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cx-steps .btn { height: 46px; padding: 0 12px; font-size: 14px; }
.cx-sms__phone { position: relative; width: min(100%, 350px); margin: 0 auto; padding: 8px; border-radius: 34px; background: #05070c; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7), inset 0 0 0 2px #1d2230; }
.cx-sms__phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: #05070c; border-radius: 99px; z-index: 2; }
.cx-sms__screen { display: flex; flex-direction: column; min-height: 420px; border-radius: 27px; overflow: hidden; color: #eaf0fb; background: radial-gradient(120% 50% at 50% 0%, rgba(77, 124, 255, .22), transparent 60%), #0d121c; }
.cx-sms__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; align-items: center; padding: 30px 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cx-sms__head b { font: 700 16px var(--display); }
.cx-sms__head small { grid-column: 1; font-size: 12px; color: #9fb0cc; }
.cx-sms__head .cx-unread { grid-column: 2; grid-row: 1 / span 2; }
.cx-sms__thread { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; margin: 0; padding: 16px 14px; list-style: none; }
.cx-sms__empty { padding: 56px 12px; text-align: center; color: #9fb0cc; font-size: 14.5px; }
.cx-sms__screen .cx-msg { max-width: 92%; }
.cx-sms__screen .cx-bub { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .12); color: #eaf0fb; font-size: 14.5px; }
.cx-sms__screen .cx-msg--out .cx-bub { background: linear-gradient(180deg, #3f6cee, #2a55d6); border-color: transparent; color: #fff; }
.cx-sms__screen .cx-meta { color: #9fb0cc; }
.cx-evt { display: flex; align-items: center; align-self: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px dashed rgba(255, 203, 82, .55); color: #ffcb52; font-size: 12.5px; font-weight: 600; }
.cx-pic__img { display: grid; place-items: center; width: 176px; height: 118px; border-radius: 12px; background: #e9edf7; }
.cx-pic__img i { position: relative; width: 54px; height: 54px; border-radius: 10px; background: #2f5fe0; }
.cx-pic__img i::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #f6f8fc; }
.cx-file { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 600; color: #c4cee2; }

/* ==========================================================================
   transcript search
   ========================================================================== */
.tx__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.tx__ctl { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tx__find { display: grid; gap: 12px; }
.tx__step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tx__count { min-height: 1.3em; font: 600 13.5px/1.3 var(--font); color: var(--text-2); }
.tx__btns { display: inline-flex; gap: 8px; }
.tx__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cx-try { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font: 600 14px/1 var(--font); transition: border-color .2s, background-color .2s, color .2s; }
.cx-try:hover { border-color: var(--blue); color: var(--text); }
.cx-try.is-on { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.tx__only { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.tx__wave { position: relative; height: 96px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden; }
.tx__wave canvas { display: block; width: 100%; height: 100%; }
.tx__scrub { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tx__wave:focus-within { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.tx__transport { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tx__time { font: 600 14px var(--mono); color: var(--text-2); }
.tx__legend { flex: 1 1 200px; font-size: 13px; line-height: 1.4; color: var(--muted); }

.tx__lines { position: relative; max-height: 500px; overflow-y: auto; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); }
.tx__lines:focus-visible { outline-offset: 4px; }
.tx__ol { margin: 0; padding: 0; list-style: none; }
.cx-line { display: grid; grid-template-columns: 48px 110px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; transition: background-color .2s, opacity .2s, border-color .2s; }
.tx__ol > .cx-line:last-child { border-bottom: 0; }
.cx-line__t { justify-self: start; min-height: 24px; padding: 0; background: none; border: 0; font: 500 12.5px var(--mono); color: var(--muted); }
.cx-line__t:hover { color: var(--text); text-decoration: underline; }
.cx-line__who { justify-self: start; white-space: nowrap; font: 700 12.5px/1.3 var(--font); color: var(--cx-caller); }
.cx-line.is-agent .cx-line__who { color: var(--cx-agent); }
.cx-line__txt { min-width: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.cx-line.is-dim { opacity: .62; }
.cx-line.is-match { border-left-color: var(--gold); }
.cx-line.is-match .cx-line__txt { color: var(--text); }
.cx-line.is-playing { background: rgba(77, 124, 255, .14); opacity: 1; }
@media (max-width: 559px) { .cx-line { grid-template-columns: 48px minmax(0, 1fr); } .cx-line__txt { grid-column: 1 / -1; } }
mark.tx__hit { background: var(--mark-bg); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 700; }
mark.tx__hit.is-current { outline: 2px solid var(--gold); outline-offset: 1px; }
.tx__lines.is-only .cx-line:not(.is-match) { display: none; }
.tx__empty { padding: 24px; font-weight: 600; color: var(--text-2); }

/* ==========================================================================
   keyword alerts
   ========================================================================== */
.al__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.al__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 12px; }
.al__meta { font: 600 13.5px/1.2 var(--font); color: var(--text-2); }
.al__where { display: flex; flex-wrap: wrap; gap: 0 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cx-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer; }
.cx-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue-2); cursor: pointer; }
.al__sum { margin-bottom: 10px; font: 800 28px/1.1 var(--display); letter-spacing: -.02em; }
.al__sum b { color: var(--blue-text); }
.al__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); }
.cx-al { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; transition: background-color .2s, border-color .2s; }
.cx-al:last-child { border-bottom: 0; }
.cx-al.is-hit { border-left-color: var(--gold); background: rgba(255, 187, 46, .05); }
.cx-al:not(.is-hit) .cx-al__txt, .cx-al.is-skip .cx-al__txt { color: var(--muted); }
.cx-al__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; grid-column: 1; grid-row: 1; font-size: 14px; }
.cx-al__k b { font: 700 11.5px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-text); }
.cx-al__k small { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.cx-al__st { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 8px; text-align: right; grid-column: 2; grid-row: 1; }
.cx-al__st small { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.cx-al__txt { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 559px) { .cx-al__st { grid-column: 1; grid-row: 3; justify-content: flex-start; text-align: left; } }
.cx-st { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font: 700 11.5px/1.5 var(--font); letter-spacing: .03em; white-space: nowrap; }
.cx-st--hit { background: rgba(77, 124, 255, .16); border-color: rgba(77, 124, 255, .5); color: var(--blue-text); }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cx-hero .hero-trust { justify-content: center; }
  .cx-call-card { left: -8px; }
  .cx-text-card { right: -8px; }
  .cx-points { grid-template-columns: repeat(2, 1fr); }
        .cx-real { margin-top: 56px; }
  .cx-wideTile__copy { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 900px) {
  .cx-chat__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: auto; }
  .cx-list { min-width: 0; }
  .cx-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .cx-list__scroll { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; }
  .cx-list__h { display: none; }
  .cx-conv { flex: 0 0 214px; width: auto; border-color: var(--line); background: var(--card); }
  .cx-conv--pin { margin-bottom: 0; }
  .cx-main { height: 520px; }
  .tx__grid, .cx-sms__body, .al__grid { grid-template-columns: 1fr; }
  .cx-sms__body { gap: 28px; }
}
@media (max-width: 760px) {
  .cx-points--3 { grid-template-columns: 1fr; }
  .cx-call-card, .cx-text-card { display: none; }
  .cx-points { grid-template-columns: 1fr; }
  .cx-addrx { display: none; }
  .tx__lines { max-height: 420px; }
  .cx-tile { min-height: 148px; }
  .cx-vstage.is-sharing .cx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pan .cx-wide { width: 640px; max-width: none; }
  .cx-wideTile .tile-media img { width: 640px; max-width: none; }
  .cx-thread__head { flex-wrap: wrap; }
  .cx-thread__acts { flex: 1 0 100%; }
  .cx-thread__acts .btn { flex: 1; }
  .cx-vbtn { flex: 1 1 auto; justify-content: center; }
  .cx-vbtn--end { flex-basis: 100%; }
  .al__sum { font-size: 24px; }
}
@media (max-width: 400px) {
  .cx-steps { grid-template-columns: 1fr; }
}
