/* Autonomous edge-only movements; never over text, controls or a video frame. */
body[data-sar-finish] [data-sar-motion]{position:relative;isolation:isolate;min-width:0}
body[data-sar-finish] .sar-motion-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none!important;z-index:2;user-select:none}
.sar-motion-frame *{pointer-events:none!important}
.sar-motion-frame path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.sar-motion-track{stroke:#baa894;stroke-width:1.15;stroke-opacity:.62}
.sar-motion-ray{stroke:#e37b2b;stroke-width:2.65;animation:sar-frame-orbit var(--ray-duration,12s) linear var(--ray-delay,0s) infinite}
.sar-motion-soft{stroke:#e4a15b;stroke-width:5;opacity:.13}
.sar-motion-frame[data-kind=shuttle] .sar-motion-ray{animation-name:sar-frame-shuttle;animation-timing-function:cubic-bezier(.4,0,.35,1);animation-direction:alternate}
.sar-motion-frame[data-kind=corners] .sar-motion-ray{animation-name:sar-frame-corner;animation-timing-function:ease-in-out;stroke-width:2.8}
.sar-motion-frame[data-running=false] .sar-motion-ray{animation-play-state:paused}
.sar-motion-frame[data-static=true] .sar-motion-ray{display:none}
.sar-motion-frame[hidden]{display:none!important}
/* Legacy SAR pause rules cancel descendant animations. Preserve these clocks instead. */
#thera-sar-editoriale[data-filo-reading] .sar-study[data-paused=true] .sar-motion-frame .sar-motion-ray{
 animation:sar-frame-orbit var(--ray-duration,12s) linear var(--ray-delay,0s) infinite!important;
 animation-play-state:paused!important;
}
#thera-sar-editoriale[data-filo-reading] .sar-study[data-paused=true] .sar-motion-frame[data-kind=shuttle] .sar-motion-ray{
 animation:sar-frame-shuttle var(--ray-duration,12s) cubic-bezier(.4,0,.35,1) var(--ray-delay,0s) infinite alternate!important;
 animation-play-state:paused!important;
}
#thera-sar-editoriale[data-filo-reading] .sar-study[data-paused=true] .sar-motion-frame[data-kind=corners] .sar-motion-ray{
 animation:sar-frame-corner var(--ray-duration,12s) ease-in-out var(--ray-delay,0s) infinite!important;
 animation-play-state:paused!important;
}
@keyframes sar-frame-orbit{from{stroke-dashoffset:var(--ray-from)}to{stroke-dashoffset:var(--ray-to)}}
@keyframes sar-frame-shuttle{from{stroke-dashoffset:var(--ray-from)}to{stroke-dashoffset:var(--ray-to)}}
@keyframes sar-frame-corner{
 0%,12%{stroke-dashoffset:var(--ray-from);opacity:0}
 30%{opacity:var(--ray-opacity)}
 68%{opacity:var(--ray-opacity)}
 90%,100%{stroke-dashoffset:var(--ray-to);opacity:0}
}
/* Replace the former reading rail with a dedicated frame around the real video. */
#thera-sar-editoriale[data-filo-reading] .target-confirmation{padding-left:0}
#thera-sar-editoriale[data-filo-reading] .target-confirmation .v2-reading-instrument[data-sar-motion]{padding:9px;border-radius:20px}
#thera-sar-editoriale[data-filo-reading] .target-confirmation .v2-player{border-radius:12px}
@media(max-width:699px){
 .sar-motion-ray{stroke-width:2.05}
 .sar-motion-frame[data-kind=corners] .sar-motion-ray{stroke-width:2.15}
 .sar-motion-soft{display:none}
 #thera-sar-editoriale[data-filo-reading] .target-confirmation{padding-left:0}
 #thera-sar-editoriale[data-filo-reading] .target-confirmation .v2-reading-instrument[data-sar-motion]{padding:7px;border-radius:16px}
 #thera-sar-editoriale[data-filo-reading] .target-confirmation .v2-player{border-radius:9px}
 #thera-sar-editoriale[data-filo-reading] .cards-grid.filo-frame[data-sar-motion]{padding-block:12px}
}
@media(prefers-reduced-motion:reduce){.sar-motion-ray{animation:none!important;display:none}}
@media print{.sar-motion-frame{display:none!important}}
