/* CRM services extend the established ANT service layout. */
.crm-page .support-hero-art:has(.crm-blue-demo) { padding:0; background:#d3e5ff; border:0; overflow:hidden; border-radius:18px; }
.crm-blue-demo { width:100%; }
.crm-illustration { display:block; width:100%; height:auto; font-family:Onest,Arial,sans-serif; }
.crm-svg-title { font-size:20px; font-weight:600; fill:#305d99; }
.crm-svg-small { font-size:13px; fill:#5d82b4; }
.crm-svg-new-lead { animation:crm-blue-arrival 4.5s linear infinite!important; }
.crm-svg-crm-check { animation:crm-blue-check 4.5s linear infinite!important; }
.crm-svg-manager-check,.crm-svg-received { animation:crm-blue-received 4.5s linear infinite!important; }
.crm-svg-notification { transform-box:fill-box; transform-origin:center; animation:crm-blue-notify 4.5s linear infinite!important; }
.crm-svg-submit { animation:crm-blue-submit 4.5s linear infinite!important; }
@keyframes crm-blue-arrival { 0%,49% { opacity:.15; } 56%,94% { opacity:1; } 100% { opacity:.15; } }
@keyframes crm-blue-check { 0%,49% { opacity:0; } 55%,94% { opacity:1; } 100% { opacity:0; } }
@keyframes crm-blue-received { 0%,80% { opacity:0; } 86%,94% { opacity:1; } 100% { opacity:0; } }
@keyframes crm-blue-notify { 0%,80% { opacity:0; transform:scale(.7); } 86%,94% { opacity:1; transform:scale(1); } 100% { opacity:0; transform:scale(.7); } }
@keyframes crm-blue-submit { 0%,3%,25%,100% { fill:#ff870f; } 7%,20% { fill:#e66e00; } }
.crm-demo { width:100%; max-width:430px; margin:auto; }
.crm-demo-browser,.crm-demo-destination { overflow:hidden; border:1px solid var(--ant-border); border-radius:12px; background:var(--ant-surface); box-shadow:0 6px 18px #171a1706; }
.crm-demo-browser-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--ant-border); font-size:12px; color:var(--ant-text-muted); }
.crm-demo-dots { font-size:9px; letter-spacing:3px; color:#b8beb2; }
.crm-demo-browser-bar .icon { width:16px; height:16px; }
.crm-demo-form { padding:20px; }
.crm-demo-form-title { margin-bottom:16px; font-weight:600; font-size:17px; }
.crm-demo-field { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; padding:8px 12px; border:1px solid var(--ant-border); border-radius:8px; font-size:14px; }
.crm-demo-field small { font-size:11px; color:var(--ant-text-muted); }
.crm-demo-type { display:block; width:max-content; max-width:100%; animation:crm-type 6s linear infinite; }
.crm-demo-type--phone { animation-name:crm-phone; }
.crm-demo-submit { position:relative; display:grid; place-items:center; min-height:42px; margin-top:16px; border-radius:8px; background:#ff7900; color:#fff; font-size:14px; font-weight:600; }
.crm-demo-send,.crm-demo-sent { grid-area:1/1; }
.crm-demo-send { animation:crm-send 6s linear infinite; }
.crm-demo-sent { animation:crm-sent 6s linear infinite; }
.crm-demo-transfer { position:relative; height:128px; }
.crm-demo-track { position:absolute; left:50%; top:32px; bottom:0; border-left:1px dashed #bdc5b9; }
.crm-demo-track::after { content:''; position:absolute; bottom:3px; left:-4px; width:8px; height:8px; border-right:1px solid #a94600; border-bottom:1px solid #a94600; transform:rotate(45deg); }
.crm-demo-packet { position:absolute; top:32px; left:calc(50% - 87px); width:174px; height:44px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid #ff7900; border-radius:8px; background:#fff4e9; color:#a94600; font-size:12px; animation:crm-packet 6s linear infinite; box-shadow:0 4px 12px #a9460010; }
.crm-demo-packet strong,.crm-demo-packet small { display:block; font-size:11px; line-height:1.6; }
.crm-demo-packet strong { font-weight:600; }
.crm-demo-packet .icon { width:16px; height:16px; }
.crm-demo-transfer-label { position:absolute; top:7px; left:0; width:100%; font-size:12px; line-height:1.6; color:#a94600; text-align:center; }
.crm-demo-destination { padding:16px 20px; }
.crm-demo-destination-head { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; font-weight:600; }
.crm-demo-destination-head>span:first-child { display:flex; align-items:center; gap:8px; }
.crm-demo-destination-head .icon { width:18px; height:18px; color:#a94600; }
.crm-demo-connected { font-size:11px; font-weight:400; color:#42734e; }
.crm-demo-lead { display:flex; align-items:center; gap:10px; padding:14px 0; animation:crm-lead 6s linear infinite; }
.crm-demo-avatar { display:grid; place-items:center; flex:0 0 34px; height:34px; background:#fff0df; color:#a94600; border-radius:50%; font-size:14px; }
.crm-demo-lead strong { display:block; font-size:14px; font-weight:500; }
.crm-demo-lead small { display:block; margin-top:3px; font-size:11px; color:var(--ant-text-muted); }
.crm-demo-new { margin-left:auto; padding:4px 8px; border-radius:5px; background:#edf4ed; color:#42734e; font-size:11px; }
.crm-demo-receipt { display:grid; border-top:1px solid var(--ant-border); padding-top:12px; min-height:30px; font-size:12px; }
.crm-demo-receipt>span { grid-area:1/1; }
.crm-demo-wait { color:var(--ant-text-muted); animation:crm-wait 6s linear infinite; }
.crm-demo-success { color:#42734e; animation:crm-success 6s linear infinite; }
.crm-demo-caption { margin:16px 0 0; font-size:12px; line-height:1.6; color:var(--ant-text-muted); }
.crm-demo[data-paused=true] * { animation-play-state:paused!important; }
@keyframes crm-type { 0%,6% {clip-path:inset(0 100% 0 0)} 19%,93% {clip-path:inset(0)} 100% {clip-path:inset(0 100% 0 0)} }
@keyframes crm-phone { 0%,20% {clip-path:inset(0 100% 0 0)} 34%,93% {clip-path:inset(0)} 100% {clip-path:inset(0 100% 0 0)} }
@keyframes crm-send { 0%,38%,94%,100% {opacity:1} 42%,90% {opacity:0} }
@keyframes crm-sent { 0%,38%,94%,100% {opacity:0} 42%,90% {opacity:1} }
@keyframes crm-packet { 0%,38% {opacity:0;transform:translateY(0)} 42% {opacity:1;transform:translateY(0)} 60% {opacity:1;transform:translateY(46px)} 64%,100% {opacity:0;transform:translateY(46px)} }
@keyframes crm-lead { 0%,59%,100% {opacity:0;transform:translateY(7px)} 65%,91% {opacity:1;transform:translateY(0)} 96% {opacity:0;transform:translateY(0)} }
@keyframes crm-wait { 0%,59%,98%,100% {opacity:1} 65%,93% {opacity:0} }
@keyframes crm-success { 0%,59%,98%,100% {opacity:0} 65%,93% {opacity:1} }
@media(max-width:480px) { .crm-demo-form,.crm-demo-destination { padding:16px; } .crm-demo-toolbar { font-size:12px; } .crm-demo-form-title { font-size:16px; } }
@media(prefers-reduced-motion:reduce) {
 .crm-demo[data-motion=enabled] .crm-demo-type { animation:crm-type 6s linear infinite!important; }
 .crm-demo[data-motion=enabled] .crm-demo-type--phone { animation-name:crm-phone!important; }
 .crm-demo[data-motion=enabled] .crm-demo-send { animation:crm-send 6s linear infinite!important; }
 .crm-demo[data-motion=enabled] .crm-demo-sent { animation:crm-sent 6s linear infinite!important; }
 .crm-demo[data-motion=enabled] .crm-demo-packet { animation:crm-packet 6s linear infinite!important; }
 .crm-demo[data-motion=enabled] .crm-demo-lead { animation:crm-lead 6s linear infinite!important; }
 .crm-demo[data-motion=enabled] .crm-demo-wait { animation:crm-wait 6s linear infinite!important; }
 .crm-demo[data-motion=enabled] .crm-demo-success { animation:crm-success 6s linear infinite!important; }
 .crm-demo[data-motion=enabled][data-paused=true] * { animation-play-state:paused!important; }
 .crm-demo:not([data-motion=enabled]) * { animation:none!important; }
 .crm-demo:not([data-motion=enabled]) .crm-demo-send,.crm-demo:not([data-motion=enabled]) .crm-demo-wait,.crm-demo:not([data-motion=enabled]) .crm-demo-packet { display:none; }
 .crm-demo:not([data-motion=enabled]) .crm-demo-sent,.crm-demo:not([data-motion=enabled]) .crm-demo-lead,.crm-demo:not([data-motion=enabled]) .crm-demo-success { opacity:1; transform:none; }
}
.crm-page .support-hero-art { background:var(--ant-bg); border:1px solid var(--ant-border); padding:28px; }
.crm-flow { width:100%; max-width:440px; margin:auto; padding:8px; }
.crm-flow-kicker { margin-bottom:24px; font-size:13px; color:var(--ant-text-muted); }
.crm-flow-node { display:flex; align-items:center; gap:16px; padding:20px; background:var(--ant-surface); border:1px solid var(--ant-border); border-radius:12px; }
.crm-flow-node>.icon { width:28px; height:28px; color:#a94600; }
.crm-flow-node strong { display:block; font-size:23px; line-height:1.25; font-weight:500; }
.crm-flow-node small { display:block; margin-top:7px; font-size:14px; color:var(--ant-text-muted); }
.crm-flow-node--destination { border-color:#eac6a6; background:#fff4e9; }
.crm-flow-connector { width:1px; height:26px; margin-left:34px; background:#b7bdb2; }
.crm-flow-rule { display:flex; align-items:center; gap:12px; min-height:44px; padding-left:24px; font-size:14px; }
.crm-flow-rule .icon { width:21px; height:21px; color:var(--ant-text-muted); }
.crm-flow-note { margin-top:22px; max-width:350px; color:var(--ant-text-muted); font-size:13px; line-height:1.5; }
.crm-data-section { background:var(--ant-surface); }
.crm-table-scroll { overflow-x:auto; border:1px solid var(--ant-border); border-radius:12px; }
.crm-data-table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.6; text-align:left; }
.crm-data-table .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.crm-data-table th,.crm-data-table td { padding:20px; vertical-align:top; }
.crm-data-table thead { background:var(--ant-bg); }
.crm-data-table th { font-weight:500; }
.crm-data-table tbody tr { border-top:1px solid var(--ant-border); }
.crm-data-table td:last-child { color:var(--ant-text-muted); }
.crm-data-table th,.crm-data-table td { width:33.333%; }
.crm-doc-link,.crm-parent-link { margin-top:20px; font-size:14px; }
.crm-doc-link a,.crm-parent-link a { text-decoration:underline; text-underline-offset:4px; }
.crm-system-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.crm-system-card { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:24px; border:1px solid var(--ant-border); border-radius:12px; background:var(--ant-surface); transition:background-color .18s,border-color .18s; }
.crm-system-name { font-size:23px; font-weight:500; line-height:1.3; }
.crm-system-heading { display:flex; align-items:center; gap:12px; }
.crm-system-logo { display:block; flex:0 0 32px; width:32px; height:32px; object-fit:contain; border-radius:4px; }
.crm-data-note { margin-top:20px; max-width:900px; font-size:14px; line-height:1.65; color:var(--ant-text-muted); }
.crm-data-section--examples .crm-data-table tbody th { font-weight:600; }
.crm-data-section--examples .crm-data-table tbody tr:nth-child(even) { background:var(--ant-bg); }
.crm-system-desc { margin:14px 0 24px; font-size:15px; line-height:1.6; color:var(--ant-text-muted); }
.crm-system-action { display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin-top:auto; padding:10px 12px; border:1px solid var(--ant-border); border-radius:10px; background:var(--ant-surface); color:var(--ant-text); font-size:14px; font-weight:600; line-height:1.4; text-align:center; transition:background-color .18s,border-color .18s,color .18s; }
.crm-system-card:hover .crm-system-action,.crm-system-card:focus-visible .crm-system-action { border-color:#ff7900; background:#fff4e9; color:#a94600; }
.crm-system-card:hover { background:var(--ant-bg); border-color:#b8beb2; }
.crm-system-card:focus-visible { outline:2px solid #a94600; outline-offset:3px; }
.crm-choice { margin-top:20px; }
.crm-choice select { width:100%; min-width:0; min-height:48px; background:var(--ant-surface); color:var(--ant-text); border:0; padding:10px; border-radius:8px; }
@media(max-width:1100px) { .crm-system-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .crm-page .support-hero-art { padding:20px; } .crm-data-table { min-width:600px; } .crm-data-table th,.crm-data-table td { padding:16px; } }
@media(max-width:480px) { .crm-system-grid { grid-template-columns:1fr; } .crm-flow { padding:0; } .crm-flow-node { padding:16px; gap:12px; } .crm-flow-node strong { font-size:21px; } .crm-flow-rule { padding-left:16px; } }
@media(max-width:760px) {
 .crm-data-section--examples .crm-table-scroll { overflow:visible; border:0; border-radius:0; }
 .crm-data-section--examples .crm-data-table { display:block; min-width:0; }
 .crm-data-section--examples .crm-data-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .crm-data-section--examples .crm-data-table tbody { display:grid; gap:16px; }
 .crm-data-section--examples .crm-data-table tbody tr { display:block; padding:20px; border:1px solid var(--ant-border); border-radius:12px; background:var(--ant-surface); }
 .crm-data-section--examples .crm-data-table tbody th,.crm-data-section--examples .crm-data-table tbody td { display:block; width:auto; padding:0; }
 .crm-data-section--examples .crm-data-table tbody td { margin-top:16px; }
 .crm-data-section--examples .crm-data-table tbody th::before,.crm-data-section--examples .crm-data-table tbody td::before { content:attr(data-label); display:block; margin-bottom:4px; color:var(--ant-text-muted); font-size:12px; font-weight:400; }
}
@media(prefers-reduced-motion:reduce) { .crm-system-card,.crm-system-action { transition:none; } }
