/* Scallex AI layer (WO-020) · loads after scallex-theme.css · uses the approved Enterprise Clarity tokens.
   Signature element: the "workflow trace" (input → AI step → person approves → result). Everything else reuses theme components. */
:root{--ai-deep:#0b1a5c;--ai-line:rgba(126,231,255,.35)}

/* ---------- Top-level "Scallex AI" nav item ---------- */
body.ux-shell-v1 .ux-ai-nav .nav-label .ai-mark{width:14px;height:14px;color:var(--t-cyan,#00a9c7);flex:0 0 auto;margin-right:.1rem}
body.ux-shell-v1 .ux-ai-nav .nav-label{display:inline-flex;align-items:center;gap:.3rem}
@media(min-width:901px){
  body.ux-shell-v1 .ux-ai-menu{width:min(1000px,calc(100vw - 48px));left:50%;transform:translateX(-38%);padding:0;overflow:hidden;border-radius:20px}
  body.ux-shell-v1 .ux-ai-menu .ux-ai-menu-grid{display:grid;grid-template-columns:1.05fr 1.25fr .9fr;gap:0}
  body.ux-shell-v1 .ux-ai-menu .ux-menu-group{padding:1.25rem 1.1rem}
  body.ux-shell-v1 .ux-ai-menu .ux-ai-uc{border-left:1px solid var(--t-line,#e6e9f0)}
  body.ux-shell-v1 .ux-ai-menu .ux-ai-uc-list{display:grid;grid-template-columns:1fr 1fr;gap:.1rem .3rem}
}
body.ux-shell-v1 .ux-ai-menu .ux-ai-uc-list a{display:flex;align-items:center;gap:.6rem;padding:.55rem .6rem;font-size:.9rem}
body.ux-shell-v1 .ux-ai-menu .ux-ai-uc-list .ux-service-symbol{width:32px;height:32px;border-radius:10px}
body.ux-shell-v1 .ux-ai-menu .ux-ai-uc-list .ux-service-symbol svg{width:17px;height:17px}
body.ux-shell-v1 .ux-ai-menu .ux-ai-more{display:block;margin:.5rem .6rem 0;padding:.6rem 0 0;border-top:1px solid var(--t-line,#e6e9f0);font-size:.86rem;font-weight:700;color:var(--t-blue,#3e64c8)}
body.ux-shell-v1 .ux-ai-cta-panel{background:radial-gradient(420px 220px at 90% 0%,rgba(0,169,199,.28),transparent 60%),linear-gradient(160deg,#13226a,#1d3493);color:#fff;padding:1.5rem 1.35rem!important;display:flex;flex-direction:column;gap:.7rem}
body.ux-shell-v1 .ux-ai-cta-panel .menu-heading{color:#bfe9f3!important}
body.ux-shell-v1 .ux-ai-cta-panel strong{font-size:1.12rem;line-height:1.3;color:#fff}
body.ux-shell-v1 .ux-ai-cta-panel p{margin:0;font-size:.9rem;line-height:1.55;color:rgba(255,255,255,.84)}
body.ux-shell-v1 .dropdown-menu .ux-ai-cta-panel a.ux-ai-cta-btn{display:inline-flex;justify-content:center;background:#fff;color:#15266f;border-radius:10px;padding:.7rem 1rem;font-weight:800;margin-top:.3rem}
body.ux-shell-v1 .dropdown-menu .ux-ai-cta-panel a.ux-ai-cta-btn:hover,body.ux-shell-v1 .dropdown-menu .ux-ai-cta-panel a.ux-ai-cta-btn:focus-visible{background:#e8f8fc;color:#15266f}
body.ux-shell-v1 .dropdown-menu .ux-ai-cta-panel a.ux-ai-cta-link{color:#fff;padding:.35rem 0;font-size:.88rem;font-weight:600;text-decoration:underline;text-underline-offset:3px;background:none}
body.ux-shell-v1 .dropdown-menu .ux-ai-cta-panel a.ux-ai-cta-link:hover{background:none;color:#bfe9f3}
@media(max-width:900px){
  body.ux-shell-v1 .ux-ai-menu .ux-ai-menu-grid{display:grid;grid-template-columns:1fr;gap:.4rem}
  body.ux-shell-v1 .ux-ai-cta-panel{border-radius:14px;margin:.4rem .2rem}
}

/* ---------- AI page hero: copy + illustration ---------- */
body.ux-shell-v1 .page-hero.ai-hero{background:radial-gradient(1000px 520px at 90% -10%,rgba(0,169,199,.26),transparent 60%),linear-gradient(160deg,#0b1a5c 0%,#15266f 45%,#1d3493 100%)!important;padding:clamp(3.5rem,7vw,5.5rem) 0}
body.ux-shell-v1 .ai-hero .ai-hero-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:clamp(2rem,4vw,3.5rem);align-items:center}
body.ux-shell-v1 .ai-hero h1{max-width:18ch}
body.ux-shell-v1 .ai-hero-art{margin:0;border-radius:18px;overflow:hidden;box-shadow:0 30px 70px rgba(2,8,40,.45);border:1px solid rgba(255,255,255,.14)}
body.ux-shell-v1 .ai-hero-art img{display:block;width:100%;height:auto}
body.ux-shell-v1 .ai-hero .ai-kicker{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;margin:1.4rem 0 0;padding:0;list-style:none;font-size:.9rem;color:rgba(255,255,255,.8)}
body.ux-shell-v1 .ai-hero .ai-kicker li{display:flex;align-items:center;gap:.45rem}
body.ux-shell-v1 .ai-hero .ai-kicker li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--t-cyan,#00a9c7)}
@media(max-width:980px){body.ux-shell-v1 .ai-hero .ai-hero-grid{grid-template-columns:1fr}body.ux-shell-v1 .ai-hero-art{max-width:640px}}

/* ---------- Workflow trace (signature) ---------- */
body.ux-shell-v1 .ai-trace{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;counter-reset:trace;position:relative}
body.ux-shell-v1 .ai-trace::before{content:"";position:absolute;left:calc(12.5% + 6px);right:calc(12.5% + 6px);top:27px;height:2px;background:repeating-linear-gradient(90deg,var(--t-cyan,#00a9c7) 0 6px,transparent 6px 14px)}
body.ux-shell-v1 .ai-trace li{position:relative;text-align:center;padding:0 1rem;counter-increment:trace}
body.ux-shell-v1 .ai-trace .ai-step-dot{position:relative;z-index:1;width:56px;height:56px;margin:0 auto 1rem;border-radius:16px;display:grid;place-items:center;background:#fff;border:1px solid var(--t-line,#e6e9f0);box-shadow:0 10px 24px rgba(16,24,40,.07);color:var(--t-brand,#1d3493)}
body.ux-shell-v1 .ai-trace .ai-step-dot svg{width:26px;height:26px}
body.ux-shell-v1 .ai-trace li.is-ai .ai-step-dot{background:linear-gradient(150deg,#1d3493,#0b1a5c);color:#7ee7ff;border-color:transparent}
body.ux-shell-v1 .ai-trace li.is-human .ai-step-dot{background:#fff;color:#0f766e;border:2px solid #14b8a6;box-shadow:0 0 0 6px rgba(20,184,166,.12)}
body.ux-shell-v1 .ai-trace .ai-step-label{display:block;font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--t-blue,#3e64c8);margin-bottom:.35rem}
body.ux-shell-v1 .ai-trace li.is-human .ai-step-label{color:#0f766e}
body.ux-shell-v1 .ai-trace .ai-step-label::before{content:counter(trace) ". "}
body.ux-shell-v1 .ai-trace strong{display:block;color:var(--t-ink,#101828);font-size:1.02rem;line-height:1.35;margin-bottom:.3rem}
body.ux-shell-v1 .ai-trace p{margin:0 auto;font-size:.93rem;line-height:1.55;color:var(--t-muted,#667085);max-width:26ch}
body.ux-shell-v1 .ai-trace-panel{background:#fff;border:1px solid var(--t-line,#e6e9f0);border-radius:18px;padding:clamp(1.6rem,3vw,2.4rem) clamp(1rem,2vw,1.6rem)}
@media(max-width:760px){
  body.ux-shell-v1 .ai-trace{grid-template-columns:1fr;gap:1.4rem}
  body.ux-shell-v1 .ai-trace::before{left:27px;right:auto;top:28px;bottom:28px;width:2px;height:auto;background:repeating-linear-gradient(180deg,var(--t-cyan,#00a9c7) 0 6px,transparent 6px 14px)}
  body.ux-shell-v1 .ai-trace li{display:grid;grid-template-columns:56px 1fr;column-gap:1rem;text-align:left;padding:0}
  body.ux-shell-v1 .ai-trace .ai-step-dot{margin:0;grid-row:span 3}
  body.ux-shell-v1 .ai-trace p{margin:0;max-width:none}
}

/* ---------- Cards and lists inside AI pages ---------- */
body.ux-shell-v1 .ai-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
body.ux-shell-v1 .ai-card-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){body.ux-shell-v1 .ai-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body.ux-shell-v1 .ai-card-grid,body.ux-shell-v1 .ai-card-grid.cols-2{grid-template-columns:1fr}}
body.ux-shell-v1 .ai-card-grid .case-card{display:flex;flex-direction:column;text-decoration:none}
body.ux-shell-v1 .ai-card-grid .case-media img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover}
body.ux-shell-v1 .ai-card-grid .post-read{margin-top:auto;padding-top:.6rem;font-weight:700;color:var(--t-blue,#3e64c8);font-size:.93rem}
body.ux-shell-v1 .ai-uc-chips{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;padding:0;margin:1.4rem 0 0}
body.ux-shell-v1 .ai-uc-chips a{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .9rem;border:1px solid var(--t-line,#e6e9f0);border-radius:999px;background:#fff;font-weight:600;font-size:.93rem;color:var(--t-ink,#101828);text-decoration:none}
body.ux-shell-v1 .ai-uc-chips a:hover,body.ux-shell-v1 .ai-uc-chips a:focus-visible{border-color:#cdd7f0;color:var(--t-brand,#1d3493)}
body.ux-shell-v1 .ai-uc-chips svg{width:18px;height:18px;color:var(--t-blue,#3e64c8)}
body.ux-shell-v1 .ai-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,4vw,3.5rem);align-items:start}
@media(max-width:900px){body.ux-shell-v1 .ai-split{grid-template-columns:1fr}}
body.ux-shell-v1 .ai-fit{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
body.ux-shell-v1 .ai-fit > div{border:1px solid var(--t-line,#e6e9f0);border-radius:14px;padding:1.3rem 1.4rem;background:#fff}
body.ux-shell-v1 .ai-fit h3{font-size:1.02rem;margin:0 0 .6rem}
body.ux-shell-v1 .ai-fit ul{margin:0;padding-left:1.1rem}
body.ux-shell-v1 .ai-fit li{margin:.3rem 0;font-size:.97rem}
body.ux-shell-v1 .ai-fit .ai-fit-no{background:var(--t-soft,#f6f8fc)}
@media(max-width:640px){body.ux-shell-v1 .ai-fit{grid-template-columns:1fr}}
body.ux-shell-v1 .ai-note{font-size:.92rem;color:var(--t-muted,#667085);border-left:3px solid var(--t-line,#e6e9f0);padding-left:1rem;margin-top:1.4rem}

/* ---------- Offer/form panel helpers (unused after rev 3; kept for future AI forms) ---------- */
body.ux-shell-v1 .ai-offer-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(2rem,4vw,3.5rem);align-items:start}
@media(max-width:960px){body.ux-shell-v1 .ai-offer-grid{grid-template-columns:1fr}}
body.ux-shell-v1 .ai-offer-grid .form-card{border:1px solid var(--t-line,#e6e9f0);border-radius:18px;background:#fff;padding:clamp(1.3rem,3vw,2rem);box-shadow:0 20px 50px rgba(16,24,40,.07)}
body.ux-shell-v1 .lead-form select{width:100%;font:inherit;padding:.75rem .85rem;border:1px solid #cfd8ea;border-radius:10px;background:#fff;color:var(--t-ink,#101828)}
body.ux-shell-v1 .ai-receive{list-style:none;padding:0;margin:1.2rem 0 0;display:grid;gap:.85rem}
body.ux-shell-v1 .ai-receive li{display:grid;grid-template-columns:28px 1fr;gap:.7rem;align-items:start}
body.ux-shell-v1 .ai-receive li::before{content:"";width:22px;height:22px;margin-top:.2rem;border-radius:50%;background:#14b8a6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat}

/* ---------- Homepage band: Managed IT + Scallex AI ---------- */
body.ux-shell-v1 .ux-home-ai{background:radial-gradient(900px 480px at 92% 0%,rgba(0,169,199,.22),transparent 60%),linear-gradient(160deg,#0b1a5c 0%,#15266f 50%,#1d3493 100%);color:#fff;padding:clamp(4rem,8vw,6.5rem) 0}
body.ux-shell-v1 .ux-home-ai h2{color:#fff!important;font-size:clamp(1.8rem,3.4vw,2.6rem);line-height:1.12;font-weight:800;letter-spacing:-.02em;max-width:18ch}
body.ux-shell-v1 .ux-home-ai .section-heading p,body.ux-shell-v1 .ux-home-ai p{color:rgba(255,255,255,.84)}
body.ux-shell-v1 .ux-home-ai .ai-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,4vw,3.5rem);align-items:center}
body.ux-shell-v1 .ux-home-ai .ai-pair{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.8rem 0}
body.ux-shell-v1 .ux-home-ai .ai-pair > div{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);border-radius:14px;padding:1.2rem 1.25rem}
body.ux-shell-v1 .ux-home-ai .ai-pair h3{color:#fff;font-size:1.05rem;margin:0 0 .5rem}
body.ux-shell-v1 .ux-home-ai .ai-pair ul{margin:0;padding-left:1.05rem;color:rgba(255,255,255,.84);font-size:.95rem;line-height:1.6}
body.ux-shell-v1 .ux-home-ai .ai-pair .ai-pair-ai{border-color:rgba(126,231,255,.45);background:rgba(0,169,199,.10)}
body.ux-shell-v1 .ux-home-ai .ai-home-art{margin:0;border-radius:18px;overflow:hidden;box-shadow:0 30px 70px rgba(2,8,40,.45);border:1px solid rgba(255,255,255,.14)}
body.ux-shell-v1 .ux-home-ai .ai-home-art img{display:block;width:100%;height:auto}
body.ux-shell-v1 .ux-home-ai .ai-home-links{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:1.2rem 0 0;padding:0;list-style:none;font-size:.93rem}
body.ux-shell-v1 .ux-home-ai .ai-home-links a{color:#bfe9f3;font-weight:600}
@media(max-width:960px){body.ux-shell-v1 .ux-home-ai .ai-home-grid{grid-template-columns:1fr}}
@media(max-width:560px){body.ux-shell-v1 .ux-home-ai .ai-pair{grid-template-columns:1fr}}

/* ---------- Footer: sixth column ---------- */
@media(min-width:1181px){body.ux-shell-v1 .ux-footer-grid.has-ai-col{grid-template-columns:1.3fr repeat(5,minmax(0,1fr));gap:1.4rem}}
@media(min-width:621px) and (max-width:1180px){body.ux-shell-v1 .ux-footer-grid.has-ai-col{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media (prefers-reduced-motion:reduce){body.ux-shell-v1 .ai-uc-chips a{transition:none}}
/* Compact trace: always vertical (used beside the Discovery form) */
body.ux-shell-v1 .ai-trace-compact{padding:1.4rem 1.3rem;margin-top:1.6rem}
body.ux-shell-v1 .ai-trace-compact .ai-trace{grid-template-columns:1fr;gap:1.1rem}
body.ux-shell-v1 .ai-trace-compact .ai-trace::before{left:23px;right:auto;top:24px;bottom:24px;width:2px;height:auto;background:repeating-linear-gradient(180deg,var(--t-cyan,#00a9c7) 0 6px,transparent 6px 14px)}
body.ux-shell-v1 .ai-trace-compact .ai-trace li{display:grid;grid-template-columns:48px 1fr;column-gap:.9rem;text-align:left;padding:0}
body.ux-shell-v1 .ai-trace-compact .ai-step-dot{width:48px;height:48px;margin:0;grid-row:span 3;border-radius:14px}
body.ux-shell-v1 .ai-trace-compact .ai-step-dot svg{width:22px;height:22px}
body.ux-shell-v1 .ai-trace-compact .ai-trace p{margin:0;max-width:none}
body.ux-shell-v1 .ai-card-grid .ai-also-card{background:var(--t-soft,#f6f8fc)!important;border-style:dashed!important}
body.ux-shell-v1 .ai-also-card .case-body{display:flex;flex-direction:column;height:100%;gap:.2rem}
body.ux-shell-v1 .ai-also-card .ux-service-symbol{margin-bottom:.9rem}
/* Header fit with the extra top-level item (measured 1181–1440 px) */
@media(min-width:1181px){
  body.ux-shell-v1 .ux-navbar .nav-container{width:min(1280px,calc(100% - 32px))}
  body.ux-shell-v1 .ux-navbar .nav-menu>li>a,body.ux-shell-v1 .ux-navbar .nav-label{padding-left:.42rem;padding-right:.42rem}
}
@media(min-width:1181px) and (max-width:1300px){
  body.ux-shell-v1 .ux-navbar .nav-menu>li>a,body.ux-shell-v1 .ux-navbar .nav-label{font-size:.84rem;padding-left:.32rem;padding-right:.32rem}
  body.ux-shell-v1 .ux-navbar .brand-link img{width:156px}
  body.ux-shell-v1 .ux-navbar .desktop-cta{padding-left:1rem;padding-right:1rem}
}
@media(min-width:1181px) and (max-width:1240px){
  body.ux-shell-v1 .ux-navbar .nav-container{gap:.35rem;width:calc(100% - 24px)}
  body.ux-shell-v1 .ux-navbar .desktop-phone{font-size:.84rem}
}
body.ux-shell-v1 .ux-ai-menu .ux-ai-guides-h{margin-top:1rem!important;padding-top:1rem;border-top:1px solid var(--t-line,#e6e9f0)}
body.ux-shell-v1 .ux-ai-menu .ux-ai-guides{display:grid;grid-template-columns:1fr 1fr;gap:0 .3rem}
body.ux-shell-v1 .dropdown-menu .ux-ai-guides a{padding:.45rem .6rem;font-size:.86rem;font-weight:600;color:var(--t-body,#3b4660)}
@media(max-width:900px){body.ux-shell-v1 .ux-ai-menu .ux-ai-guides{grid-template-columns:1fr}}
body.ux-shell-v1 .ux-ai-menu .ux-ai-uc-list strong{font-weight:650;font-size:.88rem;line-height:1.3;color:inherit}
/* Vertical trace: per-step connectors so the line stops at the last step */
@media(max-width:760px){
  body.ux-shell-v1 .ai-trace::before{display:none}
  body.ux-shell-v1 .ai-trace li{position:relative}
  body.ux-shell-v1 .ai-trace li::after{content:"";position:absolute;left:27px;top:62px;bottom:-1.25rem;width:2px;background:repeating-linear-gradient(180deg,var(--t-cyan,#00a9c7) 0 6px,transparent 6px 14px)}
  body.ux-shell-v1 .ai-trace li:last-child::after{display:none}
}
body.ux-shell-v1 .ai-trace-compact .ai-trace::before{display:none}
body.ux-shell-v1 .ai-trace-compact .ai-trace li{position:relative}
body.ux-shell-v1 .ai-trace-compact .ai-trace li::after{content:"";position:absolute;left:23px;top:54px;bottom:-1rem;width:2px;background:repeating-linear-gradient(180deg,var(--t-cyan,#00a9c7) 0 6px,transparent 6px 14px)}
body.ux-shell-v1 .ai-trace-compact .ai-trace li:last-child::after{display:none}
body.ux-shell-v1 .page-hero.ai-hero .ai-kicker li{color:rgba(255,255,255,.88)!important}
/* Article helpers */
body.ux-shell-v1 .ai-table-wrap{overflow-x:auto;border:1px solid var(--t-line,#e6e9f0);border-radius:14px;background:#fff;margin:1.4rem 0}
body.ux-shell-v1 .ai-table{width:100%;border-collapse:collapse;font-size:.96rem;min-width:640px}
body.ux-shell-v1 .ai-table th,body.ux-shell-v1 .ai-table td{text-align:left;vertical-align:top;padding:.85rem 1rem;border-bottom:1px solid var(--t-line,#e6e9f0)}
body.ux-shell-v1 .ai-table thead th{background:var(--t-soft,#f6f8fc);color:var(--t-ink,#101828);font-weight:700}
body.ux-shell-v1 .ai-table tbody th{color:var(--t-ink,#101828);font-weight:700;width:22%}
body.ux-shell-v1 .ai-table tr:last-child td,body.ux-shell-v1 .ai-table tr:last-child th{border-bottom:0}
body.ux-shell-v1 .ai-template{border:1px solid var(--t-line,#e6e9f0);border-left:4px solid var(--t-cyan,#00a9c7);border-radius:14px;background:#fff;padding:clamp(1.3rem,3vw,2rem);margin:1.4rem 0}
body.ux-shell-v1 .ai-template h3{font-size:1.05rem;margin:1.4rem 0 .4rem}
body.ux-shell-v1 .ai-template h3:first-child{margin-top:0}
body.ux-shell-v1 .ai-template p,body.ux-shell-v1 .ai-template li{font-size:1rem}
body.ux-shell-v1 .ai-checklist{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.7rem}
body.ux-shell-v1 .ai-checklist li{display:grid;grid-template-columns:28px 1fr;gap:.6rem}
body.ux-shell-v1 .ai-checklist li::before{content:"";width:20px;height:20px;margin-top:.25rem;border-radius:6px;border:2px solid #14b8a6}
body.ux-shell-v1 .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
