/* Local AI captions: desktop/tablets and the separately requested phone portrait. */
@media(min-width:761px) and (hover:hover) and (pointer:fine),
      (min-width:761px) and (min-height:601px){
 .service-visual-ai .service-diagram :is(.ai-source-check,.ai-fallback-note){font-size:16px}
 .service-visual-ai .build-bay-status b{font-size:13px}
}
@media(orientation:portrait) and (max-width:760px){
 .service-visual-ai .ai-mobile-graphic>p{font-size:13px}
 .service-visual-ai .build-bay-status b{font-size:11px}
}

/* Anchor both routes to the core itself, not a percentage of the whole panel.
   70px spans the 28px grid gap plus half of the 250px/168px column difference. */
.service-ai .ai-trace:before,.service-ai .ai-trace:after,.service-ai .ai-trace-answer:after{display:none}
.ai-trace-connector{position:absolute;top:calc(50% - 1px);width:70px;height:2px;background:repeating-linear-gradient(90deg,#6fdfe9 0 2px,transparent 2px 7px);opacity:.78;pointer-events:none}
.ai-trace-connector-left{left:-70px;background-image:repeating-linear-gradient(270deg,#6fdfe9 0 2px,transparent 2px 7px)}
.ai-trace-connector-right{right:-70px}
.ai-trace-connector:after{content:"";position:absolute;top:-4px;left:0;width:10px;height:10px;border-radius:50%;background:#a0f7fa;box-shadow:0 0 16px #62dfeb;animation:ai-trace-centred-packet 4.5s ease-in-out infinite}
.ai-trace-connector-right:after{animation-delay:2s}
@keyframes ai-trace-centred-packet{0%,12%{left:0;opacity:0}22%,75%{opacity:1}95%,100%{left:calc(100% - 10px);opacity:0}}
@media(max-width:1100px){.ai-trace-connector{display:none}}
@media(prefers-reduced-motion:reduce){.ai-trace-connector:after{animation:none;opacity:0}}

/* One continuous circular path gives 88 equal dashes/gaps, including its seam. */
.service-ai .ai-trace-core{border-color:transparent}
.service-ai .ai-trace-ring{position:absolute;inset:-1px;display:block;width:calc(100% + 2px);height:calc(100% + 2px);pointer-events:none}
.ai-trace-ring circle{vector-effect:non-scaling-stroke}

/* Workspace: equal icon boxes, separate inbox rows and readable source notes. */
.service-ai .ai-workspace-nav>b{align-items:center}
.service-ai .ai-workspace-nav .ai-nav-icon{display:block;flex:0 0 18px;width:18px;height:18px}
.service-ai .ai-workspace-nav>b>span{min-width:0;line-height:1.4}
.service-ai .ai-inbox-item{border:0;box-shadow:none;line-height:1.4}
.service-ai .ai-inbox-filters+.ai-inbox-item{margin-top:8px}
.service-ai .ai-inbox-item+.ai-inbox-item{margin-top:8px}
.service-ai .ai-nav-foot strong{color:#628c9c;font-weight:400;line-height:1.45}
.service-ai .ai-conversation-source{font-size:11px}

/* Workspace follow-up: +1px captions and a proportional search icon. */
.service-ai .ai-conversation-source{font-size:12px}
.service-ai .ai-conversation-head>span{font-size:12px}
.service-ai .ai-inbox-search .ai-search-icon{display:block;flex:0 0 1.25em;width:1.25em;height:1.25em}

/* Workspace brand: a further 20% increase, with a tighter icon/text gap. */
.service-ai .ai-workspace-brand{gap:6px}
.service-ai .ai-workspace-brand img{width:64.8px;height:64.8px}
@media(max-width:760px){.service-ai .ai-workspace-brand img{width:50.4px;height:50.4px}}

/* Trace details: requested type adjustments; card interactions stay unchanged. */
.service-ai .ai-trace-question p{font-size:22px}
.service-ai .ai-trace-checks span{font-size:14px}
@media(max-width:760px){.service-ai .ai-trace-question p{font-size:19px}}
