/* AMP AI Labs — AI Customer Support page (loaded only by ai-automation/ai-customer-support.html) */

:root { --cs-lime: #A3E635; --cs-sky: #38BDF8; --cs-blue: #4A8FFF; --cs-cyan: #00E5E8; --cs-violet: #A78BFA; --cs-green: #4ADE80; --cs-amber: #FBBF24; --cs-red: #F87171; --cs-ease: cubic-bezier(.2,.7,.2,1); }

/* ═════════ LAYOUT + BANDS ═════════ */
.cs-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; position: relative; }
@media (min-width: 640px)  { .cs-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .cs-wrap { padding: 0 2rem; } }
.cs-band { padding: clamp(3.2rem, 6vw, 5rem) 0; }
.cs-sec { background: radial-gradient(ellipse 800px 260px at 50% 0%, rgba(3,154,249,.14), transparent 70%), #060C1E; border-top: 1px solid rgba(255,255,255,.07); }
.cs-alt { background: radial-gradient(ellipse 800px 260px at 50% 0%, rgba(74,143,255,.18), transparent 70%), #0C1547; border-top: 1px solid rgba(255,255,255,.09); }

.cs-h2 { margin: 0; font-size: clamp(1.7rem, 1.15rem + 2vw, 2.6rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.cs-lead { margin: .8rem 0 0; font-size: 1rem; line-height: 1.7; color: rgba(220,229,240,.78); max-width: 42rem; }
.cs-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C9D6E8; }
.cs-kicker::before { content: ''; flex: none; width: 1.5rem; height: 3px; border-radius: 3px; background: var(--cs-lime); }
.cs-center { text-align: center; }
.cs-center .cs-lead { margin-left: auto; margin-right: auto; }
.cs-center .cs-kicker { justify-content: center; }
.cs-hl { position: relative; display: inline-block; color: var(--cs-sky); }
.cs-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.14em; height: .16em; border-radius: 99px; background: var(--cs-lime); transform: scaleX(0); transform-origin: left; transition: transform .9s .25s var(--cs-ease); }
.cs-reveal.is-in .cs-hl::after, html:not(.js) .cs-hl::after { transform: scaleX(1); }
.cs-hero .cs-hl::after { transform: none; animation: cs-underline .9s .7s var(--cs-ease) both; }
@keyframes cs-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cs-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cs-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cs-glowp { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gp, 56,189,248), .55); } 50% { box-shadow: 0 0 0 .45rem rgba(var(--gp, 56,189,248), 0); } }
.cs-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.cs-wrap) button { font: inherit; }
.js .cs-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--cs-ease) var(--d, 0s), transform .7s var(--cs-ease) var(--d, 0s); }
.js .cs-reveal.is-in { opacity: 1; transform: none; }

/* ═════════ HERO ═════════ */
.cs-hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3rem) 1rem clamp(2.5rem, 5vw, 3.5rem); background: radial-gradient(ellipse 900px 600px at 100% -10%, rgba(3,154,249,.38), transparent 60%), radial-gradient(ellipse 700px 500px at -10% 115%, rgba(123,26,250,.22), transparent 55%), #060C1E; }
.cs-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000, transparent 75%); pointer-events: none; }
.cs-hero-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .cs-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 2rem; } }
.cs-crumb { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .35rem .9rem; border-radius: 9999px; margin-bottom: 1.4rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7DD3FC; background: rgba(3,154,249,.14); border: 1px solid rgba(3,154,249,.45); }
.cs-crumb a:hover { text-decoration: underline; }
.cs-h1 { margin: 0 0 1.3rem; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.cs-h1 .cs-hl { color: #fff; }
.cs-grad { background: linear-gradient(90deg, #38BDF8, #A78BFA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-hero-sub { margin: 0 0 1.9rem; max-width: 34rem; font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.76); }
.cs-hero-note { margin: 1.1rem 0 0; display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; line-height: 1.5; color: rgba(200,205,235,.75); }
.cs-hero-note svg { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--cs-lime); }
.cs-hero-copy > * { animation: cs-rise .8s var(--cs-ease) both; }
.cs-hero-copy > :nth-child(2) { animation-delay: .08s; } .cs-hero-copy > :nth-child(3) { animation-delay: .16s; } .cs-hero-copy > :nth-child(4) { animation-delay: .24s; } .cs-hero-copy > :nth-child(5) { animation-delay: .32s; } .cs-hero-copy > :nth-child(6) { animation-delay: .4s; }
.cs-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── interactive support desk ── */
.cs-stage { position: relative; width: 100%; max-width: 36rem; margin: 0 auto; padding: 1rem 0; }
.cs-glow { position: absolute; inset: 6% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(3,154,249,.42), rgba(123,26,250,.2) 50%, transparent 70%); filter: blur(32px); }
.cs-win { position: relative; border-radius: 1.2rem; overflow: hidden; background: linear-gradient(160deg, #0F1B55, #0A1236); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.cs-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .72rem; color: rgba(255,255,255,.8); }
.cs-bar .d { width: .6rem; height: .6rem; border-radius: 50%; }
.cs-bar .d:nth-child(1) { background: #FF6B6B; } .cs-bar .d:nth-child(2) { background: #FBBF24; } .cs-bar .d:nth-child(3) { background: #4ADE80; }
.cs-bar b { margin-left: .5rem; font-weight: 700; }
.cs-bar em { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-weight: 800; color: var(--cs-green); }
.cs-bar em i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--cs-green); animation: cs-blink 1.8s ease-in-out infinite; }
.cs-in { padding: .8rem .9rem 1rem; display: grid; gap: .65rem; }
.js .cs-demo:not(.is-live) .cs-in { visibility: hidden; min-height: 44rem; }
.cs-demo button:focus-visible, .cs-demo input:focus-visible { outline: 3px solid var(--cs-cyan); outline-offset: 2px; }
.cs-demo:not(.is-live) .cs-tk, .cs-demo:not(.is-live) .cs-ctl, .cs-demo:not(.is-live) .cs-foot { display: none; }
.cs-demo [data-scroll] { scroll-margin: 5rem 0 1.2rem; }

.cs-tk { display: grid; gap: .4rem; }
.cs-t { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; align-items: center; padding: .5rem .7rem; border-radius: .8rem; text-align: left; color: #E8EAF6; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); transition: background .2s, border-color .2s; }
.cs-t:hover { border-color: rgba(56,189,248,.7); }
.cs-t[aria-pressed="true"] { background: linear-gradient(135deg, rgba(3,154,249,.5), rgba(123,26,250,.35)); border-color: rgba(125,211,252,.95); }
.cs-t b { font-size: .78rem; font-weight: 800; color: #fff; }
.cs-t small { grid-column: 1; font-size: .68rem; color: rgba(200,205,235,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-t .cs-tag { grid-column: 2; grid-row: 1 / span 2; }
.cs-tag { padding: .2rem .6rem; border-radius: 9999px; font-size: .6rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; color: #93C5FD; background: rgba(74,143,255,.15); border: 1px solid rgba(74,143,255,.4); }
.cs-tag.g { color: #86EFAC; background: rgba(74,222,128,.14); border-color: rgba(74,222,128,.4); }
.cs-tag.a { color: var(--cs-amber); background: rgba(251,191,36,.13); border-color: rgba(251,191,36,.4); }
.cs-tag.r { color: #FCA5A5; background: rgba(248,113,113,.13); border-color: rgba(248,113,113,.4); }
.cs-tag.v { color: #C9B8FF; background: rgba(167,139,250,.15); border-color: rgba(167,139,250,.45); }

.cs-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .5rem .7rem; border-radius: .8rem; background: rgba(6,12,30,.55); border: 1px solid rgba(255,255,255,.1); }
.cs-switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; line-height: 1.3; color: #E8EAF6; cursor: pointer; }
.cs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-switch .tr { flex: none; position: relative; width: 2.1rem; height: 1.2rem; border-radius: 99px; background: rgba(255,255,255,.2); transition: background .2s; }
.cs-switch .tr::after { content: ''; position: absolute; top: .15rem; left: .15rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; transition: transform .2s var(--cs-ease); }
.cs-switch input:checked + .tr { background: var(--cs-amber); }
.cs-switch input:checked + .tr::after { transform: translateX(.9rem); }
.cs-switch input:focus-visible + .tr { outline: 3px solid var(--cs-cyan); outline-offset: 2px; }

.cs-mail { padding: .7rem .85rem .8rem; border-radius: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: border-color .3s, box-shadow .3s; }
.cs-demo[data-state="running"] .cs-mail.is-first { border-color: rgba(125,211,252,.9); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
.cs-mail-h { display: flex; align-items: center; gap: .5rem; font-size: .68rem; color: rgba(220,229,240,.85); }
.cs-mail-h .ic { width: 1.5rem; height: 1.5rem; border-radius: .45rem; display: grid; place-items: center; color: #7DD3FC; background: rgba(56,189,248,.16); }
.cs-mail-h .ic svg { width: .9rem; height: .9rem; }
.cs-mail-h b { color: #fff; font-size: .74rem; }
.cs-mail-h em { margin-left: auto; padding: .1rem .5rem; border-radius: 9999px; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1B2A00; background: var(--cs-lime); }
.cs-mail h3 { margin: .5rem 0 .2rem; font-size: .84rem; font-weight: 800; color: #fff; }
.cs-mail p { margin: 0; font-size: .78rem; line-height: 1.5; color: rgba(232,234,246,.92); }

.cs-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.cs-n { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .42rem .65rem; border-radius: .75rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); transition: background .3s, border-color .3s, opacity .3s; }
.cs-n .ic { width: 1.7rem; height: 1.7rem; border-radius: .5rem; display: grid; place-items: center; color: #7DD3FC; background: rgba(56,189,248,.14); }
.cs-n .ic svg { width: .95rem; height: .95rem; }
.cs-n b { display: block; font-size: .76rem; font-weight: 800; line-height: 1.25; color: #fff; }
.cs-n small { display: block; font-size: .64rem; line-height: 1.3; color: rgba(200,205,235,.7); }
.cs-n small.out { color: #C9B8FF; font-weight: 700; }
.cs-n .st { min-width: 3.6rem; text-align: right; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(200,205,235,.45); }
.cs-n.is-run { border-color: rgba(125,211,252,.95); background: rgba(56,189,248,.1); animation: cs-glowp 1.2s ease-in-out infinite; }
.cs-n.is-run .st { color: var(--cs-sky); }
.cs-n.is-done { border-color: rgba(74,222,128,.5); }
.cs-n.is-done .st { color: var(--cs-green); }
.cs-n.is-gate { border-color: rgba(251,191,36,.95); background: rgba(251,191,36,.1); animation: cs-glowp 1.2s ease-in-out infinite; --gp: 251,191,36; }
.cs-n.is-gate .st { color: var(--cs-amber); }
.cs-n.is-esc { border-color: rgba(251,191,36,.9); background: rgba(251,191,36,.08); }
.cs-n.is-esc .st { color: var(--cs-amber); }
.cs-n.is-skip { opacity: .4; }

.cs-intel { display: grid; gap: .35rem; }
.cs-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 1.5rem; }
.cs-row > span.lb { flex: none; width: 5.2rem; white-space: nowrap; font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(200,205,235,.6); }
.cs-intel:has(#cs-tags:empty):has(#cs-srcs:empty) { display: none; }
.cs-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 9999px; font-size: .66rem; font-weight: 800; color: #E8EAF6; background: rgba(74,143,255,.16); border: 1px solid rgba(74,143,255,.4); animation: cs-pop .4s var(--cs-ease) both; }
.cs-chip svg { width: .75rem; height: .75rem; }
.cs-chip.hi { color: #FDE68A; background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.5); }
.cs-chip.urg { color: #FCA5A5; background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.5); }
.cs-chip.src { color: #A5F3FC; background: rgba(0,229,232,.1); border-color: rgba(0,229,232,.4); }
.cs-chip.none { color: #FDE68A; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.45); }
@keyframes cs-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.cs-draft { padding: .65rem .85rem .75rem; border-radius: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: border-color .4s, background .4s; }
.cs-draft.is-idle { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.18); }
.cs-draft.is-idle > *:not(.cs-dh) { display: none; }
.cs-draft.is-ok { border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.07); }
.cs-draft.is-esc { border-color: rgba(251,191,36,.6); background: rgba(251,191,36,.07); }
.cs-dh { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7DD3FC; }
.cs-draft.is-idle .cs-dh { margin: 0; color: rgba(200,205,235,.45); }
.cs-draft.is-ok .cs-dh { color: var(--cs-green); }
.cs-draft.is-esc .cs-dh { color: var(--cs-amber); }
.cs-dh span { display: inline-flex; align-items: center; gap: .35rem; }
.cs-dh svg { width: .9rem; height: .9rem; }
.cs-dh em { font-style: normal; font-size: .6rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: rgba(200,205,235,.7); text-align: right; }
.cs-dt { margin: 0; font-size: .78rem; line-height: 1.55; color: #F3F4FB; border-radius: .4rem; overflow-wrap: anywhere; }
.cs-dt[contenteditable="true"] { padding: .35rem .5rem; margin: -.35rem -.5rem; background: rgba(255,255,255,.1); outline: 2px solid var(--cs-sky); }
.cs-dt.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--cs-sky); animation: cs-blink .8s steps(1) infinite; }
.cs-gate { margin-top: .6rem; padding: .6rem .7rem; border-radius: .75rem; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.55); animation: cs-rise .4s var(--cs-ease) both; }
.cs-gate[hidden] { display: none; }
.cs-gate p { margin: 0 0 .5rem; font-size: .72rem; line-height: 1.45; color: #FDE68A; }
.cs-gate p::before { content: 'Human review · '; font-weight: 800; }
.cs-gate div { display: flex; justify-content: flex-end; gap: .5rem; }
.cs-btn-s, .cs-btn-p { padding: .45rem .95rem; border-radius: .6rem; font-size: .76rem; font-weight: 800; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, transform .2s; }
.cs-btn-s { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }
.cs-btn-s:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.cs-btn-s:disabled { opacity: .55; cursor: default; }
.cs-btn-p { color: #1B2A00; background: var(--cs-lime); animation: cs-glowp 1.4s ease-in-out infinite; --gp: 163,230,53; }
.cs-btn-p:hover { background: #BEF264; transform: translateY(-1px); }
.cs-sent { display: none; align-items: center; gap: .35rem; margin: .5rem 0 0; font-size: .7rem; font-weight: 800; color: var(--cs-green); }
.cs-sent svg { width: .9rem; height: .9rem; stroke-width: 3; }
.cs-draft.is-ok .cs-sent, .cs-draft.is-esc .cs-sent { display: inline-flex; }
.cs-draft.is-esc .cs-sent { color: var(--cs-amber); }

.cs-status { margin: 0; min-height: 2.4em; font-size: .76rem; line-height: 1.45; text-align: center; color: rgba(232,234,246,.9); }
.cs-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0; }
.cs-count > div { padding: .45rem .5rem; border-radius: .7rem; text-align: center; background: rgba(6,12,30,.5); border: 1px solid rgba(255,255,255,.1); }
.cs-count dt { font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(200,205,235,.65); }
.cs-count dd { margin: .1rem 0 0; font-size: 1.05rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.cs-count dd.flash { animation: cs-pop .5s var(--cs-ease); color: var(--cs-lime); }
.cs-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.cs-run { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: .8rem; font-size: .86rem; font-weight: 800; color: #1B2A00; background: var(--cs-lime); border: 0; cursor: pointer; transition: background .2s, transform .2s, opacity .2s; }
.cs-run svg { width: 1rem; height: 1rem; }
.cs-run:hover:not(:disabled) { background: #BEF264; transform: translateY(-1px); }
.cs-run:disabled { opacity: .55; cursor: default; }
.cs-demo[data-state="idle"] .cs-run { animation: cs-glowp 1.8s ease-in-out infinite; --gp: 163,230,53; }
.cs-fine { margin: 0; font-size: .64rem; line-height: 1.4; color: rgba(200,205,235,.55); max-width: 17rem; }

/* ── trust strip ── */
.cs-trust { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin: 2.4rem 0 0; padding: 1.3rem 1.4rem; border-radius: 1.2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); list-style: none; }
@media (min-width: 640px) { .cs-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cs-trust { grid-template-columns: repeat(4, 1fr); gap: 0; } .cs-trust > li + li { border-left: 1px solid rgba(255,255,255,.12); padding-left: 1.4rem; } }
.cs-trust > li { display: flex; align-items: center; gap: .8rem; }
.cs-trust svg { flex: none; width: 2rem; height: 2rem; color: var(--cs-sky); stroke-width: 1.5; }
.cs-trust b { display: block; font-size: .86rem; font-weight: 800; color: #fff; line-height: 1.25; }
.cs-trust span { display: block; font-size: .74rem; color: rgba(200,205,235,.7); margin-top: .1rem; }

/* ═════════ generic card grids ═════════ */
.cs-out { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .cs-out { grid-template-columns: repeat(3, 1fr); } }
.cs-ocard { --c: 56,189,248; height: 100%; display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.3rem; border-radius: 1.1rem; background: linear-gradient(160deg, rgba(var(--c),.16), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c),.32); transition: transform .3s var(--cs-ease), box-shadow .3s, border-color .3s; }
.cs-ocard:hover { transform: translateY(-5px); border-color: rgba(var(--c),.7); box-shadow: 0 20px 44px rgba(var(--c),.2); }
.cs-ocard.g { --c: 74,222,128; } .cs-ocard.v { --c: 167,139,250; }
.cs-ocard .ico { flex: none; width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center; color: rgb(var(--c)); background: rgba(var(--c),.14); }
.cs-ocard .ico svg { width: 1.5rem; height: 1.5rem; }
.cs-ocard h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: #fff; }
.cs-ocard p { margin: 0; font-size: .86rem; line-height: 1.6; color: rgba(220,229,240,.78); }

/* ═════════ ROUTING LANES ═════════ */
.cs-lanes { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .cs-lanes { grid-template-columns: repeat(3, 1fr); } }
.cs-lane { --c: 74,222,128; height: 100%; padding: 1.4rem 1.3rem 1.5rem; border-radius: 1.2rem; background: linear-gradient(160deg, rgba(var(--c),.16), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c),.4); border-top: 4px solid rgb(var(--c)); transition: transform .3s var(--cs-ease), box-shadow .3s; }
.cs-lane:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(var(--c),.18); }
.cs-lane.dr { --c: 56,189,248; } .cs-lane.hu { --c: 251,191,36; }
.cs-lane .ico { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; margin-bottom: .8rem; color: rgb(var(--c)); background: rgba(var(--c),.15); }
.cs-lane .ico svg { width: 1.4rem; height: 1.4rem; }
.cs-lane h3 { margin: 0 0 .15rem; font-size: 1.15rem; font-weight: 900; color: #fff; }
.cs-lane .sub { margin: 0 0 .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c)); }
.cs-lane p { margin: 0 0 .9rem; font-size: .88rem; line-height: 1.6; color: rgba(220,229,240,.82); }
.cs-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.cs-chips li { padding: .28rem .7rem; border-radius: 9999px; font-size: .74rem; font-weight: 700; color: #E8EAF6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.cs-lane-note { margin: 1rem 0 0; font-size: .8rem; line-height: 1.5; color: rgba(200,205,235,.7); }

/* ═════════ TABSETS ═════════ */
.cs-tabs { display: none; margin: 0; padding: 0; list-style: none; }
.cs-tabset.is-live .cs-tabs { display: grid; }
.cs-tabset [role="tabpanel"][hidden] { display: none !important; }
.cs-tab { cursor: pointer; text-align: left; color: #E8EAF6; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); transition: background .25s, border-color .25s, transform .25s var(--cs-ease); }
.cs-tab:hover { border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.1); }
.cs-tab:not([aria-selected="true"]):hover { transform: translateY(-3px); }
.cs-tab:focus-visible { outline: 3px solid var(--cs-cyan); outline-offset: 2px; }
.cs-tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(3,154,249,.6), rgba(123,26,250,.45)); border-color: rgba(125,211,252,.95); box-shadow: 0 12px 30px rgba(3,154,249,.25); }
.cs-tabset [role="tabpanel"]:not([hidden]) { animation: cs-rise .4s var(--cs-ease) both; }

/* ═════════ TASKS ═════════ */
.cs-task-tabs { gap: .5rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem !important; }
@media (min-width: 640px) { .cs-task-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cs-task-tabs { grid-template-columns: repeat(6, 1fr); } }
.cs-ttab { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; width: 100%; height: 100%; padding: .8rem .9rem; border-radius: 1rem; font-size: .82rem; font-weight: 800; line-height: 1.25; }
.cs-ttab .ico { width: 2rem; height: 2rem; border-radius: .6rem; display: grid; place-items: center; background: rgba(56,189,248,.16); color: #7DD3FC; }
.cs-ttab .ico svg { width: 1.1rem; height: 1.1rem; }
.cs-ttab[aria-selected="true"] .ico { background: #fff; color: #075985; }
.cs-tp { display: grid; gap: 1.2rem; margin-top: 1.2rem; padding: 1.4rem 1.2rem; border-radius: 1.3rem; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 900px) { .cs-tp { grid-template-columns: 1.1fr 1fr; padding: 1.8rem; gap: 2rem; } }
.cs-tp h3 { margin: 0 0 .3rem; font-size: 1.3rem; font-weight: 900; color: #fff; }
.cs-tp .sum { margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; color: rgba(220,229,240,.82); }
.cs-tp h4 { margin: 0 0 .5rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(200,205,235,.75); }
.cs-bub { margin: 0 0 .6rem; padding: .65rem .9rem; font-size: .86rem; line-height: 1.55; color: #fff; }
.cs-bub.cu { background: rgba(255,255,255,.1); border-radius: .2rem 1rem 1rem 1rem; }
.cs-bub.ai { background: linear-gradient(135deg, rgba(3,154,249,.45), rgba(123,26,250,.35)); border-radius: 1rem .2rem 1rem 1rem; }
.cs-bub small { display: block; margin-bottom: .15rem; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cs-gatebox { display: flex; gap: .7rem; margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 1rem; background: rgba(163,230,53,.08); border: 1px solid rgba(163,230,53,.35); }
.cs-gatebox svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--cs-lime); margin-top: .1rem; }
.cs-gatebox h4 { color: var(--cs-lime); margin-bottom: .3rem; }
.cs-gatebox p { margin: 0; font-size: .84rem; line-height: 1.55; color: rgba(232,234,246,.9); }

/* ═════════ CALCULATOR ═════════ */
.cs-calc { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 900px) { .cs-calc { grid-template-columns: 1.1fr 1fr; gap: 1.6rem; align-items: stretch; } }
.cs-cin, .cs-cout { padding: 1.4rem 1.3rem; border-radius: 1.3rem; border: 1px solid rgba(255,255,255,.14); }
.cs-cin { background: rgba(255,255,255,.05); display: grid; gap: 1.15rem; }
.cs-fld label { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .5rem; font-size: .86rem; font-weight: 700; color: #E8EAF6; }
.cs-fld label output { font-size: 1.05rem; font-weight: 900; color: var(--cs-sky); font-variant-numeric: tabular-nums; }
.cs-fld small { display: block; margin-top: .3rem; font-size: .7rem; color: rgba(200,205,235,.6); }
.cs-fld input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: .5rem; margin: .45rem 0; border-radius: 99px; cursor: pointer; background: linear-gradient(90deg, #0EA5E9 var(--p, 50%), rgba(255,255,255,.18) var(--p, 50%)); }
.cs-fld input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; border: 3px solid #0EA5E9; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .15s; }
.cs-fld input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cs-fld input[type="range"]::-moz-range-track { height: .5rem; border-radius: 99px; background: rgba(255,255,255,.18); }
.cs-fld input[type="range"]::-moz-range-progress { height: .5rem; border-radius: 99px; background: #0EA5E9; }
.cs-fld input[type="range"]::-moz-range-thumb { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff; border: 3px solid #0EA5E9; }
.cs-fld input[type="range"]:focus-visible { outline: 3px solid var(--cs-cyan); outline-offset: 3px; }
.cs-cout { display: flex; flex-direction: column; gap: 1rem; background: linear-gradient(160deg, rgba(3,154,249,.3), rgba(123,26,250,.2)); border-color: rgba(125,211,252,.5); }
.cs-cout h3 { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7DD3FC; }
.cs-big { margin: 0; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.cs-big small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: rgba(255,255,255,.75); }
.cs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0; }
.cs-kpis > div { padding: .7rem .85rem; border-radius: .9rem; background: rgba(6,12,30,.45); border: 1px solid rgba(255,255,255,.12); }
.cs-kpis > div:last-child { grid-column: 1 / -1; }
.cs-kpis dt { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(200,205,235,.7); }
.cs-kpis dd { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.cs-cmp { display: grid; gap: .5rem; }
.cs-cmp div { display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; color: #E8EAF6; }
.cs-cmp .bar { height: .6rem; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.cs-cmp .bar i { display: block; height: 100%; width: var(--w, 100%); border-radius: 99px; background: rgba(255,255,255,.55); transition: width .5s var(--cs-ease); }
.cs-cmp .bar i.a { background: linear-gradient(90deg, var(--cs-sky), var(--cs-green)); }
.cs-cnote { margin: auto 0 0; font-size: .72rem; line-height: 1.5; color: rgba(220,229,240,.75); }

/* ═════════ INTEGRATIONS ═════════ */
.cs-int { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .cs-int { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cs-int { grid-template-columns: repeat(3, 1fr); } }
.cs-igrp { height: 100%; padding: 1.1rem 1.2rem 1.2rem; border-radius: 1.1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); transition: transform .3s var(--cs-ease), border-color .3s, box-shadow .3s; }
.cs-igrp:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.6); box-shadow: 0 16px 36px rgba(3,154,249,.18); }
.cs-igrp h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-sky); }
.cs-igrp h3 svg { width: 1.1rem; height: 1.1rem; }
.cs-igrp .cs-chips li { background: rgba(74,143,255,.14); border-color: rgba(74,143,255,.4); }
.cs-note { display: flex; gap: .5rem; margin: 1rem 0 0; font-size: .8rem; line-height: 1.5; color: rgba(200,205,235,.7); }
.cs-note svg { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; }

/* ═════════ CONTROL + AUDIT ═════════ */
.cs-ctrl { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 1024px) { .cs-ctrl { grid-template-columns: 1fr 1.05fr; gap: 1.6rem; align-items: start; } }
.cs-guard { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .cs-guard { grid-template-columns: repeat(2, 1fr); } }
.cs-gcard { --c: 56,189,248; height: 100%; padding: 1.1rem 1.1rem 1.2rem; border-radius: 1rem; background: linear-gradient(160deg, rgba(var(--c),.14), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c),.3); transition: transform .3s var(--cs-ease), border-color .3s; }
.cs-gcard:hover { transform: translateY(-4px); border-color: rgba(var(--c),.7); }
.cs-gcard.g { --c: 74,222,128; } .cs-gcard.a { --c: 251,191,36; } .cs-gcard.v { --c: 167,139,250; } .cs-gcard.b { --c: 74,143,255; }
.cs-gcard svg { width: 1.6rem; height: 1.6rem; color: rgb(var(--c)); margin-bottom: .6rem; }
.cs-gcard h3 { margin: 0 0 .3rem; font-size: .95rem; font-weight: 800; color: #fff; }
.cs-gcard p { margin: 0; font-size: .8rem; line-height: 1.55; color: rgba(220,229,240,.76); }
.cs-audit { border-radius: 1.2rem; overflow: hidden; background: #050A1A; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 26px 60px rgba(0,0,0,.4); }
.cs-audit-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1.1rem; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .85rem; font-weight: 800; color: #fff; }
.cs-audit-h span { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(200,205,235,.6); }
.cs-filter { display: none; flex-wrap: wrap; gap: .4rem; padding: .7rem .8rem 0; }
.cs-audit.is-live .cs-filter { display: flex; }
.cs-fchip { padding: .3rem .75rem; border-radius: 9999px; font-size: .7rem; font-weight: 800; color: #E8EAF6; cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.cs-fchip:hover { border-color: rgba(56,189,248,.7); }
.cs-fchip:focus-visible { outline: 3px solid var(--cs-cyan); outline-offset: 2px; }
.cs-fchip[aria-pressed="true"] { color: #0B1240; background: #fff; border-color: #fff; }
.cs-rows { margin: 0; padding: .6rem; list-style: none; display: grid; gap: .3rem; }
.cs-arow { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; align-items: center; padding: .6rem .7rem; border-radius: .7rem; background: rgba(255,255,255,.04); }
.cs-arow[hidden] { display: none; }
.cs-arow p { margin: 0; font-size: .8rem; line-height: 1.35; color: #E8EAF6; }
.cs-arow p b { display: block; font-size: .8rem; color: #fff; }
.cs-arow p small { color: rgba(200,205,235,.6); font-size: .68rem; }
.cs-arow time { grid-column: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .64rem; color: rgba(200,205,235,.5); }
.cs-arow .cs-tag { grid-column: 2; grid-row: 1 / span 2; }
.cs-audit-f { margin: 0; padding: .3rem 1.1rem .9rem; font-size: .68rem; color: rgba(200,205,235,.55); }

/* ═════════ INDUSTRIES ═════════ */
.cs-ind { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cs-ind { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cs-ind { grid-template-columns: repeat(3, 1fr); } }
.cs-icard { height: 100%; padding: 1.2rem; border-radius: 1.1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); transition: transform .3s var(--cs-ease), border-color .3s; }
.cs-icard:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.6); }
.cs-ih { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.cs-ih .ico { width: 2.4rem; height: 2.4rem; border-radius: .75rem; display: grid; place-items: center; color: var(--cs-sky); background: rgba(56,189,248,.14); }
.cs-ih .ico svg { width: 1.25rem; height: 1.25rem; }
.cs-ih h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; }
.cs-icard ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.cs-icard li { padding: .45rem .75rem; border-radius: .2rem .8rem .8rem .8rem; font-size: .78rem; line-height: 1.4; color: #E8EAF6; background: rgba(255,255,255,.08); }

/* ═════════ PROCESS ═════════ */
.cs-proc { position: relative; display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 2.4rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .cs-proc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cs-proc { grid-template-columns: repeat(5, 1fr); gap: 1rem; } .cs-proc::before { content: ''; position: absolute; top: 2.1rem; left: 3.8%; right: 15%; height: 2px; background: linear-gradient(90deg, var(--cs-sky), var(--cs-violet)); opacity: .5; } }
.cs-pstep { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.2rem 1.1rem 1.3rem; border-radius: 1.1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); transition: transform .3s var(--cs-ease), border-color .3s, box-shadow .3s; }
.cs-pstep:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.7); box-shadow: 0 20px 44px rgba(3,154,249,.22); }
.cs-pnum { position: relative; z-index: 1; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .9rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #039AF9, #7B1AFA); box-shadow: 0 0 0 5px #0C1547; }
.cs-sec .cs-pnum { box-shadow: 0 0 0 5px #060C1E; }
.cs-pnum svg { width: 1.3rem; height: 1.3rem; }
.cs-pstep h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; color: #fff; }
.cs-pstep h3 small { display: block; margin-bottom: .15rem; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-sky); }
.cs-pstep p { margin: 0 0 1rem; font-size: .82rem; line-height: 1.6; color: rgba(220,229,240,.76); }
.cs-pstep .cs-get { margin: auto 0 0; padding-top: .7rem; border-top: 1px dashed rgba(255,255,255,.18); font-size: .76rem; line-height: 1.45; color: rgba(232,234,246,.9); }
.cs-get b { display: block; margin-bottom: .15rem; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-lime); }

/* ═════════ FAQ ═════════ */
.cs-faqwrap { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cs-faqwrap { grid-template-columns: 18rem 1fr; gap: 3rem; align-items: start; } }
.cs-faq { max-width: 48rem; display: grid; gap: .7rem; }
.cs-q { border-radius: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: border-color .25s, background .25s, box-shadow .25s; }
.cs-q:hover { border-color: rgba(56,189,248,.5); }
.cs-q[open] { background: rgba(255,255,255,.09); border-color: rgba(56,189,248,.7); box-shadow: 0 14px 38px rgba(3,154,249,.16); }
.cs-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1rem 1.2rem; min-height: 3.2rem; font-size: .96rem; font-weight: 800; color: #fff; }
.cs-q summary::-webkit-details-marker { display: none; }
.cs-q summary svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--cs-sky); transition: transform .3s var(--cs-ease); }
.cs-q[open] summary svg { transform: rotate(45deg); }
.cs-q summary:focus-visible { outline: 3px solid var(--cs-cyan); outline-offset: 2px; border-radius: 1rem; }
.cs-qa { padding: 0 1.2rem 1.1rem; font-size: .92rem; line-height: 1.7; color: rgba(220,229,240,.82); animation: cs-rise .35s var(--cs-ease) both; }
.cs-qa a { color: #7DD3FC; text-decoration: underline; }

/* ═════════ CTA ═════════ */
.cs-cta { position: relative; overflow: hidden; display: grid; gap: 1.4rem; align-items: center; padding: 2rem 1.6rem; border-radius: 1.4rem; background: radial-gradient(ellipse 600px 300px at 0% 0%, rgba(3,154,249,.55), transparent 65%), radial-gradient(ellipse 500px 260px at 100% 100%, rgba(123,26,250,.35), transparent 65%), linear-gradient(135deg, #0B2A5E, #0B1240); border: 1px solid rgba(255,255,255,.16); }
@media (min-width: 768px) { .cs-cta { grid-template-columns: auto 1fr auto; padding: 2.2rem 2.6rem; gap: 2rem; } }
.cs-cta-ico { width: 4.4rem; height: 4.4rem; border-radius: 1.2rem; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #039AF9, #7B1AFA); box-shadow: 0 0 0 6px rgba(3,154,249,.25), 0 14px 40px rgba(3,154,249,.45); }
.cs-cta-ico svg { width: 2.2rem; height: 2.2rem; }
.cs-cta h2 { margin: 0; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); font-weight: 900; line-height: 1.15; color: #fff; }
.cs-cta h2 .cs-hl { color: var(--cs-lime); }
.cs-cta h2 .cs-hl::after { background: var(--cs-sky); }
.cs-cta p { margin: .6rem 0 0; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.8); }

/* ═════════ REDUCED MOTION ═════════ */
@media (prefers-reduced-motion: reduce) {
  .cs-hero-copy > *, .cs-bar em i, .cs-n.is-run, .cs-n.is-gate, .cs-btn-p, .cs-run, .cs-gate, .cs-chip, .cs-count dd.flash { animation: none !important; }
  .js .cs-reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .cs-hl::after { transform: scaleX(1) !important; animation: none !important; }
  .cs-tabset [role="tabpanel"]:not([hidden]) { animation: none !important; }
  .cs-tab, .cs-lane, .cs-igrp, .cs-gcard, .cs-pstep, .cs-icard, .cs-ocard { transition: none; }
  .cs-cmp .bar i { transition: none; }
}

/* ═════════ HERO SCENE: the ticket sorting room (pictorial) ═════════ */
.csa { position: relative; width: 100%; max-width: 35rem; margin: 0 auto; padding: .5rem 0; }
.csa-glow { position: absolute; inset: 6% 0; border-radius: 50%; background: radial-gradient(circle, rgba(3,154,249,.5), rgba(123,26,250,.25) 50%, transparent 70%); filter: blur(38px); pointer-events: none; }
.csa-svg { position: relative; display: block; width: 100%; height: auto; border-radius: 1.9rem; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
/* the whole scene runs on one 15s clock so every effect lands when its envelope arrives */
.csa-belt { animation: csa-belt 1s linear infinite; }
@keyframes csa-belt { to { transform: translateX(20px); } }
.csa-roll { transform-box: fill-box; transform-origin: center; animation: csa-spin 1.4s linear infinite; }
@keyframes csa-spin { to { transform: rotate(360deg); } }
.csa-flow { animation: csa-dash 1.2s linear infinite; }
@keyframes csa-dash { to { stroke-dashoffset: -32; } }
.csa-hand { transform-box: view-box; animation: csa-tick 12s linear infinite; }
.csa-hand.h { animation-duration: 720s; } .csa-hand.m { animation-duration: 60s; }
.csa-hand { transform-origin: 0 0; }
@keyframes csa-tick { to { transform: rotate(360deg); } }
.csa-leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: csa-sway 4s ease-in-out infinite alternate; }
.csa-leaf.l2 { animation-duration: 5s; animation-direction: alternate-reverse; }
@keyframes csa-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.csa-bot { transform-box: fill-box; transform-origin: 50% 100%; animation: csa-breathe 3s ease-in-out infinite; }
@keyframes csa-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.02); } }
.csa-head { transform-box: fill-box; transform-origin: 50% 100%; animation: csa-tilt 4.4s ease-in-out infinite; }
@keyframes csa-tilt { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.csa-pupil { animation: csa-look 2.1s ease-in-out infinite alternate; }
@keyframes csa-look { from { transform: translateX(-2.6px); } to { transform: translateX(2.6px); } }
.csa-beacon { animation: csa-blink 1.6s ease-in-out infinite; }
@keyframes csa-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* scanner: bright while an envelope is under it (envelopes pass every 5s, 2.1s each) */
.csa-beam { animation: csa-scan 5s linear infinite; }
.csa-eyelens { animation: csa-scan 5s linear infinite; }
@keyframes csa-scan { 0%, 26% { opacity: 1; } 30%, 80% { opacity: .22; } 84%, 100% { opacity: 1; } }
.csa-sweep { animation: csa-sweep 1.05s ease-in-out infinite alternate; }
@keyframes csa-sweep { from { transform: translateY(0); } to { transform: translateY(40px); } }
.csa-think { transform-box: fill-box; transform-origin: 50% 100%; animation: csa-think 5s ease-in-out infinite; }
@keyframes csa-think { 0%, 26% { transform: scale(1.08); } 30%, 80% { transform: scale(.94); } 84%, 100% { transform: scale(1.08); } }

/* lane A: launch pad (envelope A is on the pad 70-82% of the cycle) */
.csa-pad { animation: csa-pad 15s linear infinite; }
@keyframes csa-pad { 0%, 66% { opacity: .35; } 70%, 82% { opacity: 1; } 86%, 100% { opacity: .35; } }
/* lane B: stamp thud while envelope B is on the desk (36.7-48.7%) */
.csa-stamp { animation: csa-stamp 15s linear infinite; }
@keyframes csa-stamp { 0%, 35.5% { transform: translateY(-4px); } 38.5%, 42% { transform: translateY(9px); } 46%, 100% { transform: translateY(-4px); } }
.csa-ok { transform-box: fill-box; transform-origin: center; opacity: 0; animation: csa-ok 15s linear infinite; }
@keyframes csa-ok { 0%, 38.5% { opacity: 0; transform: scale(.3); } 41%, 47% { opacity: 1; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(1); } }
/* lane C: siren and phone while envelope C is with the person (3.3-15.3%) */
.csa-siren { animation: csa-siren 15s linear infinite; }
@keyframes csa-siren { 0%, 2% { opacity: .25; } 4%, 15% { opacity: 1; } 18%, 100% { opacity: .25; } }
.csa-siren circle { animation: csa-pulse .7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes csa-pulse { from { transform: scale(.7); opacity: .15; } to { transform: scale(1.3); opacity: .5; } }
.csa-phone { transform-box: fill-box; transform-origin: 20% 90%; animation: csa-ring 15s linear infinite; }
@keyframes csa-ring { 0%, 3% { transform: rotate(0); } 5% { transform: rotate(-8deg); } 7% { transform: rotate(6deg); } 9% { transform: rotate(-7deg); } 11% { transform: rotate(5deg); } 13%, 100% { transform: rotate(0); } }
.csa.is-paused .csa-svg * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .csa-svg * { animation: none !important; } .csa-ok { opacity: 1; } }

/* ═════════ AI SUPPORT DASHBOARD (centrepiece) ═════════ */
.cs-chip.good { color: #BBF7D0; background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.45); }
.csd { margin-top: 2.2rem; border-radius: 1.4rem; overflow: hidden; background: linear-gradient(165deg, #0F1B55, #0A1236); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.csd-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .75rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.csd-bar b { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: #fff; }
.csd-bar b svg { width: 1.1rem; height: 1.1rem; color: var(--cs-sky); }
.csd-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--cs-green); }
.csd-live i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--cs-green); animation: cs-blink 1.8s ease-in-out infinite; }
.csd-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: rgba(255,255,255,.08); }
@media (min-width: 760px)  { .csd-grid { grid-template-columns: 17.5rem minmax(0, 1fr); } .csd-docs { grid-column: 1 / -1; } }
@media (min-width: 1140px) { .csd-grid { grid-template-columns: 17.5rem minmax(0, 1fr) 17rem; } .csd-docs { grid-column: auto; } }
.csd-inbox, .csd-main, .csd-docs { background: #0B1340; padding: 1rem; min-width: 0; }
.csd-main { display: grid; gap: .7rem; align-content: start; }
.js .csd:not(.is-live) .csd-grid { visibility: hidden; min-height: 46rem; }
.csd:not(.is-live) .cs-ctl, .csd:not(.is-live) .csd-tri, .csd:not(.is-live) #cs-run { display: none; }
.csd button:focus-visible, .csd input:focus-visible { outline: 3px solid var(--cs-cyan); outline-offset: 2px; }
.csd [data-scroll] { scroll-margin: 5rem 0 1.2rem; }
.csd-ih { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(200,205,235,.7); }
.csd-ih b { font-size: .8rem; letter-spacing: .02em; text-transform: none; color: #fff; }
.csd-ih span { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--cs-lime); }
.csd-ih svg { width: .8rem; height: .8rem; }
.csd-tri { width: 100%; justify-content: center; margin-bottom: .7rem; padding: .55rem 1rem; font-size: .8rem; }
.csd-tk { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.csd-t { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; padding: .5rem .6rem; border-radius: .8rem; text-align: left; color: #E8EAF6; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .2s, border-color .2s, transform .35s var(--cs-ease); }
.csd-t:hover { border-color: rgba(56,189,248,.7); }
.csd-t[aria-pressed="true"] { background: linear-gradient(135deg, rgba(3,154,249,.45), rgba(123,26,250,.32)); border-color: rgba(125,211,252,.95); }
.csd-t.is-scan { border-color: rgba(163,230,53,.9); box-shadow: 0 0 0 3px rgba(163,230,53,.15); }
.csd-t .av, .csd-rev .av { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #039AF9, #7B1AFA); }
.csd-t .tx { min-width: 0; }
.csd-t .tx b { display: block; font-size: .76rem; font-weight: 800; color: #fff; }
.csd-t .tx small { display: block; font-size: .66rem; color: rgba(200,205,235,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csd-t .rt { display: grid; gap: .25rem; justify-items: end; }
.csd-t .cs-tag { font-size: .54rem; padding: .12rem .5rem; }
.csd-pri { padding: .12rem .55rem; border-radius: 9999px; font-size: .58rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: rgba(200,205,235,.75); background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25); }
.csd-pri.u { color: #fff; background: #DC2626; border: 1px solid #FCA5A5; }
.csd-pri.h { color: #3A2600; background: var(--cs-amber); border: 1px solid #FDE68A; }
.csd-pri.m { color: #DBEAFE; background: rgba(74,143,255,.35); border: 1px solid rgba(147,197,253,.7); }
.csd-pri.l { color: #052E16; background: rgba(74,222,128,.75); border: 1px solid #86EFAC; }
.csd-pri.u, .csd-pri.h, .csd-pri.m, .csd-pri.l { animation: cs-pop .45s var(--cs-ease) both; }
.csd-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.csd-foot .cs-count { flex: 1 1 15rem; }
.csd-rev { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.csd-rev b { display: block; font-size: .78rem; color: #fff; } .csd-rev small { display: block; font-size: .64rem; color: rgba(253,230,138,.8); }
.cs-gate .csd-rev { justify-content: flex-start; }
.cs-gate .csd-rev + p::before { content: 'Needs your approval · '; }
.csd-ill { margin: 0; padding: .8rem 1.1rem 1rem; background: #0B1340; border-top: 1px solid rgba(255,255,255,.08); }

.csd-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
@media (min-width: 760px) and (max-width: 1139px) { .csd-dl { grid-template-columns: repeat(2, 1fr); } }
.csd-doc { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: .15rem .55rem; align-items: center; padding: .45rem .6rem; border-radius: .7rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: opacity .4s, border-color .4s, background .4s; }
.csd-doc .ty { padding: .1rem .4rem; border-radius: .3rem; font-size: .52rem; font-weight: 900; letter-spacing: .06em; color: #93C5FD; background: rgba(74,143,255,.2); }
.csd-doc .ty.live { color: #A5F3FC; background: rgba(0,229,232,.16); }
.csd-doc .nm { font-size: .74rem; font-weight: 800; color: #fff; }
.csd-doc .ps { display: none; grid-column: 1 / -1; margin: .25rem 0 0; padding: .35rem .5rem; border-left: 3px solid var(--cs-lime); border-radius: 0 .4rem .4rem 0; font-size: .7rem; line-height: 1.45; color: #ECFCCB; background: rgba(163,230,53,.12); }
.csd-doc.is-hit { border-color: rgba(163,230,53,.7); background: rgba(163,230,53,.06); }
.csd-doc.is-hit .ps { display: block; animation: cs-rise .45s var(--cs-ease) both; }
.csd-doc.is-dim { opacity: .38; }
.csd-doc.is-scan::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(56,189,248,.35), transparent); transform: translateX(-100%); animation: csd-sweep 1s ease-in-out infinite; }
@keyframes csd-sweep { to { transform: translateX(100%); } }
.csd-docs-note { margin: .7rem 0 0; font-size: .7rem; line-height: 1.45; color: rgba(200,205,235,.7); }
.csd-docs-note.is-ok { color: #BBF7D0; } .csd-docs-note.is-warn { color: #FDE68A; } .csd-docs-note.is-run { color: #7DD3FC; }

/* ═════════ MULTI-AGENT ARCHITECTURE ═════════ */
.csd-flow { gap: .5rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem !important; }
@media (min-width: 640px) { .csd-flow { grid-template-columns: repeat(4, 1fr); } }
.csd-flow > li { position: relative; display: flex; }
@media (min-width: 640px) { .csd-flow > li:not(:nth-child(4n))::after { content: ''; position: absolute; top: 50%; right: -.5rem; width: .5rem; height: 2px; background: rgba(125,211,252,.6); z-index: 1; } }
.csd-node { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 1rem; }
.csd-node .n { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 900; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25); }
.csd-node[aria-selected="true"] .n { background: #fff; color: #075985; border-color: #fff; }
.csd-node .nm { font-size: .84rem; font-weight: 800; line-height: 1.2; }
.csd-node .nm small { display: block; margin-top: .1rem; font-size: .66rem; font-weight: 600; color: rgba(200,205,235,.7); }
.csd-node[aria-selected="true"] .nm small { color: rgba(255,255,255,.85); }
.csd-ap { margin-top: 1.1rem; padding: 1.4rem 1.2rem; border-radius: 1.3rem; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 640px) { .csd-ap { padding: 1.7rem; } }
.csd-ap .hd { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.csd-ap .hd .ico { flex: none; width: 3rem; height: 3rem; border-radius: .95rem; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #039AF9, #7B1AFA); box-shadow: 0 10px 26px rgba(3,154,249,.4); }
.csd-ap .hd .ico svg { width: 1.5rem; height: 1.5rem; }
.csd-ap h3 { margin: 0; font-size: 1.3rem; font-weight: 900; color: #fff; }
.csd-ap .sum { margin: .3rem 0 0; font-size: .94rem; line-height: 1.6; color: rgba(220,229,240,.82); max-width: 44rem; }
.csd-spec { display: grid; gap: .7rem; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 720px) { .csd-spec { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .csd-spec { grid-template-columns: repeat(3, 1fr); } }
.csd-spec > div { padding: .8rem .95rem; border-radius: .95rem; background: rgba(6,12,30,.5); border: 1px solid rgba(255,255,255,.1); }
.csd-spec > div.gr { background: rgba(163,230,53,.08); border-color: rgba(163,230,53,.4); }
.csd-spec dt { margin-bottom: .3rem; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-sky); }
.csd-spec .gr dt { color: var(--cs-lime); }
.csd-spec dd { margin: 0; font-size: .84rem; line-height: 1.55; color: rgba(232,234,246,.92); }
.csd-shared { display: flex; gap: .7rem; margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.25); font-size: .86rem; line-height: 1.55; color: rgba(232,234,246,.9); }
.csd-shared svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--cs-sky); margin-top: .1rem; }
.csd-shared b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .csd-live i, .csd-pri, .csd-doc.is-scan::after, .csd-doc.is-hit .ps { animation: none !important; } .csd-t, .csd-doc { transition: none; } }
